This commit is contained in:
zmj 2024-06-11 17:09:45 +08:00
parent 72dc2f4a3a
commit 032993ccc9
3 changed files with 6 additions and 7 deletions

View File

@ -2,15 +2,15 @@ let BASE_URL
import store from "@/store/user.js" import store from "@/store/user.js"
// 环境 // 环境
// let env = "dev" // let env = "dev"
let env = "prod" // let env = "prod"
// let env = "liu"; let env = "liu";
switch (env) { switch (env) {
case 'dev': case 'dev':
BASE_URL = 'https://test-multi-store.lihaink.cn'; BASE_URL = 'https://test-multi-store.lihaink.cn';
break; break;
case 'liu': case 'liu':
BASE_URL = 'http://192.168.1.201:8545'; BASE_URL = 'http://192.168.1.22:8545';
break; break;
default: default:
BASE_URL = 'https://multi-store.lihaink.cn'; BASE_URL = 'https://multi-store.lihaink.cn';

View File

@ -123,7 +123,7 @@
"path": "order/order", "path": "order/order",
"style": { "style": {
"navigationBarTitleText": "我的订单", "navigationBarTitleText": "我的订单",
"enablePullDownRefresh": false, "enablePullDownRefresh": true,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },

View File

@ -266,7 +266,7 @@
}).then(res => { }).then(res => {
getCartList(); getCartList();
}).catch(err => { }).catch(err => {
uni.$u.toast('添加失败') uni.$u.toast(err.msg || '添加失败')
}) })
} }
@ -278,7 +278,6 @@
} }
const changeOrder = (order) => { const changeOrder = (order) => {
console.log('排序', order);
where.value.order = order; where.value.order = order;
getGoodList(); getGoodList();
} }
@ -461,7 +460,7 @@
userStore.setToken(''); userStore.setToken('');
userStore.setUserInfo({}); userStore.setUserInfo({});
} }
} },
}); });
addCart(data.product_id, data.cart_num); addCart(data.product_id, data.cart_num);