소스 검색

定位支付宝展开问题

john 2 년 전
부모
커밋
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));
           uni.setStorageSync('carList', JSON.parse(carList));
         }
         }
         this.$store.commit('SET_IS_INIT', false);
         this.$store.commit('SET_IS_INIT', false);
+        console.log('platform====>88');
         window.token = `${window.location.href}`.replace(/.*wx\/(.*)\/.*/g, '$1');
         window.token = `${window.location.href}`.replace(/.*wx\/(.*)\/.*/g, '$1');
+        console.log('platform====>90');
         try {
         try {
           const options = await wssInit();
           const options = await wssInit();
           this.$store.dispatch('baseInit', {
           this.$store.dispatch('baseInit', {
             options,
             options,
             callback: () => {
             callback: () => {
+              console.log('platform====>96');
               this.$store.commit('SET_IS_INIT', true);
               this.$store.commit('SET_IS_INIT', true);
               // 无感积分逻辑
               // 无感积分逻辑
               // this.wxEasyPointsCommitStatusInit();
               // this.wxEasyPointsCommitStatusInit();

+ 1 - 0
src/utils/index.js

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