|
|
|
@ -8,8 +8,8 @@ Page({ |
|
|
|
* 页面的初始数据 |
|
|
|
*/ |
|
|
|
data: { |
|
|
|
height:0, |
|
|
|
info:null |
|
|
|
height: 0, |
|
|
|
info: null |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -18,9 +18,8 @@ Page({ |
|
|
|
onLoad: function (options) { |
|
|
|
let rect = wx.getMenuButtonBoundingClientRect(); |
|
|
|
this.setData({ |
|
|
|
height:rect.top+rect.height |
|
|
|
height: rect.top + rect.height |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
supplier:function(){ |
|
|
|
app.globalData.weburl = "https://m.cloud.sz-trip.com/Audit" |
|
|
|
@ -28,26 +27,26 @@ Page({ |
|
|
|
url: '/pages/pbService/web/index', |
|
|
|
}) |
|
|
|
}, |
|
|
|
retail:function(){ |
|
|
|
common.user_post('commission/getCommissionUser',{}).then(res=>{ |
|
|
|
if(res.code==0){ |
|
|
|
retail: function () { |
|
|
|
common.user_post('commission/getCommissionUser', {}).then(res => { |
|
|
|
if (res.code == 0) { |
|
|
|
wx.navigateTo({ |
|
|
|
url: 'retail/apply/index', |
|
|
|
}) |
|
|
|
} |
|
|
|
else if(res.data.status==0){ |
|
|
|
else if (res.data.status == 0) { |
|
|
|
wx.showToast({ |
|
|
|
title: '正在审核中,请联系管理员', |
|
|
|
icon:'none' |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
else if(res.data.status==2){ |
|
|
|
else if (res.data.status == 2) { |
|
|
|
wx.showToast({ |
|
|
|
title: '审核拒绝,请联系管理员', |
|
|
|
icon:'none' |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
else if(res.data.status==1){ |
|
|
|
else if (res.data.status == 1) { |
|
|
|
wx.navigateTo({ |
|
|
|
url: 'retail/index', |
|
|
|
}) |
|
|
|
@ -65,9 +64,9 @@ Page({ |
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
*/ |
|
|
|
onShow: function () { |
|
|
|
userApi.user_post("user/getMyInfo").then(res=>{ |
|
|
|
userApi.user_post("user/getMyInfo").then(res => { |
|
|
|
this.setData({ |
|
|
|
info:res.data |
|
|
|
info: res.data |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|