Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-back
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-back
Commits
bf37d94f
Commit
bf37d94f
authored
Feb 21, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
0be00890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
index.axml
pages/index/index.axml
+1
-1
index.js
pages/index/index.js
+6
-2
No files found.
pages/index/index.axml
View file @
bf37d94f
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<view class="operating-bottom">
<view class="operating-bottom">
<text class="total-num">共{{totalQuantity}}件商品,合计金额</text>
<text class="total-num">共{{totalQuantity}}件商品,合计金额</text>
<text class="pay-price">¥{{totalPrice}}</text>
<text class="pay-price">¥{{totalPrice}}</text>
<button class="go-pay" size="default" type="primary" onTap="
goPay
">收款</button>
<button class="go-pay" size="default" type="primary" onTap="
directPayment
">收款</button>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/index/index.js
View file @
bf37d94f
...
@@ -126,7 +126,7 @@ Page({
...
@@ -126,7 +126,7 @@ Page({
context
.
goPage
(
'landscan'
);
context
.
goPage
(
'landscan'
);
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
//跳转
//跳转
context
.
goPage
(
'waitoperate'
);
context
.
goPage
(
'waitoperate'
);
}
else
if
(
res
.
action
==
ACTION_ON_PAY_SUCCESS
)
{
}
else
if
(
res
.
action
==
ACTION_ON_PAY_SUCCESS
)
{
//分转元
//分转元
...
@@ -149,6 +149,11 @@ Page({
...
@@ -149,6 +149,11 @@ Page({
context
.
setData
({
context
.
setData
({
storeName
:
res
.
data
.
storeName
storeName
:
res
.
data
.
storeName
});
});
}
else
if
(
res
.
action
==
ACTION_DIRECT_PAYMENT
){
if
(
res
.
data
!=
null
){
context
.
setData
({
totalPrice
:
res
.
data
})
}
context
.
goPage
(
'waitoperate'
);
}
}
}
}
});
});
...
@@ -275,7 +280,6 @@ Page({
...
@@ -275,7 +280,6 @@ Page({
data
:
commonRequest
,
data
:
commonRequest
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
"发送直接收款事件到前屏小程序 成功 ===》"
+
JSON
.
stringify
(
res
));
console
.
log
(
"发送直接收款事件到前屏小程序 成功 ===》"
+
JSON
.
stringify
(
res
));
this
.
setData
({
totalPrice
:
payment
})
},
},
fail
:
(
res
)
=>
{
fail
:
(
res
)
=>
{
console
.
log
(
"发送收款事件到前屏小程序 失败 ===》 "
+
JSON
.
stringify
(
res
));
console
.
log
(
"发送收款事件到前屏小程序 失败 ===》 "
+
JSON
.
stringify
(
res
));
...
...
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