Commit 24924d35a90e9750999ad624b2a0dfadd4c0b7c7

Authored by yvan.ni
1 parent 69cfe639

自定义模板的优化

components/diy_user_info/style1.wxml
... ... @@ -5,7 +5,7 @@
5 5  
6 6  
7 7 <view style="position:relative;">
8   - <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  8 + <image class="xc-user-img {{object.head_pic_type?'circle':''}} " bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
9 9 <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
10 10 <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax">
11 11 <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
... ... @@ -49,7 +49,7 @@
49 49  
50 50  
51 51 <view wx:if="{{userInfo && object.is_user_card}}" class="xc-qrcode-frame abs" style="top:46rpx">
52   - <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid #fe9db5;background: #fe9db5;" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  52 + <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
53 53 <view style="font-size:12px;color:{{object.word_color}}">会员卡</view>
54 54 </view>
55 55  
... ...
components/diy_user_info/style2.wxml
... ... @@ -3,7 +3,7 @@
3 3  
4 4 <view class="flex jc-center">
5 5 <view style="position:relative;">
6   - <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  6 + <image class="xc-user-img {{object.head_pic_type?'circle':''}}" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
7 7 <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
8 8 <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx">
9 9 <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
... ... @@ -47,7 +47,7 @@
47 47  
48 48  
49 49 <view wx:if="{{userInfo && object.is_user_card}}" class="xc-qrcode-frame abs ">
50   - <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid #fe9db5;background: #fe9db5;" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  50 + <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
51 51 <view style="font-size:12px;color:{{object.word_color}}">会员卡</view>
52 52 </view>
53 53  
... ...
components/diy_user_info/style3.wxml
... ... @@ -9,7 +9,7 @@
9 9 <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
10 10 </view>
11 11 <image bindtap='show_tc' class="xc-qrcode" wx:if="{{userInfo && object.is_user_card}}"
12   - style="border: 5rpx solid #fe9db5;background: #fe9db5;width:40rpx; height:40rpx;" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  12 + style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};width:40rpx; height:40rpx;" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
13 13 </view>
14 14  
15 15 <!-- 显示成长值,综合分 -->
... ... @@ -36,7 +36,7 @@
36 36  
37 37 <view class="xc-qrcode-frame abs" style="right:50rpx;top:38rpx">
38 38 <view style="position:relative;">
39   - <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  39 + <image class="xc-user-img {{object.head_pic_type?'circle':''}}" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
40 40 <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
41 41 <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx">
42 42 <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
... ...
packageG/pages/user_template/index.js
... ... @@ -184,6 +184,8 @@ Page({
184 184 if (cz_vals < im.BuyGradeSum && need_money == 0) {
185 185 need_money = im.BuyGradeSum;
186 186 obj.need_money = need_money;
  187 + obj.nextGradeName=im.GradeName;
  188 + break;
187 189 }
188 190 }
189 191  
... ...