前端-胡立永 6 days ago
parent
commit
e2a18ff594
6 changed files with 66 additions and 25 deletions
  1. +1
    -1
      common/config.js
  2. +27
    -2
      pages_subpack/job-order-detail/index.vue
  3. +19
    -2
      pages_subpack/order-detail/index.vue
  4. +2
    -2
      pages_subpack/pay/index.vue
  5. +7
    -11
      pages_subpack/payment/index.vue
  6. +10
    -7
      pages_subpack/work-detail/index.vue

+ 1
- 1
common/config.js View File

@ -3,7 +3,7 @@ module.exports = {
// baseUrl:"https://employadmin.hhlm1688.com" // baseUrl:"https://employadmin.hhlm1688.com"
// baseUrl:"http://h5.xzaiyp.top", //测试环境 // baseUrl:"http://h5.xzaiyp.top", //测试环境
// baseUrl:"http://youyi-test.natapp1.cc", // baseUrl:"http://youyi-test.natapp1.cc",
// baseUrl:"http://127.0.0.1:8003",
// baseUrl:"http://127.0.0.1:8002",
baseUrl:"https://admin.zhixuanlietou.com", baseUrl:"https://admin.zhixuanlietou.com",
// http://youyi-test.natapp1.cc // http://youyi-test.natapp1.cc


+ 27
- 2
pages_subpack/job-order-detail/index.vue View File

@ -285,9 +285,27 @@
this.type = options.type || '' this.type = options.type || ''
}, },
onShow(){ onShow(){
this.onOrderDetail()
this.checkOrderStatus()
}, },
methods: {
methods: {
//
checkOrderStatus() {
let that = this
let params = {
orderId: that.orderId
}
orderDetail(params).then(response => {
that.obj = response.result
// orderStatusSeek
if (that.type && that.obj && !that.obj.orderStatusSeek && that.obj.status > 0) {
uni.navigateTo({
url: "/pages_subpack/payment/index?id=" + that.orderId
})
}
}).catch(error => {
})
},
onOrderDetail() { onOrderDetail() {
let that = this let that = this
let params = { let params = {
@ -330,7 +348,14 @@
title: '确认成功', title: '确认成功',
icon: 'none' icon: 'none'
}) })
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
})
}
} }
}) })
}, },


+ 19
- 2
pages_subpack/order-detail/index.vue View File

