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
e41311c0
Commit
e41311c0
authored
Sep 16, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' into fixbug-ZYW
# Conflicts: # src/pages/confirmOrder/confirmOrder.js
parents
b803f356
09da528c
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
73 additions
and
26 deletions
+73
-26
base.wxss
src/base/base.wxss
+2
-2
bottomTabs.js
src/component/bottomTabs/bottomTabs.js
+3
-1
bottomTabs.wxml
src/component/bottomTabs/bottomTabs.wxml
+6
-6
bottomTabs.wxss
src/component/bottomTabs/bottomTabs.wxss
+5
-2
selectCoupon.js
src/component/selectCoupon/selectCoupon.js
+17
-2
waterFlowLayout.wxss
src/component/waterFlowLayout/waterFlowLayout.wxss
+2
-4
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+33
-6
confirmOrder.wxml
src/pages/confirmOrder/confirmOrder.wxml
+4
-2
myRelease.js
src/subPackage/page/pages/myRelease/myRelease.js
+1
-1
No files found.
src/base/base.wxss
View file @
e41311c0
...
...
@@ -1320,8 +1320,8 @@ button {
button::after{
border:none;
}
.button-hover{
background-color:
none
;
.button-hover
, .button-active
{
background-color:
transparent
;
}
input{
outline:none;
...
...
src/component/bottomTabs/bottomTabs.js
View file @
e41311c0
...
...
@@ -27,7 +27,9 @@ Component({
baseImgUrl
:
app
.
globalData
.
imageUrl
})
const
{
tabBar
}
=
this
.
data
tabBar
.
forEach
(
item
=>
{
let
currentTab
=
tabBar
.
images
currentTab
.
forEach
(
item
=>
{
// 存在 row 处理数据 8 商品 9 分类
let
newRow
=
null
if
(
item
.
link
)
{
...
...
src/component/bottomTabs/bottomTabs.wxml
View file @
e41311c0
...
...
@@ -12,7 +12,7 @@
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn
btn-primary
'
class='btn'
hover-class="btn-hover"
style="height: 100%;"
>
...
...
@@ -25,7 +25,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%;">
<button class='btn' style="height: 100%;">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
@@ -36,7 +36,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%">
<button class='btn' style="height: 100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
@@ -53,7 +53,7 @@
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn
btn-primary
'
class='btn'
hover-class="btn-hover"
style="height: 100%;"
>
...
...
@@ -66,7 +66,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%;">
<button class='btn' style="height: 100%;">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
@@ -77,7 +77,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%">
<button class='btn' style="height: 100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
src/component/bottomTabs/bottomTabs.wxss
View file @
e41311c0
...
...
@@ -7,8 +7,10 @@
justify-content: center;
}
.tab-img {
width: 70rpx;
height: 70rpx;
/* width: 70rpx;
height: 70rpx; */
width: 90rpx;
height: 90rpx;
}
.tab {
flex: 1;
...
...
@@ -19,6 +21,7 @@
.bgc {
background-size: 100% 100%;
background-repeat: no-repeat;
background-color: #fff;
height: 114rpx;
display: flex;
align-items: center;
...
...
src/component/selectCoupon/selectCoupon.js
View file @
e41311c0
...
...
@@ -54,16 +54,31 @@ Component({
// 1 抵用券 2 折扣券
const
{
id
,
index
,
type
}
=
e
.
currentTarget
.
dataset
const
{
couponList
}
=
this
.
data
console
.
log
(
'type---1 抵用券 2 折扣券 '
,
id
,
index
,
type
)
couponList
.
forEach
(
item
=>
{
item
.
checked
=
false
})
couponList
[
index
].
checked
=
true
let
params
=
{
type
,
id
,
faceAmount
:
''
}
if
(
type
==
1
){
params
.
faceAmount
=
couponList
[
index
].
couponSettingDTO
.
faceAmount
}
else
if
(
type
==
2
){
params
.
faceAmount
=
couponList
[
index
].
couponSettingDTO
.
faceAmount
}
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updateCoupon'
,
couponList
[
index
].
couponDiscount
)
this
.
triggerEvent
(
'updateCoupon'
,
params
)
})
// wxService.nextTick(() => {
// this.triggerEvent('updateCoupon', couponList[index].couponDiscount)
// })
this
.
setData
({
couponList
},()
=>
{
...
...
src/component/waterFlowLayout/waterFlowLayout.wxss
View file @
e41311c0
/* component/waterFlowLayout/waterFlowLayout.wxss */
page{
background-color: rgba(0,0,0,0.05)
}
.water-wrap{
margin: 50rpx 20rpx;
text-align: justify;
}
.item{
.item
{
margin-bottom: 10rpx;
display: inline-block;
width: 349.86rpx;
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
e41311c0
...
...
@@ -21,7 +21,9 @@ wxService.page({
multiIndex
:
[
0
,
0
,
0
],
selectCityName
:
[
''
,
''
],
currentCoupon
:
'无可用优惠券'
,
wxAddress
:
false
wxAddress
:
false
,
currentCoupon
:
''
,
orderPrice
:
null
,
// 订单金额
},
/**
...
...
@@ -66,14 +68,36 @@ wxService.page({
this
.
getAddressList
()
}
},
updateCoupon
(
e
){
console
.
log
(
'e'
,
e
.
detail
)
if
(
e
.
detail
){
updateCoupon
(
e
)
{
// faceAmount 抵用多少钱(分) 1 抵用券 2 折扣券
const
{
faceAmount
,
type
,
id
}
=
e
.
detail
const
{
orderPrice
}
=
this
.
data
console
.
log
(
'id'
,
id
)
if
(
type
==
1
)
{
this
.
setData
({
couponId
:
id
,
haveCoupon
:
true
,
currentCoupon
:
`-
${
e
.
detail
}
`
currentCoupon
:
`
${
faceAmount
/
100
}
元`
})
}
else
if
(
type
==
2
)
{
let
discounPrice
=
(
faceAmount
/
100
)
*
(
orderPrice
)
let
spread
=
Math
.
round
(
orderPrice
-
discounPrice
)
this
.
setData
({
couponId
:
id
,
haveCoupon
:
true
,
currentCoupon
:
`
${
spread
}
折`
})
}
// 实付款
this
.
setPayPrice
()
},
setPayPrice
()
{
const
{
currentCoupon
,
orderPrice
}
=
this
.
data
let
orderCoupon
=
parseFloat
(
currentCoupon
)
console
.
log
(
'orderPrice - orderCoupon'
,
orderPrice
-
orderCoupon
)
this
.
setData
({
orderPrice
:
Math
.
round
(
orderPrice
-
orderCoupon
)
})
},
formSubmit
(
e
)
{
const
{
goodsAddress
}
=
this
.
data
...
...
@@ -233,7 +257,10 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
currentOrderList
:
data
})
this
.
setData
({
currentOrderList
:
data
,
orderPrice
:
data
.
amount
})
}
}
})
...
...
src/pages/confirmOrder/confirmOrder.wxml
View file @
e41311c0
<!--pages/confirmOrder/confirmOrder.wxml-->
<wxs src="../..//wxs/utils.wxs" module="utils" />
<view class="page-confirm-order">
<form bindsubmit="formSubmit">
<view class="address-wrap">
...
...
@@ -122,7 +124,7 @@
<view>
<text class="price-label">优惠券</text>
<view class="select-coupon" bindtap="selectCoupon">
<text class="{{haveCoupon ? 'coupon-price' : 'no-coupon'}}">{{currentCoupon}}</text>
<text class="{{haveCoupon ? 'coupon-price' : 'no-coupon'}}">
{{currentCoupon ? '-' : '无可用优惠券'}}
{{currentCoupon}}</text>
<image class="arrow-right" src="/assets/imgs/7_1_0/arrow-right.png" />
</view>
</view>
...
...
@@ -147,7 +149,7 @@
<view class="pro-footer">
<view class="cost">
<text class="cost-label">实付款:</text>
<text class="cost-price">¥{{
currentOrderList.amount
}}</text>
<text class="cost-price">¥{{
utils.numberFormat(orderPrice)
}}</text>
</view>
<!-- <button form-type="submit" class="theme-color buy-btn">立即购买</button>-->
<!-- <view class="theme-color buy-btn" bindtap="handelGobuy">立即购买</view> -->
...
...
src/subPackage/page/pages/myRelease/myRelease.js
View file @
e41311c0
...
...
@@ -50,7 +50,7 @@ wxService.page({
*/
onShow
()
{
let
time
=
Date
.
parse
(
new
Date
())
if
(
member
.
premiumExpireTime
&&
member
.
premiumExpireTime
>
time
)
{
if
(
member
&&
member
.
premiumExpireTime
&&
member
.
premiumExpireTime
>
time
)
{
this
.
setData
({
plus
:
1
})
...
...
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