前端-胡立永 12 hours ago
parent
commit
09bd01e9de
6 changed files with 46 additions and 19 deletions
  1. +3
    -3
      components/order-status/index.vue
  2. +23
    -12
      pages_subpack/job-order-detail/index.vue
  3. +13
    -0
      pages_subpack/order-detail/boss.vue
  4. +3
    -1
      pages_subpack/order-detail/index.vue
  5. +1
    -1
      pages_subpack/pay/index.vue
  6. +3
    -2
      pages_subpack/payment/index.vue

+ 3
- 3
components/order-status/index.vue View File

@ -53,7 +53,7 @@
const statusTextMap = { const statusTextMap = {
'0' : {// '0' : {//
'job-order': { 'job-order': {
0: '待师傅确认',//
0: '待师傅确认',//
1: '企业待支付',// 1: '企业待支付',//
2: '订单进行中',// 2: '订单进行中',//
3: '试工完成',// 3: '试工完成',//
@ -73,7 +73,7 @@
}, },
'1' : {// '1' : {//
'job-order': { 'job-order': {
0: '待师傅确认',
0: '待师傅确认',
1: '订单进行中', 1: '订单进行中',
2: '试工完成', 2: '试工完成',
3: '企业待支付', 3: '企业待支付',
@ -82,7 +82,7 @@
6: '订单已取消' 6: '订单已取消'
}, },
default: { default: {
0: '待企业确认',
0: '待企业确认',
1: '订单进行中', 1: '订单进行中',
2: '试工完成', 2: '试工完成',
3: '企业待支付', 3: '企业待支付',


+ 23
- 12
pages_subpack/job-order-detail/index.vue View File

@ -133,7 +133,7 @@
</template> </template>
</view> </view>
</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="se-flex se-flex-ai-c se-pb-10">
<view class="line-orange"></view> <view class="line-orange"></view>
<view class="se-ml-10 se-fs-32 se-c-black se-fw-6"> <view class="se-ml-10 se-fs-32 se-c-black se-fw-6">
@ -290,12 +290,29 @@
methods: { methods: {
checkStatus(){ checkStatus(){
let that = this 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() { onOrderDetail() {
let that = this let that = this
let params = { let params = {
@ -341,12 +358,6 @@
}) })
this.onOrderDetail() this.onOrderDetail()
if (that.type && that.obj && !that.obj.orderStatusSeek && that.obj.status > 0) {
uni.navigateTo({
url: "/pages_subpack/payment/index?id=" + that.orderId
})
}
} }
}) })
}, },


+ 13
- 0
pages_subpack/order-detail/boss.vue View File

@ -354,6 +354,18 @@
this.onOrderDetail() this.onOrderDetail()
}, },
methods: { methods: {
checkStatus(){
let that = this
//
// (type)orderStatusSeek
if (that.type && that.obj && !that.obj.orderStatusSeek
&& that.obj.type == 1
&& that.obj.status > 0 && that.obj.status < 4) {
uni.navigateTo({
url: "/pages_subpack/payment/index?id=" + that.orderId
})
}
},
onOrderDetail() { onOrderDetail() {
let that = this let that = this
let params = { let params = {
@ -361,6 +373,7 @@
} }
orderDetail(params).then(response => { orderDetail(params).then(response => {
that.obj = response.result that.obj = response.result
this.checkStatus()
}).catch(error => { }).catch(error => {
}) })


+ 3
- 1
pages_subpack/order-detail/index.vue View File

@ -207,7 +207,9 @@
checkStatus(){ checkStatus(){
let that = this let that = this
// orderStatusSeek // orderStatusSeek
if (that.obj && !that.obj.orderStatusSeek && that.obj.status > 0 && that.obj.status < 4) {
if (that.obj && !that.obj.orderStatusSeek &&
that.obj.type == 0 &&
that.obj.status > 0 && that.obj.status < 4) {
uni.navigateTo({ uni.navigateTo({
url: "/pages_subpack/payment/index?id=" + that.orderId url: "/pages_subpack/payment/index?id=" + that.orderId
}) })


+ 1
- 1
pages_subpack/pay/index.vue View File

@ -163,7 +163,7 @@
if (this.detail.type == 1) { if (this.detail.type == 1) {
// //
return basePrice + premiumFee
return basePrice + trafficFee
} else { } else {
// //
return basePrice; return basePrice;


+ 3
- 2
pages_subpack/payment/index.vue View File

@ -126,7 +126,7 @@
computed: { computed: {
// //
totalAmount() { totalAmount() {
return this.insuranceChecked.includes('true') ? (this.items.premium || 0) : 0;
return this.items.premium;
} }
}, },
onLoad(options) { onLoad(options) {
@ -168,7 +168,8 @@
}, },
onPay(){ onPay(){
// //
const buyInsurance = this.insuranceChecked.includes('true');
const buyInsurance = true
// const buyInsurance = this.insuranceChecked.includes('true');
this.payWithInsurance(buyInsurance); this.payWithInsurance(buyInsurance);
}, },
onReject(){ onReject(){


Loading…
Cancel
Save