menkanactivity.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
<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="xianshihui">
<!-- <img src="../../../assets/zizhi.png" alt /> -->
<div class="xianshitext" v-html="agent"></div>
</div>
<div class="clicknext">点击下一页识别二维码回到唐元集公众号>> >></div>
<div class="flextwo shiyebotk" style="margin-top:0.32rem">
<div class="shibotleft" @click="prepage">上一页</div>
<div class="shibotright" @click="nextpage">下一页</div>
</div>
<!-- <div class="nextpage" @click="prepage">上一页</div> -->
</div>
</div>
</template>
<script>
export default {
data() {
return {
subid: "",
agent: ""
};
},
created() {
document.title = "唐元集";
this.subid = this.$route.query.subid;
this.getyouhui();
},
methods: {
back() {
this.$router.go(-1);
},
getyouhui() {
let that = this;
var url = "/api/common/agent";
let param = {};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res);
that.agent = res.data.agent;
})
.catch(function (err) {
console.log(err);
});
},
prepage() {
this.$router.go(-1);
},
// 下一页
nextpage() {
this.$router.push({
path: "/finish"
});
}
}
};
</script>
<style scoped>
@import "../../../style/usercenter.css";
.containerk {
padding: 0.32rem;
box-sizing: border-box;
margin-top: 0.5rem;
}
.zuixin {
background: #759875;
}
.newacty {
color: #fff;
}
</style>