部分代码调整

This commit is contained in:
2025-12-24 15:27:27 +08:00
parent e1000c6b40
commit b3c1ab3b8b
3 changed files with 34 additions and 28 deletions

View File

@@ -1,3 +1,5 @@
export default async (params) => {
let url = params.url;
let method = params.method || "get";
@@ -34,7 +36,33 @@ export default async (params) => {
mask: true,
});
}
// #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
return new Promise((resolve, reject) => {
const timeoutDuration = params.timeout || 10000; // 可以通过 params 传入超时时间,默认 10 秒
uni.request({

View File

@@ -3,33 +3,7 @@ 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";

View File

@@ -442,6 +442,10 @@
</view>
</view>
</view>
<!-- 推荐搭配 -->
<view class="u-m-t-48">
</view>
</scroll-view>
<!-- 占位 -->
<view style="height: 42rpx;"></view>