Просмотр исходного кода

直播进来学习记录接口新增参数

xuqiaoying 3 лет назад
Родитель
Сommit
50bc6ffb43
4 измененных файлов с 16 добавлено и 5 удалено
  1. 4 0
      .hbuilderx/launch.json
  2. 3 2
      http/http.js
  3. 1 1
      manifest.json
  4. 8 2
      pages/live/index.vue

+ 4 - 0
.hbuilderx/launch.json

@@ -10,6 +10,10 @@
      	{
      		"launchtype" : "local"
      	},
+     	"mp-weixin" : 
+     	{
+     		"launchtype" : "local"
+     	},
      	"type" : "uniCloud"
      }
     ]

+ 3 - 2
http/http.js

@@ -1,7 +1,8 @@
 // const base_url = 'https://api.xyyxt.net'  //release
 // const base_url = 'http://42.192.164.187:19005'  //test
-export const base_url = 'http://api.xyyxt.net:19009'   //预发布
-// const base_url = 'http://192.168.1.222:5055'  //dev
+// export const base_url = 'http://api.xyyxt.net:19009'   //
+// export const base_url = 'https://test.xyyxt.net'   //预发布
+const base_url = 'http://192.168.1.7:5055'  //dev
 
 
 // export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "web",
-    "appid" : "__UNI__AB4092E",
+    "appid" : "__UNI__DD00BC4",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 8 - 2
pages/live/index.vue

@@ -68,12 +68,16 @@ import "@/static/public.css";
 					scene: "", // 场景
 					mainPosition: "player", // 用于记录当前主屏幕是文档还是播放器
 				},
+				buyCourse: 1, // 是否购买课程:1是 0否
+				identification: '', // 标识
 			}
 		},
 		mounted() {
 			
-			console.log(this.$route.query)
-			console.log(999)
+			console.log('直播间参数',this.$route.query)
+			const { buyCourse, ident } = this.$route.query
+			this.buyCourse = buyCourse
+			this.identification = ident
 			this.sectionId = this.$route.query.sectionId;
 			this.goodsId = this.$route.query.goodsId;
 			this.courseId = this.$route.query.courseId;
@@ -155,6 +159,8 @@ import "@/static/public.css";
 					load:false,
 					url:'/study/record',
 					data:{
+						buyCourse: this.buyCourse,
+						identification: this.identification,
 						sectionId: parseInt(this.sectionId),
 						goodsId: parseInt(self.goodsId),
 						courseId: parseInt(self.courseId),