flat: 暂存
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
<view class="container">
|
||||
<view class="select">请选择</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="" />
|
||||
<view class="block-text">个人招工</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="" />
|
||||
<view class="block-text" style="background-color: #4171F9;">企业招工</view>
|
||||
</view>
|
||||
@@ -14,6 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -21,7 +22,18 @@
|
||||
}
|
||||
},
|
||||
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>
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
'9': "驳回",
|
||||
};
|
||||
let pickerColumns = [Object.values(reviewStatus)]
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
components: {CustomTabbar, CustomNavbar, userrecruitList},
|
||||
data() {
|
||||
@@ -76,7 +77,7 @@
|
||||
}
|
||||
},
|
||||
onLoad({type}) {
|
||||
if(type === 'enterprise'){
|
||||
if(this.enterprise){
|
||||
this.pageType = 'enterprise'
|
||||
this.currentArrTitleID = 0
|
||||
}
|
||||
@@ -85,6 +86,9 @@
|
||||
onReachBottom() {
|
||||
this.getList('add')
|
||||
},
|
||||
computed: {
|
||||
...mapState({enterprise: (state) => state.user.seeEnterprise}),
|
||||
},
|
||||
methods: {
|
||||
changeReviewStatus({value, index, values}) {
|
||||
const val = Object.keys(reviewStatus).filter((item) => reviewStatus[item] === value[0])[0]
|
||||
|
||||
Reference in New Issue
Block a user