diff --git a/common/api/request.js b/common/api/request.js index d4d6a86..da44ef7 100644 --- a/common/api/request.js +++ b/common/api/request.js @@ -7,33 +7,7 @@ export default async (params) => { let token = uni.cache.get("token") || ""; const shopId = uni.cache.get("shopId") * 1; const userInfo = uni.cache.get("userInfo") || {}; - // #ifdef H5 - token = "1b5e8baf0cc1492a858a208f113d0971"; - uni.cache.set('userInfo', { - "acQrcodeValidTime": "2026-01-13 13:35:59", - "alipayOpenId": "", - "birthDay": "", - "createTime": "2024-03-13 10:56:40", - "distributionAmount": 0, - "headImg": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132", - "id": "36689", - "idCard": "", - "isAc": 0, - "lastLoginTime": "2025-12-24 11:24:12", - "nickName": "微信用户", - "password": "", - "payPwd": "e10adc3949ba59abbe56e057f20f883e", - "phone": "", - "realName": "", - "sex": null, - "status": 1, - "updateTime": "2025-12-24 11:22:47", - "usePayPwd": 0, - "wechatAcOpenId": "", - "wechatAcQrcode": "http://weixin.qq.com/q/029s5JtP1xfmJ1g_HDxFco", - "wechatOpenId": "or1l86yipGvwyfPhrKIAcQuSfAV8" - }) - // #endif + let header = { version: uni.conf.version, type: uni.getSystemInfoSync().platform, diff --git a/common/config.js b/common/config.js index a1d0fa7..b15f716 100644 --- a/common/config.js +++ b/common/config.js @@ -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 diff --git a/pages/order/components/orderInfo.vue b/pages/order/components/orderInfo.vue index 84d569f..321f7e3 100644 --- a/pages/order/components/orderInfo.vue +++ b/pages/order/components/orderInfo.vue @@ -40,9 +40,19 @@ :nowCarts="nowCarts" :limitDiscount="cartStore.limitTimeDiscount" > --> - + + + + {{showAllGoods?'收起':'展开'}} + + + + + +