Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
7212dc05
Commit
7212dc05
authored
Mar 03, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
9e2ee8a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
scan.axml
pages/scan/scan.axml
+2
-2
scan.js
pages/scan/scan.js
+4
-1
No files found.
pages/scan/scan.axml
View file @
7212dc05
<view class="pagex">
<view slot="header" class="scan-header">
<view hidden="{{
m
emberPhone == ''}}">
欢迎您,{{
m
emberPhone}}
<view hidden="{{
showM
emberPhone == ''}}">
欢迎您,{{
showM
emberPhone}}
</view>
<view hidden="{{memberPoint == 0}}">
积分:{{memberPoint}}
...
...
pages/scan/scan.js
View file @
7212dc05
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment