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