前端-胡立永 8 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 = {
'0' : {//
'job-order': {
0: '待师傅确认',//
0: '待师傅确认',//
1: '企业待支付',//
2: '订单进行中',//
3: '试工完成',//
@ -73,7 +73,7 @@
},
'1' : {//
'job-order': {
0: '待师傅确认',
0: '待师傅确认',
1: '订单进行中',
2: '试工完成',
3: '企业待支付',
@ -82,7 +82,7 @@
6: '订单已取消'
},
default: {
0: '待企业确认',
0: '待企业确认',
1: '订单进行中',
2: '试工完成',
3: '企业待支付',


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

@ -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
})
}
}
})
},


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

@ -354,6 +354,18 @@
this.onOrderDetail()
},
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() {
let that = this
let params = {
@ -361,6 +373,7 @@
}
orderDetail(params).then(response => {
that.obj = response.result
this.checkStatus()
}).catch(error => {
})


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

@ -207,7 +207,9 @@
checkStatus(){
let that = this
// 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({
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) {
//
return basePrice + premiumFee
return basePrice + trafficFee
} else {
//
return basePrice;


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

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


Loading…
Cancel
Save