diff --git a/pages/user/user.js b/pages/user/user.js index a48712b..9e158a1 100644 --- a/pages/user/user.js +++ b/pages/user/user.js @@ -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 }) }) }, diff --git a/pages/user/user.wxml b/pages/user/user.wxml index 29787f8..b6bc936 100644 --- a/pages/user/user.wxml +++ b/pages/user/user.wxml @@ -1,11 +1,14 @@ - + - {{info.nickname}} + {{info.nickname}} + id:{{info.id}} @@ -43,23 +46,23 @@ - 购物车 + 购物车 - + - 团体订单 + 团体订单 - 在线客服 + 在线客服 - 我的卡券 + 我的卡券 - 我的收藏 + 我的收藏 商户审核 @@ -74,16 +77,16 @@ 我要分销 --> - 实名认证 + 实名认证 - 出游人信息 + 出游人信息 - 收货地址 + 收货地址 - + \ No newline at end of file