Authored by 李奇

fixed:返回滑块显示控制

... ... @@ -40,7 +40,7 @@ exports.devServer = (app, cb) => {
};
clientConfig.entry.app = ['./build/client-hot.js', clientConfig.entry.app];
clientConfig.output.publicPath = 'http://localhost:6005/';
clientConfig.output.publicPath = 'http://m.yohoblk.com:6005/';
clientConfig.output.filename = '[name].js';
clientConfig.plugins.push(
new webpack.HotModuleReplacementPlugin(),
... ...
... ... @@ -8,14 +8,14 @@
<span>{{slider.name}}</span>
<i class="icon" :class="{'icon-up': subSwitch[index], 'icon-down': !subSwitch[index]}"></i>
</div>
<div v-else class="item title">
<div v-else class="item title" @click="close">
<a-link :href="slider.url">
<span>{{slider.name}}</span>
<i class="icon icon-up trans-right"></i>
</a-link>
</div>
<div class="childs" v-show="slider.secList.length && subSwitch[index]">
<div class="item" v-for="item in slider.secList" :key="item.name">
<div class="item" v-for="item in slider.secList" :key="item.name" @click="close">
<a-link :href="item.url">{{item.name}}</a-link>
</div>
</div>
... ... @@ -53,6 +53,11 @@ export default {
});
}
},
watch: {
value(val) {
this.$yoho && this.$yoho.blkBackStatus(val);
}
},
created() {
for (let i = 0; i < this.sliders.length; i++) {
this.subSwitch.push(false);
... ...
... ... @@ -66,6 +66,15 @@ export default {
this.$refs.scroller.stop();
}
},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.$yoho && vm.$yoho.blkBackStatus(false);
});
},
beforeRouteLeave (to, from, next) {
this.$yoho && this.$yoho.blkBackStatus(false);
next();
},
components: {
twoPicture: ResourceTwoImage,
tfGoodsList: ResourceTfGoodsList,
... ...