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
efdb8520
Commit
efdb8520
authored
Feb 24, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
a083e71d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
index.acss
pages/index/index.acss
+2
-0
index.js
pages/index/index.js
+32
-1
No files found.
pages/index/index.acss
View file @
efdb8520
...
...
@@ -339,6 +339,7 @@
font-weight: 400;
color: rgba(0, 0, 0, 0.65);
line-height: 18rpx;
margin-left: 15rpx;
}
/* 付款金额 */
...
...
@@ -348,6 +349,7 @@
font-family: AlibabaPuHuiTiB;
color: rgba(0, 122, 255, 1);
line-height: 49px;
margin-left: 15rpx;
}
/* 去付款 */
...
...
pages/index/index.js
View file @
efdb8520
...
...
@@ -235,6 +235,25 @@ Page({
},
//回到首页
goHome
(){
let
context
=
this
;
my
.
ix
.
sendBuddyMessage
({
target
:
getApp
().
globalData
.
frontScreenAppId
,
data
:
{
action
:
ACTION_GO_HOME
,
data
:
null
},
success
:
(
res
)
=>
{
context
.
goPage
(
'home'
);
console
.
log
(
"通知前屏回到首页 成功 ===》"
+
JSON
.
stringify
(
res
));
},
fail
:
(
res
)
=>
{
console
.
log
(
"通知前屏回到首页 失败 ===》 "
+
JSON
.
stringify
(
res
));
},
});
},
onShareAppMessage
()
{
// 返回自定义分享信息
return
{
...
...
@@ -578,6 +597,18 @@ Page({
//跳转到结算等待页
goPay
(
e
)
{
//购物车不能为空
if
(
this
.
data
.
goods
.
length
==
0
){
my
.
showToast
({
type
:
'fail'
,
content
:
'请扫描商品'
,
duration
:
3000
,
success
:
()
=>
{
},
});
return
}
var
commonRequest
=
{
action
:
ACTION_GO_BALANCE
,
data
:
""
...
...
@@ -661,7 +692,7 @@ Page({
},
//使用券
useCoupon
(
e
)
{
this
.
setData
({
couponUseing
:
true
})
//
this.setData({ couponUseing: true })
},
//发送退款金额.以分为单位
...
...
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