dailistory.vue 3.5 KB
<template>
  <div class="containerbox">
    <div class="flextwo sharetopk zuixin" @click="back">
      <div class="leftrow leftrowkimg">
        <img src="../../../assets/leftrowk.png" alt />
      </div>
      <div class="sharemiddle newacty">唐元集经销商故事</div>
      <div class="sharebtn">
        <!-- <img src="../../../assets/sharebtn.png" alt /> -->
      </div>
    </div>
    <div class="containerk">
      <div class="dailiimg">
        <!-- <img src="../../../assets/daili.png" alt /> -->
        <div class="dailitext">
          <!-- 亲爱的{{ name }}您好,根据您的资料,您是一 位{{
          profession_name
          }}-->
          <div v-html="procontent"></div>
        </div>
        <!-- <div v-html="procontent"></div> -->
      </div>
      <div class="comtexttop flexthree zhaoshangtop" style="margin-bottom:0.3rem;margin-top:0">
        <div class="textleft flexone">
          <div class="textleftheng"></div>
          <div class="textyuan"></div>
        </div>
        <div class="textname zhaoshangvideo">{{intended.agent_title}}</div>
        <div class="textleft flexone">
          <div class="textkyuan"></div>
          <div class="textrightheng"></div>
        </div>
      </div>

      <div class="dailiimgk">
        <img :src="image" alt />
      </div>

      <div class="shibo" style="background:#f9f9f9;padding:0">
        <div class="clicknextk">点击下一页查看唐元集事业分析>> >></div>
        <div class="flextwo" style="background:#fff;padding: 0.18rem 0.32rem;">
          <div class="shibotleft" @click="prepage">上一页</div>
          <div class="shibotright" @click="nextpage">下一页</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      subid: "",
      name: "",
      image: "",
      result: "",
      profession_name: "",
      procontent: "",
      intended: ''
    };
  },

  created() {
    document.title = "唐元集";
    this.subid = this.$route.query.subid;
    this.getresult();
    this.intended = JSON.parse(localStorage.getItem("intended"));
    console.log(this.intended)
  },
  methods: {
    back() {
      this.$router.go(-1);
    },
    nextpage() {
      this.$router.push({
        path: "/shiyefenxi",
        query: { subid: this.subid }
      });
    },
    prepage() {
      this.$router.go(-1);
    },
    getresult() {
      let that = this;
      var url = "/api/user/purpose_result";
      let param = {
        purpose_id: that.subid
      };

      that.$axios
        .post(url, param)
        .then(function (res) {
          console.log(res);
          that.procontent = res.data.result.pro.content;
          console.log(that.content);
          that.name = res.data.result.name;

          that.profession_name = res.data.result.pro.profession_name;
          that.image = res.data.result.option.image;

          that.result = res.data.result;

          console.log(that.image, 999);
        })
        .catch(function (err) {
          console.log(err);
        });
    }
  }
};
</script>

<style scoped>
@import "../../../style/usercenter.css";
.clicknextk {
  color: #759875;
  font-size: 0.28rem;
  text-align: center;
  margin-top: 0.1rem;
  margin-bottom: 0.3rem;
}
.containerk {
  padding: 0.32rem;
  box-sizing: border-box;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}
.shibo {
  padding: 0.18rem 0.32rem;
  box-sizing: border-box;
  background: #fff;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
}
</style>