@ -30,7 +30,6 @@
</view> </view>
</template> </template>
</view> </view>
</view> </view>
<!-- 先试用后支付 --> <!-- 先试用后支付 -->
@ -202,7 +201,25 @@
this.orderId = options.orderId this.orderId = options.orderId
}, },
onShow() { onShow() {
this.onOrderDetail()
this.checkOrderStatus()
},
//
checkOrderStatus() {
let that = this
let params = {
orderId: that.orderId
}
orderDetail(params).then(response => {
that.obj = response.result
// orderStatusSeek
if (that.obj && !that.obj.orderStatusSeek && that.obj.status > 0) {
uni.navigateTo({
url: "/pages_subpack/payment/index?id=" + that.orderId
})
}
}).catch(error => {
})
}, },
methods: { methods: {
onOrderDetail() { onOrderDetail() {


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

@ -31,7 +31,7 @@
</view> </view>
<!-- 新增保险费明细 type==1 时显示 --> <!-- 新增保险费明细 type==1 时显示 -->
<template v-if="detail.type == 1"> <template v-if="detail.type == 1">
<view class="se-flex se-flex-h-sb se-pt-20">
<!-- <view class="se-flex se-flex-h-sb se-pt-20">
<view class="se-flex se-flex-h-fs"> <view class="se-flex se-flex-h-fs">
<u-checkbox v-model="insuranceChecked" @change="onInsuranceChange" activeColor="#ff7a31" shape="circle" size="16"></u-checkbox> <u-checkbox v-model="insuranceChecked" @change="onInsuranceChange" activeColor="#ff7a31" shape="circle" size="16"></u-checkbox>
<image class="se-w-30 se-h-40 se-ml-10" src="@/static/image/46524.png" mode=""></image> <image class="se-w-30 se-h-40 se-ml-10" src="@/static/image/46524.png" mode=""></image>
@ -40,7 +40,7 @@
<view> <view>
<text class="se-c-orange se-fs-32 se-ml-20">{{ insuranceChecked ? detail.premium : 0 }}</text> <text class="se-c-orange se-fs-32 se-ml-20">{{ insuranceChecked ? detail.premium : 0 }}</text>
</view> </view>
</view>
</view> -->
<view class="se-flex se-flex-h-sb se-pt-20" <view class="se-flex se-flex-h-sb se-pt-20"
v-if="detail.employSeek"> v-if="detail.employSeek">
<view class="se-flex se-flex-h-fs"> <view class="se-flex se-flex-h-fs">


+ 7
- 11
pages_subpack/payment/index.vue View File

@ -33,14 +33,6 @@
{{items.premium}} {{items.premium}}
</view> </view>
</view> </view>
<view class="se-mt-20 se-px-30">
<u-checkbox-group v-model="insuranceChecked">
<u-checkbox name="true" activeColor="#ff7a31" label-size="14" shape="circle">
<text class="se-fs-28 se-c-black">购买保险</text>
<text class="se-fs-24 se-c-text-third se-ml-10" v-if="items.premium">({{items.premium}})</text>
</u-checkbox>
</u-checkbox-group>
</view>
</view> </view>
<view class="se-mt-10 se-py-30 se-px-30 se-bs se-bgc-white se-br-20"> <view class="se-mt-10 se-py-30 se-px-30 se-bs se-bgc-white se-br-20">
<u-radio-group <u-radio-group
@ -163,6 +155,9 @@
checkboxChange(n) { checkboxChange(n) {
console.log('change', n); console.log('change', n);
}, },
insuranceCheckboxChange(n) {
console.log('insurance change', n);
},
getOrderDetail(){ getOrderDetail(){
orderDetail({orderId:this.id}).then(response=>{ orderDetail({orderId:this.id}).then(response=>{
console.info('orderDetail',response) console.info('orderDetail',response)
@ -231,9 +226,10 @@
}) })
}, },
onDetail(){ onDetail(){
uni.redirectTo({
url:"/pages_subpack/order-detail/index?orderId="+this.id
})
// uni.redirectTo({
// url:"/pages_subpack/order-detail/index?orderId="+this.id
// })
uni.navigateBack(-1)
} }
} }
} }


+ 10
- 7
pages_subpack/work-detail/index.vue View File

@ -157,8 +157,11 @@
console.log("下单成功"); console.log("下单成功");
// //
if (response.result) { if (response.result) {
// uni.navigateTo({
// url:"/pages_subpack/payment/index?id="+response.result.id
// })
uni.navigateTo({ uni.navigateTo({
url:"/pages_subpack/payment/index?id="+response.result.id
url:"/pages_subpack/order-detail/index?orderId="+error.result.id
}) })
} else { } else {
// 0 // 0
@ -175,15 +178,15 @@
// //
if (error.result.status == 0) { if (error.result.status == 0) {
setTimeout(()=>{ setTimeout(()=>{
if(error.result.orderStatusSeek == 'Y'){
// if(error.result.orderStatusSeek == 'Y'){
uni.navigateTo({ uni.navigateTo({
url:"/pages_subpack/order-detail/index?orderId="+error.result.id url:"/pages_subpack/order-detail/index?orderId="+error.result.id
}) })
}else{
uni.navigateTo({
url:"/pages_subpack/payment/index?id="+error.result.id
})
}
// }else{
// uni.navigateTo({
// url:"/pages_subpack/payment/index?id="+error.result.id
// })
// }
}, 800); }, 800);
} else { } else {
// //


Loading…
Cancel
Save