select-role.vue 2.4 KB
<template>
  <view
    class="page"
    :style="{
      backgroundImage: vuex_baseImgUrl && `url(${vuex_baseImgUrl}selerole.png)`,
    }"
  >
    <view class="title"> Hi ,我是{{ vuex_appName }},您的私人职业规划师 </view>
    <view class="desc">
      <img
        src="https://yxlypublic.oss-cn-beijing.aliyuncs.com/WeChat/excellet-working/selectsolo.png"
        alt=""
      />
    </view>
    <view class="box" @click="seleRole(2)">
      <img
        src="https://yxlypublic.oss-cn-beijing.aliyuncs.com/WeChat/excellet-working/role2.png"
        alt=""
      />
      <view class="t"> 我是在校生,我要实习就业 </view>
    </view>
    <view
      class="box"
      @click="seleRole(3)"
      v-if="vuex_appId != 'wx2a515776284cae17'"
    >
      <img :src="vuex_baseImgUrl && `${vuex_baseImgUrl}role3.png`" alt="" />
      <view class="t"> 我已工作,我要求职 </view>
    </view>
    <!-- <view class="box" @click="seleRole(1)" style="margin-top: 32px;">
			<img src="https://yxlypublic.oss-cn-beijing.aliyuncs.com/WeChat/excellet-working/role1.png" alt="">
			<view class="t">
				我是用人企业,我要招人
			</view>
		</view> -->
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },

  methods: {
    seleRole(e) {
      if (e == 2) {
        this.$u.vuex("vuex_role", "student");
      } else if (e == 3) {
        this.$u.vuex("vuex_role", "work");
      }
			
      uni.$u.route({
        url: "pages/student/tabBar/home/home",
        // type: "switchTab",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.page {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 135px 28px 0;

  .title {
    font-size: 13px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
  }

  .desc {
    margin: 8px 0 0;
    // font-size: 22px;
    // font-family: AlibabaPuHuiTi_2_95_ExtraBold;
    // color: #000000;
    img {
      width: 248px;
      height: 21px;
    }
  }

  .box {
    display: flex;
    align-items: center;
    margin: 24px 0 0;
    padding: 29px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    opacity: 0.9;

    img {
      width: 40px;
      height: 40px;
    }

    .t {
      margin-left: 15px;
      font-size: 18px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #000000;
    }
  }
}
</style>