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
<template>
<div class="entryDetails">
<div class="logo-bg">
<img v-if="settitle && settitle.topLogo" :src="settitle.topLogo" alt="">
</div>
<div class="main-con">
<img src="../../../public/images/4.png" alt="">
</div>
<div class="confirm-btn">
<p>
<el-button type="primary" round style="padding: 8px 30px;" @click="nextStep">
立即入驻 <i class="el-icon-right"></i>
</el-button>
</p>
</div>
</div>
</template>
<script>
import {indexInfo, companyCounsel, webSite, getdomain, getallCloudList} from '@/api/webSite'
export default {
name: "Index",
data() {
return {
channel_id: 0,
settitle: {
bottomCopyright: "",
businessHours: 1,
companyAddress: "",
contactTel: "",
custServiceQrcode: "",
hotlineTel1: "",
hotlineTel2: "",
onlineTimeEnd: "18:00",
onlineTimeStart: "09:00",
recordNum: "",
topLogo: "",
},
}
},
created() {
// this.getIndexInfo();
},
mounted() {
//this.nextStep();
},
methods: {
/** 获取 channel_id */
getIndexInfo() {
let op = 'open'
let ssa = window.location.host
const data = {
type: 2,
site_type: 4,
// domain: ssa,
}
indexInfo(data).then(res => {
if (res.code == 1) {
this.channel_id = res.data.channel.id
this.settitle.topLogo = res.data.channel_site[0].logo
// this.getWebSite()
}
})
},
/** 获取通用设置 */
getWebSite() {
let params = {
domain: window.location.host,
type: 2,
site_type: 4
}
webSite(params).then(res => {
if (res.code == 1) {
// if (res.data.universal_lst && res.data.universal_lst != 'null') {
// this.settitle = res.data.universal_lst
// }
this.settitle.topLogo = res.data.channel_site[0].logo
}
})
},
nextStep() {
this.$router.push("/fillMainInf");
},
}
}
</script>
<style lang="scss" type="text/stylus" scoped>
.entryDetails {
font-size : 16px;
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
}
.logo-bg {
height: 60px;
background: #1890ff;
img {
height: 44px;
margin: 8px 0 8px 20px;
}
}
.main-con {
width: 70%;
//height : 100%;
margin: 30px auto 0;
img {
width: 100%;
height: calc(100% + 220px);
margin: 0 0;
}
}
.confirm-btn {
height: 100px;
width: 50%;
margin: 30px auto 0;
//position: absolute;
p {
text-align : center;
}
p:nth-child(2) {
color: red;
font-size: 10px;
}
}
</style>