Commit 7ae8f539cc504b8a69ae0bfd4bae4ceac1186430
1 parent
9885da4b
后台plus开关设置,个人资料同步开关
Showing
3 changed files
with
7 additions
and
2 deletions
pages/user/deposit/deposit.js
@@ -54,8 +54,11 @@ Page({ | @@ -54,8 +54,11 @@ Page({ | ||
54 | var yucun_money = a.data.yucun_money; | 54 | var yucun_money = a.data.yucun_money; |
55 | var list= a.data.list1; | 55 | var list= a.data.list1; |
56 | if (list.length != 0){ | 56 | if (list.length != 0){ |
57 | - console.log("在这里0", list.length); | ||
58 | console.log(list, "s1w" + yucun_money); | 57 | console.log(list, "s1w" + yucun_money); |
58 | + list=list.map(item=>{ | ||
59 | + item['EndDate']=item['EndDate'].replace('00:00:00','23:59:59'); | ||
60 | + return item; | ||
61 | + }); | ||
59 | this.setData({ yucun_money: yucun_money, list: list, parameter: false }); | 62 | this.setData({ yucun_money: yucun_money, list: list, parameter: false }); |
60 | }else{ | 63 | }else{ |
61 | console.log("在这里111", list.length); | 64 | console.log("在这里111", list.length); |
pages/user/userinfo/userinfo.js
@@ -79,9 +79,11 @@ Page({ | @@ -79,9 +79,11 @@ Page({ | ||
79 | get_config: function() { | 79 | get_config: function() { |
80 | var th = this; | 80 | var th = this; |
81 | getApp().getConfig2(function(ee) { | 81 | getApp().getConfig2(function(ee) { |
82 | + console.log('ee',ee); | ||
82 | var sms_conf = ee.switch_list; | 83 | var sms_conf = ee.switch_list; |
83 | sms_conf = JSON.parse(sms_conf); | 84 | sms_conf = JSON.parse(sms_conf); |
84 | th.setData({ | 85 | th.setData({ |
86 | + rank_switch:sms_conf.rank_switch, | ||
85 | is_lable_set: sms_conf.user_label_set, //是不是会员标签设置 | 87 | is_lable_set: sms_conf.user_label_set, //是不是会员标签设置 |
86 | guide_title:sms_conf.guide_consultant, //系统参数 导购标题 | 88 | guide_title:sms_conf.guide_consultant, //系统参数 导购标题 |
87 | guide_change_time:sms_conf.guide_change_time //每月能修改几次 | 89 | guide_change_time:sms_conf.guide_change_time //每月能修改几次 |
pages/user/userinfo/userinfo.wxml
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | </view> | 24 | </view> |
25 | </navigator> | 25 | </navigator> |
26 | </block> | 26 | </block> |
27 | - <block wx:if="{{pulscardname}}"> | 27 | + <block wx:if="{{pulscardname && rank_switch > 0 }}"> |
28 | <navigator url="/pages/user/plus/plus"> | 28 | <navigator url="/pages/user/plus/plus"> |
29 | <view class="flex-center plusMax"> | 29 | <view class="flex-center plusMax"> |
30 | <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image> | 30 | <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image> |