youhuitext.vue 1.9 KB
<template>
  <div class="container">
    <div class="flextwo sharetopk fanbanck" @click="back">
      <div class="leftrow leftrowkimg">
        <img src="../../../assets/leftrowk.png" alt />
      </div>
      <div class="sharemiddle topk">顾客优惠活动</div>
      <div class="sharebtn">
        <!-- <img src="../../../assets/sharebtn.png" alt /> -->
      </div>
    </div>
    
    <div class="youhuiacttext" v-html="text">
      
    </div>
    <div class="flextwo youhuitextbox">
      <div class="shibotleft" @click="prepage">上一页</div>
      <div class="shibotright" @click="nextpage">下一页</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      subid: '',
      text: ''
    }

  },
  created() {
    document.title = "唐元集";
    this.subid = this.$route.query.subid;
    this.getresult();
  },
  methods: {
    prepage() {
      this.$router.go(-1)
    },
    back() {
      this.$router.go(-1)
    },
    nextpage() {
      this.$router.push({
        path: "/choujiang",
        query: {
          subid: this.subid
        }
      });
    },
    getresult() {
      let that = this;
      var url = "/api/user/intended";
      let param = {
        assistance_id: that.subid
      };

      that.$axios
        .post(url, param)
        .then(function (res) {
          that.text = res.data.intended.discount;
        })
        .catch(function (err) {
          console.log(err);
        });
    },
  }

}
</script>

<style scoped>
@import "../../../style/usercenter.css";
.youhuiacttext {
  padding: 0.32rem;
  box-sizing: border-box;
  height: calc(100vh - 2rem);
  overflow-y: scroll;
  /* margin-bottom: 1.5rem; */
}
.youhuiacttext {
  margin-top: 0.8rem;
  color: #666e69;
  font-size: 0.3rem;
}
.youhuitextbox {
  /* position: fixed;
  bottom: 0;
  left: 0; */
  width: 100%;
  padding: 0.18rem 0.32rem;
  box-sizing: border-box;
  background: #fff;
  z-index:999
}
</style>