Explorar el Código

fix:智慧考场地址

xuqiaoying hace 3 años
padre
commit
13f206fa6a
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2 1
      pages2/exam/exam_appointment.vue
  2. 1 1
      pages2/exam/signCommit.vue

+ 2 - 1
pages2/exam/exam_appointment.vue

@@ -99,7 +99,8 @@
 					<view class="item">
 						考试地点:
 						<!-- fromPlat:1云学堂 2智慧考场 -->
-						<text class="val">{{ activeList.fromPlat == 2 ? (activeList.roomAddress || '') : (activeList.applySiteAddress || '') }}</text>
+						<!-- activeList.seatNumber 有座位号就显示roomAddress,否则显示applySiteAddress -->
+						<text class="val">{{ activeList.seatNumber ? (activeList.roomAddress || '') : (activeList.applySiteAddress || '') }}</text>
 					</view>
 					<view class="item">
 						考试时间:

+ 1 - 1
pages2/exam/signCommit.vue

@@ -155,7 +155,7 @@ export default {
                         }
                     }).then((res) => {
                         console.log('res', res)
-                        if (res.data.data == 200) {
+                        if (res.data.code == 200) {
                             this.$u.toast('签署成功')
                             uni.navigateBack()
                         } else {