Răsfoiți Sursa

查询小程序的同城配送的微信门店编号接口变动

shizhongqi 11 luni în urmă
părinte
comite
b8ce09fe32

+ 4 - 0
hdApp/src/api/main/index.js

@@ -10,3 +10,7 @@ export const mainGetMallPoster = data => {
 export const mainGetMemberPoster = data => {
 	return https.get('/main/get-member-poster', data)
 }
+
+export const getWxStoreId = data => {
+	return https.get('/main/wx-store-id', data)
+}

+ 0 - 4
hdApp/src/api/shop/ext.js

@@ -8,10 +8,6 @@ export const updateMtAlone = data => {
 	return https.get('/shop-ext/update-mt-alone', data)
 }
 
-export const getExtInfo = data => {
-	return https.get('/shop-ext/info', data)
-}
-
 export const modifyGatherRepeat = data => {
 	return https.get('/shop-ext/modify-gather-repeat', data)
 }

+ 7 - 7
hdApp/src/pagesStore/me/expressSet.vue

@@ -187,7 +187,7 @@
 <script>
 import TuiListCell from "@/components/plugin/list-cell";
 import { createStore, updateStore, getStore, getStoreBalance, rechargeStore } from "@/api/shop-express";
-import { getExtInfo } from "@/api/shop/ext";
+import { getWxStoreId } from "@/api/main/index";
 export default {
   name: "expressSet",
   components: {
@@ -238,10 +238,10 @@ export default {
       });
     },
     init() {
-      getExtInfo().then(res=>{
+      getWxStoreId().then(res=>{
         if(res.code == 1){
-          if(res.data.ext){
-            this.wxStoreId = res.data.ext.wxStoreId
+          if(res.data.wx){
+            this.wxStoreId = res.data.wx.wxStoreId
             if(this.wxStoreId!=''){
               this.initExpress()
             }
@@ -253,10 +253,10 @@ export default {
       try {
         this.loading = true;
         // 获取门店地址信息
-        await this.getShopAddressInfo();
+        this.getShopAddressInfo();
         // 获取账户余额和充值记录
-        await this.getBalance();
-        await this.getRechargeRecords();
+        this.getBalance();
+        this.getRechargeRecords();
       } catch (error) {
         console.error('初始化失败:', error);
         uni.showToast({