mirror of
https://gitee.com/bagee/jd-coupon-miniapp.git
synced 2025-06-16 23:39:59 +08:00
54 lines
862 B
JavaScript
54 lines
862 B
JavaScript
const app = getApp();
|
|
Component({
|
|
/**
|
|
* 组件的一些选项
|
|
*/
|
|
options: {
|
|
addGlobalClass: true,
|
|
multipleSlots: true
|
|
},
|
|
/**
|
|
* 组件的对外属性
|
|
*/
|
|
properties: {
|
|
bgColor: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
isCustom: {
|
|
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.reLaunch({
|
|
url: '/pages/main-two/main-two',
|
|
})
|
|
}
|
|
}
|
|
}) |