Commit d9b1fb93 authored by Facius's avatar Facius

首页不听入驻状态跳转

parent 5dafd5a0
......@@ -20,7 +20,7 @@
</view>
</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">
<OrderCell :orderData="item">
</OrderCell>
......@@ -28,7 +28,7 @@
<u-loadmore :status="currentLoadStatus" bgColor="#f2f2f2"></u-loadmore>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view v-else-if="settled && orderList.length <= 0">
<view v-else-if="status == 7 && orderList.length <= 0">
暂无订单
</view>
<!-- 入驻前-->
......@@ -57,7 +57,7 @@
},
data() {
return {
settled: false, // 入驻状态
status: 0, // 入驻状态: 1=>'待审核', 2=>'已通过', 3=>'备选', 4=>'已驳回', 5=>'已签约', 6=>'未支付保证金', 7=>'已支付保证金',
triggered: false,
list: [{
image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
......@@ -122,13 +122,11 @@
},
methods: {
async initSettleInfo() {
if (this.settled) return
if (this.status == 7) return
const callBack = (vm, result) => {
// 后台自动判断入驻流程是否完成,前台通过settled确定状态
if (result && result.settled) {
vm.settled = result.settled
} else {
vm.settled = false
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if (result && result.record) {
vm.status = result.record.status
}
}
await app.getBaseInfo(this, callBack)
......@@ -179,10 +177,10 @@
console.log('-----scroll-------')
},
immediatelyIn() {
if (util.getToken()) {
uni.navigateTo({
url: 'pages/settle/index'
});
if (util.getToken()) {
uni.navigateTo({
url: this.status > 0 ? '/pages/settle/prompt' : '/pages/settle/index'
})
} else {
uni.navigateTo({
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