|
|
@@ -13,15 +13,20 @@
|
|
|
<view class="check-select radioseletvi">
|
|
|
<radio-group @change="onRadioChange">
|
|
|
<view class="select-txt radioseletview">
|
|
|
- <label class="radio radioselet">
|
|
|
+ <label class="radio radioselet flex align-center">
|
|
|
<radio value="0" :checked="true" class="radio-size" :disabled="isDisabled" />普通岗位招聘
|
|
|
+ <text style="font-size: 13px;color: rgba(120, 130, 138, 1);position: absolute;right: 0">
|
|
|
+ 普通岗位剩余{{lastPostTimes }}个
|
|
|
+ </text>
|
|
|
</label>
|
|
|
- <label class="radio radioselet">
|
|
|
+
|
|
|
+ <label class="radio radioselet flex align-center">
|
|
|
<radio value="1" class="radio-size" :disabled="isDisabled" />急聘
|
|
|
+ <text style="font-size: 13px;color: rgba(120, 130, 138, 1);position: absolute;right: 0">
|
|
|
+ 急聘职位剩余{{lastDueTimes }}个
|
|
|
+ </text>
|
|
|
</label>
|
|
|
- <text
|
|
|
- style="position: absolute;right: 0;bottom: 18px;font-size: 13px;color: rgba(120, 130, 138, 1);">急聘职位剩余{{
|
|
|
- vipDueTimes }}个</text>
|
|
|
+
|
|
|
</view>
|
|
|
</radio-group>
|
|
|
|
|
|
@@ -69,7 +74,6 @@ export default {
|
|
|
isDisabled: false,
|
|
|
isDisabledid: false,
|
|
|
isCompanyVip: 0,
|
|
|
- vipDueTimes: 0,
|
|
|
postPushId: "",
|
|
|
update: "",
|
|
|
vipPostTimes: 0,
|
|
|
@@ -90,7 +94,9 @@ export default {
|
|
|
ruleClassifyId: '',
|
|
|
ruleClassifyName: '请选择要招聘的职位',
|
|
|
price: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ lastDueTimes:0,
|
|
|
+ lastPostTimes:0
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
@@ -138,23 +144,26 @@ export default {
|
|
|
this.status = options.status;
|
|
|
}
|
|
|
this.isCompanyVip = uni.getStorageSync('isCompanyVip') || 0
|
|
|
- this.vipDueTimes = uni.getStorageSync('vipDueTimes') || 0
|
|
|
this.vipPostTimes = uni.getStorageSync('vipPostTimes') || 0
|
|
|
|
|
|
-
|
|
|
+ this.getVipData();
|
|
|
console.log('接收的公司名称:', this.companyName);
|
|
|
console.log("收到岗位描述数据:", this.text);
|
|
|
console.log('接收的公司ID:', this.companyId);
|
|
|
console.log('接收的公司状态:', this.status);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
onUnload() {
|
|
|
// 页面卸载时移除监听,避免内存泄漏
|
|
|
uni.$off('jobs', this.onJobEvent);
|
|
|
},
|
|
|
methods: {
|
|
|
+ getVipData(){
|
|
|
+ this.$Request.get("/app/user/vipData").then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.lastDueTimes = res.lastDueTimes || 0;
|
|
|
+ this.lastPostTimes = res.lastPostTimes || 0;
|
|
|
+ })
|
|
|
+ },
|
|
|
goBusinessLicense() {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/my/businessLicense"
|
|
|
@@ -214,7 +223,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (this.vipDueTimes < 1) {
|
|
|
+ if (this.lastDueTimes < 1) {
|
|
|
uni.showToast({
|
|
|
title: '对不起,您的次数已经用完,不能发布。',
|
|
|
icon: 'none',
|
|
|
@@ -324,7 +333,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (this.vipDueTimes < 1) {
|
|
|
+ if (this.lastDueTimes < 1) {
|
|
|
uni.showToast({
|
|
|
title: '对不起,您的次数已经用完,不能发布。',
|
|
|
icon: 'none',
|
|
|
@@ -512,6 +521,9 @@ export default {
|
|
|
|
|
|
.radioseletvi {
|
|
|
position: relative;
|
|
|
+ ::v-deep uni-radio-group{
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.radioseletview {
|
|
|
@@ -522,7 +534,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.radioselet {
|
|
|
- display: block;
|
|
|
+ position: relative;
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
|