|
@@ -1,41 +1,42 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="page_home">
|
3
|
|
- <!-- <iframe :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
|
|
3
|
+ <!-- <iframe :src = this.customUrl width="100%" height="100%" marginwidth="0" frameborder="no" scrolling="no"></iframe> -->
|
|
4
|
+ <div>
|
4
|
5
|
<div v-for="item in this.ordmodel" :key="item.id">
|
5
|
|
- <div class="focusImg" v-if="item.mode_type == 1">
|
6
|
|
- <div class="swiper-container">
|
7
|
|
- <div class="swiper-wrapper">
|
8
|
|
- <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
|
9
|
|
- <img class="imgtwo" :src="it.images" />
|
|
6
|
+ <div class="focusImg" v-if="item.mode_type == 1">
|
|
7
|
+ <div class="swiper-container">
|
|
8
|
+ <div class="swiper-wrapper">
|
|
9
|
+ <div class="swiper-slide" v-for="it in item.Conrotation" :key="it.id">
|
|
10
|
+ <img class="imgtwo" :src="it.images" />
|
|
11
|
+ </div>
|
10
|
12
|
</div>
|
|
13
|
+ <!-- 如果需要分页器 -->
|
|
14
|
+ <div class="swiper-pagination"></div>
|
11
|
15
|
</div>
|
12
|
|
- <!-- 如果需要分页器 -->
|
13
|
|
- <div class="swiper-pagination"></div>
|
14
|
16
|
</div>
|
15
|
|
- </div>
|
16
|
|
- <!-- <div class="detail"> -->
|
17
|
|
- <div class="row one detail" v-if="item.mode_type == 2">
|
18
|
|
- <p class="title">{{item.title}}:</p>
|
19
|
|
- <p class="msg">{{item.Hosaddress.address}}</p>
|
20
|
|
- </div>
|
21
|
|
- <div class="row" v-if="item.mode_type == 3">
|
22
|
|
- <div v-for="it in Connectways" :key="it.id">
|
23
|
|
- <p class="title">{{it.title}}:</p>
|
24
|
|
- <p class="msg">{{it.content}}</p>
|
25
|
|
- <br />
|
|
17
|
+ <!-- <div class="detail"> -->
|
|
18
|
+ <div class="row one detail" v-if="item.mode_type == 2">
|
|
19
|
+ <p class="title">{{item.title}}:</p>
|
|
20
|
+ <p class="msg">{{item.Hosaddress.address}}</p>
|
|
21
|
+ </div>
|
|
22
|
+ <div class="row" v-if="item.mode_type == 3">
|
|
23
|
+ <div v-for="it in Connectways" :key="it.id">
|
|
24
|
+ <p class="title">{{it.title}}:</p>
|
|
25
|
+ <p class="msg">{{it.content}}</p>
|
|
26
|
+ <br />
|
|
27
|
+ </div>
|
|
28
|
+ </div>
|
|
29
|
+ <div class="row" v-if="item.mode_type == 4">
|
|
30
|
+ <p class="title">{{item.title}}:</p>
|
|
31
|
+ <p class="msg">{{item.Worktime.worktime}}</p>
|
|
32
|
+ </div>
|
|
33
|
+ <div class="row one" v-if="item.mode_type == 5">
|
|
34
|
+ <p class="title">{{item.title}}:</p>
|
|
35
|
+ <p class="msg">{{item.Rideway.ride_way}}</p>
|
26
|
36
|
</div>
|
27
|
|
- </div>
|
28
|
|
- <div class="row" v-if="item.mode_type == 4">
|
29
|
|
- <p class="title">{{item.title}}:</p>
|
30
|
|
- <p class="msg">{{item.Worktime.worktime}}</p>
|
31
|
|
- </div>
|
32
|
|
- <div class="row one" v-if="item.mode_type == 5">
|
33
|
|
- <p class="title">{{item.title}}:</p>
|
34
|
|
- <p class="msg">{{item.Rideway.ride_way}}</p>
|
35
|
37
|
</div>
|
36
|
38
|
</div>
|
37
|
39
|
|
38
|
|
-
|
39
|
40
|
<!-- tab切换 -->
|
40
|
41
|
<div class="tabs">
|
41
|
42
|
<ul class="tabList">
|
|
@@ -43,7 +44,8 @@
|
43
|
44
|
class="tabOne"
|
44
|
45
|
v-for="item in this.navigationdata"
|
45
|
46
|
:key="item.id"
|
46
|
|
- @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)">
|
|
47
|
+ @click="CallPhone(item.linktype,item.navaddress,item.user_org_id)"
|
|
48
|
+ >
|
47
|
49
|
<img :src="item.nonavimages" alt />
|
48
|
50
|
<span>{{item.navtitle}}</span>
|
49
|
51
|
</li>
|
|
@@ -55,32 +57,36 @@
|
55
|
57
|
<script>
|
56
|
58
|
import Swiper from "swiper";
|
57
|
59
|
import Vue from "vue";
|
58
|
|
-import { Swipe, SwipeItem} from "mint-ui";
|
|
60
|
+import { Swipe, SwipeItem } from "mint-ui";
|
59
|
61
|
import "mint-ui/lib/style.css";
|
60
|
|
-import { getDefalutNavigationData,getOrderModel, getAllConnecWay } from "@/api/micro/micro";
|
|
62
|
+import {
|
|
63
|
+ getDefalutNavigationData,
|
|
64
|
+ getOrderModel,
|
|
65
|
+ getAllConnecWay
|
|
66
|
+} from "@/api/micro/micro";
|
61
|
67
|
export default {
|
62
|
68
|
data() {
|
63
|
69
|
return {
|
64
|
70
|
navigationdata: [],
|
65
|
|
- ordmodel: [],
|
66
|
|
- Connectways: [],
|
|
71
|
+ ordmodel: [],
|
|
72
|
+ Connectways: []
|
67
|
73
|
};
|
68
|
74
|
},
|
69
|
75
|
methods: {
|
70
|
|
- getDefalutNavigationData(orgid) {
|
|
76
|
+ getDefalutNavigationData(orgid) {
|
71
|
77
|
getDefalutNavigationData(orgid).then(response => {
|
72
|
78
|
if (response.data.state == 1) {
|
73
|
79
|
var navigation = response.data.data.navigation;
|
74
|
80
|
for (let index = 0; index < navigation.length; index++) {
|
75
|
|
- navigation[1].nonavimages = "https://images.shengws.com/2124_o_1571990749565.png";
|
76
|
|
-
|
|
81
|
+ navigation[1].nonavimages =
|
|
82
|
+ "https://images.shengws.com/2124_o_1571990749565.png";
|
77
|
83
|
}
|
78
|
84
|
console.log("navigation是什么", navigation);
|
79
|
85
|
this.navigationdata = navigation;
|
80
|
86
|
}
|
81
|
87
|
});
|
82
|
88
|
},
|
83
|
|
- initSwiper() {
|
|
89
|
+ initSwiper() {
|
84
|
90
|
var mySwiper1 = new Swiper(".swiper-container", {
|
85
|
91
|
loop: true, // 循环模式选项
|
86
|
92
|
pagination: {
|
|
@@ -109,17 +115,17 @@ export default {
|
109
|
115
|
}
|
110
|
116
|
});
|
111
|
117
|
},
|
112
|
|
- CallPhone(linktype, address,orgid) {
|
113
|
|
- console.log("orgid是什么啊",orgid)
|
114
|
|
- console.log("linktype",linktype)
|
115
|
|
- if(linktype == "1"){
|
116
|
|
- this.$router.push({
|
117
|
|
- path:"/microHome",
|
118
|
|
- query:{
|
119
|
|
- orgid:orgid,
|
120
|
|
- }
|
121
|
|
- })
|
122
|
|
- }
|
|
118
|
+ CallPhone(linktype, address, orgid) {
|
|
119
|
+ console.log("orgid是什么啊", orgid);
|
|
120
|
+ console.log("linktype", linktype);
|
|
121
|
+ if (linktype == "1") {
|
|
122
|
+ this.$router.push({
|
|
123
|
+ path: "/microHome",
|
|
124
|
+ query: {
|
|
125
|
+ orgid: orgid
|
|
126
|
+ }
|
|
127
|
+ });
|
|
128
|
+ }
|
123
|
129
|
if (linktype == "2") {
|
124
|
130
|
// window.location.href = address;
|
125
|
131
|
this.$router.push({
|
|
@@ -127,7 +133,7 @@ export default {
|
127
|
133
|
query: {
|
128
|
134
|
orgid: orgid
|
129
|
135
|
}
|
130
|
|
- });
|
|
136
|
+ });
|
131
|
137
|
}
|
132
|
138
|
if (linktype == "3") {
|
133
|
139
|
window.location.href = "tel://" + address + "";
|
|
@@ -135,27 +141,27 @@ export default {
|
135
|
141
|
if (linktype == "4") {
|
136
|
142
|
// window.location.href = address;
|
137
|
143
|
this.$router.push({
|
138
|
|
- path:"/custom",
|
139
|
|
- query:{
|
140
|
|
- orgid:orgid
|
|
144
|
+ path: "/custom",
|
|
145
|
+ query: {
|
|
146
|
+ orgid: orgid
|
141
|
147
|
}
|
142
|
|
- })
|
|
148
|
+ });
|
143
|
149
|
}
|
144
|
|
- },
|
|
150
|
+ }
|
145
|
151
|
},
|
146
|
|
- created(){
|
|
152
|
+ created() {
|
147
|
153
|
const orgid = this.$route.query.orgid;
|
148
|
|
- console.log("我的", orgid);
|
149
|
|
- this.url = orgid;
|
|
154
|
+ console.log("我的", orgid);
|
|
155
|
+ this.url = orgid;
|
150
|
156
|
this.getDefalutNavigationData(orgid);
|
151
|
|
- this.getOrderModel(orgid);
|
152
|
|
- this.getAllConnecWay(orgid);
|
|
157
|
+ this.getOrderModel(orgid);
|
|
158
|
+ this.getAllConnecWay(orgid);
|
153
|
159
|
this.initSwiper();
|
154
|
160
|
},
|
155
|
|
-updated() {
|
|
161
|
+ updated() {
|
156
|
162
|
this.initSwiper();
|
157
|
163
|
}
|
158
|
|
- };
|
|
164
|
+};
|
159
|
165
|
</script>
|
160
|
166
|
|
161
|
167
|
<style lang="scss" scoped>
|
|
@@ -166,6 +172,7 @@ updated() {
|
166
|
172
|
display: flex;
|
167
|
173
|
flex-direction: column;
|
168
|
174
|
height: 100%;
|
|
175
|
+ overflow-y: auto;
|
169
|
176
|
> div:first-child {
|
170
|
177
|
flex: 1;
|
171
|
178
|
overflow: auto;
|
|
@@ -179,7 +186,6 @@ updated() {
|
179
|
186
|
// border: solid 1px red;
|
180
|
187
|
// }
|
181
|
188
|
|
182
|
|
-
|
183
|
189
|
.tabs {
|
184
|
190
|
@include border-top;
|
185
|
191
|
width: 100%;
|
|
@@ -211,9 +217,9 @@ updated() {
|
211
|
217
|
.page_home {
|
212
|
218
|
overflow: hidden;
|
213
|
219
|
height: 100%;
|
214
|
|
- > div:nth-of-type(2) {
|
215
|
|
- min-height: 5.125rem;
|
216
|
|
- }
|
|
220
|
+ // > div:nth-of-type(2) {
|
|
221
|
+ // min-height: 5.125rem;
|
|
222
|
+ // }
|
217
|
223
|
.focusImg {
|
218
|
224
|
width: 23.4375rem;
|
219
|
225
|
height: 11.5625rem;
|