youhuitext.vue
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<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>