Commit d9b1fb93 authored by Facius's avatar Facius

首页不听入驻状态跳转

parent 5dafd5a0
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
</u-sticky> </u-sticky>
<!-- 入驻成功之后显示推荐订单列表 --> <!-- 入驻成功之后显示推荐订单列表 -->
<view v-if="settled && orderList.length > 0"> <view v-if="status == 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="settled && orderList.length <= 0"> <view v-else-if="status == 7 && orderList.length <= 0">
暂无订单 暂无订单
</view> </view>
<!-- 入驻前--> <!-- 入驻前-->
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
}, },
data() { data() {
return { return {
settled: false, // 入驻状态 status: 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.settled) return if (this.status == 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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment