Merge remote-tracking branch 'origin/feature/codebetter' into release/5.4.1
Showing
3 changed files
with
14 additions
and
31 deletions
public/vue/common/header.vue
deleted
100644 → 0
1 | -<template> | ||
2 | - <header class="yoho-header"> | ||
3 | - <a :href="headerBack" class="iconfont nav-back"></a> | ||
4 | - <span v-if="showBtn" class="iconfont nav-home"></span> | ||
5 | - <p class="nav-title">{{headerText}}</p> | ||
6 | - </header> | ||
7 | -</template> | ||
8 | - | ||
9 | -<script> | ||
10 | - module.exports = { | ||
11 | - props: { | ||
12 | - headerBack: String, | ||
13 | - headerText: String, | ||
14 | - showBtn: Boolean | ||
15 | - }, | ||
16 | - data() { | ||
17 | - return {}; | ||
18 | - } | ||
19 | - }; | ||
20 | -</script> |
@@ -13,22 +13,22 @@ | @@ -13,22 +13,22 @@ | ||
13 | <ul v-if="province.showList" class="address-ul"> | 13 | <ul v-if="province.showList" class="address-ul"> |
14 | <li v-for="pprovince in provinces" | 14 | <li v-for="pprovince in provinces" |
15 | @click="switchAddress(pprovince.id, pprovince.caption)">{{pprovince.caption}} | 15 | @click="switchAddress(pprovince.id, pprovince.caption)">{{pprovince.caption}} |
16 | - <span v-if="pprovince.id === province.id" class="iconfont icon-V"></span></li> | 16 | + <span v-if="pprovince.id === province.id" class="iconfont icon-v"></span></li> |
17 | </ul> | 17 | </ul> |
18 | <ul v-if="city.showList" class="address-ul"> | 18 | <ul v-if="city.showList" class="address-ul"> |
19 | <li v-for="pcity in citys" | 19 | <li v-for="pcity in citys" |
20 | @click="switchAddress(pcity.id, pcity.caption)">{{pcity.caption}} | 20 | @click="switchAddress(pcity.id, pcity.caption)">{{pcity.caption}} |
21 | - <span v-if="pcity.id === city.id" class="iconfont icon-V"></span></li> | 21 | + <span v-if="pcity.id === city.id" class="iconfont icon-v"></span></li> |
22 | </ul> | 22 | </ul> |
23 | <ul v-if="area.showList" class="address-ul"> | 23 | <ul v-if="area.showList" class="address-ul"> |
24 | <li v-for="parea in areas" | 24 | <li v-for="parea in areas" |
25 | @click="switchAddress(parea.id, parea.caption)">{{parea.caption}} | 25 | @click="switchAddress(parea.id, parea.caption)">{{parea.caption}} |
26 | - <span v-if="parea.id === area.id" class="iconfont icon-V"></span></li> | 26 | + <span v-if="parea.id === area.id" class="iconfont icon-v"></span></li> |
27 | </ul> | 27 | </ul> |
28 | <ul v-if="street.showList" class="address-ul"> | 28 | <ul v-if="street.showList" class="address-ul"> |
29 | <li v-for="pstreet in streets" | 29 | <li v-for="pstreet in streets" |
30 | @click="switchAddress(pstreet.id, pstreet.caption, true)">{{pstreet.caption}} | 30 | @click="switchAddress(pstreet.id, pstreet.caption, true)">{{pstreet.caption}} |
31 | - <span v-if="pstreet.id === street.id" class="iconfont icon-V"></span></li> | 31 | + <span v-if="pstreet.id === street.id" class="iconfont icon-v"></span></li> |
32 | </ul> | 32 | </ul> |
33 | </div> | 33 | </div> |
34 | </div> | 34 | </div> |
@@ -36,7 +36,9 @@ | @@ -36,7 +36,9 @@ | ||
36 | </div> | 36 | </div> |
37 | </template> | 37 | </template> |
38 | <style> | 38 | <style> |
39 | -.icon-V:before { content: "\e6ea"; } | 39 | +.icon-v:before { |
40 | + content: "\e6ea"; | ||
41 | +} | ||
40 | 42 | ||
41 | .address-select-component { | 43 | .address-select-component { |
42 | position: fixed; | 44 | position: fixed; |
@@ -120,6 +122,8 @@ | @@ -120,6 +122,8 @@ | ||
120 | .address-content { | 122 | .address-content { |
121 | transform: translate(0, 0) translateZ(0); | 123 | transform: translate(0, 0) translateZ(0); |
122 | height: 620px; | 124 | height: 620px; |
125 | + } | ||
126 | + } | ||
123 | 127 | ||
124 | .address-ul { | 128 | .address-ul { |
125 | padding: 0; | 129 | padding: 0; |
@@ -155,8 +159,6 @@ | @@ -155,8 +159,6 @@ | ||
155 | } | 159 | } |
156 | } | 160 | } |
157 | } | 161 | } |
158 | - } | ||
159 | - } | ||
160 | } | 162 | } |
161 | </style> | 163 | </style> |
162 | <script> | 164 | <script> |
@@ -246,7 +248,8 @@ | @@ -246,7 +248,8 @@ | ||
246 | this.city.title = '请选择'; | 248 | this.city.title = '请选择'; |
247 | this.city.showList = this.province.titleActive = true; | 249 | this.city.showList = this.province.titleActive = true; |
248 | this.province.showList = this.area.showList = this.street.showList = false; | 250 | this.province.showList = this.area.showList = this.street.showList = false; |
249 | - this.common.titleActive = this.city.titleActive = this.area.titleActive = this.street.titleActive = false; | 251 | + this.common.titleActive = this.city.titleActive = |
252 | + this.area.titleActive = this.street.titleActive = false; | ||
250 | break; | 253 | break; |
251 | case 4: | 254 | case 4: |
252 | this.city.id = id; | 255 | this.city.id = id; |
@@ -376,7 +379,7 @@ | @@ -376,7 +379,7 @@ | ||
376 | this.street.title = ''; | 379 | this.street.title = ''; |
377 | break; | 380 | break; |
378 | default: | 381 | default: |
379 | - break | 382 | + break; |
380 | } | 383 | } |
381 | }, | 384 | }, |
382 | }, | 385 | }, |
-
Please register or login to post a comment