flat: 暂存

This commit is contained in:
Apcallover
2024-03-09 15:59:45 +08:00
parent a1a5a00480
commit 102e69567b
3 changed files with 24 additions and 4 deletions

View File

@@ -2,11 +2,11 @@
<view class="container"> <view class="container">
<view class="select">请选择</view> <view class="select">请选择</view>
<view class="select-text">您是个人招工还是企业招工</view> <view class="select-text">您是个人招工还是企业招工</view>
<view class="block" @click="navTo('/pages/recruit/subPage/index?type=none')"> <view class="block" @click="next(0)">
<img src="../../static/img/zhao_icon1.png" alt="" /> <img src="../../static/img/zhao_icon1.png" alt="" />
<view class="block-text">个人招工</view> <view class="block-text">个人招工</view>
</view> </view>
<view class="block" @click="navTo('/pages/recruit/subPage/index?type=enterprise')"> <view class="block" @click="next(1)">
<img src="../../static/img/zhao_icon2.png" alt="" /> <img src="../../static/img/zhao_icon2.png" alt="" />
<view class="block-text" style="background-color: #4171F9;">企业招工</view> <view class="block-text" style="background-color: #4171F9;">企业招工</view>
</view> </view>
@@ -14,6 +14,7 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
@@ -21,7 +22,18 @@
} }
}, },
methods: { methods: {
next(type) {
switch (type){
case 0:
this.$store.commit('setEnterprise', type)
this.navTo('/pages/recruit/subPage/index?type=none')
break;
case 1:
this.$store.commit('setEnterprise', type)
this.navTo('/pages/recruit/subPage/index?type=enterprise')
break;
}
}
} }
} }
</script> </script>

View File

@@ -59,6 +59,7 @@
'9': "驳回", '9': "驳回",
}; };
let pickerColumns = [Object.values(reviewStatus)] let pickerColumns = [Object.values(reviewStatus)]
import { mapState } from 'vuex'
export default { export default {
components: {CustomTabbar, CustomNavbar, userrecruitList}, components: {CustomTabbar, CustomNavbar, userrecruitList},
data() { data() {
@@ -76,7 +77,7 @@
} }
}, },
onLoad({type}) { onLoad({type}) {
if(type === 'enterprise'){ if(this.enterprise){
this.pageType = 'enterprise' this.pageType = 'enterprise'
this.currentArrTitleID = 0 this.currentArrTitleID = 0
} }
@@ -85,6 +86,9 @@
onReachBottom() { onReachBottom() {
this.getList('add') this.getList('add')
}, },
computed: {
...mapState({enterprise: (state) => state.user.seeEnterprise}),
},
methods: { methods: {
changeReviewStatus({value, index, values}) { changeReviewStatus({value, index, values}) {
const val = Object.keys(reviewStatus).filter((item) => reviewStatus[item] === value[0])[0] const val = Object.keys(reviewStatus).filter((item) => reviewStatus[item] === value[0])[0]

View File

@@ -61,6 +61,7 @@ const user = {
sendTimes:getStore({//用户发送短信次数 sendTimes:getStore({//用户发送短信次数
name:'setUserSendTimes' name:'setUserSendTimes'
}) || 0, }) || 0,
seeEnterprise: 0, // 0 个人招工 企业招工
}, },
actions: { actions: {
//用户点击radio按钮 //用户点击radio按钮
@@ -179,6 +180,9 @@ const user = {
}, },
}, },
mutations: { mutations: {
setEnterprise(state, val) { // 0 个人招工 企业招工
state.seeEnterprise = val;
},
SET_TOKEN: (state, token) => { SET_TOKEN: (state, token) => {
state.token = token; state.token = token;
setStore({ setStore({