12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- const app = getApp();
- Component({
- /**
- * 组件的一些选项
- */
- options: {
- addGlobalClass: true,
- multipleSlots: true
- },
- /**
- * 组件的对外属性
- */
- properties: {
- bgColor: {
- type: String,
- default: ''
- },
- isCustom: {
- type: [Boolean, String],
- default: false
- },
- isNotice: {
- type: [Boolean, String],
- default: false
- },
- isBack: {
- type: [Boolean, String],
- default: false
- },
- bgImage: {
- type: String,
- default: ''
- },
- },
- /**
- * 组件的初始数据
- */
- data: {
- StatusBar: app.globalData.StatusBar,
- CustomBar: app.globalData.CustomBar,
- Custom: app.globalData.Custom
- },
- /**
- * 组件的方法列表
- */
- methods: {
- BackPage() {
- wx.navigateBack({
- delta: 1
- });
- },
- toHome(){
- wx:wx.switchTab({
- url: '/pages/home/index',
- })
- },
- handleNotice(){
- console.log("通知信息")
- // wx.navigateTo({
- // url: '/pages/messageInfo/index'
- // })
- }
- }
- })
|