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
876d09a0
Commit
876d09a0
authored
May 13, 2020
by
程南
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
106c0abe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
15 deletions
+27
-15
app.json
src/app.json
+0
-4
index.js
src/config/index.js
+1
-1
project.config.json
src/project.config.json
+1
-1
couponCenter.js
src/subPackage/page/pages/couponCenter/couponCenter.js
+16
-4
couponCenter.wxml
src/subPackage/page/pages/couponCenter/couponCenter.wxml
+1
-1
couponCenterInfo.js
...ubPackage/page/pages/couponCenterInfo/couponCenterInfo.js
+7
-3
moneyBuyCouponInfo.wxml
...geA/page/pages/moneyBuyCouponInfo/moneyBuyCouponInfo.wxml
+1
-1
No files found.
src/app.json
View file @
876d09a0
...
...
@@ -147,10 +147,6 @@
"contactPlugin"
:
{
"version"
:
"1.3.0"
,
"provider"
:
"wx104a1a20c3f81ec2"
},
"live-player-plugin"
:
{
"version"
:
"1.0.9"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
"permission"
:
{
...
...
src/config/index.js
View file @
876d09a0
...
...
@@ -26,7 +26,7 @@ const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门
//2002 巴黎贝甜 wx21968cb3a486d4ab
//2014 包小姐与鞋先生 wxa00302e2f53dd9c5
const
BRANCH_ID
=
3001
const
BRANCH_ID
=
2010
const
isMall
=
true
// const needMock = '' //
...
...
src/project.config.json
View file @
876d09a0
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
313ec36b710125d4
"
,
"appid"
:
"wx
e6d270a3e399ade9
"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
src/subPackage/page/pages/couponCenter/couponCenter.js
View file @
876d09a0
...
...
@@ -64,24 +64,29 @@ wxService.page({
},
//立即兑换优惠券
exchange
(
e
)
{
wx
.
showLoading
({
title
:
'领取中..'
,
});
let
isStart
=
e
.
currentTarget
.
dataset
.
start
;
const
{
id
}
=
e
.
currentTarget
.
dataset
;
let
item
=
e
.
currentTarget
.
dataset
.
item
;
//先判断是不是老的活动
if
(
!
item
.
couponList
)
{
wx
.
showLoading
({
title
:
'领取中..'
,
});
this
.
getCoupon
(
id
,
item
);
return
;
}
if
(
isStart
)
{
wx
.
showLoading
({
title
:
'领取中..'
,
});
this
.
getCoupon
(
id
,
item
);
}
//预约
else
{
if
(
!
item
.
isAppointMent
){
this
.
orderCouponActivity
(
id
,
item
);
}
}
},
//立即领取
...
...
@@ -116,6 +121,7 @@ wxService.page({
},
//立即预约
orderCouponActivity
(
id
)
{
let
self
=
this
;
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgMapping/getListByParams'
}
`
,
{
scenarioIds
:
[
'usernoticeappointment'
],
...
...
@@ -145,7 +151,13 @@ wxService.page({
}
},
complete
:
(
res
)
=>
{
wx
.
showLoading
({
title
:
'加载中'
,
})
setTimeout
(()
=>
{
self
.
initIntegralCouponList
();
wx
.
hideLoading
();
},
1000
)
}
})
}).
catch
(
err
=>
{
...
...
src/subPackage/page/pages/couponCenter/couponCenter.wxml
View file @
876d09a0
...
...
@@ -32,7 +32,7 @@
data-id="{{item.acvivityId}}"
data-start="{{item.isStart}}"
data-item="{{item}}"
bindtap='exchange'>{{item.isStart ? '立即领取':
'立即预约'
}}</view>
bindtap='exchange'>{{item.isStart ? '立即领取':
(item.isAppointMent?'已预约':'立即预约')
}}</view>
</view>
</view>
</view>
...
...
src/subPackage/page/pages/couponCenterInfo/couponCenterInfo.js
View file @
876d09a0
...
...
@@ -133,9 +133,13 @@ wxService.page({
if
(
tempids
.
length
>
0
)
{
let
status
=
res
[
tempids
[
0
]];
if
(
status
==
'accept'
)
{
this
.
getACtivityInfo
();
wx
.
showToast
({
title
:
'预约成功'
,
this
.
data
.
activityInfo
.
isAppointMent
=
true
;
this
.
setData
({
activityInfo
:
this
.
data
.
activityInfo
},()
=>
{
wx
.
showToast
({
title
:
'预约成功'
,
})
})
}
}
...
...
src/subPackageA/page/pages/moneyBuyCouponInfo/moneyBuyCouponInfo.wxml
View file @
876d09a0
...
...
@@ -41,7 +41,7 @@ class='card-info' mode='widthFix'></image>
<view class='rg-button positionRe {{checked ? "" : "disabled"}}' wx:if="{{!userHasBaseInfo}}">
<button class="positionAbs clear-btn"
bindgetuserinfo="_getUserInfo" open-type='getUserInfo'></button>
{{buyType == 1 ? "立即购买" : "立即兑换"}}
立即购买
</view>
<view class='rg-button {{checked ? "" : "disabled"}}'
wx:if="{{userHasBaseInfo}}" bindtap='onTapBuy'>立即购买</view>
...
...
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