y595705120 2 years ago
parent
commit
c65b2b35a7

+ 4 - 2
app.json

@@ -22,9 +22,11 @@
     "pages/exam/error/index",
     "pages/exam/record/index",
     "pages/post/post",
-    "pages/train/index/index", 
+    "pages/train/index/index",
     "pages/train/limitHome/index",
-    "pages/train/limit/index"
+    "pages/train/limitDo/index",
+    "pages/train/limit/index",
+    "pages/train/orderTest/answer"
   ],
   "tabBar": {
     "color": "#6e6d6b",

+ 158 - 0
pages/train/limitDo/index.js

@@ -0,0 +1,158 @@
+import {
+  formatSeconds
+} from '../../../utils/util.js'
+
+let app = getApp()
+let mulSelect = 3
+Page({
+  data: {
+    list: [],
+    redo: false,
+    preList:["A","B","C", "D","E","F"],
+    info:{},
+    id:0,
+    timer: null,
+    doTime: 0,
+    remainTime: 0,
+    remainTimeStr: '',
+    modalShow: false,
+    isFinish: false,
+    result: {},
+    startTime: "",
+    timeOutShow: false
+  },
+  onLoad: function(options) {
+    let groupId = +options.id||3
+    let redo = !!options.redo;
+    this.setData({redo})
+    let method =  redo?'Exam.examreStart':'Exam.examStartLimit';
+    let _this = this
+    let oindex = [2,3,1]
+    app.formPost(method, {groupId}).then(res => {
+      if (res.code ==200) {
+        let {startTime, info, list} = res.data;
+        let duration = info.duration
+        list = list.map(item=>{
+          delete( item["select"])
+          return item
+        })
+        wx.setNavigationBarTitle({
+          title: info.title+'-模拟考试'
+        })
+
+        _this.setData({
+          list: list,
+          info: info,
+          startTime: startTime,
+          remainTime: duration
+        });
+        _this.timeReduce()
+      }
+    })
+  },
+  timeReduce() {
+    let _this = this
+    let timer = setInterval(function() {
+      let remainTime = _this.data.remainTime
+      if (remainTime <= 0) {
+        _this.timeOut()
+      } else {
+        _this.setData({
+          remainTime: remainTime - 1,
+          remainTimeStr: formatSeconds(remainTime),
+          doTime: _this.data.doTime + 1
+        });
+      }
+    }, 1000)
+    _this.setData({
+      timer: timer
+    });
+  },
+  onUnload() {
+    clearInterval(this.data.timer)
+  },
+  returnRecord() {
+    this.setData({isFinish: true, modalShow:false})
+  },
+  timeOut() {
+    clearInterval(this.data.timer)
+    this.setData({
+      timeOutShow: true
+    });
+  },
+  radioChange( e ){
+    let index = e.currentTarget.dataset.index;
+    let list = this.data.list
+    list[index].select = +e.detail.value
+    console.log("select", index, list[index].select )
+    this.setData( {list} );
+  },
+  checkboxChange( e ){
+    let index = e.currentTarget.dataset.index;
+    let list = this.data.list
+    list[index].select = +e.detail.value.sort().join("")
+    let result = ""+list[index].result
+    if (list[index].select == result ){
+      list[index]._select = true
+    }
+    for( let i in e.detail.value){
+      if(result.indexOf( e.detail.value[i] )==-1 ){
+        list[index]._select = true
+      }
+    }
+    this.setData( {list} );
+  },
+  formSubmit: function(e) {
+    let _this = this
+    let force = this.data.remainTime < 3;
+    let isFinish = true;
+    wx.showLoading({
+      title: '提交中',
+      mask: true
+    })
+    let info = this.data.info;
+    let param ={};
+    param.groupId = info.groupId;
+    param.paperId = info.paperId;
+    param.answers = [];
+    param.result  = [];
+    param.correct = 0;
+
+    param.counter = this.data.list.length
+    param.groupName = info.title;
+    param.useTime =  this.data.doTime
+    param.duration = info.duration
+    param.startTime = this.data.startTime;
+    let errIds = [];
+    for( let i=0; i< this.data.list.length; i++){
+        let item = this.data.list[i];
+        param.answers.push( item.answerId );
+        param.result.push( item.select || 0);
+        if( item.select == item.result){
+          param.correct += (item.result>5?2:1);
+        }else{
+          if( item.select ) errIds.push( item.answerId)
+        }
+        if( !item.select ) isFinish = false
+    }
+    param.result = param.result.join(",")
+    param.answers = param.answers.join(",")
+    param.errors = errIds.join(",")
+    param.isRedo = this.data.redo?1:0;
+    app.formPost('Exam.ExamSubmit', param).then(res => {
+      if (res.code === 200) {
+        _this.setData({
+          id: res.data.id,
+          modalShow: true,
+          result:param,
+        });
+        if (this.data.timer) {
+          clearInterval(this.data.timer)
+        }
+      } else {
+        app.message(res.msg, 'error')
+      }
+      wx.hideLoading()
+    })
+  }
+})

+ 17 - 0
pages/train/limitDo/index.json

@@ -0,0 +1,17 @@
+{
+  "usingComponents": {
+    "i-panel": "/component/iView/panel/index",
+    "i-cell-group": "/component/iView/cell-group/index",
+    "i-cell": "/component/iView/cell/index",
+    "i-radio-group": "/component/iView/radio-group/index",
+    "i-radio": "/component/iView/radio/index",
+    "i-row": "/component/iView/row/index",
+    "i-col": "/component/iView/col/index",
+    "i-input": "/component/iView/input/index",
+    "i-action-sheet": "/component/iView/action-sheet/index",
+    "i-modal": "/component/iView/modal/index",
+    "i-message": "/component/iView/message/index",
+    "i-spin": "/component/iView/spin/index"
+  },
+  "navigationBarTitleText": "在线模拟考试"
+}

+ 138 - 0
pages/train/limitDo/index.wxml

@@ -0,0 +1,138 @@
+<wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
+<view class="exam-page">
+  <view class="view-wrap">
+    <view class="exam-count-down" wx:if="{{isFinish}}">已经交卷</view>
+    <view class="exam-count-down" wx:else>{{remainTimeStr}}</view>
+  </view>
+  <view class="view-wrap-hidden">
+  </view>
+
+  <view>
+    <view class="exam-name-title">
+      <h1>{{info.title}}</h1>
+    </view>
+
+    <form bindsubmit='formSubmit'>  
+      <i-panel title="{{titleItem.title}}" 
+        wx:for="{{list}}" 
+          wx:for-item="item" 
+          wx:key="answerId" 
+          i-class="exam-panel-title"> 
+        
+        <i-cell-group i-class="exam-cell">
+          <!-- 单选题 -->
+          <i-cell wx:if="{{item.type==2}}"> 
+            <view class="single">
+              <rich-text nodes="{{index+1}}.[单]{{item.title}}" />
+              <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}" >
+                <label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="anserIndex" wx:if="{{item['answer'+(index+1)]}}">
+                  <view class="radio-answer">
+                    <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}"  disabled="{{item.select>0?true:false}}" >
+                      {{preList[index]}}. {{item['answer'+(index+1)]}}
+                    </radio>
+                  </view>
+                </label>
+              </radio-group>
+
+              <view class="exam-clear mt20" wx:if="{{isFinish || item.select>0}}" >
+                <view class="exam-extend-item" >
+                  答题结果:
+                  <text class="question-answer-right question-answer-result" 
+                    wx:if="{{item.select==item.result}}">正确
+                  </text>
+                  <text class="question-answer-error question-answer-result" 
+                    wx:else>错误</text>
+                </view>
+
+                <view class="exam-extend-item">
+                  正确答案:
+                  <text wx:if="{{item.type==2}}"> {{preList[item.result-1]}}</text>
+                </view>
+              </view>
+            </view>
+          </i-cell>
+          <!-- 多选题 -->
+          <i-cell wx:if="{{item.type==3}}"> 
+            <view >
+              <rich-text nodes="{{index+1}}.[多]{{item.title}}" />
+              <checkbox-group class="checkbox-answer" style="margin-top:30rpx" bindchange="checkboxChange" data-index="{{index}}">
+                <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:if="{{item['answer'+(index+1)]}}">
+                  <view class="checkbox-answer">
+                    <checkbox color="#2d8cf0" value="{{index+1}}" disabled="{{!!item._select}}">
+                      {{answer}}. {{item['answer'+(index+1)]}}
+                    </checkbox>
+                  </view>
+                </label>
+                
+              </checkbox-group>
+
+            </view>
+
+            <view class="exam-clear mt20"  wx:if="{{isFinish || item._select}}">
+                <view class="exam-extend-item" >
+                  答题结果:
+                  <text class="question-answer-right question-answer-result" 
+                    wx:if="{{item.select==item.result}}">正确
+                  </text>
+                  <text class="question-answer-error question-answer-result" 
+                    wx:else>错误</text>
+                </view>
+                <view class="exam-extend-item">
+                  正确答案:
+                  <text> {{filter.getMultResult(item.result)}}</text>
+                </view>
+              </view>
+
+          </i-cell>
+          <!-- 判断 -->
+          <i-cell wx:if="{{item.type==1}}"> 
+            <view>
+              <rich-text nodes="{{index+1}}.[判]{{item.title}}" />
+              <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}" >
+                <label class="radio" wx:for="{{2}}" wx:for-item="answer" >
+                  <view class="radio-answer">
+                    <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}" disabled="{{item.select>0?true:false}}" >
+                      {{preList[index]}}. {{item['answer'+(index+1)]}}
+                    </radio>
+                  </view>
+                </label>
+              </radio-group>
+            </view>
+            <view class="exam-clear mt20" wx:if="{{isFinish || item.select>0}}" >
+                <view class="exam-extend-item" >
+                  答题结果:
+                  <text class="question-answer-right question-answer-result" 
+                    wx:if="{{item.select==item.result}}">正确
+                  </text>
+                  <text class="question-answer-error question-answer-result" 
+                    wx:else>错误</text>
+                </view>
+                <view class="exam-extend-item">
+                  正确答案:
+                  <text> {{item.result==1?'正确':'错误'}}</text>
+                </view>
+              </view>
+          </i-cell>
+        </i-cell-group>
+
+      </i-panel>
+
+      <view>
+        <button class="i-btn  i-btn-primary i-btn-square" form-type='submit'  disabled="{{!!isFinish}}">提交</button>
+      </view>
+
+      <i-action-sheet visible="true" visible="{{timeOutShow}}" mask-closable="{{ false }}">
+        <view slot="header" style="padding: 16px">
+          <view class="exam-timeout-title">考试试卷结束,请提交试卷!</view>
+          <button class="i-btn  i-btn-primary i-btn-square" form-type='submit'>提交</button>
+        </view>
+      </i-action-sheet>
+    </form>
+
+    <i-modal title="考试结果" visible="{{modalShow}}" bind:ok="returnRecord" bind:cancel="returnRecord">
+      <view>我的分数:{{result.correct}} </view>
+    </i-modal>
+    <i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
+    <i-message id="message" />
+  </view>
+</view>

