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

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

parent e7170ade
This diff is collapsed.
......@@ -55,6 +55,9 @@ wepy.app({
'pages/search',
'pages/agreement'
],
"networkTimeout": {
"request": 3000
},
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#f1f1f1',
......
......@@ -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)}`;
if (env === 'test') console.error(errMsg);
throw new Error(errMsg);
}).catch(e => {
if (e.errMsg === 'request:fail timeout') {
Notify({ message: '网络异常,请稍后重试', safeAreaInsetTop });
}
});
};
......
......@@ -66,7 +66,7 @@
position: absolute;
z-index: 9;
bottom: 400rpx;
width: 100%;
width: 44%;
color: @whitecolor;
clear: both;
&.anima {
......@@ -77,8 +77,7 @@
}
}
.leftcont {
width: 44%;
float: left;
width: 100%;
font-size: @font-normal;
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