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) { if (isright == false && tm_current.user_answer != undefined) {
tm_current.dtime = util.formatTime(new Date()) tm_current.dtime = util.formatTime(new Date())
that.data.ctms.unshift(tm_current) that.data.ctms.unshift(tm_current)
if (that.data.ctms.length > 40) { if (that.data.ctms.length > 100) {
that.data.ctms.length = 40 that.data.ctms.length = 100
} }
} }
return isright return isright

View File

@ -130,7 +130,7 @@ Page({
} }
}, },
isPhone: function(phone){ 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)) { if (phoneReg.test(phone)) {
return true; return true;
} else { } else {

View File

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

View File

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

View File

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