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
bbe452e0
Commit
bbe452e0
authored
Dec 13, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化bug
parent
723301ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
couponWriteOff.js
src/shoppingGuid/page/pages/couponWriteOff/couponWriteOff.js
+10
-2
couponWriteOff.wxml
...hoppingGuid/page/pages/couponWriteOff/couponWriteOff.wxml
+1
-1
No files found.
src/shoppingGuid/page/pages/couponWriteOff/couponWriteOff.js
View file @
bbe452e0
...
@@ -51,13 +51,21 @@ wxService.page({
...
@@ -51,13 +51,21 @@ wxService.page({
//获取优惠券详情
//获取优惠券详情
getCouponDetail
(){
getCouponDetail
(){
wxService
.
post
(
`/coupon/coupon/get?cardNo=
${
this
.
data
.
couponId
}
`
).
then
(
res
=>
{
wxService
.
post
(
`/coupon/coupon/get?cardNo=
${
this
.
data
.
couponId
}
`
).
then
(
res
=>
{
console
.
log
(
'请求卡券详情接口cardNo----'
,
this
.
data
.
couponId
)
console
.
log
(
'获取卡券结果----'
,
res
)
if
(
res
){
if
(
res
){
this
.
data
.
couponInfo
=
res
.
data
.
data
?
res
.
data
.
data
:
{};
this
.
data
.
couponInfo
=
res
.
data
.
data
?
res
.
data
.
data
:
{};
this
.
data
.
couponInfo
.
takeCouponBgimg
=
this
.
data
.
couponInfo
.
couponDetail
.
style
.
takeCouponBgimg
;
this
.
data
.
couponInfo
.
takeCouponBgimg
=
this
.
data
.
couponInfo
.
couponDetail
.
style
.
takeCouponBgimg
;
this
.
data
.
couponInfo
.
title
=
this
.
data
.
couponInfo
.
couponSetting
.
title
;
this
.
data
.
couponInfo
.
title
=
this
.
data
.
couponInfo
.
couponSetting
.
title
;
this
.
data
.
couponInfo
.
faceAmountDesc
=
this
.
data
.
couponInfo
.
couponSetting
.
faceAmountDesc
;
this
.
data
.
couponInfo
.
faceAmountDesc
=
this
.
data
.
couponInfo
.
couponSetting
.
faceAmountDesc
;
this
.
data
.
couponInfo
.
startTime
=
this
.
data
.
couponInfo
.
couponSetting
.
startTime
.
substring
(
0
,
10
);
let
startTime
=
this
.
data
.
couponInfo
.
coupon
.
startTime
;
this
.
data
.
couponInfo
.
endTime
=
this
.
data
.
couponInfo
.
couponSetting
.
endTime
.
substring
(
0
,
10
);
let
endTime
=
this
.
data
.
couponInfo
.
coupon
.
endTime
;
if
(
startTime
){
//固定日期
this
.
data
.
couponInfo
.
startTime
=
startTime
.
substring
(
0
,
10
);
this
.
data
.
couponInfo
.
endTime
=
endTime
.
substring
(
0
,
10
);
}
let
notice
=
this
.
data
.
couponInfo
.
couponSetting
.
notice
;
let
notice
=
this
.
data
.
couponInfo
.
couponSetting
.
notice
;
this
.
data
.
couponInfo
.
notice
=
notice
?
JSON
.
parse
(
notice
)
:
[];
this
.
data
.
couponInfo
.
notice
=
notice
?
JSON
.
parse
(
notice
)
:
[];
if
(
this
.
data
.
couponInfo
.
notice
){
if
(
this
.
data
.
couponInfo
.
notice
){
...
...
src/shoppingGuid/page/pages/couponWriteOff/couponWriteOff.wxml
View file @
bbe452e0
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</view>
</view>
<view class='coupon-item-rg'>
<view class='coupon-item-rg'>
<view class='coupon-title'>{{couponInfo.title}}</view>
<view class='coupon-title'>{{couponInfo.title}}</view>
<view class='op'>
<view class='op'
wx:if="{{couponInfo.startTime}}"
>
有效期:{{couponInfo.startTime}}至{{couponInfo.endTime}}
有效期:{{couponInfo.startTime}}至{{couponInfo.endTime}}
</view>
</view>
<view class='op'>
<view class='op'>
...
...
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