Commit a01151d6fff5e196c09dab09d6e38ee1a733458f

Authored by 前端研发-钱巧玲
1 parent 20bc551e

会员标签bug修改跟个人资料

pages/user/labels/labels.js
@@ -13,7 +13,7 @@ Page({ @@ -13,7 +13,7 @@ Page({
13 interest_lables: [], //兴趣标签 13 interest_lables: [], //兴趣标签
14 check_label: [], //用户选中的标签集合 14 check_label: [], //用户选中的标签集合
15 user_label_val: "", //奖励多少 15 user_label_val: "", //奖励多少
16 - user_label_type: "", //奖励类型(0积分,1类型 16 + user_label_type: "", //奖励类型(1积分,1成长值
17 is_modify: 0, //判断是第一次填写还是修改(0填写,1修改) 17 is_modify: 0, //判断是第一次填写还是修改(0填写,1修改)
18 }, 18 },
19 //点击选择兴趣标签把值放到已选中 19 //点击选择兴趣标签把值放到已选中
@@ -169,7 +169,7 @@ Page({ @@ -169,7 +169,7 @@ Page({
169 var th = this; 169 var th = this;
170 var is_modify = th.data.is_modify; //是否是修改 170 var is_modify = th.data.is_modify; //是否是修改
171 var check_label = th.data.check_label; //用户选择 171 var check_label = th.data.check_label; //用户选择
172 - var remark = "兴趣标签赠送"; 172 + var remark = "领取";
173 if (is_modify) { 173 if (is_modify) {
174 user_label_type = 0; 174 user_label_type = 0;
175 remark = "修改"; 175 remark = "修改";
@@ -178,7 +178,7 @@ Page({ @@ -178,7 +178,7 @@ Page({
178 getApp().my_warnning("完成兴趣标签才能" + remark + "哦~", 0, th); 178 getApp().my_warnning("完成兴趣标签才能" + remark + "哦~", 0, th);
179 } else { 179 } else {
180 var user_label_val = th.data.user_label_val; //选择标签奖励多少 180 var user_label_val = th.data.user_label_val; //选择标签奖励多少
181 - var user_label_type = th.data.user_label_type; //送类型 181 + var user_label_type = th.data.user_label_type; //送类型
182 var url = "/api/weshop/marketing/holiday/vip/interest/label/update"; //更新标签接口地址 182 var url = "/api/weshop/marketing/holiday/vip/interest/label/update"; //更新标签接口地址
183 var nav_url = "/pages/user/userinfo/userinfo"; //领取成功之后跳转页面 183 var nav_url = "/pages/user/userinfo/userinfo"; //领取成功之后跳转页面
184 var vipLabel = ""; //选择的标签名称 184 var vipLabel = ""; //选择的标签名称
pages/user/labels/labels.wxss
@@ -31,9 +31,9 @@ @@ -31,9 +31,9 @@
31 display: inline-block; 31 display: inline-block;
32 max-width: 200rpx; 32 max-width: 200rpx;
33 height: 46rpx; 33 height: 46rpx;
  34 + line-height: 46rpx;
34 border: 2rpx solid rgb(204, 204, 204); 35 border: 2rpx solid rgb(204, 204, 204);
35 border-radius: 30rpx; 36 border-radius: 30rpx;
36 - line-height: 46rpx;  
37 padding: 0rpx 30rpx; 37 padding: 0rpx 30rpx;
38 margin-right: 25rpx; 38 margin-right: 25rpx;
39 margin-bottom: 45rpx; 39 margin-bottom: 45rpx;
@@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
57 border: 2rpx solid rgb(255, 138, 160); 57 border: 2rpx solid rgb(255, 138, 160);
58 line-height: 46rpx; 58 line-height: 46rpx;
59 margin-right: 25rpx; 59 margin-right: 25rpx;
60 - margin-bottom: 45rpx; 60 + margin-bottom: 30rpx;
61 padding: 0rpx 30rpx; 61 padding: 0rpx 30rpx;
62 border-radius: 30rpx; 62 border-radius: 30rpx;
63 color: rgb(255, 255, 255); 63 color: rgb(255, 255, 255);
pages/user/userinfo/userinfo.wxml
@@ -186,12 +186,10 @@ @@ -186,12 +186,10 @@
186 </view> 186 </view>
187 </view> 187 </view>
188 </view> 188 </view>
189 - <!-- 我的兴趣 isBool==1 && -->  
190 - <view wx:if="{{is_lable_set==1}}" class="padding Bbottom">  
191 -=======  
192 <!-- 我的兴趣 --> 189 <!-- 我的兴趣 -->
193 - <view wx:if="{{is_lable_set!=null && is_lable_set==1}}" class="padding Bbottom">  
194 ->>>>>>> ec6a3fbf09a19e8dbfed33db0c6cdf9618287714 190 + <view wx:if="{{ isBool==1 && is_lable_set==1}}" class="padding Bbottom">
  191 + <!-- 我的兴趣 -->
  192 + <view wx:if="{{is_lable_set!=null && is_lable_set==1}}" class="Bbottom">
195 <view class="interest fs28"> 193 <view class="interest fs28">
196 <view class="flex-vertical-between" bindtap="goto" data-url="/pages/user/labels/labels"> 194 <view class="flex-vertical-between" bindtap="goto" data-url="/pages/user/labels/labels">
197 <view class="fs30">我的兴趣</view> 195 <view class="fs30">我的兴趣</view>
@@ -394,4 +392,5 @@ @@ -394,4 +392,5 @@
394 </block> 392 </block>
395 </view> 393 </view>
396 </block> 394 </block>
  395 +</view>
397 <warn id="warn"></warn> 396 <warn id="warn"></warn>
398 \ No newline at end of file 397 \ No newline at end of file
pages/user/userinfo/userinfo.wxss
@@ -632,18 +632,21 @@ input { @@ -632,18 +632,21 @@ input {
632 632
633 .lable { 633 .lable {
634 display: inline-block; 634 display: inline-block;
635 - /* height: 46rpx; *//* line-height: 46rpx; */ 635 + height: 44rpx;
  636 + line-height: 44rpx;
636 margin-right: 15rpx; 637 margin-right: 15rpx;
637 color: rgb(255, 255, 255); 638 color: rgb(255, 255, 255);
638 border: 2rpx solid rgb(255, 138, 160); 639 border: 2rpx solid rgb(255, 138, 160);
639 background-color: rgb(255, 138, 160); 640 background-color: rgb(255, 138, 160);
640 padding: 0rpx 25rpx; 641 padding: 0rpx 25rpx;
641 border-radius: 30rpx; 642 border-radius: 30rpx;
642 - margin-bottom: 20rpx; 643 + margin-bottom: 21rpx;
643 max-width: 195rpx; 644 max-width: 195rpx;
644 } 645 }
645 646
646 .add_lable { 647 .add_lable {
  648 + height: 44rpx;
  649 + line-height: 44rpx;
647 color: rgb(189, 189, 189); 650 color: rgb(189, 189, 189);
648 border: 2rpx solid rgb(189, 189, 189); 651 border: 2rpx solid rgb(189, 189, 189);
649 border-radius: 30rpx; 652 border-radius: 30rpx;