Forráskód Böngészése

修改wxsdk版本

tremble 3 éve
szülő
commit
ae3090c967

+ 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>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 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>