Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
d6a5718e
Commit
d6a5718e
authored
Oct 26, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页招募榜加载样式
parent
b315edf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
home.js
src/shoppingGuid/page/pages/home/home.js
+11
-3
home.wxml
src/shoppingGuid/page/pages/home/home.wxml
+1
-1
No files found.
src/shoppingGuid/page/pages/home/home.js
View file @
d6a5718e
...
@@ -12,7 +12,8 @@ wxService.page({
...
@@ -12,7 +12,8 @@ wxService.page({
store
:
[],
store
:
[],
rankList
:[],
rankList
:[],
storeList
:[],
storeList
:[],
defaultAvatar
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/home_default_logo.png'
defaultAvatar
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/home_default_logo.png'
,
loadingText
:
'数据加载中...'
},
},
/**
/**
...
@@ -35,6 +36,7 @@ wxService.page({
...
@@ -35,6 +36,7 @@ wxService.page({
onShow
:
function
()
{
onShow
:
function
()
{
this
.
getRecruitRanking
()
// 招募榜
this
.
getRecruitRanking
()
// 招募榜
},
},
//获取排行榜
getRecruitRanking
()
{
getRecruitRanking
()
{
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
...
@@ -44,9 +46,15 @@ wxService.page({
...
@@ -44,9 +46,15 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
if
(
result
==
0
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
let
list
=
data
?
data
:
[];
if
(
list
.
length
==
0
){
this
.
data
.
loadingText
=
'暂无榜单~'
;
}
this
.
setData
({
this
.
setData
({
rankList
:
data
||
[]
rankList
:
list
,
})
loadingText
:
this
.
data
.
loadingText
});
}
}
}
}
})
})
...
...
src/shoppingGuid/page/pages/home/home.wxml
View file @
d6a5718e
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</view>
</view>
</block>
</block>
</view>
</view>
<view class="no-list" wx:else>
暂无榜单
</view>
<view class="no-list" wx:else>
{{loadingText}}
</view>
</view>
</view>
<!-- 门店榜单 -->
<!-- 门店榜单 -->
<view class='list' wx:if="{{current == 2}}">
<view class='list' wx:if="{{current == 2}}">
...
...
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