+ 97 - 0
pages/train/limitDo/index.wxss

@@ -0,0 +1,97 @@
+.exam-page {
+  background: white;
+}
+
+.exam-count-down {
+  font-size: 15px;
+  line-height: 35px;
+}
+
+.view-wrap {
+  position: fixed;
+  width: 100%;
+  background: #fff6f6;
+  text-align: center;
+  height: 35px;
+  z-index: 999;
+}
+
+.view-wrap-hidden {
+  height: 35px;
+}
+
+.exam-name-title {
+  text-align: center;
+  margin-top: 10px;
+  font-size: 17px;
+}
+
+.exam-panel-title {
+  margin-top: 30px;
+}
+
+.exam-radio-item-label {
+  float: left;
+  margin-left: 10px;
+  line-height: 35px;
+}
+
+.exam-item-left {
+  float: left;
+}
+
+.exam-input-contain {
+  margin: 10px 2px !important;
+  border-width: 1px;
+  border-color: #dddee1;
+  border-style: solid;
+  width: 95%;
+  height: 40px;
+}
+
+.exam-input-contain-label {
+  float: left;
+  padding: 0px 15px;
+  line-height: 40px;
+}
+
+.exam-input-contain-content {
+  float: left;
+  height: 40px;
+}
+
+.exam-textarea-contain {
+  margin: 10px 2px !important;
+  border-width: 1px;
+  border-color: #dddee1;
+  border-style: solid;
+  width: 100%;
+}
+
+.exam-timeout-title{
+  font-size: 16px;
+  color: red;
+  margin-top: 10px;
+  margin-bottom: 20px;
+}
+
+.exam-clear {
+  clear: both;
+  margin-left: 20rpx;
+}
+
+.exam-extend-item {
+  padding: 4px;
+}
+
+.question-answer-error {
+  background-color: #fef0f0;
+  border-color: #fde2e2;
+  color: #f56c6c;
+}
+
+.question-answer-right {
+  background-color: #f0f9eb;
+  border-color: #e1f3d8;
+  color: #67c23a;
+}

