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
da91ba3f
Commit
da91ba3f
authored
Jun 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 激活规则_type=3
parent
b3ddc610
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
memberRules.js
src/pages/memberRules/memberRules.js
+11
-8
No files found.
src/pages/memberRules/memberRules.js
View file @
da91ba3f
...
...
@@ -13,17 +13,21 @@ wxService.page({
type
:
''
},
onLoad
:
function
(
options
){
if
(
options
.
type
==
1
){
onLoad
(
options
)
{
const
{
type
}
=
options
if
(
type
==
1
){
wx
.
setNavigationBarTitle
({
title
:
'积分规则'
,
title
:
'积分规则'
})
}
else
if
(
type
==
3
){
wx
.
setNavigationBarTitle
({
title
:
'激活规则'
})
}
this
.
setData
({
type
:
options
.
type
type
:
type
})
this
.
getRule
(
options
.
type
)
this
.
getRule
(
type
)
},
/**
...
...
@@ -36,9 +40,8 @@ wxService.page({
//获取规则
getRule
(
TYPE
){
wxService
.
get
(
`/merchant/brandRuleDescSet/get?type=
${
TYPE
}
&brandId=
${
app
.
globalData
.
brandId
}
`
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
ruleImg
:
res
.
data
.
data
.
content
ruleImg
:
res
.
data
&&
res
.
data
.
data
&&
res
.
data
.
data
.
content
||
''
})
})
}
...
...
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