Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
3ca69a6b
Commit
3ca69a6b
authored
Apr 14, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页代码合并之后需要一些改动
parent
f84dc333
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
index.vue
src/pages/index/index.vue
+15
-11
No files found.
src/pages/index/index.vue
View file @
3ca69a6b
...
...
@@ -19,15 +19,16 @@
<text>
订单推荐
</text>
</view>
</u-sticky>
<!-- 入驻成功之后显示订单列表 -->
<view
v-if=
"s
tatus > 0
&& orderList.length > 0"
>
<!-- 入驻成功之后显示
推荐
订单列表 -->
<view
v-if=
"s
ettled
&& orderList.length > 0"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
>
</OrderCell>
</view>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
<view
v-else-if=
"status > 0 && orderList.length
<
=
0
"
>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"settled && orderList.length
<
=
0
"
>
暂无订单
</view>
<!-- 入驻前-->
...
...
@@ -56,7 +57,7 @@
},
data
()
{
return
{
settled
:
false
,
settled
:
false
,
// 入驻状态
triggered
:
false
,
list
:
[{
image
:
'https://cdn.uviewui.com/uview/swiper/1.jpg'
,
...
...
@@ -73,7 +74,6 @@
indicatorPos
:
'bottomCenter'
,
title
:
'Hello'
,
count
:
0
,
// 推荐订单数量
status
:
0
,
// 入驻状态
messageList
:
[{
id
:
1234
,
type
:
''
,
...
...
@@ -115,7 +115,8 @@
},
onShow
()
{
// 每次进入页面都刷新入驻状态
if
(
app
.
globalData
.
token
)
{
if
(
app
.
globalData
.
token
)
{
// 获取是否显示入驻按钮
this
.
initSettleInfo
()
}
},
...
...
@@ -134,11 +135,14 @@
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
this
.
_freshing
=
true
;
// 加载数据
// ...
// 获取入驻状态
this
.
initSettleInfo
()
// 获取推荐订单及数量
// ....
setTimeout
(()
=>
{
// 数据加载完成更新
status
和推荐列表
// 数据加载完成更新
入驻状态
和推荐列表
this
.
triggered
=
false
;
this
.
_freshing
=
false
;
},
1000
)
...
...
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