Commit 7212dc05 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 9e2ee8a4
<view class="pagex"> <view class="pagex">
<view slot="header" class="scan-header"> <view slot="header" class="scan-header">
<view hidden="{{memberPhone == ''}}"> <view hidden="{{showMemberPhone == ''}}">
欢迎您,{{memberPhone}} 欢迎您,{{showMemberPhone}}
</view> </view>
<view hidden="{{memberPoint == 0}}"> <view hidden="{{memberPoint == 0}}">
积分:{{memberPoint}} 积分:{{memberPoint}}
......
...@@ -18,6 +18,7 @@ Page({ ...@@ -18,6 +18,7 @@ Page({
totalQuantity: 0, totalQuantity: 0,
totalDisc: 0.00, totalDisc: 0.00,
memberPhone: '', memberPhone: '',
showMemberPhone: '',
memberPoint: 0, memberPoint: 0,
//显示弹窗,>1为显示,2loading 3 result success 4 result failed //显示弹窗,>1为显示,2loading 3 result success 4 result failed
scanDialogDisplay: 0, scanDialogDisplay: 0,
...@@ -61,8 +62,10 @@ Page({ ...@@ -61,8 +62,10 @@ Page({
}) })
} else if (res.action == ACTION_MEMBER) { } else if (res.action == ACTION_MEMBER) {
let showPhone = res.data.substring(0,3)+"****"+res.data.substring(7,11)
context.setData({ context.setData({
memberPhone: res.data memberPhone: res.data,
showMemberPhone:showPhone
}) })
} }
else if (res.action == ACTION_GO_BALANCE) { 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