Skip to content

Commit

Permalink
fix:申请成为分销商界面的邀请人不正确
Browse files Browse the repository at this point in the history
  • Loading branch information
gooking committed May 28, 2019
1 parent 9c30cc7 commit 6c1d68b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
dist/
package-lock.json
node_modules/
node_modules/
.DS_Store
11 changes: 9 additions & 2 deletions pages/fx/apply.js
Expand Up @@ -7,7 +7,7 @@ Page({
* 页面的初始数据
*/
data: {

},

/**
Expand All @@ -28,7 +28,14 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {

const _this = this
WXAPI.userDetail(wx.getStorageSync('token')).then(res => {
if (res.code === 0) {
_this.setData({
userDetail: res.data
})
}
})
},

/**
Expand Down
4 changes: 2 additions & 2 deletions pages/fx/apply.wxml
Expand Up @@ -2,12 +2,12 @@
<image class="logo" src="/images/fxad.jpeg" mode="widthFix" />
<view class="weui-cells__title title">请填写申请信息</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_input">
<view wx:if="{{ userDetail && userDetail.referrer }}" class="weui-cell weui-cell_input">
<view class="weui-cell__hd">
<view class="weui-label">邀请人</view>
</view>
<view class="weui-cell__bd">
<input class="weui-input" value="张龙湖 (请确认)" disabled style='color:red;' />
<input class="weui-input" value="{{userDetail.referrer.nick}} (请确认)" disabled style='color:red;' />
</view>
</view>
<view class="weui-cell weui-cell_input">
Expand Down

0 comments on commit 6c1d68b

Please sign in to comment.