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
290fa64d
Commit
290fa64d
authored
Mar 04, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
081e8e35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.axml
pages/index/index.axml
+1
-1
index.js
pages/index/index.js
+3
-1
No files found.
pages/index/index.axml
View file @
290fa64d
...
...
@@ -238,7 +238,7 @@
<view class="coupon-top">
<view class="coupon-back-container" onTap="convertCouponClose" a:if="{{discCouponState == 1}}">
<image class="coupon-back-icon" mode="aspectFit" src="/images/icon_back.png"/>
<text class="coupon-back-text">返回</text>
<text class="coupon-back-text"
onTap="couponBack"
>返回</text>
</view>
<view class="coupon-title" a:if="{{discCouponState == 1}}">优惠券</view>
<view></view>
...
...
pages/index/index.js
View file @
290fa64d
...
...
@@ -883,7 +883,6 @@ Page({
let
quantitytemp
=
item
.
quantity
item
.
quantity
=
quantitytemp
-
1
newGoods
.
push
(
item
);
}
}
else
{
newGoods
.
push
(
item
);
...
...
@@ -923,6 +922,9 @@ Page({
})
pricetemp
=
this
.
fen2Yuan
(
pricetemp
)
if
(
pricetemp
<
this
.
data
.
discCouponPrice
){
this
.
setData
({
discCouponPrice
:
0
})
}
this
.
setData
({
totalQuantity
:
quantitytemp
,
totalPrice
:
pricetemp
})
//数据同步到前屏
this
.
sendGoodInfoToFront
()
...
...
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