|
|
@ -133,7 +133,7 @@ |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="se-px-40 se-py-20"> |
|
|
|
<view class="se-px-40 se-py-20" @click="toPayment"> |
|
|
|
<view class="se-flex se-flex-ai-c se-pb-10"> |
|
|
|
<view class="line-orange"></view> |
|
|
|
<view class="se-ml-10 se-fs-32 se-c-black se-fw-6"> |
|
|
@ -290,12 +290,29 @@ |
|
|
|
methods: { |
|
|
|
checkStatus(){ |
|
|
|
let that = this |
|
|
|
if (that.type && that.obj && !that.obj.orderStatusSeek && that.obj.status > 0 && that.obj.status < 4) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/pages_subpack/payment/index?id=" + that.orderId |
|
|
|
}) |
|
|
|
// 根据订单类型和用户视角判断跳转逻辑 |
|
|
|
// type == 1: 个人发布求职企业进行招聘,企业接受后师傅跳转保险页面 |
|
|
|
// type != 1: 企业招聘师傅,师傅接受后企业跳转保险页面 |
|
|
|
if (that.obj && !that.obj.orderStatusSeek && that.obj.status > 0 && that.obj.status < 4) { |
|
|
|
// 如果是个人发布求职(type == 0),师傅视角(type存在)才跳转 |
|
|
|
if (that.obj.type == 0 && that.type) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/pages_subpack/payment/index?id=" + that.orderId |
|
|
|
}) |
|
|
|
} |
|
|
|
// 如果是企业招聘师傅(type != 0),企业视角(!type)才跳转 |
|
|
|
else if (that.obj.type != 0 && !that.type) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/pages_subpack/payment/index?id=" + that.orderId |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
toPayment(){ |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/pages_subpack/payment/index?id=" + this.orderId |
|
|
|
}) |
|
|
|
}, |
|
|
|
onOrderDetail() { |
|
|
|
let that = this |
|
|
|
let params = { |
|
|
@ -341,12 +358,6 @@ |
|
|
|
}) |
|
|
|
|
|
|
|
this.onOrderDetail() |
|
|
|
|
|
|
|
if (that.type && that.obj && !that.obj.orderStatusSeek && that.obj.status > 0) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/pages_subpack/payment/index?id=" + that.orderId |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|