MrShi
2 天以前 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd
mini-program/App.vue
@@ -47,13 +47,27 @@
      },
      onShow:async function(options) {
         this.dealRecShopUserBiz(options) 
         this.getBackgroundImg()
      },
      onHide: function() {
         console.log('App Hide')
      },
      methods: {
         getBackgroundImg() {
            this.$u.api.getPlatformAboutUs({})
               .then(res => {
                  if (res.code === 200) {
                     let obj = {
                        shopIntegralBg: res.data.shopIntegralBg,
                        userInviteBg: res.data.userInviteBg,
                        userShareBg: res.data.userShareBg,
                        centerInviteBg: res.data.centerInviteBg
                     }
                     uni.setStorageSync('backgroundImage', obj);
                  }
               })
         },
         async dealRecShopUserBiz(options){
            console.error("启动参数",options)
            if(options.query && options.query.userId){
               if(!this.userInfo || !this.userInfo.id){
                  await this.$store.commit('setRecUserId',options.query.userId)
@@ -75,7 +89,7 @@
                   if(shopId){
                      if(this.userInfo&& this.userInfo.id){
                         try{
                            let res = await this.$u.api.bindShopInfo({ code })
                            let res = await this.$u.api.bindShopInfo({ recId: shopId })
                            if(res.code != 200){
                               await this.$store.commit('setRecShopId',shopId)
                            }
@@ -140,8 +154,9 @@
               isHighAccuracy: true,
               success: function (addr) {
                  const locParam = { latitude: addr.latitude, longitude: addr.longitude };
                  // HEIBZ-QJLLM-SZ36X-6ZBHI-S6Y2J-S6FND
                  const qqmapsdk = new QQMapWX({
                     key: 'HEIBZ-QJLLM-SZ36X-6ZBHI-S6Y2J-S6FND'
                     key: 'WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE'
                  });
                  console.log(locParam)
                  qqmapsdk.reverseGeocoder({