Browse Source

fix: 修复民族字段错误并优化保险选择逻辑

修复简历页面中“名族”错误显示为“民族”的问题
优化支付页面保险选择逻辑,增加金额显示和强制更新视图
为招聘页面添加编辑和删除功能,完善相关交互逻辑
master
前端-胡立永 1 week ago
parent
commit
7d87476fc9
4 changed files with 98 additions and 22 deletions
  1. +50
    -1
      pages_subpack/hire/index.vue
  2. +11
    -4
      pages_subpack/pay/index.vue
  3. +34
    -14
      pages_subpack/payment/index.vue
  4. +3
    -3
      pages_subpack/resume/index.vue

+ 50
- 1
pages_subpack/hire/index.vue View File

@ -33,11 +33,13 @@
</view>
<view v-if="!items.employOrder.length"
style="flex-shrink: 0;"
@click.stop="onEditJob(items)"
class="se-flex se-flex-h-c se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6">
<text class="se-ml-5">修改</text>
</view>
<view v-if="!items.employOrder.length"
style="flex-shrink: 0;"
@click.stop="onDeleteJob(items)"
class="se-flex se-flex-h-c se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6">
<text class="se-ml-5">删除</text>
</view>
@ -54,7 +56,8 @@
<script>
import {
queryJobListByUserId
queryJobListByUserId,
deleteJob
} from "@/common/api.js"
export default {
@ -150,6 +153,52 @@
}).catch(error => {
})
},
onEditJob(item) {
//
uni.navigateTo({
url: `/pages_subpack/release/index?status=1&editId=${item.id}`
});
},
onDeleteJob(item) {
//
uni.showModal({
title: '确认删除',
content: '确定要删除这条招聘信息吗?',
success: (res) => {
if (res.confirm) {
this.deleteJobById(item.id);
}
}
});
},
deleteJobById(jobId) {
uni.showLoading({
title: '删除中...'
});
// API
deleteJob({ id: jobId }).then(response => {
uni.hideLoading();
if (response.code === 200) {
uni.showToast({
title: '删除成功',
icon: 'success'
});
//
this.onQueryJobListByUserId();
} else {
uni.showToast({
title: response.message || '删除失败',
icon: 'none'
});
}
}).catch(error => {
uni.hideLoading();
uni.showToast({
title: '删除失败',
icon: 'none'
});
});
}
}
}


+ 11
- 4
pages_subpack/pay/index.vue View File

@ -90,7 +90,7 @@
</view>
</u-radio-group>
</view>
<view class="se-mt-10 se-py-10 se-br-20"
<view class="se-mt-10 se-py-10 se-br-20 se-mb-160"
style="display: flex;flex-direction: column;align-items: center;">
<text class="se-c-66 se-fs-22">温馨提示下单前请仔细查看下单需知</text>
<view class="se-flex-h-fs se-br-40 se-mt-20 se-flex-ai-fs se-h-80 se-lh-80 se-ta-c se-fs-24 se-c-33"
@ -254,17 +254,24 @@
},
onInsuranceChange(value) {
if (!value) {
//
this.$refs.disclaimerModal.open();
//
this.insuranceChecked = true;
this.$nextTick(() => {
this.$refs.disclaimerModal.open();
});
}
},
onDisclaimerCancel() {
//
this.insuranceChecked = true;
//
this.$forceUpdate();
},
onDisclaimerConfirm() {
//
//
this.insuranceChecked = false;
//
this.$forceUpdate();
},
payOrderCompany() {


+ 34
- 14
pages_subpack/payment/index.vue View File

@ -29,6 +29,17 @@
<view class="se-ml-10 se-fs-30 se-c-black se-fw-5">
购买保险(可选)
</view>
<view class="se-ml-auto se-fs-28 se-c-orange se-fw-6" v-if="items.premium">
{{items.premium}}
</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 class="se-mt-10 se-py-30 se-px-30 se-bs se-bgc-white se-br-20">
@ -66,7 +77,7 @@
<view class="se-pos-fixed se-pos-lb se-bs-t se-flex se-flex-h-sb se-pb-60 se-pt-20 se-bgc-white se-w-vw-100">
<view class="se-fs-32 se-c-black se-ml-30" @click="onDetail()">
<text class="se-fs-24">合计</text>
<text class="se-c-orange">{{items.premium}}</text>
<text class="se-c-orange">{{totalAmount}}</text>
</view>
<view class="se-flex se-mr-30">
<view @click="onReject()" class="se-mr-20 se-w-120 se-h-80 se-lh-80 se-ta-c se-c-orange se-fs-28 se-br-40 se-b se-bc-orange">
@ -108,18 +119,25 @@
DisclaimerModal
},
data(){
return{
show:false,
id:"",
checked:[],
myMoney:"",//
items:{},
amount:"9.9",
payRadio:"1",
sysList:[]
}
},
onLoad(options) {
return{
show:false,
id:"",
checked:[],
insuranceChecked:[], //
myMoney:"",//
items:{},
amount:"9.9",
payRadio:"1",
sysList:[]
}
},
computed: {
//
totalAmount() {
return this.insuranceChecked.includes('true') ? (this.items.premium || 0) : 0;
}
},
onLoad(options) {
// this.sysList = uni.getStorageSync('sysList')
console.info(options)
this.id = options.id
@ -154,7 +172,9 @@
})
},
onPay(){
this.payWithInsurance(true);
//
const buyInsurance = this.insuranceChecked.includes('true');
this.payWithInsurance(buyInsurance);
},
onReject(){
this.$refs.disclaimerModal.open();


+ 3
- 3
pages_subpack/resume/index.vue View File

@ -15,8 +15,8 @@
<u-form-item label="年龄" prop="age">
<u--input v-model="form.age" class="se-bgc-f5" placeholder="请输入年龄"></u--input>
</u-form-item>
<u-form-item label="族" prop="nation">
<u--input v-model="form.nation" class="se-bgc-f5" placeholder="请输入族"></u--input>
<u-form-item label="族" prop="nation">
<u--input v-model="form.nation" class="se-bgc-f5" placeholder="请输入族"></u--input>
</u-form-item>
@ -131,7 +131,7 @@
nation: [{
type: 'string',
required: true,
message: '请输入族',
message: '请输入族',
trigger: ['blur', 'change']
}],
industryId: [{


Loading…
Cancel
Save