Quellcode durchsuchen

fix:预约考试

xuqiaoying vor 3 Jahren
Ursprung
Commit
75d03753ce
4 geänderte Dateien mit 11 neuen und 7 gelöschten Zeilen
  1. 4 4
      common/request.js
  2. 4 3
      pages/learn/index.vue
  3. 2 0
      pages2/exam/exam_appointment.vue
  4. 1 0
      pages2/exam/exam_result.vue

+ 4 - 4
common/request.js

@@ -5,8 +5,8 @@ import api from './api.js'
 var num = 1
 //接口api   
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
-export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+// export const BASE_URL = 'https://test.xyyxt.net'   //预发布
+export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地
@@ -18,8 +18,8 @@ export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 
 // web_view的
 // export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
-export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
-// export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
+// export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
+export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
 // export const WEBVIEW_URL = 'http://192.168.1.38:8082/'  //test
 // export const WEBVIEW_URL = 'http://api.xyyxt.net:6066/'  //预发布(弃用了)
 

+ 4 - 3
pages/learn/index.vue

@@ -1038,17 +1038,18 @@ export default {
 			this.appointTestShow = false
 		},
 		appointment(item, appoint) {
-			console.log('====', item,appoint, item.examApplyGoodsList)
+			console.log('====', item.examApplyGoodsList)
 			this.appointItemIndex = item
 			if (item.examApplyGoodsList.length > 1) { // 多个考试预约				 
 				this.appointTestList = item.examApplyGoodsList
 				this.appointTestShow = true
 				return
 			}
-			appoint = item.examApplyGoodsList[0].appoint
-			this.appoint_an(item, appoint)
+			let appoint_item = item.examApplyGoodsList[0]
+			this.appoint_an(item, appoint_item)
 		},
 		appoint_an(item, appoint) {
+			console.log('==appoint=', appoint)
 			var data = {
 				goodsId: item.goodsId,
 				gradeId: item.gradeId,

+ 2 - 0
pages2/exam/exam_appointment.vue

@@ -171,6 +171,7 @@ export default {
 			return;
 		}
 		if (String(option.current)) {
+			console.log('公众号', option)
 			this.current = +option.current
 			this.change(+option.current)
 			return
@@ -276,6 +277,7 @@ export default {
 			// if (this.current === index) {
 			// 	return;
 			// }
+			console.log('----')
 			this.current = index;
 			var data = {};
 			if (index === 0) {

+ 1 - 0
pages2/exam/exam_result.vue

@@ -162,6 +162,7 @@ export default {
 			return;
 		}
 		if (String(option.current)) {
+			console.log('公众号', option)
 			this.current = +option.current
 			this.change(+option.current)
 			return