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
d9b1fb93
Commit
d9b1fb93
authored
Apr 14, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页不听入驻状态跳转
parent
5dafd5a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
index.vue
src/pages/index/index.vue
+11
-13
No files found.
src/pages/index/index.vue
View file @
d9b1fb93
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
</u-sticky>
</u-sticky>
<!-- 入驻成功之后显示推荐订单列表 -->
<!-- 入驻成功之后显示推荐订单列表 -->
<view
v-if=
"s
ettled
&& orderList.length > 0"
>
<view
v-if=
"s
tatus == 7
&& orderList.length > 0"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
>
<OrderCell
:orderData=
"item"
>
</OrderCell>
</OrderCell>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
</view>
<!-- 入驻成功之后无推荐订单 -->
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"s
ettled
&& orderList.length
<
=
0
"
>
<view
v-else-if=
"s
tatus == 7
&& orderList.length
<
=
0
"
>
暂无订单
暂无订单
</view>
</view>
<!-- 入驻前-->
<!-- 入驻前-->
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
},
},
data
()
{
data
()
{
return
{
return
{
s
ettled
:
false
,
// 入驻状态
s
tatus
:
0
,
// 入驻状态: 1=>'待审核', 2=>'已通过', 3=>'备选', 4=>'已驳回', 5=>'已签约', 6=>'未支付保证金', 7=>'已支付保证金',
triggered
:
false
,
triggered
:
false
,
list
:
[{
list
:
[{
image
:
'https://cdn.uviewui.com/uview/swiper/1.jpg'
,
image
:
'https://cdn.uviewui.com/uview/swiper/1.jpg'
,
...
@@ -122,13 +122,11 @@
...
@@ -122,13 +122,11 @@
},
},
methods
:
{
methods
:
{
async
initSettleInfo
()
{
async
initSettleInfo
()
{
if
(
this
.
s
ettled
)
return
if
(
this
.
s
tatus
==
7
)
return
const
callBack
=
(
vm
,
result
)
=>
{
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过settled确定状态
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if
(
result
&&
result
.
settled
)
{
if
(
result
&&
result
.
record
)
{
vm
.
settled
=
result
.
settled
vm
.
status
=
result
.
record
.
status
}
else
{
vm
.
settled
=
false
}
}
}
}
await
app
.
getBaseInfo
(
this
,
callBack
)
await
app
.
getBaseInfo
(
this
,
callBack
)
...
@@ -179,10 +177,10 @@
...
@@ -179,10 +177,10 @@
console
.
log
(
'-----scroll-------'
)
console
.
log
(
'-----scroll-------'
)
},
},
immediatelyIn
()
{
immediatelyIn
()
{
if
(
util
.
getToken
())
{
if
(
util
.
getToken
())
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/settle/index'
url
:
this
.
status
>
0
?
'/pages/settle/prompt'
:
'/pages/settle/index'
})
;
})
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/login/index'
url
:
'pages/login/index'
...
...
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