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="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>