Commit d2ca0f8c2cc8c8673126a6e8f8f0862dc5faf681

Authored by yvan.ni
1 parent 4ea64f51

专属导购的修改的内容

pages/user/choice_guide/choice_guide.js
... ... @@ -101,6 +101,11 @@ Page({
101 101 getApp().goto("/pages/user/userinfo/userinfo");
102 102 },
103 103  
  104 + img_err:function (e) {
  105 + var txt=e.currentTarget.dataset.err_img;
  106 + this.setData({[txt]:this.data.iurl+'/miniapp/images/no-head.jpg'});
  107 + }
  108 +
104 109  
105 110  
106 111  
... ...
pages/user/choice_guide/choice_guide.wxml
... ... @@ -16,10 +16,10 @@
16 16 <view class="item flex jc_sb ai-center" wx:for="{{list}}">
17 17 <!-- 左边 -->
18 18 <view class="flex">
19   - <view><image class="head_pic" src="{{item.PhotoUrl}}" data-err_img="list[{{index}}].head_pic" ></image></view>
  19 + <view><image class="head_pic" src="{{item.PhotoUrl?item.PhotoUrl:iurl+'/miniapp/images/no-head.jpg'}}" binderror="img_err" data-err_img="list[{{index}}].PhotoUrl" ></image></view>
20 20 <view style="margin-left: 30rpx; margin-top: 20rpx">
21 21 <view class="fs35">{{item.StaffName}}</view>
22   - <view class="fs28">{{item.Remark1}}</view>
  22 + <view class="fs28 ellipsis-3">{{item.Remark1}}</view>
23 23 </view>
24 24 </view>
25 25 <!-- 右边 -->
... ...
pages/user/userinfo/userinfo.js
... ... @@ -156,8 +156,6 @@ Page({
156 156 th.setData({
157 157 isGender: sex
158 158 })
159   -
160   -
161 159 },
162 160 //密码是否隐藏显示
163 161 ispwhid: function() {
... ...