|
|
|
|
|
|
|
|
* 组件的属性列表 |
|
|
* 组件的属性列表 |
|
|
*/ |
|
|
*/ |
|
|
properties: { |
|
|
properties: { |
|
|
|
|
|
|
|
|
|
|
|
enterType:{ |
|
|
|
|
|
type:String, |
|
|
|
|
|
value:'' |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
|
|
|
userData:null |
|
|
userData:null |
|
|
}, |
|
|
}, |
|
|
ready:function(){ |
|
|
ready:function(){ |
|
|
|
|
|
console.log(this.data.enterType); |
|
|
if (app.globalData.openid) { |
|
|
if (app.globalData.openid) { |
|
|
this.loadFun(); |
|
|
this.loadFun(); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
this.data.subscribeData.mobile = sourceMobile; |
|
|
this.data.subscribeData.mobile = sourceMobile; |
|
|
this.data.appointment = true; |
|
|
this.data.appointment = true; |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
if (app.globalData.nowPage=='0'){ |
|
|
|
|
|
|
|
|
if (this.data.enterType=='coupon'){ |
|
|
wx.reLaunch({ |
|
|
wx.reLaunch({ |
|
|
url: '/pages/index/index' |
|
|
url: '/pages/index/index' |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); |
|
|
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); |
|
|
} |
|
|
} |
|
|
|
|
|
this.subscribeFun(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |