dailistory.vue
3.5 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<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>