谢杰标 2 سال پیش
والد
کامیت
be4b5ff67f
2فایلهای تغییر یافته به همراه11 افزوده شده و 10 حذف شده
  1. 1 1
      manifest.json
  2. 10 9
      pages3/polyv/detail.vue

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "Applet",
-    "appid" : "__UNI__E090811",
+    "appid" : "__UNI__1EEAEF2",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 10 - 9
pages3/polyv/detail.vue

@@ -2549,13 +2549,13 @@ export default {
       if (this.timer) {
         clearInterval(this.timer);
       }
+      this.vid = item.recordingUrl;
+      // #ifdef MP-WEIXIN
       if (this.vid) {
-        //切换视频
-        // var polyvPlayerContext = this.selectComponent("#playerVideo");
-        polyvPlayerContext.changeVid(item.recordingUrl);
-      } else {
-        this.vid = item.recordingUrl;
+        polyvPlayerContext.changeVid(this.vid);
       }
+      // #endif
+
       this.recordObj = { videoCurrentTime: item.noteSecond };
       if (this.recordObj.videoCurrentTime) {
         this.needSeek = true; //需要跳转到播放记录
@@ -2572,12 +2572,13 @@ export default {
       // #ifdef H5
       // await this.clears();
       // #endif
+      this.vid = item.recordingUrl;
+      // #ifdef MP-WEIXIN
       if (this.vid) {
-        //切换视频
-        polyvPlayerContext && polyvPlayerContext.changeVid(item.recordingUrl);
-      } else {
-        this.vid = item.recordingUrl;
+        polyvPlayerContext && polyvPlayerContext.changeVid(this.vid);
       }
+      // #endif
+
       this.recordObj = null;
       this.recordObj = await this.getRecordLast();
       this.needSeek = true; //跳转到播放记录