|
...
|
...
|
@@ -9,16 +9,21 @@ Page({ |
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
hasSellerBook:false,
|
|
|
|
hasManagerInvitation:false,
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad: function (options) {
|
|
|
|
App.Reserve.SellerForOpenid({openid:getApp().openid}).then(res=>{
|
|
|
|
if(res.data && res.data.seller_id) {
|
|
|
|
App.Invitation.UserIdentity({openid:getApp().openid}).then(res=>{
|
|
|
|
if(res.data.identity==1) {//商户
|
|
|
|
this.setData({
|
|
|
|
hasSellerBook: res.data,
|
|
|
|
})
|
|
|
|
}else if(res.data.identity==2){//客户经理
|
|
|
|
this.setData({
|
|
|
|
hasManagerInvitation: true,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
...
|
...
|
|