+ 1 - 1
pages/train/limitHome/index.js

@@ -25,7 +25,7 @@ Page({
     let groupId = this.data.groupId
     console.log( item )
     wx.navigateTo({
-      url: `/pages/exam/answer/answer?groupId=${groupId}&type=${item.type}&count=${item.count}`
+      url: `/pages/train/orderTest/answer?groupId=${groupId}&type=${item.type}&count=${item.count}`
     })
   },
   loadData: function(){

+ 1 - 1
pages/train/limitHome/index.json

@@ -12,5 +12,5 @@
     "i-badge": "/component/iView/badge/index"
   },
   "enablePullDownRefresh": true,
-  "navigationBarTitleText": "顺序做题"
+  "navigationBarTitleText": "高频题库练习"
 }

+ 4 - 5
pages/train/limitHome/index.wxml

@@ -13,9 +13,9 @@
     </swiper>
 </view>
 <navigator class="card-wrapper" wx:for="{{tableData}}" wx:key="index" 
-  url="/pages/exam/answer/answer?groupId={{groupId}}&type={{item.type}}&count={{item.count}}">
-  <view class="i-class i-card i-card-radus" data-id="{{item.id}}" data-out="{{item.isOut}}"  bindtap="gotoDetail" >
-    <view class="i-class i-card-header mt10">
+  url="/pages/train/orderTest/answer?groupId={{groupId}}&type={{item.type}}&count={{item.count}}">
+  <view class="i-class i-card i-card-radus p10" data-id="{{item.id}}" data-out="{{item.isOut}}"  bindtap="gotoDetail" >
+    <view class="i-class i-card-header  ">
       <view class="i-card-header-title" style="font-size:36rpx">
         {{types[item.type]}} 
       </view>
