Bläddra i källkod

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 7 månader sedan
förälder
incheckning
ea454035a7
1 ändrade filer med 9 tillägg och 2 borttagningar
  1. 9 2
      src/views/recruit/enterprise/hirePosition/components/item.vue

+ 9 - 2
src/views/recruit/enterprise/hirePosition/components/item.vue

@@ -26,7 +26,7 @@
         </div>
         <div class="d-flex align-center">
           <v-chip v-if="(val.status-0) === 99" color="warning" label>职位待发布,支付后成功后自动发布</v-chip>
-          <v-chip v-if="val.status === '1' && tab === 2" color="error" class="cursor-pointer" label  style="text-decoration: underline;" @click="handleAction(1, val)">职位已关闭,点击激活职位</v-chip>
+          <v-chip v-if="val.status === '1' && tab === 2" color="error" class="cursor-pointer" label  style="text-decoration: underline;"  @click="toPay(val)">职位已关闭,点击激活职位</v-chip>
         </div>
       </div>
       <div class="bottom pa-5 d-flex justify-space-between align-center">
@@ -87,16 +87,23 @@ const showConfirmPaymentDialog = ref(false)
 const cost = ref(0)
 const spuId = ref('')
 const spuName = ref('')
-const toPay = (val) => {
+const operateObj = ref({})
+const toPay = (val) => { // 已关闭的职位激活需要再次支付
+  operateObj.value = val
   spuId.value = val.id || ''
   spuName.value = val.name || ''
   cost.value = val.hirePrice
   // 打开支付弹窗
   showConfirmPaymentDialog.value = true
 }
+
 // 支付成功
 const paySuccess = async () => {
   showConfirmPaymentDialog.value = false
+  console.log(' operateObj.value?.status',  operateObj.value?.status)
+  if (operateObj.value?.status === '1') {
+    handleAction(1, operateObj.value)
+  }
   setTimeout(() => {
     emit('refresh')
   }, 1000)