Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
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
wangxuelai
wechatapp.shangjiadao.com
Commits
3f428277
Commit
3f428277
authored
May 24, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/lvtz' into wxl-develop
parents
c74e903c
3f1ed544
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
341 additions
and
138 deletions
+341
-138
index.js
business/pages/scorerulesetting/index.js
+1
-1
index.js
src/pages/myscoreindex/index.js
+97
-4
index.json
src/pages/myscoreindex/index.json
+3
-1
index.wxml
src/pages/myscoreindex/index.wxml
+48
-27
index.js
src/pages/pointsrule/index.js
+74
-4
index.json
src/pages/pointsrule/index.json
+3
-1
index.wxml
src/pages/pointsrule/index.wxml
+115
-100
No files found.
business/pages/scorerulesetting/index.js
View file @
3f428277
...
...
@@ -119,10 +119,10 @@ Page({
},
submit
()
{
console
.
log
(
this
.
data
.
params
)
this
.
data
.
submitting
=
true
;
if
(
this
.
data
.
submitting
)
{
return
}
this
.
data
.
submitting
=
true
;
wx
.
showLoading
({
title
:
'积分保存中...'
})
...
...
src/pages/myscoreindex/index.js
View file @
3f428277
...
...
@@ -14,7 +14,63 @@ Page({
imageVersion
:
app
.
globalData
.
imageVersion
,
localImageRoot
:
"../../../images/"
,
sid
:
0
,
pointsData
:
''
params
:
{
'1'
:
{
// 每日打卡
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'2'
:
{
// 点赞鼓励
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'3'
:
{
// 评论互动
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'4'
:
{
// 分享打卡
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'5'
:
{
// 打卡内容被点赞
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'6'
:
{
// 打卡内容被围观
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'7'
:
{
// 打卡内容被转发
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'8'
:
{
// 打卡内容被评论
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
},
'9'
:
{
// 打卡内容被老师点评
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
my
:
0
,
//我的打卡进度
}
},
isRuleSeted
:
true
},
/**
...
...
@@ -100,28 +156,65 @@ Page({
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
if
(
code
==
200
)
{
this
.
setData
({
pointsData
:
data
},
()
=>
{})
if
(
data
.
list
.
length
>
0
)
{
data
.
list
.
forEach
((
ele
)
=>
{
if
(
ele
.
daily_limit
==
-
1
)
{
this
.
setData
({
[
`params.
${
ele
.
type
}
`
]:
{
daily_limit
:
0
,
single
:
ele
.
single
,
isUnlimit
:
1
,
my
:
ele
.
my
,
}
})
}
else
{
this
.
setData
({
[
`params.
${
ele
.
type
}
`
]:
{
daily_limit
:
ele
.
daily_limit
,
single
:
ele
.
single
,
isUnlimit
:
0
,
my
:
ele
.
my
,
}
})
}
})
}
else
{
this
.
setData
({
isRuleSeted
:
false
})
}
console
.
log
(
this
.
data
.
params
)
}
})
},
// 积分规则
toRulePage
()
{
wx
.
navigateTo
({
url
:
`/src/pages/pointsrule/index?sid=
${
this
.
data
.
sid
}
`
})
},
// 积分明细
toPointsInOutPage
()
{
wx
.
navigateTo
({
url
:
`/src/pages/pointsInOut/index?sid=
${
this
.
data
.
sid
}
`
})
},
// 积分商城
toPointsMall
()
{
wx
.
navigateTo
({
url
:
`/src/pages/mall/index?sid=
${
this
.
data
.
sid
}
&from=2`
})
},
// 积分排行榜
toPointsRankList
()
{
console
.
log
(
'待跳转积分排行榜'
)
// wx.navigateTo({
// url: `/src/pages/rankingList/index?sid=${this.data.sid}`
// })
},
// 积分任务
toDoPointsTask
()
{
console
.
log
(
'待跳转积分任务列表'
)
// wx.navigateTo({
// url: `/src/pages/rankingList/index?sid=${this.data.sid}`
// })
...
...
src/pages/myscoreindex/index.json
View file @
3f428277
{
"navigationBarBackgroundColor"
:
"#FFE344"
,
"navigationBarTitleText"
:
"积分"
,
"usingComponents"
:
{}
"usingComponents"
:
{
"empty-content"
:
"../../../components/emptycontent"
}
}
\ No newline at end of file
src/pages/myscoreindex/index.wxml
View file @
3f428277
This diff is collapsed.
Click to expand it.
src/pages/pointsrule/index.js
View file @
3f428277
...
...
@@ -12,7 +12,54 @@ Page({
imageVersion
:
app
.
globalData
.
imageVersion
,
localImageRoot
:
'../../../images/'
,
sid
:
0
,
pointsData
:
''
params
:
{
'1'
:
{
// 每日打卡
single
:
1
,
daily_limit
:
1
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'2'
:
{
// 点赞鼓励
single
:
1
,
daily_limit
:
2
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'3'
:
{
// 评论互动
single
:
1
,
daily_limit
:
3
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'4'
:
{
// 分享打卡
single
:
1
,
daily_limit
:
4
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'5'
:
{
// 打卡内容被点赞
single
:
5
,
daily_limit
:
5
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'6'
:
{
// 打卡内容被围观
single
:
6
,
daily_limit
:
6
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'7'
:
{
// 打卡内容被转发
single
:
7
,
daily_limit
:
7
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'8'
:
{
// 打卡内容被评论
single
:
8
,
daily_limit
:
8
,
isUnlimit
:
0
// 0 不是无限 1 无限
},
'9'
:
{
// 打卡内容被老师点评
single
:
9
,
daily_limit
:
9
,
isUnlimit
:
0
// 0 不是无限 1 无限
}
},
isRuleSeted
:
true
},
/**
...
...
@@ -82,9 +129,32 @@ Page({
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
if
(
code
==
200
)
{
this
.
setData
({
pointsData
:
data
},
()
=>
{})
if
(
data
.
list
.
length
>
0
)
{
data
.
list
.
forEach
((
ele
)
=>
{
if
(
ele
.
daily_limit
==
-
1
)
{
this
.
setData
({
[
`params.
${
ele
.
type
}
`
]:
{
daily_limit
:
0
,
single
:
ele
.
single
,
isUnlimit
:
1
}
})
}
else
{
this
.
setData
({
[
`params.
${
ele
.
type
}
`
]:
{
daily_limit
:
ele
.
daily_limit
,
single
:
ele
.
single
,
isUnlimit
:
0
}
})
}
})
}
else
{
this
.
setData
({
isRuleSeted
:
false
})
}
console
.
log
(
this
.
data
.
params
)
}
})
}
...
...
src/pages/pointsrule/index.json
View file @
3f428277
{
"navigationBarTitleText"
:
"积分规则"
,
"usingComponents"
:
{}
"usingComponents"
:
{
"empty-content"
:
"../../../components/emptycontent"
}
}
\ No newline at end of file
src/pages/pointsrule/index.wxml
View file @
3f428277
This diff is collapsed.
Click to expand it.
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