From 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 12 五月 2026 09:07:49 +0800
Subject: [PATCH] 改bug

---
 mini-program/App.vue |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/mini-program/App.vue b/mini-program/App.vue
index 13baf01..eaf6acb 100644
--- a/mini-program/App.vue
+++ b/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({

--
Gitblit v1.9.3