|
|
<template>
|
|
|
<cheader :title="title" :class="{ghost: shareData.isBlkShop}" :fixed="shareData.isBlkShop" v-ref:header>
|
|
|
<template slot="right">
|
|
|
<template slot="right" v-on:scroll="">
|
|
|
<span v-if="shareData.isBlkShop" v-show="shareData.isFav" class="icon" @click="collectShop()"></span>
|
|
|
<span v-if="shareData.isBlkShop" v-show="!shareData.isFav" class="icon" @click="collectShop()"></span>
|
|
|
<span v-if="shareData.isBlkShop" class="icon" @click="goShare()"></span>
|
...
|
...
|
@@ -53,10 +53,11 @@ |
|
|
// 删除两个多余的参数,两个参数是收藏时使用的
|
|
|
delete this.shareData.shopId;
|
|
|
delete this.shareData.isFav;
|
|
|
yoho.goShare(this.shareData, function() {}, function() {});
|
|
|
yoho.goShare(this.shareData);
|
|
|
},
|
|
|
|
|
|
goBack() {
|
|
|
yoho.goBack({}, function() {}, function() {});
|
|
|
yoho.goBack();
|
|
|
},
|
|
|
|
|
|
/* 收藏或者取消收藏店铺 */
|
...
|
...
|
@@ -85,9 +86,9 @@ |
|
|
},
|
|
|
changeTopStatus() {
|
|
|
let topChange = true;
|
|
|
let topHeight = document.body.scrollTop;
|
|
|
let topHeight = $('.brand-top-box').offset().top;
|
|
|
|
|
|
if (topHeight > 100) {
|
|
|
if (topHeight < -200) {
|
|
|
topChange = false;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -98,7 +99,7 @@ |
|
|
this.domain = this.shareData.domain;
|
|
|
|
|
|
if (this.shareData.isBlkShop) {
|
|
|
window.onscroll = this.changeTopStatus;
|
|
|
$('body').on('scroll', this.changeTopStatus);
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
|