Commit 03e7a43c authored by baixian's avatar baixian

feat 积分规则增加配置项

parent 995bf192
project.config.json
local
.history
node_modules
\ No newline at end of file
node_modules
miniprogram_npm
\ No newline at end of file
......@@ -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',
......
......@@ -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>
......
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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment