jianzhonganli.vue
4.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<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="jianzhongimg">
<img src="../../../assets/fenxi.png" alt />
</div>-->
<div class="jianzhongbox">
<div class="comtexttop flexthree fuwutop">
<div class="textleft flexone">
<div class="textleftheng"></div>
<div class="textyuan"></div>
</div>
<div class="textname">{{intended.weight_title}}</div>
<div class="textleft flexone">
<div class="textkyuan"></div>
<div class="textrightheng"></div>
</div>
</div>
<div class="nameimg">
<div class="fenxitext">
<div style="background:#fff;padding:0.32rem;box-sizing:border-box;margin-top:0.3rem">
<div class="dear">亲爱的{{ result.name }}:</div>
<div style="text-indent:0.56rem">根据您的资料,唐元集营养师给出如下专属分析及结论</div>
<div class="dearbox">
<!-- {{ fatname }}是因为 -->
<div v-html="fatcontent"></div>
</div>
<div class="bianmeiitemname" v-html="intended.weight_image"></div>
</div>
</div>
<div class="comtexttop flexthree fuwutop">
<div class="textleft flexone">
<div class="textleftheng"></div>
<div class="textyuan"></div>
</div>
<div class="textname">{{intended.service_title}}</div>
<div class="textleft flexone">
<div class="textkyuan"></div>
<div class="textrightheng"></div>
</div>
</div>
<div class="servicename" v-html="intended.service_plan"></div>
<div class="xiaolist flexthree" style="padding-bottom:0.8rem">
<img src="../../../assets/xiao.png" alt class="lian" />
<div class="clicknext" style="margin-top:0">点击下一页有专属优惠哦</div>
</div>
</div>
</div>
<div class="flextwo bntbot">
<div class="shibotleft" @click="pre">上一页</div>
<div class="shibotright" @click="chou">下一页</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
result: "",
subid: "",
assistanceimg: "",
fatname: "",
fatcontent: "",
intended: ''
};
},
created() {
document.querySelector("#app").style.overflow = "scroll";
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);
},
chou() {
this.$router.push({
path: "/youhuitext",
query: {
subid: this.subid
}
});
},
pre() {
this.$router.go(-1);
},
getresult() {
let that = this;
var url = "/api/user/assistance_result";
let param = {
assistance_id: that.subid
};
that.$axios
.post(url, param)
.then(function (res) {
that.result = res.data.result;
console.log(that.result);
that.assistanceimg = res.data.result.assistance.image;
that.fatname = res.data.result.fat_res.name;
that.fatcontent = res.data.result.fat_res.content;
})
.catch(function (err) {
console.log(err);
});
},
getjianzhong() {
let that = this;
var url = "/api/user/authorize";
let param = {
redirect_uri: urlk
};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res);
})
.catch(function (err) {
console.log(err);
});
}
}
};
</script>
<style scoped>
@import "../../../style/usercenter.css";
.dear {
color: #333;
font-weight: bold;
}
.dearbox {
display: flex;
flex-wrap: wrap;
}
.anlibox {
padding: 0.32rem;
box-sizing: border-box;
}
.bntbot {
padding: 0.18rem 0.32rem;
box-sizing: border-box;
width: 100%;
background: #fff;
position: fixed;
bottom: 0;
left: 0;
}
.servicename {
color: #2e2e30;
font-size: 0.28rem;
margin-top: 0.32rem;
}
.comtexttop {
margin-top: 0.32rem;
}
</style>