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
c1c578a6
Commit
c1c578a6
authored
Jun 17, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间
parent
15fb943f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
couponDetail.js
src/pages/couponDetail/couponDetail.js
+5
-1
No files found.
src/pages/couponDetail/couponDetail.js
View file @
c1c578a6
...
...
@@ -4,7 +4,6 @@ const wxService = require('../../utils/wxService')
const
utils
=
require
(
'../../utils/util'
)
const
envInfo
=
require
(
'../../config/index'
).
envInfo
wxService
.
page
({
/**
* 页面的初始数据
...
...
@@ -37,6 +36,11 @@ wxService.page({
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
.
couponSetting
.
startTime
.
substring
(
0
,
10
)
+
' 至 '
+
data
.
couponSetting
.
endTime
.
substring
(
0
,
10
)
}
}
this
.
setData
({
couponDetail
:
data
})
...
...
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