XSLu08042 3 tygodni temu
rodzic
commit
698cfc5853

+ 2 - 2
pages/shopping/productDetails.vue

@@ -811,12 +811,12 @@
 					text-align: center;
 				}
 			}
-			/deep/.uni-badge--x{
+			::v-deep .uni-badge--x{
 				display: flex;
 				align-items: center;
 				justify-content: center;
 			}
-			/deep/.uni-badge{
+			::v-deep .uni-badge{
 				border: none;
 				background-color: #FF3636;
 				font-family: Roboto;

+ 6 - 1
pages_course/video.vue

@@ -110,7 +110,12 @@
 			}
 		},
 		onLoad(option) {
-			this.urlOption = option.course ? JSON.parse(decodeURIComponent(option.course)) : {}
+			if (!option.course) {
+				const keys = decodeURIComponent(Object.keys(option)[0]);
+				this.urlOption = JSON.parse(keys.split('course=')[1])
+			} else {
+				this.urlOption = option.course ? JSON.parse(decodeURIComponent(option.course)) : {}
+			}
 			console.log("this.urlOption==",this.urlOption,option)
 			this.videoId = this.urlOption.videoId || ''
 			this.sortLink = this.urlOption.link || ''

+ 6 - 1
pages_course/videoDetail.vue

@@ -461,7 +461,12 @@
 		},
 		onLoad(option) {
 			this.code = option.code
-			this.urlOption = option.course ? JSON.parse(decodeURIComponent(option.course)) : {}
+			if (!option.course) {
+				const keys = decodeURIComponent(Object.keys(option)[0]);
+				this.urlOption = JSON.parse(keys.split('course=')[1])
+			} else {
+				this.urlOption = option.course ? JSON.parse(decodeURIComponent(option.course)) : {}
+			}
 			this.videoId = this.urlOption.videoId || ''
 			this.qwUserId = this.urlOption.qwUserId || ''
 			this.corpId = this.urlOption.corpId || ''