Commit 1140bf69 authored by 郭志伟's avatar 郭志伟

"fix: 请求超时处理;金币图片拉伸修复;修复抽奖展示热区遮挡"

parent e7170ade
This diff is collapsed.
...@@ -55,6 +55,9 @@ wepy.app({ ...@@ -55,6 +55,9 @@ wepy.app({
'pages/search', 'pages/search',
'pages/agreement' 'pages/agreement'
], ],
"networkTimeout": {
"request": 3000
},
window: { window: {
backgroundTextStyle: 'light', backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#f1f1f1', navigationBarBackgroundColor: '#f1f1f1',
......
...@@ -58,6 +58,10 @@ const request = async (url, options) => { ...@@ -58,6 +58,10 @@ const request = async (url, options) => {
errMsg = `httpurl: ${url}, method: ${options.method}, params: ${JSON.stringify(options.data)}, status: ${res.statusCode}, data: ${JSON.stringify(res.data)}`; errMsg = `httpurl: ${url}, method: ${options.method}, params: ${JSON.stringify(options.data)}, status: ${res.statusCode}, data: ${JSON.stringify(res.data)}`;
if (env === 'test') console.error(errMsg); if (env === 'test') console.error(errMsg);
throw new Error(errMsg); throw new Error(errMsg);
}).catch(e => {
if (e.errMsg === 'request:fail timeout') {
Notify({ message: '网络异常,请稍后重试', safeAreaInsetTop });
}
}); });
}; };
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
position: absolute; position: absolute;
z-index: 9; z-index: 9;
bottom: 400rpx; bottom: 400rpx;
width: 100%; width: 44%;
color: @whitecolor; color: @whitecolor;
clear: both; clear: both;
&.anima { &.anima {
...@@ -77,8 +77,7 @@ ...@@ -77,8 +77,7 @@
} }
} }
.leftcont { .leftcont {
width: 44%; width: 100%;
float: left;
font-size: @font-normal; font-size: @font-normal;
margin-left: 30rpx; margin-left: 30rpx;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment