瀏覽代碼

拍照提示缓存根据商品维度来提示

xuqiaoying 2 年之前
父節點
當前提交
ccdd756587
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages3/polyv/detail.vue

+ 2 - 2
pages3/polyv/detail.vue

@@ -2594,12 +2594,12 @@ export default {
                 //暂停
                 polyvPlayerContext.exitFullScreen();
                 polyvPlayerContext.pause();
-                if (uni.getStorageSync('tabkePhotoShow')) {
+                if (uni.getStorageSync(`tabkePhotoShow${this.goodsId}`) == this.goodsId) {
                 this.photoIndex = i;
                 this.openPhoto();
                 } else {
                   this.popupPhotoShow = true
-                  uni.setStorageSync('tabkePhotoShow', 1) // 本地缓存用来判断是否已经弹出过弹窗
+                  uni.setStorageSync(`tabkePhotoShow${this.goodsId}`, this.goodsId) // 本地缓存用来判断是否已经弹出过弹窗
                 }
                 
               }