cuoti limit 100

This commit is contained in:
caoqianming 2020-08-18 07:14:48 +08:00
parent 982573f9d0
commit 598d7ae998
5 changed files with 12 additions and 13 deletions

View File

@ -175,8 +175,8 @@ Page({
if (isright == false && tm_current.user_answer != undefined) {
tm_current.dtime = util.formatTime(new Date())
that.data.ctms.unshift(tm_current)
if (that.data.ctms.length > 40) {
that.data.ctms.length = 40
if (that.data.ctms.length > 100) {
that.data.ctms.length = 100
}
}
return isright

View File

@ -130,7 +130,7 @@ Page({
}
},
isPhone: function(phone){
var phoneReg = /^[1][3,4,5,7,8,9][0-9]{9}$/;
var phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
if (phoneReg.test(phone)) {
return true;
} else {

View File

@ -10,14 +10,13 @@
<view wx:if="{{panduan_count>0}}">{{panduan_count}}道判断题,每题{{panduan_score}}分</view>
<view >多选题漏选每个正确选项得1分,错选0分</view>
<view >满分{{total_score}};{{pass_score}}以上通过</view>
</view>
<view class="weui-article">
<view class="weui-article__h2">2.答题须知</view>
<view style="color:red">进入答题后请不要后退或返回桌面</view>
<view>用户可点击上一题/下一题进行切换答题</view>
<view>可点击答题卡复查</view>
<view>请合理安排时间答题,可提前交卷,超时会自动提交</view>
</view>
</view>
<a class="weui-btn weui-btn_primary" bindtap="startTest">开始考试</a>
</view>
</view>

View File

@ -11,17 +11,17 @@
<view class="weui-media-box weui-media-box_appmsg">
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title">{{item.cityName}} {{item.examDate}}</view>
<view class="weui-media-box__desc">
<view class="weui-media-box__desc" style="font-size:12px">
考试时间:
<span style="font-weight:bold;color:darkblue">{{item.examTime}}</span>
<span>-</span>
截止报名:
<span style="font-weight:bold;color:red;">{{item.endSignDate}}</span>
</view>
<view class="weui-media-box__desc" wx:if="{{item.linkContact}}">
<view class="weui-media-box__desc" wx:if="{{item.linkContact}}" style="font-size:12px">
联系电话:{{item.linkContact}}
</view>
<view class="weui-media-box__desc">
<view class="weui-media-box__desc" style="font-size:12px">
{{item.planName}}
</view>
</view>

View File

@ -18,15 +18,15 @@
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"compileHotReLoad": false,
"useIsolateContext": true
"useIsolateContext": true,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false
},
"compileType": "miniprogram",
"libVersion": "2.10.3",