Commit 168ad730e8d9b573046be340233e1f88b69a0376
1 parent
1d600ef4
显示送积分的bug游湖
Showing
2 changed files
with
26 additions
and
26 deletions
packageA/pages/profile/profile.wxml
... | ... | @@ -33,8 +33,8 @@ |
33 | 33 | <input bindinput="getReferee" bindblur="" disabled="{{user['fromuser_id']}}" value="{{user['fromuser_id']?user['fromuser_id']:''}}" data-name="推荐人" class="user-txt-right f1 pdl20 t-r" placeholder="请输入推荐人手机号码或卡号"/> |
34 | 34 | |
35 | 35 | <block wx:if="{{!user['fromuser_id']}}"> |
36 | - <view class="c-red pdl20 fs24" wx:if="{{reg_info.introducer && (reg_info.introducer_type == 0)}}">+{{reg_info.introducer}}积分</view> | |
37 | - <view class="c-red pdl20 fs24" wx:elif="{{reg_info.introducer && (reg_info.introducer_type == 1)}}">+{{reg_info.introducer}}成长值</view> | |
36 | + <view class="c-red pdl20 fs24" wx:if="{{reg_info.introducer && reg_info.introducer_state && (reg_info.introducer_type == 0)}}">+{{reg_info.introducer}}积分</view> | |
37 | + <view class="c-red pdl20 fs24" wx:elif="{{reg_info.introducer && reg_info.introducer_state && (reg_info.introducer_type == 1)}}">+{{reg_info.introducer}}成长值</view> | |
38 | 38 | </block> |
39 | 39 | </view> |
40 | 40 | |
... | ... | @@ -43,8 +43,8 @@ |
43 | 43 | <view class="user-name-txt">姓名:</view> |
44 | 44 | <input bindinput="getName" bindblur="" value="{{user['vipname']?user['vipname']:''}}" data-name="姓名" class="user-txt-right f1 pdl20 t-r" placeholder="请输入您的真实姓名"/> |
45 | 45 | <block wx:if="{{!user['vipname']}}"> |
46 | - <view class="c-red pdl20 fs24" wx:if="{{reg_info.name && (reg_info.name_val_type == 0)}}">+{{reg_info.name}}积分</view> | |
47 | - <view class="c-red pdl20 fs24" wx:elif="{{reg_info.name && (reg_info.name_val_type == 1)}}">+{{reg_info.name}}成长值</view> | |
46 | + <view class="c-red pdl20 fs24" wx:if="{{reg_info.name && reg_info.name_state && (reg_info.name_val_type == 0)}}">+{{reg_info.name}}积分</view> | |
47 | + <view class="c-red pdl20 fs24" wx:elif="{{reg_info.name && reg_info.name_state && (reg_info.name_val_type == 1)}}">+{{reg_info.name}}成长值</view> | |
48 | 48 | </block> |
49 | 49 | </view> |
50 | 50 | |
... | ... | @@ -72,8 +72,8 @@ |
72 | 72 | </view> |
73 | 73 | |
74 | 74 | <block wx:if="{{!user['sex']}}"> |
75 | - <view class="c-red pdl20 fs24" wx:if="{{reg_info.sex && (reg_info.sex_state_type == 0)}}">+{{reg_info.sex}}积分</view> | |
76 | - <view class="c-red pdl20 fs24" wx:elif="{{reg_info.sex && (reg_info.sex_state_type == 1)}}">+{{reg_info.sex}}成长值</view> | |
75 | + <view class="c-red pdl20 fs24" wx:if="{{reg_info.sex && reg_info.sex_state && (reg_info.sex_state_type == 0)}}">+{{reg_info.sex}}积分</view> | |
76 | + <view class="c-red pdl20 fs24" wx:elif="{{reg_info.sex && reg_info.sex_state && (reg_info.sex_state_type == 1)}}">+{{reg_info.sex}}成长值</view> | |
77 | 77 | </block> |
78 | 78 | </view> |
79 | 79 | |
... | ... | @@ -95,8 +95,8 @@ |
95 | 95 | </view> |
96 | 96 | |
97 | 97 | <block wx:if="{{!user['birthday']}}"> |
98 | - <view class="c-red pdl20 fs24 shrink0" wx:if="{{reg_info.birthday && (reg_info.birthday_type == 0)}}">+{{reg_info.birthday}}积分</view> | |
99 | - <view class="c-red pdl20 fs24 shrink0" wx:elif="{{reg_info.birthday && (reg_info.birthday_type == 1)}}">+{{reg_info.birthday}}成长值</view> | |
98 | + <view class="c-red pdl20 fs24 shrink0" wx:if="{{reg_info.birthday && reg_info.birthday_state && (reg_info.birthday_type == 0)}}">+{{reg_info.birthday}}积分</view> | |
99 | + <view class="c-red pdl20 fs24 shrink0" wx:elif="{{reg_info.birthday && reg_info.birthday_state && (reg_info.birthday_type == 1)}}">+{{reg_info.birthday}}成长值</view> | |
100 | 100 | </block> |
101 | 101 | </view> |
102 | 102 | |
... | ... | @@ -105,8 +105,8 @@ |
105 | 105 | <view class="user-name-txt shrink0">身份证:</view> |
106 | 106 | <input bindinput="getId" bindblur="IdentityIDCard" value="{{user.idcard}}" class="user-txt-right pdl20 f1 t-r" placeholder="请输入身份证号码"></input> |
107 | 107 | <block wx:if="{{!user.idcard}}"> |
108 | - <view class="c-red pdl20 fs24" wx:if="{{reg_info.idcard && (reg_info.idcard_type == 0)}}">+{{reg_info.idcard}}积分</view> | |
109 | - <view class="c-red pdl20 fs24" wx:elif="{{reg_info.idcard && (reg_info.idcard_type == 1)}}">+{{reg_info.idcard}}成长值</view> | |
108 | + <view class="c-red pdl20 fs24" wx:if="{{reg_info.idcard && reg_info.idcard_state && (reg_info.idcard_type == 0)}}">+{{reg_info.idcard}}积分</view> | |
109 | + <view class="c-red pdl20 fs24" wx:elif="{{reg_info.idcard && reg_info.idcard_state && (reg_info.idcard_type == 1)}}">+{{reg_info.idcard}}成长值</view> | |
110 | 110 | </block> |
111 | 111 | </view> |
112 | 112 | |
... | ... | @@ -115,8 +115,8 @@ |
115 | 115 | <view class="user-name-txt">地址:</view> |
116 | 116 | <input bindinput="getAddress" bindblur="" value="{{user.address?user.address:''}}" data-name="姓名" class="user-txt-right f1" placeholder="请输入详细地址" style="text-align:right" /> |
117 | 117 | <block wx:if="{{!user.address}}"> |
118 | - <view class="c-red pdl20 fs24" wx:if="{{reg_info.address && (reg_info.address_type == 0)}}">+{{reg_info.address}}积分</view> | |
119 | - <view class="c-red pdl20 fs24" wx:elif="{{reg_info.address && (reg_info.address_type == 1)}}">+{{reg_info.address}}成长值</view> | |
118 | + <view class="c-red pdl20 fs24" wx:if="{{reg_info.address && reg_info.address_state && (reg_info.address_type == 0)}}">+{{reg_info.address}}积分</view> | |
119 | + <view class="c-red pdl20 fs24" wx:elif="{{reg_info.address && reg_info.address_state && (reg_info.address_type == 1)}}">+{{reg_info.address}}成长值</view> | |
120 | 120 | </block> |
121 | 121 | </view> |
122 | 122 | |
... | ... | @@ -130,8 +130,8 @@ |
130 | 130 | </view> |
131 | 131 | |
132 | 132 | <block wx:if="{{!user.pickup_id && !is_fx }}"> |
133 | - <view class="c-red pdl20 fs24" wx:if="{{reg_info.pick && (reg_info.pick_type == 0)}}">+{{reg_info.pick}}积分</view> | |
134 | - <view class="c-red pdl20 fs24" wx:elif="{{reg_info.pick && (reg_info.pick_type == 1)}}">+{{reg_info.pick}}成长值</view> | |
133 | + <view class="c-red pdl20 fs24" wx:if="{{reg_info.pick && reg_info.pick_state && (reg_info.pick_type == 0)}}">+{{reg_info.pick}}积分</view> | |
134 | + <view class="c-red pdl20 fs24" wx:elif="{{reg_info.pick && reg_info.pick_state && (reg_info.pick_type == 1)}}">+{{reg_info.pick}}成长值</view> | |
135 | 135 | </block> |
136 | 136 | </view> |
137 | 137 | ... | ... |
pages/user/userinfo/userinfo.wxml
... | ... | @@ -115,8 +115,8 @@ |
115 | 115 | </view> |
116 | 116 | |
117 | 117 | <block wx:if="{{!user.sex}}"> |
118 | - <text class="lb_txt" wx:if="{{reg_info.sex && (reg_info.sex_state_type == 0)}}">+{{reg_info.sex}}积分</text> | |
119 | - <text class="lb_txt" wx:if="{{reg_info.sex && (reg_info.sex_state_type == 1)}}">+{{reg_info.sex}}成长值</text> | |
118 | + <text class="lb_txt" wx:if="{{reg_info.sex && reg_info.sex_state && (reg_info.sex_state_type == 0)}}">+{{reg_info.sex}}积分</text> | |
119 | + <text class="lb_txt" wx:if="{{reg_info.sex && reg_info.sex_state && (reg_info.sex_state_type == 1)}}">+{{reg_info.sex}}成长值</text> | |
120 | 120 | </block> |
121 | 121 | |
122 | 122 | </view> |
... | ... | @@ -158,8 +158,8 @@ |
158 | 158 | </block> |
159 | 159 | |
160 | 160 | <block wx:if="{{!user.birthday}}"> |
161 | - <text class="lb_txt" wx:if="{{reg_info.birthday && (reg_info.birthday_type == 0)}}">+{{reg_info.birthday}}积分</text> | |
162 | - <text class="lb_txt" wx:if="{{reg_info.birthday && (reg_info.birthday_type == 1)}}">+{{reg_info.birthday}}成长值</text> | |
161 | + <text class="lb_txt" wx:if="{{reg_info.birthday && reg_info.birthday_state && (reg_info.birthday_type == 0)}}">+{{reg_info.birthday}}积分</text> | |
162 | + <text class="lb_txt" wx:if="{{reg_info.birthday && reg_info.birthday_state && (reg_info.birthday_type == 1)}}">+{{reg_info.birthday}}成长值</text> | |
163 | 163 | </block> |
164 | 164 | |
165 | 165 | </view> |
... | ... | @@ -172,8 +172,8 @@ |
172 | 172 | <view class="flex ai_c"> |
173 | 173 | <input bindblur="user_name" class="user-txt-right t-r" placeholder="*姓名" value='{{user.vipname}}' /> |
174 | 174 | <block wx:if="{{!user.vipname}}"> |
175 | - <text class="lb_txt" wx:if="{{reg_info.name && (reg_info.name_val_type == 0)}}">+{{reg_info.name}}积分</text> | |
176 | - <text class="lb_txt" wx:if="{{reg_info.name && (reg_info.name_val_type == 1)}}">+{{reg_info.name}}成长值</text> | |
175 | + <text class="lb_txt" wx:if="{{reg_info.name && reg_info.name_state && (reg_info.name_val_type == 0)}}">+{{reg_info.name}}积分</text> | |
176 | + <text class="lb_txt" wx:if="{{reg_info.name && reg_info.name_state && (reg_info.name_val_type == 1)}}">+{{reg_info.name}}成长值</text> | |
177 | 177 | </block> |
178 | 178 | </view> |
179 | 179 | </view> |
... | ... | @@ -183,8 +183,8 @@ |
183 | 183 | <view class="flex ai_c"> |
184 | 184 | <input bindblur="identity_card" class="user-txt-right t-r" value="{{user.idcard}}" placeholder="*身份证" /> |
185 | 185 | <block wx:if="{{!user.idcard}}"> |
186 | - <text class="lb_txt" wx:if="{{reg_info.idcard && (reg_info.idcard_type == 0)}}">+{{reg_info.idcard}}积分</text> | |
187 | - <text class="lb_txt" wx:if="{{reg_info.idcard && (reg_info.idcard_type == 1)}}">+{{reg_info.idcard}}成长值</text> | |
186 | + <text class="lb_txt" wx:if="{{reg_info.idcard && reg_info.idcard_state && (reg_info.idcard_type == 0)}}">+{{reg_info.idcard}}积分</text> | |
187 | + <text class="lb_txt" wx:if="{{reg_info.idcard && reg_info.idcard_state && (reg_info.idcard_type == 1)}}">+{{reg_info.idcard}}成长值</text> | |
188 | 188 | </block> |
189 | 189 | </view> |
190 | 190 | |
... | ... | @@ -206,8 +206,8 @@ |
206 | 206 | <view class="flex ai_c"> |
207 | 207 | <input bindblur="address" maxlength="30" value="{{user.address}}" class="user-txt-right" placeholder="*地址" style="text-align:right" /> |
208 | 208 | <block wx:if="{{!user.address}}"> |
209 | - <text class="lb_txt" wx:if="{{reg_info.address && (reg_info.address_type == 0)}}">+{{reg_info.address}}积分</text> | |
210 | - <text class="lb_txt" wx:if="{{reg_info.address && (reg_info.address_type == 1)}}">+{{reg_info.address}}成长值</text> | |
209 | + <text class="lb_txt" wx:if="{{reg_info.address && reg_info.address_state && (reg_info.address_type == 0)}}">+{{reg_info.address}}积分</text> | |
210 | + <text class="lb_txt" wx:if="{{reg_info.address && reg_info.address_state && (reg_info.address_type == 1)}}">+{{reg_info.address}}成长值</text> | |
211 | 211 | </block> |
212 | 212 | </view> |
213 | 213 | |
... | ... | @@ -221,8 +221,8 @@ |
221 | 221 | <view class="flex ai_c"> |
222 | 222 | <view class="angle">∟</view> |
223 | 223 | <block wx:if="{{!user.pickup_id}}"> |
224 | - <text class="lb_txt" wx:if="{{reg_info.pick && (reg_info.pick_type == 0)}}">+{{reg_info.pick}}积分</text> | |
225 | - <text class="lb_txt" wx:if="{{reg_info.pick && (reg_info.pick_type == 1)}}">+{{reg_info.pick}}成长值</text> | |
224 | + <text class="lb_txt" wx:if="{{reg_info.pick && reg_info.pick_state && (reg_info.pick_type == 0)}}">+{{reg_info.pick}}积分</text> | |
225 | + <text class="lb_txt" wx:if="{{reg_info.pick && reg_info.pick_state && (reg_info.pick_type == 1)}}">+{{reg_info.pick}}成长值</text> | |
226 | 226 | </block> |
227 | 227 | </view> |
228 | 228 | ... | ... |