|
|
@@ -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({
|