Explorar o código

fix:直播文档tab在前面

xuqiaoying %!s(int64=3) %!d(string=hai) anos
pai
achega
2038d458b9
Modificáronse 2 ficheiros con 8 adicións e 8 borrados
  1. 2 2
      http/http.js
  2. 6 6
      pages/live/index.vue

+ 2 - 2
http/http.js

@@ -1,9 +1,9 @@
 // const base_url = 'https://api.xyyxt.net'  //release
 // const base_url = 'https://api.xyyxt.net'  //release
 // const base_url = 'http://42.192.164.187:19005'  //test
 // const base_url = 'http://42.192.164.187:19005'  //test
 // export const base_url = 'http://api.xyyxt.net:19009'   //
 // export const base_url = 'http://api.xyyxt.net:19009'   //
-// export const base_url = 'https://test.xyyxt.net'   //预发布
+export const base_url = 'https://test.xyyxt.net'   //预发布
 // const base_url = 'http://192.168.1.7:5055'  //dev
 // const base_url = 'http://192.168.1.7:5055'  //dev
-export const base_url = 'http://120.79.166.78:19012' // 测试环境
+// export const base_url = 'http://120.79.166.78:19012' // 测试环境
 
 
 
 
 // export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
 // export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release

+ 6 - 6
pages/live/index.vue

@@ -82,7 +82,7 @@ import "@/static/public.css";
 			this.buyCourse = buyCourse
 			this.buyCourse = buyCourse
 			this.identification = ident
 			this.identification = ident
 			this.sectionType = sectionType || 2
 			this.sectionType = sectionType || 2
-			this.vid = vid
+			this.vid = vid || ''
 			this.sectionId = this.$route.query.sectionId;
 			this.sectionId = this.$route.query.sectionId;
 			this.goodsId = this.$route.query.goodsId;
 			this.goodsId = this.$route.query.goodsId;
 			this.courseId = this.$route.query.courseId;
 			this.courseId = this.$route.query.courseId;
@@ -248,6 +248,10 @@ import "@/static/public.css";
 					enableFlower: true, // 是否开启送花功能,默认为true
 					enableFlower: true, // 是否开启送花功能,默认为true
 					mediaChannelKey: this.mediaChannelKey,
 					mediaChannelKey: this.mediaChannelKey,
 					tabData: [
 					tabData: [
+							{
+								name: "文档",
+								type: "ppt",
+							},
 							{
 							{
 								name: "聊天", // 菜单栏名称
 								name: "聊天", // 菜单栏名称
 								type: "chat", // 菜单栏类型, 有3个已有的内置类型(chat, user-list, ask),详情请参考文档
 								type: "chat", // 菜单栏类型, 有3个已有的内置类型(chat, user-list, ask),详情请参考文档
@@ -255,11 +259,7 @@ import "@/static/public.css";
 							{
 							{
 								name: "提问",
 								name: "提问",
 								type: "ask",
 								type: "ask",
-							},
-							{
-								name: "文档",
-								type: "ppt",
-							},
+							}
 						],
 						],
 					roomMessage: (data) => {
 					roomMessage: (data) => {
 						console.log(data,'data')
 						console.log(data,'data')