@@ -32,7 +32,6 @@
       <view class="i-card-header-title tc" style="font-size:36rpx">
         我的错题
       </view>
-
       <view class="i-card-header-extra" style="font-size:28rpx" >
         进入
       </view>
@@ -40,7 +39,7 @@
   </view>
 </navigator>
 
-  <navigator url="/pages/exam/do/index?id={{groupId}}" class="card-wrapper">
+  <navigator url="/pages/train/limitDo/index?id={{groupId}}" class="card-wrapper">
     <view class="i-class i-card i-card-radus" data-id="{{item.id}}" data-out="{{item.isOut}}"  bindtap="gotoDetail" >
     <view class="i-class i-card-header mt10">
       <view class="i-card-header-title tc" style="font-size:36rpx">

+ 117 - 0
pages/train/orderTest/answer.js

@@ -0,0 +1,117 @@
+let app = getApp()
+Page({
+  data: {
+    preList:["A","B","C", "D", "E", "F"],
+    info:{},
+    total:0,
+    unfinish:0,
+    answerId:0,
+    type:1,
+    showResult: false,
+    types:{
+      1:'判断题',
+      2:'单选题',
+      3:'多选题',
+      4:'案例题'
+    },
+    groupId:0
+  },
+  onLoad: function(options) {
+    let groupId = +options.groupId||1;
+    let type = +options.type||1;
+    let total = +options.count ||0;
+    this.setData({ groupId, type, total });
+  },
+  onChange(event){
+    const showResult = event.detail.value;
+    let {info} = this.data;
+    if( showResult ) {
+      info.select = info.result;
+    }else{
+      info.select = 0
+    }
+    this.setData({showResult, info})
+  },
+  onShow: function(){
+    app.checkLogin( userInfo =>{
+      this.setData({userInfo, from:0})
+      this.loadAnswer()
+    })
+  },
+  loadAnswer(  ){
+    let {groupId, type, showResult} = this.data
+    app.formPost('Exam.LoadAnswerLimit', {groupId, type}).then(res => {
+      if (res.code ==200) {
+        let {unfinish, info} = res.data
+        let answerId = info&&info.answerId||0;
+        if( showResult) info.select = info.result;
+        this.setData({unfinish, info, answerId})
+      }
+    })
+  },
+  checkAnswer( e ){
+    let item = this.data.item;
+    if( !item.select ){
+      app.message("还未作答", 'error')
+      return;
+    }
+    let param = {answerId: item.answerId}
+    // 多选
+    if( item.type == mulSelect ){
+      item.correct = item.select.join("") == item.result;
+    }else{
+      item.correct = item.select == item.result;
+    }
+    param.correct = item.correct?1:0
+    // 打开下一题
+    app.formPost('Exam.EditErrorAnswer', param).then(res => {
+      this.setData({item, next:true})
+    }) 
+  },
+  radioChange( e ){
+    let info = this.data.info
+    info.select = +e.detail.value
+    this.setData( {info} );
+  },
+  checkboxChange( e ){
+    let info = this.data.info
+    info.select = +e.detail.value.sort().join("")
+    let result = ""+info.result
+    if (info.select == result ){
+      info._select = true
+    }else{
+      for( let i in e.detail.value){
+        if(result.indexOf( e.detail.value[i] )==-1 ){
+          info._select = true
+        }
+      }
+    }
+    this.setData( {info} );
+  },
+  restartAnswer(){
+    let {groupId,  type, total, showResult} = this.data
+    let answerId=0
+    let unfinish = total
+    app.formPost('Exam.finishAnswerLimit', {groupId, answerId, type}).then(res => {
+      if (res.code ==200) {
+        let info = res.data
+        let answerId = info.answerId
+        if( showResult) info.select = info.result;
+        this.setData({info, answerId, unfinish})
+      }
+    })
+  },
+  finishAnswer( ){
+    let {groupId, answerId, unfinish, type, showResult} = this.data
+    let correct = this.data.info.select == this.data.info.result?1:0;
+    app.formPost('Exam.finishAnswerLimit', {groupId, answerId, type, correct}).then(res => {
+      if (res.code ==200) {
+        let info = res.data
+        let answerId = info.answerId
+        unfinish = unfinish-1
+        if( showResult) info.select = info.result;
+        this.setData({info, answerId, unfinish})
+      }
+    })
+  }
+})

