Authored by 郭成尧

'非店铺的标题'

... ... @@ -76,9 +76,10 @@
this.shareData = {
title: result.brandName,
des: shareSubTitle,
url: '/product/shop/share?domain=' + this.domain,
url: '/product/shop/share?domain=' + locationQuery.domain,
img: result.brandBg,
isBlkShop: result.isBlkShop,
domain: locationQuery.domain,
shopId: result.shopId, // 不是分享的参数,收藏店铺使用
isFav: result.isFav // 不是分享的参数,收藏店铺使用
};
... ... @@ -104,8 +105,7 @@
$.post(this.url, Object.assign({
order: this.sort,
page: this.page
}, this.filter, locationQuery))
.done(result => {
}, this.filter, locationQuery)).done(result => {
this.productList = result.data.productList;
this.filterConfig = result.data.filter;
}).fail(error => {
... ...
<template>
<div class="top-box clearfix" v-bind:class='{"top-box-left" : this.$parent.$refs.filter.isVisible,"top-change" : topChange || !this.shareData.isBlkShop}' v-infinite-scroll="changeTopStatus()">
<div class="top-box clearfix" v-bind:class='{"top-box-left" : this.$parent.$refs.filter.isVisible,"top-change" : topChange || !shareData.isBlkShop}' v-infinite-scroll="changeTopStatus()">
<span class="icon icon-back back" @click="goBack()"></span>
<span v-if="!shareData.isBlkShop">{{shareData.domain}}</span>
<div class="right">
<span v-if="shareData.isBlkShop" v-show="shareData.isFav" class="icon" @click="collectShop()">&#xe60d;</span>
<span v-if="shareData.isBlkShop" v-show="!shareData.isFav" class="icon" @click="collectShop()">&#xe60c;</span>
... ... @@ -21,6 +22,7 @@
z-index: 99;
color: #fff;
font-size: 48px;
text-align: center;
.back {
width: 60px;
... ... @@ -112,6 +114,9 @@
this.topChange = false;
}
}
},
created() {
this.domain = this.shareData.domain;
}
};
</script>
... ...