Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
3e610c92
Commit
3e610c92
authored
Jan 15, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购优惠券权限
parent
256b128d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+5
-1
home.js
src/shoppingGuid/page/pages/home/home.js
+2
-0
home.wxss
src/shoppingGuid/page/pages/home/home.wxss
+2
-1
No files found.
src/pages/confirmOrder/confirmOrder.js
View file @
3e610c92
...
...
@@ -379,7 +379,10 @@ wxService.page({
calPreferentialPrice
(
params
)
{
wx
.
showLoading
({
title
:
'加载中'
})
});
// params.checkPrice = true;
wxService
.
post
(
`/sale/trade/buyer/preview`
,
params
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
...
...
@@ -591,6 +594,7 @@ wxService.page({
goodsAddress
:
params
.
addressId
?
false
:
true
,
});
}
this
.
calPreferentialPrice
(
params
)
}
}).
finally
(()
=>
{
...
...
src/shoppingGuid/page/pages/home/home.js
View file @
3e610c92
...
...
@@ -203,7 +203,9 @@ wxService.page({
if
(
res
){
let
list
=
res
.
data
.
data
.
content
?
res
.
data
.
data
.
content
:
[];
list
.
forEach
(
item
=>
{
item
.
price
=
parseFloat
(
item
.
couponSetting
.
faceAmount
/
100
).
toFixed
(
2
);
item
.
couponType
=
item
.
couponSetting
.
type
;
item
.
typeText
=
item
.
couponSetting
.
typeDesc
;
item
.
couponBg
=
item
.
couponType
==
1
?
diyongBg
:
(
item
.
couponType
==
2
?
discountBg
:
dingeBg
);
});
...
...
src/shoppingGuid/page/pages/home/home.wxss
View file @
3e610c92
...
...
@@ -146,7 +146,7 @@ view{
width: 100%;
height: 320rpx;
display: flex;
justify-content: space-between;
/* justify-content: space-between; */
}
.coupon-list .coupon-list-item{
...
...
@@ -154,6 +154,7 @@ view{
min-width: 33%;
max-width: 33%;
height: 100%;
margin-left: 4rpx;
background-position: center;
background-repeat: no-repeat;
background-size: 100%;
...
...
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