| | |
| | | }, |
| | | 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) |
| | |
| | | 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) |
| | | } |
| | |
| | | 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({ |