Commit 7212dc05 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 9e2ee8a4
<view class="pagex">
<view slot="header" class="scan-header">
<view hidden="{{memberPhone == ''}}">
欢迎您,{{memberPhone}}
<view hidden="{{showMemberPhone == ''}}">
欢迎您,{{showMemberPhone}}
</view>
<view hidden="{{memberPoint == 0}}">
积分:{{memberPoint}}
......
......@@ -18,6 +18,7 @@ Page({
totalQuantity: 0,
totalDisc: 0.00,
memberPhone: '',
showMemberPhone: '',
memberPoint: 0,
//显示弹窗,>1为显示,2loading 3 result success 4 result failed
scanDialogDisplay: 0,
......@@ -61,8 +62,10 @@ Page({
})
} else if (res.action == ACTION_MEMBER) {
let showPhone = res.data.substring(0,3)+"****"+res.data.substring(7,11)
context.setData({
memberPhone: res.data
memberPhone: res.data,
showMemberPhone:showPhone
})
}
else if (res.action == ACTION_GO_BALANCE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment