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
256b128d
Commit
256b128d
authored
Jan 15, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单,导购等相关优化
parent
b261f317
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
64 additions
and
32 deletions
+64
-32
icon_plus.png
src/assets/imgs/icon_plus.png
+0
-0
bottomTabs.wxss
src/component/bottomTabs/bottomTabs.wxss
+1
-0
goHome.wxss
src/component/goHome/goHome.wxss
+1
-1
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+25
-18
confirmOrder.wxml
src/pages/confirmOrder/confirmOrder.wxml
+5
-4
confirmOrder.wxss
src/pages/confirmOrder/confirmOrder.wxss
+15
-0
myShare.wxml
src/pages/myShare/myShare.wxml
+3
-1
myShare.wxss
src/pages/myShare/myShare.wxss
+9
-3
userCenter.js
src/pages/userCenter/userCenter.js
+1
-1
userCenter.wxss
src/pages/userCenter/userCenter.wxss
+4
-4
No files found.
src/assets/imgs/icon_plus.png
0 → 100644
View file @
256b128d
166 Bytes
src/component/bottomTabs/bottomTabs.wxss
View file @
256b128d
...
...
@@ -29,6 +29,7 @@
justify-content: center;
/* box-shadow: 0px -4px 10px 0px rgba(232, 232, 232, 0.95); */
padding-top: 20rpx;
/* border-top: solid 2rpx #dddddd; */
}
.pdt {
padding-top: 50rpx;
...
...
src/component/goHome/goHome.wxss
View file @
256b128d
...
...
@@ -12,7 +12,7 @@
border-radius: 50%;
color: #fff;
font-size: 24rpx;
background-color: rgba(0, 0, 0, 0.
2
);
background-color: rgba(0, 0, 0, 0.
4
);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
z-index: 99;
}
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
256b128d
...
...
@@ -81,8 +81,11 @@ wxService.page({
defalutCoupon
:
0
,
couponId
:
''
,
couponSettingId
:
''
,
defalutCouponId
:
''
})
defalutCouponId
:
''
,
currentCoupon
:
0
,
},()
=>
{
this
.
setPayPrice
();
});
return
}
const
{
faceAmount
,
type
,
id
,
couponDiscount
,
sid
}
=
e
.
detail
...
...
@@ -110,11 +113,11 @@ wxService.page({
// couponId: id,
haveCoupon
:
true
,
currentCoupon
:
`
${
couponDiscount
}
元`
})
})
;
}
// 实付款
this
.
setPayPrice
()
this
.
setPayPrice
()
;
},
setPayPrice
()
{
const
{
currentCoupon
,
orderInitPrice
,
isSelect
,
plusMemberPrice
,
defalutCoupon
}
=
this
.
data
...
...
@@ -390,8 +393,7 @@ wxService.page({
sum
+=
skuList
[
index
].
price
*
skuList
[
index
].
count
;
});
this
.
data
.
totalGoodsPrice
=
sum
;
this
.
data
.
totalGoodsPrice
=
sum
;
// 初始化商品价格
const
{
isSelect
}
=
this
.
data
...
...
@@ -404,21 +406,26 @@ wxService.page({
noSelectPrice
:
sum
})
}
//获取优惠券信息
let
defalutCoupon
=
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
].
couponSettingDTO
.
type
==
1
?
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
].
couponSettingDTO
.
faceAmount
/
100
:
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDiscount
;
let
defalutCouponId
=
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
].
id
||
''
;
let
couponSettingId
=
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
].
couponSettingId
||
''
;
data
.
couponDiscountPreviews
=
data
.
couponDiscountPreviews
?
data
.
couponDiscountPreviews
:[];
// id / couponSettingId
this
.
setData
({
currentOrderList
:
data
,
defalutCoupon
:
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
].
couponSettingDTO
.
type
==
1
?
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
].
couponSettingDTO
.
faceAmount
/
100
:
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDiscount
,
defalutCouponId
:
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
].
id
||
''
,
couponSettingId
:
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
]
&&
data
.
couponDiscountPreviews
[
0
].
couponDTOS
[
0
].
couponSettingId
||
''
,
defalutCoupon
:
defalutCoupon
,
defalutCouponId
:
defalutCouponId
,
couponSettingId
:
couponSettingId
,
orderInitPrice
:
data
.
amount
,
totalGoodsPrice
:
this
.
data
.
totalGoodsPrice
},
()
=>
{
...
...
src/pages/confirmOrder/confirmOrder.wxml
View file @
256b128d
...
...
@@ -127,16 +127,17 @@
</view>
</view>
<view class="coupon">
<view>
<!-- class='coupon-items' -->
<view bindtap="selectCoupon">
<text class="price-label">优惠券</text>
<view class="select-coupon"
bindtap="selectCoupon"
>
<text class="{{defalutCoupon ? 'coupon-price' : 'no-coupon'}}">
{{defalutCoupon ? (currentCoupon ? '-' + currentCoupon : '-' + defalutCoupon): '无可用优惠券'
}}</text>
<view class="select-coupon" >
<text class="{{defalutCoupon ? 'coupon-price' : 'no-coupon'}}">
{{defalutCoupon ? (currentCoupon ? '-' + currentCoupon : '-' + defalutCoupon): (currentOrderList.couponDiscountPreviews.length == 0 ? '无可使用优惠券' : '选择优惠券')
}}</text>
<image class="arrow-right" src="/assets/imgs/7_1_0/arrow-right.png" />
</view>
</view>
</view>
<view class="coupon">
<view class="coupon">
<view>
<text class="price-label">运费</text>
<view class="select-coupon" bindtap="selectCoupon">
...
...
src/pages/confirmOrder/confirmOrder.wxss
View file @
256b128d
...
...
@@ -144,7 +144,22 @@
}
.select-coupon{
float: right;
display: flex;
justify-content: flex-end;
align-items: center;
}
.coupon-items{
display: flex;
justify-content: space-between;
align-items: center;
}
.select-coupon text{
display: flex;
align-items: center;
}
.coupon-price{
color: #cb3c3c;
font-size: 22rpx;
...
...
src/pages/myShare/myShare.wxml
View file @
256b128d
...
...
@@ -40,7 +40,9 @@
<view wx:if="{{currentHasUserInfo}}">
<block wx:if="{{contentPermission}}">
<navigator open-type="navigate" url="/subPackage/page/pages/grassCommunity/grassCommunity">
<view class="add">+</view>
<view class="add">
<image src='/assets/imgs/icon_plus.png' mode='aspectFit'></image>
</view>
</navigator>
</block>
</view>
...
...
src/pages/myShare/myShare.wxss
View file @
256b128d
...
...
@@ -58,16 +58,22 @@ scroll-view{
height: 82rpx;
background-color: rgba(203, 60, 60, 1);
border-radius: 50%;
line-height:82rpx;
text-align: center;
font-size: 60rpx;
color: #ffffff;
position: fixed;
right: 25rpx;
bottom: 3
57
rpx;
bottom: 3
20
rpx;
/* bottom: 35rpx; */
z-index: 99;
display: flex;
align-items: center;
justify-content: center;
}
.add image{
width: 40rpx;
height: 40rpx;
border-radius: 50%;
}
...
...
src/pages/userCenter/userCenter.js
View file @
256b128d
...
...
@@ -303,7 +303,7 @@ wxService.page({
}
else
if
(
tabbar
.
length
!=
0
){
this
.
setData
({
paddingBottom
:
'1
4
0rpx'
paddingBottom
:
'1
3
0rpx'
})
}
else
{
...
...
src/pages/userCenter/userCenter.wxss
View file @
256b128d
...
...
@@ -11,11 +11,11 @@ page{
}
/* .cell--bubble{
width:
40
px !important;
height:
40
px !important;
border-radius:
24px
;
width:
82r
px !important;
height:
82r
px !important;
border-radius:
50%
;
text-align:center;
line-height:
40
px !important;
line-height:
82r
px !important;
display:inline-block;
background-color: rgba(0, 0, 0, 0.5) !important;
}
...
...
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