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
dd76f522
Commit
dd76f522
authored
Oct 28, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.2.0' of
ssh://gitlab.bigaka.net:2287/gaoshq/7-Eleven
into dev_7.2.0
parents
b7021a81
4835ac4b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
19 deletions
+68
-19
buyImageSwiper.js
src/component/buyImageSwiper/buyImageSwiper.js
+1
-1
plus.js
src/component/plus/plus.js
+3
-3
sharePoster.js
src/component/sharePoster/sharePoster.js
+1
-1
scanCoupon.js
src/subPackage/page/pages/scanCoupon/scanCoupon.js
+51
-2
scanCoupon.wxml
src/subPackage/page/pages/scanCoupon/scanCoupon.wxml
+9
-9
scanCoupon.wxss
src/subPackage/page/pages/scanCoupon/scanCoupon.wxss
+1
-1
Http.js
src/utils/Http.js
+2
-2
No files found.
src/component/buyImageSwiper/buyImageSwiper.js
View file @
dd76f522
...
...
@@ -26,7 +26,7 @@ Component({
data
:
{
imgUrls
:
[],
indicatorDots
:
false
,
autoplay
:
tru
e
,
autoplay
:
fals
e
,
circular
:
true
,
interval
:
3000
,
duration
:
1000
,
...
...
src/component/plus/plus.js
View file @
dd76f522
...
...
@@ -44,9 +44,9 @@ Component({
wxService
.
request
({
url
:
app
.
globalData
.
ctx
+
'/sale/premium/query'
,
header
:
{
//
'tunnel-token' : 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD' // 测试
'tunnel-token'
:
'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8'
,
// 生产
'tunnel-token'
:
'brand1001'
,
// 开发
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
// 测试
//
'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产
//
'tunnel-token' : 'brand1001', // 开发
},
success
:
(
res
)
=>
{
const
{
result
,
data
}
=
res
.
data
...
...
src/component/sharePoster/sharePoster.js
View file @
dd76f522
...
...
@@ -190,7 +190,7 @@ Component({
ctx
.
setTextAlign
(
'left'
);
ctx
.
fillText
(
that
.
data
.
productDesc
,
61
,
300
);
}
else
{
let
explain
=
JSON
.
parse
(
that
.
data
.
cardExplain
)
let
explain
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
data
.
cardExplain
)
)
if
(
explain
[
0
]){
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
...
...
src/subPackage/page/pages/scanCoupon/scanCoupon.js
View file @
dd76f522
...
...
@@ -6,6 +6,10 @@ wxService.page({
* 页面的初始数据
*/
data
:
{
id
:
''
,
couponDetail
:
null
,
productData
:
[],
subStoreData
:
[],
proData
:
[
{
"id"
:
"636202018767245312"
,
...
...
@@ -54,9 +58,54 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
console
.
log
(
'--------'
,
this
.
options
)
this
.
setData
({
id
:
'638467647583031296'
},()
=>
{
this
.
getCouponDetail
(
this
.
data
.
id
)
})
},
getCouponDetail
(
id
){
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
get
(
`/marketing/shoppingguide/coupon/detail?id=
${
id
}
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
couponDetail
:
data
})
this
.
getCouponGoods
(
data
.
couponId
)
}
})
},
// 卡券详情
getCouponGoods
(
id
){
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
post
(
`/coupon/coupon/setting/get/
${
id
}
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
wx
.
hideLoading
()
// data.coupon.startTime = data.coupon.startTime.substring(0,10)
// data.coupon.endTime = data.coupon.endTime.substring(0,10)
// data.couponSetting.notice = JSON.parse(data.couponSetting.notice)
// for (let i in data.couponSetting.notice){
// if (data.couponSetting.notice[i].type == 1){
// data.couponSetting.notice[i].value = data.coupon.startTime.substring(0, 10) + ' 至 ' + data.coupon.endTime.substring(0, 10)
// }
// }
this
.
setData
({
productData
:
data
.
couponDetail
&&
data
.
couponDetail
.
useCondition
&&
data
.
couponDetail
.
useCondition
.
productData
,
subStoreData
:
data
.
couponDetail
&&
data
.
couponDetail
.
useCondition
&&
data
.
couponDetail
.
useCondition
.
subStoreData
})
}
}).
finally
(()
=>
{
wx
.
hideLoading
()
})
},
/**
* 生命周期函数--监听页面隐藏
*/
...
...
src/subPackage/page/pages/scanCoupon/scanCoupon.wxml
View file @
dd76f522
...
...
@@ -3,19 +3,19 @@
<view class="scan-title clearfix">
<view class="title-btn">立即领取</view>
<view class="title-name">
优惠券名称
</view>
<view class="title-desc">
优惠券使用说明优惠券使用说明优惠券使用说明
</view>
<view class="title-others">
其他优惠券使用说明优惠券使用说明优惠券使用说明优惠券使用说明
</view>
<view class="title-name">
{{couponDetail.couponName}}
</view>
<view class="title-desc">
{{couponDetail.title}}
</view>
<view class="title-others">
{{couponDetail.remark}}
</view>
</view>
<view class="scan-stores">
<view class="store-title">
<view class="store-num">适用门店
<text class="store-num-tips">(
13
)</text>
<text class="store-num-tips">(
{{subStoreData.length}}
)</text>
</view>
<view class="store-more">查看更多></view>
<view class="store-more"
wx:if="{{subStoreData.length}}"
>查看更多></view>
</view>
<view class="store-address">
<view class="store-address"
wx:if="{{subStoreData.length}}"
>
<view class="store-detail">
<view class="detail-name">浦东家里哦</view>
<view class="detail-address">详细地址详细地址详细地址详细地址</view>
...
...
@@ -30,12 +30,12 @@
<view class="scan-goods">
<view class="goods-title">
<view class="goods-num">适用商品</view>
<view class="goods-more">查看更多></view>
<view class="goods-more"
wx:if="{{productData.length}}"
>查看更多></view>
</view>
<water-flow-layout
wx:if="{{proData.length}}"
wx:if="{{pro
duct
Data.length}}"
type="2"
image-data="{{proData}}"
image-data="{{pro
duct
Data}}"
/>
<view class="goods-no-more" wx:else>没有更多哦</view>
</view>
...
...
src/subPackage/page/pages/scanCoupon/scanCoupon.wxss
View file @
dd76f522
...
...
@@ -75,7 +75,7 @@ page {
}
.scan-title .title-name {
width: 160rpx;
min-
width: 160rpx;
height: 32rpx;
color: rgba(0, 145, 255, 1);
font-size: 32rpx;
...
...
src/utils/Http.js
View file @
dd76f522
...
...
@@ -101,7 +101,7 @@ class Http {
header
:
{
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
,
// 测试
// 'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产
'tunnel-token'
:
'brand1001'
,
// 开发
//
'tunnel-token' : 'brand1001', // 开发
'tentacle-content'
:
this
.
getTentacle
(),
// 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
...
...
@@ -137,7 +137,7 @@ class Http {
header
:
{
'tunnel-token'
:
'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
,
// 测试
// 'tunnel-token' : 'd6db651f8b9c7db4176465accfc1c913843fd9ad328cd5f4fe201d918072c9e8', // 生产
'tunnel-token'
:
'brand1001'
,
// 开发
//
'tunnel-token' : 'brand1001', // 开发
'tentacle-content'
:
this
.
getTentacle
()
// 'tentacle-content': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":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