增加确认订单页面菜品折叠,修改商品购物车数量显示

This commit is contained in:
2025-12-24 14:40:29 +08:00
parent a4580bdd1c
commit e1000c6b40
4 changed files with 101 additions and 41 deletions

View File

@@ -1,8 +1,35 @@
// const debug = process.env.NODE_ENV == 'development' ? true : false;
const debug = false; // false线上 true本地
const debug = true; // false线上 true本地
let baseUrl = ''
let baseUrlwws = ''
// #ifdef H5
uni.cache.set('token', 'b61c8b0f1c9d47ad924e33c48b496ce6')
uni.cache.set('userInfo', {
"acQrcodeValidTime": "2025-11-17 17:57:16",
"alipayOpenId": "",
"birthDay": "2025-10-17",
"createTime": "2024-07-06 11:30:16",
"distributionAmount": 0,
"headImg": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132",
"id": "36434",
"idCard": "612401199810058031",
"isAc": 0,
"lastLoginTime": "2025-12-24 14:30:51",
"nickName": "微信用户",
"password": "",
"payPwd": "e10adc3949ba59abbe56e057f20f883e",
"phone": "18049104914",
"realName": "叶明飞",
"sex": 1,
"status": 1,
"updateTime": "2025-12-24 14:29:51",
"usePayPwd": 0,
"wechatAcOpenId": "1111",
"wechatAcQrcode": "",
"wechatOpenId": "or1l86yipGvwyfPhrKIAcQuSfAV8"
})
// #endif
const version = "100";
@@ -11,7 +38,7 @@ const autoRemoveCache = {
size: 100000,
};
function init(){
function init() {
if (debug) {
baseUrl = 'http://192.168.1.42'
baseUrlwws = "ws://192.168.1.42:2348";
@@ -20,12 +47,12 @@ function init(){
baseUrlwws = "wss://czgeatws.sxczgkj.com/wss";
}
// #ifdef H5
if (debug) {
baseUrl = "/api";
baseUrlwws = "http://192.168.1.42:2348";
} else {
baseUrl = "/prodApi";
baseUrl = "/prodApi";
baseUrlwws = "https://czgeatws.sxczgkj.com/wss";
}
// #endif