Tang 3 年之前
父节点
当前提交
c8598f47cc
共有 4 个文件被更改,包括 28 次插入14 次删除
  1. 1 1
      common/httpList/systemPlan.js
  2. 1 1
      common/request.js
  3. 25 11
      pages2/msg/detail.vue
  4. 1 1
      pages2/plan/edit.vue

+ 1 - 1
common/httpList/systemPlan.js

@@ -45,7 +45,7 @@ export default {
 	//获取学习计划详细信息
 	systemplanInfo(data) {
 		return myRequest({
-			url: '/system/plan/' + data,
+			url: '/system/plan/inFo',
 			method: 'get',
 			data: data
 		})

+ 1 - 1
common/request.js

@@ -4,7 +4,7 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 
-export const BASE_URL = 'http://42.192.164.187:19005' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
+export const BASE_URL = 'http://192.168.1.222:5055' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
 
 
 export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //图片上传api  'https://file.xyyxt.net/

+ 25 - 11
pages2/msg/detail.vue

@@ -64,7 +64,7 @@ export default {
 	},
 	methods: {
 		//跳转页面
-		jumpFuns(item){
+		jumpFuns(item) {
 			switch (item.remindId) {
 				case 1:
 				case 3:
@@ -74,15 +74,15 @@ export default {
 				case 19:
 				case 21:
 				case 22:
-				this.$navTo.togo('/pages2/wd/course',{
-					id:item.goodsId
-				})
+					this.$navTo.togo('/pages2/wd/course', {
+						id: item.goodsId
+					});
 					// arsty = '立刻学习';
 					break;
 				case 2:
 				case 4:
-					this.$navTo.togo('/pages2/verify/input',{
-						id:item.goodsId
+					this.$navTo.togo('/pages2/verify/input', {
+						id: item.goodsId
 					});
 					break;
 				case 10:
@@ -91,10 +91,25 @@ export default {
 					// arsty = '立即重学';
 					break;
 				case 11:
-					// arsty = '立即预约';
-					break;
 				case 13:
-					// arsty = '预约考试';
+					var data = {
+						goodsId: item.goodsId,
+						gradeId: item.gradeId
+					};
+					this.$api.getApplysubscribe(data).then(res => {
+						if (res.data.code === 500) {
+							uni.showModal({
+								showCancel: false,
+								content: res.data.msg
+							});
+						}
+						if (res.data.code === 200) {
+							this.$navTo.togo('/pages2/appointment/index', {
+								goodsId: item.goodsId,
+								gradeId: item.gradeId
+							});
+						}
+					});
 					break;
 				case 20:
 					// arsty = '重新购买';
@@ -128,10 +143,9 @@ export default {
 		getInfo() {
 			this.$api.getappinformUserId(this.id).then(res => {
 				if (res.data.code === 200) {
-					if(!res.data.data.receiptStatus){
+					if (!res.data.data.receiptStatus) {
 						this.$api.courseappinformUser({ id: res.data.data.id, receiptStatus: 1 }).then(res => {
 							if (res.data.code === 200) {
-								
 							}
 						});
 					}

+ 1 - 1
pages2/plan/edit.vue

@@ -293,7 +293,7 @@ export default {
 		},
 		getInfo(int) {
 			var self = this;
-			this.$api.systemplanInfo(this.planId).then(res => {
+			this.$api.systemplanInfo({planId:this.planId}).then(res => {
 				this.form.date = this.$method.timestampToTime(res.data.data.examDate);
 				this.form.time = res.data.data.reminderTime;
 				this.form.startDate = this.$method.timestampToTime(res.data.data.startTime);