Commit 2476135d58ad0237e864c01a28b66ac34e04ee14
Merge branch 'dev_20191114' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev_20191114
Showing
3 changed files
with
70 additions
and
34 deletions
app.wxss
| @@ -145,6 +145,12 @@ justify-content:flex-start; | @@ -145,6 +145,12 @@ justify-content:flex-start; | ||
| 145 | align-items:center; | 145 | align-items:center; |
| 146 | } | 146 | } |
| 147 | .flex{display: flex} | 147 | .flex{display: flex} |
| 148 | +.ai-center{ | ||
| 149 | + align-items: center; | ||
| 150 | +} | ||
| 151 | +.jc-center{ | ||
| 152 | + justify-content: center; | ||
| 153 | +} | ||
| 148 | /* 水平左对齐 */ | 154 | /* 水平左对齐 */ |
| 149 | .flex-level-left{ | 155 | .flex-level-left{ |
| 150 | display:flex; | 156 | display:flex; |
| @@ -262,29 +268,7 @@ justify-content:space-around; | @@ -262,29 +268,7 @@ justify-content:space-around; | ||
| 262 | font-style: normal; | 268 | font-style: normal; |
| 263 | } | 269 | } |
| 264 | 270 | ||
| 265 | -.fs22{ | ||
| 266 | - font-size: 22rpx; | ||
| 267 | -} | ||
| 268 | 271 | ||
| 269 | -.fs26{ | ||
| 270 | - font-size: 26rpx; | ||
| 271 | -} | ||
| 272 | - | ||
| 273 | - | ||
| 274 | -.fs30{ | ||
| 275 | - font-size:30rpx; | ||
| 276 | -} | ||
| 277 | - | ||
| 278 | - | ||
| 279 | -.fs35{ | ||
| 280 | - font-size:35rpx; | ||
| 281 | -} | ||
| 282 | -.fs45{ | ||
| 283 | - font-size: 45rpx; | ||
| 284 | -} | ||
| 285 | -.fs50{ | ||
| 286 | - font-size: 50rpx; | ||
| 287 | -} | ||
| 288 | 272 | ||
| 289 | 273 | ||
| 290 | /* 7.26 */ | 274 | /* 7.26 */ |
| @@ -339,25 +323,52 @@ position: fixed; | @@ -339,25 +323,52 @@ position: fixed; | ||
| 339 | background: #ffe3e2; | 323 | background: #ffe3e2; |
| 340 | 324 | ||
| 341 | } | 325 | } |
| 342 | -.fs32{ | ||
| 343 | - font-size:32rpx; | ||
| 344 | -} | ||
| 345 | -.fs60{ font-size:60rpx;} | ||
| 346 | -.fs28{ | ||
| 347 | - font-size: 28rpx; | ||
| 348 | -} | ||
| 349 | .fs20{ | 326 | .fs20{ |
| 350 | font-size: 20rpx; | 327 | font-size: 20rpx; |
| 351 | } | 328 | } |
| 329 | +.fs22{ | ||
| 330 | + font-size: 22rpx; | ||
| 331 | +} | ||
| 352 | .fs24{ | 332 | .fs24{ |
| 353 | font-size: 24rpx; | 333 | font-size: 24rpx; |
| 354 | } | 334 | } |
| 335 | + | ||
| 336 | +.fs26{ | ||
| 337 | + font-size: 26rpx; | ||
| 338 | +} | ||
| 339 | +.fs28{ | ||
| 340 | + font-size: 28rpx; | ||
| 341 | +} | ||
| 342 | + | ||
| 343 | +.fs30{ | ||
| 344 | + font-size:30rpx; | ||
| 345 | +} | ||
| 346 | +.fs32{ | ||
| 347 | + font-size:32rpx; | ||
| 348 | +} | ||
| 349 | + | ||
| 350 | +.fs35{ | ||
| 351 | + font-size:35rpx; | ||
| 352 | +} | ||
| 355 | .fs36 { | 353 | .fs36 { |
| 356 | font-size: 36rpx; | 354 | font-size: 36rpx; |
| 357 | } | 355 | } |
| 358 | .fs40 { | 356 | .fs40 { |
| 359 | font-size: 40rpx; | 357 | font-size: 40rpx; |
| 360 | } | 358 | } |
| 359 | +.fs45{ | ||
| 360 | + font-size: 45rpx; | ||
| 361 | +} | ||
| 362 | +.fs50{ | ||
| 363 | + font-size: 50rpx; | ||
| 364 | +} | ||
| 365 | + | ||
| 366 | +.fs60{ font-size:60rpx;} | ||
| 367 | + | ||
| 368 | + | ||
| 369 | + | ||
| 370 | + | ||
| 371 | + | ||
| 361 | .ai_and{ | 372 | .ai_and{ |
| 362 | align-items:flex-end; | 373 | align-items:flex-end; |
| 363 | } | 374 | } |
pages/user/index/index.js
| @@ -44,7 +44,6 @@ Page({ | @@ -44,7 +44,6 @@ Page({ | ||
| 44 | var stoid = app_d.setting.stoid; | 44 | var stoid = app_d.setting.stoid; |
| 45 | var s = this,th=s,need_money=0,cur_g_num=0; | 45 | var s = this,th=s,need_money=0,cur_g_num=0; |
| 46 | getApp().get_isbuy(th.setappdata); | 46 | getApp().get_isbuy(th.setappdata); |
| 47 | - | ||
| 48 | /*------会员登录------*/ | 47 | /*------会员登录------*/ |
| 49 | app.getUserFir(async function(e){ | 48 | app.getUserFir(async function(e){ |
| 50 | if(e!=undefined && e!=null){ | 49 | if(e!=undefined && e!=null){ |
| @@ -189,7 +188,14 @@ Page({ | @@ -189,7 +188,14 @@ Page({ | ||
| 189 | th.requestRecommend(); | 188 | th.requestRecommend(); |
| 190 | } | 189 | } |
| 191 | }); | 190 | }); |
| 191 | + /*-------系统是否开通等级卡,会员是等级卡-----*/ | ||
| 192 | + getApp().getConfig2(function (e) { | ||
| 193 | + var t_swi=e.switch_list; | ||
| 194 | + if(t_swi) t_swi=JSON.parse(t_swi) | ||
| 195 | + if(t_swi.rank_switch==2){ | ||
| 192 | 196 | ||
| 197 | + } | ||
| 198 | + }) | ||
| 193 | }, | 199 | }, |
| 194 | 200 | ||
| 195 | //判断会员是后有改服务项目 | 201 | //判断会员是后有改服务项目 |
pages/user/userinfo/userinfo.wxml
| @@ -47,8 +47,8 @@ | @@ -47,8 +47,8 @@ | ||
| 47 | </view> | 47 | </view> |
| 48 | </view> | 48 | </view> |
| 49 | <view bindtap="editUserInfo1" class="user-name flex-vertical-between" data-type="nickname"> | 49 | <view bindtap="editUserInfo1" class="user-name flex-vertical-between" data-type="nickname"> |
| 50 | - <view class="flex-center" bindtap="isstcsp"> | ||
| 51 | - <view>消费密码</view> | 50 | + <view>是否启用消费密码</view> |
| 51 | + <view class="flex-center" bindtap="isstcsp" > | ||
| 52 | <view class="flex-center cmleft"> | 52 | <view class="flex-center cmleft"> |
| 53 | <block wx:if="{{isstcsp}}"> | 53 | <block wx:if="{{isstcsp}}"> |
| 54 | <icon size="20" type="success" color="rgb(212,2,31)"></icon> | 54 | <icon size="20" type="success" color="rgb(212,2,31)"></icon> |
| @@ -59,7 +59,13 @@ | @@ -59,7 +59,13 @@ | ||
| 59 | <view class="Mleft">启动密码消费</view> | 59 | <view class="Mleft">启动密码消费</view> |
| 60 | </view> | 60 | </view> |
| 61 | </view> | 61 | </view> |
| 62 | - <!-- 是否显示密码 --> | 62 | + |
| 63 | + </view> | ||
| 64 | + <!-- 是否显示密码 --> | ||
| 65 | + <view class="flex-vertical-between user-name" wx:if="{{isstcsp==1}}"> | ||
| 66 | + <view class="user-txt"> | ||
| 67 | + 消费密码 | ||
| 68 | + </view> | ||
| 63 | <view class="flex"> | 69 | <view class="flex"> |
| 64 | <block wx:if="{{ispwhid}}"> | 70 | <block wx:if="{{ispwhid}}"> |
| 65 | <input class="fs28 hion user-txt-right" maxlength="6" value="{{user.paypwd.length>0?user.paypwd:'******'}}" type="number" password="true"/> | 71 | <input class="fs28 hion user-txt-right" maxlength="6" value="{{user.paypwd.length>0?user.paypwd:'******'}}" type="number" password="true"/> |
| @@ -73,8 +79,21 @@ | @@ -73,8 +79,21 @@ | ||
| 73 | <block wx:else> | 79 | <block wx:else> |
| 74 | <image class="eye" src="../../../images/open_eye.png" bindtap="ispwhid"></image> | 80 | <image class="eye" src="../../../images/open_eye.png" bindtap="ispwhid"></image> |
| 75 | </block> | 81 | </block> |
| 82 | + | ||
| 83 | + </view> | ||
| 76 | </view> | 84 | </view> |
| 77 | - </view> | 85 | + |
| 86 | + | ||
| 87 | + | ||
| 88 | + | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | + | ||
| 93 | + | ||
| 94 | + | ||
| 95 | + | ||
| 96 | + | ||
| 78 | <view bindtap="editUserInfo1" class="user-name flex-vertical-between" data-type="sex"> | 97 | <view bindtap="editUserInfo1" class="user-name flex-vertical-between" data-type="sex"> |
| 79 | <view>性别</view> | 98 | <view>性别</view> |
| 80 | <view class="flex" wx:if="{{isGender!=0}}"> | 99 | <view class="flex" wx:if="{{isGender!=0}}"> |