소스 검색

修改wxsdk版本

tremble 3 년 전
부모
커밋
ae3090c967
4개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      public/index.html
  2. 1 0
      public/viewer/static/lib/jweixin-1.6.0.js
  3. 2 1
      src/app.vue
  4. 1 0
      src/components/Tags/treasure.vue

+ 1 - 1
public/index.html

@@ -25,7 +25,7 @@
         <script src="<%= BASE_URL %><%= VUE_APP_STATIC_DIR %>/static/lib/swiper/swiper-bundle.min.js"></script>
 
 
-        <script src="<%= BASE_URL %><%= VUE_APP_STATIC_DIR %>/static/lib/jweixin-1.0.0.js"></script>
+        <script src="<%= BASE_URL %><%= VUE_APP_STATIC_DIR %>/static/lib/jweixin-1.6.0.js"></script>
         
         <script src="<%= VUE_APP_SDK_DIR %>/kankan-sdk-deps.js?v=4.0.0-alpha.45"></script>
         <script src="<%= VUE_APP_SDK_DIR %>/kankan-sdk.js?v=4.0.0-alpha.45"></script>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
public/viewer/static/lib/jweixin-1.6.0.js


+ 2 - 1
src/app.vue

@@ -223,8 +223,9 @@ onMounted(() => {
         // 聚焦当前点击的热点
         view.focus(tag.sid).then(() => {
           if (tag.type == "coupon") {
-
+            store.commit("tag/setTagClickType", "treasure");
           } else if (tag.type == "applet_link") {
+            // wx.miniProgram.navigateTo({url: `/pages/shared/shared?img_url=${encodeURIComponent(uploadRes.data.url)}&companyId=${this.serve.info.companyId}&shareImg=${encodeURIComponent(this.serve.info.shareWxQrCode)}&vrLink=${encodeURIComponent(`${window.location.origin}${location.pathname}?m=${this.$config.projectNum}`)}`})
           }
         });
       });

+ 1 - 0
src/components/Tags/treasure.vue

@@ -21,6 +21,7 @@ const tagtype = computed(() => store.getters["tag/tagClickType"]);
 const emit = defineEmits(["close"]);
 
 const goto_now = () => {
+  // wx.miniProgram.navigateTo({url: `/pages/shared/shared?img_url=${encodeURIComponent(uploadRes.data.url)}&companyId=${this.serve.info.companyId}&shareImg=${encodeURIComponent(this.serve.info.shareWxQrCode)}&vrLink=${encodeURIComponent(`${window.location.origin}${location.pathname}?m=${this.$config.projectNum}`)}`})
   emit("close");
 };
 </script>