joinus.vue
1.8 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
<template>
<div class="containerbox">
<div class="flextwo sharetopk" @click="back">
<div class="leftrow leftrowkimg">
<img src="../../../assets/leftrow.png" alt />
</div>
<div class="sharemiddle">加入我们</div>
<div class="sharebtn">
<!-- <img src="../../../assets/sharebtn.png" alt /> -->
</div>
</div>
<div class="jointext" v-html="cpmpany"></div>
<!-- <div class="joinimg">
<img src="../../../assets/main_bg@2x.png" alt />
</div>-->
<div class="suciabot">
<div class="sucaibtn" @click="joinus">加入我们</div>
</div>
</div>
</template>
<script>
import { Toast } from 'vant';
export default {
data() {
return {
cpmpany: ''
}
},
created() {
document.title = '唐元集'
this.aboutus()
},
methods: {
back() {
this.$router.go(-1)
},
aboutus() {
let that = this;
var url = "/api/common/contact";
let param = {
};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res);
that.cpmpany = res.data.contact
})
.catch(function (err) {
console.log(err);
});
},
joinus() {
this.$router.push({
path: "/applayjoin",
// query: { testId: item.test_student_id }
});
// let that = this;
// var url = "/api/common/contact";
// let param = {
// };
// that.$axios
// .post(url, param)
// .then(function (res) {
// console.log(res);
// Toast("加入成功")
// that.$router.go(-1)
// })
// .catch(function (err) {
// console.log(err);
// });
}
}
}
</script>
<style scoped>
@import "../../../style/usercenter.css";
</style>