joinus.vue 1.8 KB
<template>
  <div class="containerbox">
    <div class="flextwo sharetopk" @click="back">
      <div class="leftrow leftrowkimg">
        <img src="../../../assets/leftrow.png" alt />
      </div>
      <div class="sharemiddle">加入我们</div>
      <div class="sharebtn">
        <!-- <img src="../../../assets/sharebtn.png" alt /> -->
      </div>
    </div>
    <div class="jointext" v-html="cpmpany"></div>
    <!-- <div class="joinimg">
      <img src="../../../assets/main_bg@2x.png" alt />
    </div>-->

    <div class="suciabot">
      <div class="sucaibtn" @click="joinus">加入我们</div>
    </div>
  </div>
</template>

<script>
import { Toast } from 'vant';
export default {
  data() {
    return {
      cpmpany: ''
    }
  },
  created() {
    document.title = '唐元集公众号'
    this.aboutus()
  },
  methods: {
    back() {
      this.$router.go(-1)
    },
    aboutus() {
      let that = this;
      var url = "/api/common/contact";
      let param = {

      };

      that.$axios
        .post(url, param)
        .then(function (res) {
          console.log(res);
          that.cpmpany = res.data.contact

        })
        .catch(function (err) {
          console.log(err);
        });
    },
    joinus() {

      this.$router.push({
        path: "/applayjoin",
        // query: { testId: item.test_student_id }
      });
      //  let that = this;
      // var url = "/api/common/contact";
      // let param = {

      // };

      // that.$axios
      //   .post(url, param)
      //   .then(function (res) {
      //     console.log(res);
      //     Toast("加入成功")
      //     that.$router.go(-1)

      //   })
      //   .catch(function (err) {
      //     console.log(err);
      //   });
    }
  }

}
</script>
<style scoped>
@import "../../../style/usercenter.css";
</style>