+ 18 - 0
pages/train/orderTest/answer.json

@@ -0,0 +1,18 @@
+{
+  "usingComponents": {
+    "i-panel": "/component/iView/panel/index",
+    "i-cell-group": "/component/iView/cell-group/index",
+    "i-cell": "/component/iView/cell/index",
+    "i-radio-group": "/component/iView/radio-group/index",
+    "i-radio": "/component/iView/radio/index",
+    "i-input": "/component/iView/input/index",
+    "i-action-sheet": "/component/iView/action-sheet/index",
+    "i-modal": "/component/iView/modal/index",
+    "i-message": "/component/iView/message/index",
+    "i-switch": "/component/iView/switch/index",
+    "i-spin": "/component/iView/spin/index",
+    "i-rate": "/component/iView/rate/index"
+  },
+  "enablePullDownRefresh": false,
+  "navigationBarTitleText": "高频顺序答题"
+}

+ 115 - 0
pages/train/orderTest/answer.wxml

@@ -0,0 +1,115 @@
+<wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
+
+<view class="exam-page p10" wx:if="{{answerId>0}}">
+  <view class="view-wrap">
+    <view class="exam-count-down" >
+     {{types[type]}} ({{unfinish}}/{{total}})
+        <text style="margin-left:10rpx;margin-right:10rpx">背景模式</text> 
+        <i-switch value="{{showResult}}" bind:change="onChange"></i-switch>
+    </view>
+  </view>
+
+  <i-panel i-class="exam-panel-title">
+    <i-cell-group i-class="exam-cell">
+      <!-- 单选题 -->
+      <i-cell wx:if="{{info.type ==2}}">
+        <view class="single">
+          <rich-text nodes="[单]{{info.title}}" />
+          <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
+            <label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="anserIndex"
+              wx:if="{{info['answer'+(index+1)]}}">
+              <view class="radio-answer">
+                <radio color="#2d8cf0" value="{{index+1}}" checked="{{info.select==index+1}}"
+                  disabled="{{info.select>0?true:false}}">
+                  {{preList[index]}}. {{info['answer'+(index+1)]}}
+                </radio>
+              </view>
+            </label>
+          </radio-group>
+
+          <view class="exam-clear mt20" wx:if="{{info.select>0}}">
+            <view class="exam-extend-item">
+              答题结果:
+              <text class="question-answer-right question-answer-result" wx:if="{{info.select==info.result}}">正确
+              </text>
+              <text class="question-answer-error question-answer-result" wx:else>错误</text>
+            </view>
+
+            <view class="exam-extend-item">
+              正确答案:
+              <text wx:if="{{info.type==2}}"> {{preList[info.result-1]}}</text>
+            </view>
+          </view>
+        </view>
+      </i-cell>
+      <!-- 多选题 -->
+      <i-cell wx:if="{{info.type==3}}">
+        <view>
+          <rich-text nodes="[多]{{info.title}}" />
+          <checkbox-group class="checkbox-answer" style="margin-top:30rpx" bindchange="checkboxChange"
+            data-index="{{index}}">
+            <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:key=""
+              wx:if="{{info['answer'+(index+1)]}}">
+              <view class="checkbox-answer">
+                <checkbox color="#2d8cf0" value="{{index+1}}" disabled="{{!!info._select}}"
+                  checked="{{filter.isSelect(index+1,info.select)}}">
+                  {{answer}}. {{info['answer'+(index+1)]}}
+                </checkbox>
+              </view>
+            </label>
+          </checkbox-group>
+        </view>
+
+        <view class="exam-clear mt20" wx:if="{{isFinish || info._select}}">
+          <view class="exam-extend-item">
+            答题结果:
+            <text class="question-answer-right question-answer-result" wx:if="{{info.select==info.result}}">正确
+            </text>
+            <text class="question-answer-error question-answer-result" wx:else>错误</text>
+          </view>
+          <view class="exam-extend-item">
+            正确答案:
+            <text> {{filter.getMultResult(info.result)}}</text>
+          </view>
+        </view>
+
+      </i-cell>
+      <!-- 判断 -->
+      <i-cell wx:if="{{info.type==1}}">
+        <view>
+          <rich-text nodes="[判]{{info.title}}" />
+          <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
+            <label class="radio" wx:for="{{2}}" wx:for-item="answer">
+              <view class="radio-answer">
+                <radio color="#2d8cf0" value="{{index+1}}" checked="{{info.select==index+1}}"
+                  disabled="{{info.select>0?true:false}}">
+                  {{preList[index]}}. {{info['answer'+(index+1)]}}
+                </radio>
+              </view>
+            </label>
+          </radio-group>
+        </view>
+        <view class="exam-clear mt20" wx:if="{{ info.select>0}}">
+          <view class="exam-extend-item">
+            答题结果:
+            <text class="question-answer-right question-answer-result" wx:if="{{info.select==info.result}}">正确
+            </text>
+            <text class="question-answer-error question-answer-result" wx:else>错误</text>
+          </view>
+          <view class="exam-extend-item">
+            正确答案:
+            <text> {{info.result==1?'正确':'错误'}}</text>
+          </view>
+        </view>
+      </i-cell>
+    </i-cell-group>
+  </i-panel>
+
+<view class="mt50">
+    <button class="i-btn  i-btn-primary i-btn-square" bindtap='finishAnswer'>下一题</button>
+  </view>
+</view>
+
+<view wx:else style="text-align:center;margin-top:40rpx">
+  <button class="i-btn  i-btn-primary i-btn-square" bindtap='restartAnswer'>重新再刷一遍</button>
+</view>

