Эх сурвалжийг харах

定位支付宝展开问题

john 2 жил өмнө
parent
commit
64954368f7
2 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/App.vue
  2. 1 0
      src/utils/index.js

+ 3 - 0
src/App.vue

@@ -85,12 +85,15 @@ export default {
           uni.setStorageSync('carList', JSON.parse(carList));
         }
         this.$store.commit('SET_IS_INIT', false);
+        console.log('platform====>88');
         window.token = `${window.location.href}`.replace(/.*wx\/(.*)\/.*/g, '$1');
+        console.log('platform====>90');
         try {
           const options = await wssInit();
           this.$store.dispatch('baseInit', {
             options,
             callback: () => {
+              console.log('platform====>96');
               this.$store.commit('SET_IS_INIT', true);
               // 无感积分逻辑
               // this.wxEasyPointsCommitStatusInit();

+ 1 - 0
src/utils/index.js

@@ -77,6 +77,7 @@ export function isAlipay() {
 // 是否在微信小程序中运行
 export function getIsMin() {
   const platform = getPlatform();
+  console.log('platform====>80', platform);
   return platform === 'miniprogram';
 }