Ver código fonte

添加学生埋点

11wqe1 4 dias atrás
pai
commit
82582d2f53

+ 3 - 3
src/components/sidebarL.vue

@@ -308,7 +308,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 // 添加打开应用
                 this.$emit('AddAppJson',pl)
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' + "_open" }, "success")
 
             },
             
@@ -409,7 +409,7 @@ import { myMixin } from "@/mixins/mixin.js"
 
                 let pl = {json:_url ,stateL :true,toolId :val.toolId}
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId +this.roleUser.type == 1 ? '_teacher' : '_student' +  "_open" }, "success")
 
                 this.$emit('AddAppJson',pl)
             },
@@ -419,7 +419,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 
                 // // 基本用法:打开指定 URL
                 window.open(val.url, "_blank");
-                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL + "appstoreOpen" }, "success")
+                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL +this.roleUser.type == 1 ? '_teacher' : '_student' +   "appstoreOpen" }, "success")
 
             },
         },

+ 3 - 3
src/components/topPage.vue

@@ -509,7 +509,7 @@ import { myMixin } from "@/mixins/mixin.js"
                 
                 this.$emit('cutUrl',pl)
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' + "_open" }, "success")
                 
             },
             async openApp2(val){
@@ -562,12 +562,12 @@ import { myMixin } from "@/mixins/mixin.js"
                 
                 this.$emit('cutUrl',pl)
 
-                this.addOp3('1', "", { type:this.prefixL + val.toolId + "_open" }, "success")
+                this.addOp3('1', "", { type:this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' +  "_open" }, "success")
             },
             // 打开CocoFlow应用
             openNewWindow(val) {
                 console.log(val);
-                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL + "appstoreOpen" }, "success")
+                this.addOp3('1', "", {id :val.id,name:val.name ,type:this.prefixL + this.roleUser.type == 1 ? '_teacher' : '_student' + "appstoreOpen" }, "success")
 
                 // // 基本用法:打开指定 URL
                 window.open(val.url, "_blank");

+ 1 - 1
src/views/HomeView.vue

@@ -418,7 +418,7 @@ export default {
 			this.addOp3(
 				"1",
 				"",
-				{ type: this.prefixL + val.toolId + "stu_open" },
+				{ type: this.prefixL + val.toolId + this.roleUser.type == 1 ? '_teacher' : '_student' +  "stu_open" },
 				"success"
 			);
 		},

+ 3 - 3
src/views/login/loginPage.vue

@@ -677,7 +677,7 @@ export default {
 							this.addOp3(
 								"1",
 								"",
-								{ type: this.prefixL + "login" },
+								{ type: this.prefixL + userjson.data[0][0].type == 1 ? '_teacher' : '_student' +"login" },
 								"success",
 								_data.userid
 							);
@@ -1027,7 +1027,7 @@ export default {
 						this.addOp3(
 							"1",
 							"",
-							{ type: this.prefixL + "login" },
+							{ type: this.prefixL + userjson.data[0][0].type == 1 ? '_teacher' : '_student' + "login" },
 							"success",
 							_data.userid
 						);
@@ -1558,7 +1558,7 @@ export default {
 	padding-top: 20px;
 	box-sizing: border-box;
     gap: 25px;
-	width: 100%;
+	flex: 1;
 }
 .stuList {
 	display: -moz-grid;