Commit 899f36a45f5f0b7e6a1676354247a9ec37780341

Authored by yvan.ni
1 parent 43e13100

bug优化

components/diy_user_info/diy_user_info.js
... ... @@ -188,6 +188,10 @@ Component({
188 188  
189 189 },
190 190  
  191 + go_info:function (){
  192 + getApp().goto("/packageG/pages/user/userinfo/userinfo");
  193 + }
  194 +
191 195  
192 196 }
193 197 })
194 198 \ No newline at end of file
... ...
components/diy_user_info/diy_user_info.wxss
... ... @@ -237,3 +237,6 @@
237 237 justify-content: center;
238 238 /* margin-top: 20rpx; */
239 239 }
  240 +.numfont {
  241 + font-size: 28rpx;
  242 +}
240 243 \ No newline at end of file
... ...
components/diy_user_info/style3.wxml
1 1 <!-- 会员有登陆登陆的情况 -->
2   -<view class="xc-user-frame abs" wx:if="{{userInfo}}" style="width:700rpx;left:25rpx;top:32rpx">
3   - <view class="xc-uesr-name" style="color:{{object.word_color}}" >
4   - <view class="flex ai-center">
5   - <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
6   - </view>
7   - <view class="flex fs24 xc-grow-ups ai-center" style="margin-top:4rpx">
8   - <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}' style="margin-right:6rpx">
9   - <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
  2 +<block wx:if="{{userInfo}}">
  3 + <view class="xc-user-frame abs" style="width:700rpx;left:25rpx;top:32rpx">
  4 + <view class="xc-uesr-name" style="color:{{object.word_color}}" >
  5 + <view class="flex ai-center">
  6 + <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
10 7 </view>
11   - <image bindtap='show_tc' class="xc-qrcode" wx:if="{{userInfo && object.is_user_card}}"
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   - </view>
14   -
15   - <!-- 显示成长值,综合分 -->
16   - <block wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}">
17   - <view class="fs22" style="margin-top:15rpx;color:{{userqy_color.font_color}} ">距{{qy_data.nextGradeName}}还有{{qy_data.need_money-qy_data.cz_val}}</view>
18   - <view class="gr_box" style="margin-top:10rpx">
19   - <view class="gr_box_item" style="width:{{(qy_data.cz_val*100)/qy_data.need_money}}%;background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}}"></view>
  8 + <view class="flex fs24 xc-grow-ups ai-center" style="margin-top:4rpx">
  9 + <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}' style="margin-right:6rpx">
  10 + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
  11 + </view>
  12 + <image bindtap='show_tc' class="xc-qrcode" wx:if="{{userInfo && object.is_user_card}}"
  13 + style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};width:40rpx; height:40rpx;" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
20 14 </view>
21   - </block>
22 15  
  16 + <!-- 显示成长值,综合分 -->
  17 + <block wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}">
  18 + <view class="fs22" style="margin-top:15rpx;color:{{userqy_color.font_color}} ">距{{qy_data.nextGradeName}}还有{{qy_data.need_money-qy_data.cz_val}}</view>
  19 + <view class="gr_box" style="margin-top:10rpx">
  20 + <view class="gr_box_item" style="width:{{(qy_data.cz_val*100)/qy_data.need_money}}%;background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}}"></view>
  21 + </view>
  22 + </block>
  23 +
  24 + </view>
23 25 </view>
24 26  
25   -</view>
  27 + <view class="xc-qrcode-frame abs" style="right:50rpx;top:38rpx">
  28 + <view style="position:relative;">
  29 + <image class="xc-user-img {{object.head_pic_type?'circle':''}}" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  30 + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
  31 + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx">
  32 + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
  33 + <view>{{pulscardname}}</view>
  34 + </view>
  35 + </block>
  36 + </view>
  37 + </view>
  38 +
  39 +
  40 +
  41 +</block>
  42 +
  43 +
26 44  
27 45 <!-- 显示头像 -->
28 46 <view wx:else class="flex-space-between abs xc-user-frame" >
... ... @@ -34,17 +52,6 @@
34 52 </view>
35 53  
36 54  
37   -<view class="xc-qrcode-frame abs" style="right:50rpx;top:38rpx">
38   - <view style="position:relative;">
39   - <image class="xc-user-img {{object.head_pic_type?'circle':''}}" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
40   - <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
41   - <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx">
42   - <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
43   - <view>{{pulscardname}}</view>
44   - </view>
45   - </block>
46   - </view>
47   -</view>
48 55  
49 56 <view class="flex-vertical abs xc-grow-frame rel" style="display: none">
50 57 <view class="xc-grow-up">{{rfmName}}</view>
... ...
components/diy_user_my_rights/diy_user_my_rights.wxml
... ... @@ -32,7 +32,7 @@
32 32 data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url">
33 33 <!-- <text>qy_list.privilegeICOUrl</text> -->
34 34 <image wx:if="{{object.is_icon}}" class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image>
35   - <view class="four-level-word">{{item.PrivilegeName}}</view>
  35 + <view class="four-level-word ellipsis-1">{{item.PrivilegeName}}</view>
36 36 </view>
37 37 </view>
38 38 </swiper-item>
... ...
pages/user/index/index.js
... ... @@ -537,7 +537,7 @@ Page({
537 537 //自定义组件一定要等到页面加载完了,才来调用selectComponnent
538 538 setTimeout(function () {
539 539  
540   - th.setData({ is_show_recommend:true,pshow:1 })
  540 + th.setData({ is_show_recommend:true })
541 541 if (getApp().globalData.user_id) getApp().requestCardNum(th);
542 542 var goods_list = th.selectComponent("#goods_recommend"); //组件的id
543 543  
... ... @@ -548,10 +548,12 @@ Page({
548 548  
549 549 }, 1200)
550 550  
551   -
552   -
553 551 }
554 552  
  553 + setTimeout(()=>{
  554 + th.setData({ pshow:1 })
  555 + },500)
  556 +
555 557 },
556 558  
557 559 //获取会员权益等级是否升级
... ...