Browse Source

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

xuqiaoying 2 years ago
parent
commit
ccdd756587
1 changed files with 2 additions and 2 deletions
  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) // 本地缓存用来判断是否已经弹出过弹窗
                 }
                 
               }