|
|
@@ -25,10 +25,10 @@
|
|
|
v-for="(item, index) in preferenceOptions"
|
|
|
:key="index"
|
|
|
class="preference-tag"
|
|
|
- :class="{ active: selectedPreferences.includes(item) }"
|
|
|
- @click="togglePreference(item)"
|
|
|
+ :class="{ active: selectedPreferences.includes(item.preferenceName) }"
|
|
|
+ @click="togglePreference(item.preferenceName)"
|
|
|
>
|
|
|
- <text>{{ item }}</text>
|
|
|
+ <text>{{ item.preferenceName }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -50,13 +50,9 @@ export default {
|
|
|
return {
|
|
|
jobTitle: '岗位',
|
|
|
jobId:'',
|
|
|
- selectedPreferences: ['独立站'],
|
|
|
+ selectedPreferences: [],
|
|
|
preferenceOptions: [
|
|
|
- '精品铺货', '独立站', '3C数码', '美妆日用', '服装配饰', '家居用品',
|
|
|
- '户外运动', '母婴用品', '食品饮料', '宠物用品', '汽车用品', '图书文具',
|
|
|
- '数码配件', '办公用品', '礼品玩具', '健康保健', '珠宝首饰', '箱包皮具',
|
|
|
- '手表眼镜', '乐器音响', '摄影摄像', '运动健身', '旅游出行', '教育培训',
|
|
|
- '金融服务', '生活服务', '其他'
|
|
|
+
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
@@ -77,16 +73,9 @@ export default {
|
|
|
let data = {
|
|
|
ruleClassifyId:this.jobId
|
|
|
}
|
|
|
- var action=this.jobId==''||this.jobId==0?'/app/userFirst/selectSkill':'/app/userFirst/getPostSkill'
|
|
|
- this.$Request.getT(action,data).then(res => {
|
|
|
+ this.$Request.getT('/app/postPreference/getPostPreference',data).then(res => {
|
|
|
if(res.code==0){
|
|
|
- if(this.jobId==''||this.jobId==0){
|
|
|
- res.data.forEach(function(item){
|
|
|
- item.postSkillName=item.skillName
|
|
|
- })
|
|
|
- this.operationOptions =[{childrenList:res.data,postSkillName:''}]
|
|
|
- }else
|
|
|
- this.operationOptions = res.data
|
|
|
+ this.preferenceOptions = res.data
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -115,11 +104,6 @@ export default {
|
|
|
preferences: this.selectedPreferences,
|
|
|
set
|
|
|
})
|
|
|
-
|
|
|
- uni.showToast({
|
|
|
- title: '偏好设置已保存',
|
|
|
- icon: 'success'
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -206,7 +190,7 @@ export default {
|
|
|
|
|
|
.preference-tag {
|
|
|
width: calc((100% - 72rpx) / 7);
|
|
|
- padding: 8rpx 6rpx;
|
|
|
+ padding: 8rpx 12rpx;
|
|
|
background: #F7F8FA;
|
|
|
border: 1rpx solid #F7F8FA;
|
|
|
border-radius: 12rpx;
|
|
|
@@ -214,7 +198,7 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
-
|
|
|
+ word-break: break-all;
|
|
|
text {
|
|
|
font-size: 18rpx;
|
|
|
color: rgba(102, 102, 102, 1);
|