+ 98 - 0
pages/train/orderTest/answer.wxss

@@ -0,0 +1,98 @@
+/* pages/exam/paper/paper.wxss */
+.exam-page {
+  background: white;
+}
+
+.exam-count-down {
+  font-size: 15px;
+  line-height: 35px;
+}
+
+.view-wrap {
+  position: fixed;
+  width: 100%;
+  background: #fff6f6;
+  text-align: center;
+  height: 35px;
+  z-index: 999;
+}
+
+.view-wrap-hidden {
+  height: 35px;
+}
+
+.exam-name-title {
+  text-align: center;
+  margin-top: 10px;
+  font-size: 17px;
+}
+
+.exam-panel-title {
+  margin-top: 30px;
+}
+
+.exam-radio-item-label {
+  float: left;
+  margin-left: 10px;
+  line-height: 35px;
+}
+
+.exam-item-left {
+  float: left;
+}
+
+.exam-input-contain {
+  margin: 10px 2px !important;
+  border-width: 1px;
+  border-color: #dddee1;
+  border-style: solid;
+  width: 95%;
+  height: 40px;
+}
+
+.exam-input-contain-label {
+  float: left;
+  padding: 0px 15px;
+  line-height: 40px;
+}
+
+.exam-input-contain-content {
+  float: left;
+  height: 40px;
+}
+
+.exam-textarea-contain {
+  margin: 10px 2px !important;
+  border-width: 1px;
+  border-color: #dddee1;
+  border-style: solid;
+  width: 100%;
+}
+
+.exam-timeout-title{
+  font-size: 16px;
+  color: red;
+  margin-top: 10px;
+  margin-bottom: 20px;
+}
+
+.exam-clear {
+  clear: both;
+  margin-left: 20rpx;
+}
+
+.exam-extend-item {
+  padding: 4px;
+}
+
+.question-answer-error {
+  background-color: #fef0f0;
+  border-color: #fde2e2;
+  color: #f56c6c;
+}
+
+.question-answer-right {
+  background-color: #f0f9eb;
+  border-color: #e1f3d8;
+  color: #67c23a;
+}

+ 4 - 1
pages/user/identify/index.wxml

@@ -50,8 +50,11 @@
       <button wx:else class="i-btn  i-btn-primary i-btn-square" form-type="submit">实名认证</button>
     </form>
   </view>
-
+  
   <view class="tc">
+    <view>
+      <text style="color:red">姓名、身份证、联系方式三者一致才能对接部证书</text>
+    </view>
     <view>
       <text> 已经实名认证的可以快捷登入 </text>
     </view>