Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
U
uni-app-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
tangfh
uni-app-base
Commits
f16e5cd5
Commit
f16e5cd5
authored
May 23, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
1abecd3c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
base-page.vue
pages/template/base-page.vue
+2
-2
base-tab.vue
pages/template/base-tab.vue
+2
-2
No files found.
pages/template/base-page.vue
View file @
f16e5cd5
...
@@ -104,12 +104,12 @@
...
@@ -104,12 +104,12 @@
isNeedShowLoading
:
false
isNeedShowLoading
:
false
};
};
util
.
request
(
url
,
param
,
option
,
{
util
.
request
(
url
,
param
,
option
,
{
success
:
this
.
request
Callback
,
success
:
this
.
request
Success
,
fail
:
this
.
requestFail
,
fail
:
this
.
requestFail
,
complete
:
this
.
requestComplete
complete
:
this
.
requestComplete
});
});
},
},
request
Callback
(
res
)
{
request
Success
(
res
)
{
if
(
res
.
data
.
code
>
0
)
{
if
(
res
.
data
.
code
>
0
)
{
this
.
contentStatus
==
this
.
items
.
length
==
0
?
constant
.
CONTENT_STATUS
.
ERROR
:
null
;
this
.
contentStatus
==
this
.
items
.
length
==
0
?
constant
.
CONTENT_STATUS
.
ERROR
:
null
;
return
;
return
;
...
...
pages/template/base-tab.vue
View file @
f16e5cd5
...
@@ -179,12 +179,12 @@
...
@@ -179,12 +179,12 @@
isNeedShowLoading
:
false
isNeedShowLoading
:
false
};
};
util
.
request
(
url
,
param
,
option
,
{
util
.
request
(
url
,
param
,
option
,
{
success
:
this
.
request
Callback
,
success
:
this
.
request
Success
,
fail
:
this
.
requestFail
,
fail
:
this
.
requestFail
,
complete
:
this
.
requestComplete
complete
:
this
.
requestComplete
});
});
},
},
request
Callback
(
res
)
{
request
Success
(
res
)
{
var
tab
=
this
.
tabList
[
this
.
tabIndex
];
var
tab
=
this
.
tabList
[
this
.
tabIndex
];
if
(
res
.
statusCode
!=
200
)
{
if
(
res
.
statusCode
!=
200
)
{
tab
.
refreshing
=
false
;
tab
.
refreshing
=
false
;
...
...
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