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
03e7a43c
Commit
03e7a43c
authored
Dec 25, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat 积分规则增加配置项
parent
995bf192
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
5 deletions
+31
-5
.gitignore
.gitignore
+2
-1
index.js
business/pages/scorerulesetting/index.js
+5
-0
index.wxml
business/pages/scorerulesetting/index.wxml
+20
-0
constants.js
constants/constants.js
+4
-4
No files found.
.gitignore
View file @
03e7a43c
project.config.json
local
.history
node_modules
\ No newline at end of file
node_modules
miniprogram_npm
\ No newline at end of file
business/pages/scorerulesetting/index.js
View file @
03e7a43c
...
...
@@ -59,6 +59,11 @@ Page({
single
:
0
,
daily_limit
:
2
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
},
'10'
:
{
// 被点评
single
:
0
,
daily_limit
:
2
,
isUnlimit
:
0
,
// 0 不是无限 1 无限
}
},
addOrUpdate
:
'add'
,
...
...
business/pages/scorerulesetting/index.wxml
View file @
03e7a43c
...
...
@@ -179,6 +179,26 @@
</view>
</view>
</view>
<view class="setting-item">
<view class="itemtop">
<view class="itemtitle" >课后点评 </view>
<view class="scoreinputbox" >
<text class="" selectable="false" space="false" decode="false">获得</text>
<input class="scoreinput" type="number" value="{{params[10].single}}" data-type="10" bindinput="singleInput"/>
<text class="" selectable="false" space="false" decode="false">积分</text>
</view>
</view>
<view class="itemmiddle" >课后做出点评时送积分</view>
<view class="itembottom" >
<view class="itemtitle" >每日最高次数</view>
<view class="countinputbox" >
<input class="countinput {{params[10].isUnlimit == 0 ? 'active' : ''}}" type="number" value="{{params[10].daily_limit}}" data-type="10" bindinput="dailyLimitInput" bindfocus="inputfocus"/>
<text class="counttext {{params[10].isUnlimit == 0 ? 'active' : ''}}" selectable="false" space="false" decode="false">次</text>
<text class="divide" selectable="false" space="false" decode="false">/</text>
<view class="unlimit {{params[10].isUnlimit == 0 ? '' : 'active'}}" data-type="10" bindtap="selectUnLimit">不限</view>
</view>
</view>
</view>
<view class="submitbtn-box">
<view class="submitbtn" bindtap="submit">保存</view>
</view>
...
...
constants/constants.js
View file @
03e7a43c
export
default
{
imageRoot
:
'https://cdn.img.shangjiadao.cn/qingxiao/dakav2/images/'
,
host
:
'https://qxapi.qingxiao.online/daka'
,
host2
:
'https://wx.m.shangjiadao.cn'
,
//
host: 'https://qxapi.qingxiao.online/daka',
//
host2: 'https://wx.m.shangjiadao.cn',
storageVersion
:
'5.0'
,
imageVersion
:
'20200528'
,
//
host: 'https://clock.wp53.cn',
//
host2: 'https://test.wp53.cn',
host
:
'https://clock.wp53.cn'
,
host2
:
'https://test.wp53.cn'
,
appId
:
'wxc1246ea029394785'
,
miniProgram
:
{
clock
:
'wxdeee20e52a1fd7ee'
...
...
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