Explorar o código

条件编译h5

xuqiaoying %!s(int64=3) %!d(string=hai) anos
pai
achega
5ce15bb425
Modificáronse 3 ficheiros con 5 adicións e 3 borrados
  1. 1 1
      components/course/courseModule.vue
  2. 1 1
      pages.json
  3. 3 1
      pages3/polyv/detail.vue

+ 1 - 1
components/course/courseModule.vue

@@ -99,7 +99,7 @@ export default {
 			default: false
 		},
 		levelId: {
-			type: String,
+			type: [Number, String],
 			default: ""
 		},
 		isRebuild: {  //是否重修目录

+ 1 - 1
pages.json

@@ -733,7 +733,7 @@
 	},{
 		"root": "pages3",
 		"pages": [{
-				"path": "polyv/polyv",
+				"path": "polyv/polyv", // 没用用到
 				"style": {
 					"navigationBarTitleText": "保利威直播",
 					"app-plus": {

+ 3 - 1
pages3/polyv/detail.vue

@@ -51,10 +51,10 @@
 						:vslide-gesture-in-fullscreen="true"
             :isAllowSeek="isAllowSeek"
             :playbackRate="playbackRate"
-            :startTime="startTime"
             :enableAutoRotation="enableAutoRotation"
 						@loadedmetadata="loadedmetadata"
           ></polyv-player>
+          <!-- :startTime="startTime" -->
           <cover-view
             class="video-toast__close"
             v-if="videoToastShow"
@@ -1645,7 +1645,9 @@ export default {
 		getbaseprofiletplists() {
 			return new Promise(resolve => {
 				let self = this;
+        //  #ifdef MP-WEIXIN
 				this.getCameraSetting();
+        // #endif
 				this.$api.getbaseprofiletplists({ goodsId: self.goodsId,orderGoodsId: this.orderGoodsId, }).then((res) => {
 				  if (res.data.code === 200 && res.data.rows.length) {
 				    if (res.data.rows[0].keyValue) {