Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
1140bf69
Commit
1140bf69
authored
Jul 13, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"fix: 请求超时处理;金币图片拉伸修复;修复抽奖展示热区遮挡"
parent
e7170ade
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
.eslintcache
.eslintcache
+1
-1
app.wpy
src/app.wpy
+3
-0
wxRequest.js
src/common/wxRequest.js
+4
-0
activityList.wpy
src/components/custom/activityList.wpy
+2
-3
No files found.
.eslintcache
View file @
1140bf69
This diff is collapsed.
Click to expand it.
src/app.wpy
View file @
1140bf69
...
@@ -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',
...
...
src/common/wxRequest.js
View file @
1140bf69
...
@@ -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
});
}
});
});
};
};
...
...
src/components/custom/activityList.wpy
View file @
1140bf69
...
@@ -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;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment