Pārlūkot izejas kodu

添加判断beta跳转

11wqe1 3 nedēļas atpakaļ
vecāks
revīzija
cace0d47d0

+ 2 - 4
src/components/topPage.vue

@@ -302,7 +302,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 // 判断链接时liyuan还是admin的
                 // platform:'',
                 // 判断链接时beta还是cloud的
-                betaL:'beta',
+                betaL: this.$region,
                 dialogVisible:false, 
                 //常见ai应用列表(添加弹框)
                 usuallyList:[], 
@@ -525,7 +525,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 if (this.betaL == 'beta') {
                     url = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/${val.toolId}`
                 }else{
-                    `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/${val.toolId}`
+                    url = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/${val.toolId}`
                 }
 
 
@@ -620,8 +620,6 @@ import { myMixin } from "@/mixins/mixin.js"
             },
         },
         mounted(){
-            // this.platform = window.location.href.includes("liyuan") ? "liyuan_" : "admin_"
-            // this.betaL = window.location.href.includes("beta") ? "beta" : "cloud"
         }
     }
 </script>

+ 2 - 6
src/views/HomeView.vue

@@ -149,7 +149,7 @@ export default {
 			AppJSon: [],
 			loading: false,
 			// 判断链接时beta还是cloud的
-            betaL:'beta',
+            betaL: this.$region,
 			clearifa: "",
 			// 荔园集团下的学校
 			mergedList: [
@@ -298,7 +298,7 @@ export default {
 			if (this.betaL == "beta") {
 				url = `https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/${val.toolId}`;
 			} else {
-				`https://pbl.cocorobo.cn/pbl-student-table/dist/#/${val.toolId}`;
+				url = `https://pbl.cocorobo.cn/pbl-student-table/dist/#/${val.toolId}`;
 			}
 
 			await store.commit("user/SET_AppSIGN", val.toolId);
@@ -452,11 +452,7 @@ export default {
 	},
 	mounted() {
 		console.log("重新获取数据");
-
-        // this.betaL = window.location.href.includes("beta") ? "beta" : "cloud"
-		
 		console.log('this.$route.query.courseId',this.$route.query.courseId);
-		
 		this.getPer();
 		if (this.$route.query.courseId) {
 			this.openApp2({

+ 1 - 2
src/views/kanBan/components/dataBoardNew/index.vue

@@ -67,8 +67,7 @@ export default {
         this.pageEnd = val
     },
     backO(){
-      // let betaL = window.location.href.includes("beta") ? "beta" : "cloud"
-      let betaL = "beta"
+      let betaL = this.$region
       if (betaL == 'beta') {
         window.location.href = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/aiOffice?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
       }else{

+ 26 - 2
src/views/login/loginPage.vue

@@ -4,7 +4,10 @@
 			<img :src="showLoginMessage.banner" />
 		</div>
 		<div class="lp_right">
-			<div class="lp_r_box">
+			<div @click="backVersion" class="Version">
+				返回旧版
+			</div>
+			<div class="lp_r_box">			
 				<div class="lp_r_b_logo">
 					<div>
 						<el-image
@@ -404,6 +407,15 @@ export default {
 			login: "user/login",
 			logout: "user/logout",
 		}),
+		// 返回旧版本
+		backVersion(){
+			console.log(this.$region);
+			if (this.$region == 'beta') {
+				window.topU.location.href = 'https://beta.cloud.cocorobo.cn/index.html'
+			}else{
+				window.topU.location.href = 'https://cloud.cocorobo.cn/index.html'
+			}
+		},
 		// 获取组织后缀
 		async getSuffix() {
 			if (!this.SuffixData){
@@ -1154,8 +1166,20 @@ export default {
 	display: flex;
 	justify-content: center;
 	align-items: center;
+	position: relative;
+}
+.Version{
+	background: #adadad;
+	border-radius: 10px;
+	border: .5px #e7e7e7 solid;
+	position: absolute;
+	color: #fff;
+	padding: 5px 15px;
+	box-sizing: border-box;
+	top: 30px;
+	right: 20px;
+	cursor: pointer;
 }
-
 .lp_r_box {
 	width: 500px;
 	height: auto;