Authored by 李奇

fixed:返回滑块显示控制

@@ -40,7 +40,7 @@ exports.devServer = (app, cb) => { @@ -40,7 +40,7 @@ exports.devServer = (app, cb) => {
40 }; 40 };
41 41
42 clientConfig.entry.app = ['./build/client-hot.js', clientConfig.entry.app]; 42 clientConfig.entry.app = ['./build/client-hot.js', clientConfig.entry.app];
43 - clientConfig.output.publicPath = 'http://localhost:6005/'; 43 + clientConfig.output.publicPath = 'http://m.yohoblk.com:6005/';
44 clientConfig.output.filename = '[name].js'; 44 clientConfig.output.filename = '[name].js';
45 clientConfig.plugins.push( 45 clientConfig.plugins.push(
46 new webpack.HotModuleReplacementPlugin(), 46 new webpack.HotModuleReplacementPlugin(),
@@ -8,14 +8,14 @@ @@ -8,14 +8,14 @@
8 <span>{{slider.name}}</span> 8 <span>{{slider.name}}</span>
9 <i class="icon" :class="{'icon-up': subSwitch[index], 'icon-down': !subSwitch[index]}"></i> 9 <i class="icon" :class="{'icon-up': subSwitch[index], 'icon-down': !subSwitch[index]}"></i>
10 </div> 10 </div>
11 - <div v-else class="item title"> 11 + <div v-else class="item title" @click="close">
12 <a-link :href="slider.url"> 12 <a-link :href="slider.url">
13 <span>{{slider.name}}</span> 13 <span>{{slider.name}}</span>
14 <i class="icon icon-up trans-right"></i> 14 <i class="icon icon-up trans-right"></i>
15 </a-link> 15 </a-link>
16 </div> 16 </div>
17 <div class="childs" v-show="slider.secList.length && subSwitch[index]"> 17 <div class="childs" v-show="slider.secList.length && subSwitch[index]">
18 - <div class="item" v-for="item in slider.secList" :key="item.name"> 18 + <div class="item" v-for="item in slider.secList" :key="item.name" @click="close">
19 <a-link :href="item.url">{{item.name}}</a-link> 19 <a-link :href="item.url">{{item.name}}</a-link>
20 </div> 20 </div>
21 </div> 21 </div>
@@ -53,6 +53,11 @@ export default { @@ -53,6 +53,11 @@ export default {
53 }); 53 });
54 } 54 }
55 }, 55 },
  56 + watch: {
  57 + value(val) {
  58 + this.$yoho && this.$yoho.blkBackStatus(val);
  59 + }
  60 + },
56 created() { 61 created() {
57 for (let i = 0; i < this.sliders.length; i++) { 62 for (let i = 0; i < this.sliders.length; i++) {
58 this.subSwitch.push(false); 63 this.subSwitch.push(false);
@@ -66,6 +66,15 @@ export default { @@ -66,6 +66,15 @@ export default {
66 this.$refs.scroller.stop(); 66 this.$refs.scroller.stop();
67 } 67 }
68 }, 68 },
  69 + beforeRouteEnter (to, from, next) {
  70 + next(vm => {
  71 + vm.$yoho && vm.$yoho.blkBackStatus(false);
  72 + });
  73 + },
  74 + beforeRouteLeave (to, from, next) {
  75 + this.$yoho && this.$yoho.blkBackStatus(false);
  76 + next();
  77 + },
69 components: { 78 components: {
70 twoPicture: ResourceTwoImage, 79 twoPicture: ResourceTwoImage,
71 tfGoodsList: ResourceTfGoodsList, 80 tfGoodsList: ResourceTfGoodsList,