Showing
2 changed files
with
9 additions
and
4 deletions
@@ -76,9 +76,10 @@ | @@ -76,9 +76,10 @@ | ||
76 | this.shareData = { | 76 | this.shareData = { |
77 | title: result.brandName, | 77 | title: result.brandName, |
78 | des: shareSubTitle, | 78 | des: shareSubTitle, |
79 | - url: '/product/shop/share?domain=' + this.domain, | 79 | + url: '/product/shop/share?domain=' + locationQuery.domain, |
80 | img: result.brandBg, | 80 | img: result.brandBg, |
81 | isBlkShop: result.isBlkShop, | 81 | isBlkShop: result.isBlkShop, |
82 | + domain: locationQuery.domain, | ||
82 | shopId: result.shopId, // 不是分享的参数,收藏店铺使用 | 83 | shopId: result.shopId, // 不是分享的参数,收藏店铺使用 |
83 | isFav: result.isFav // 不是分享的参数,收藏店铺使用 | 84 | isFav: result.isFav // 不是分享的参数,收藏店铺使用 |
84 | }; | 85 | }; |
@@ -104,8 +105,7 @@ | @@ -104,8 +105,7 @@ | ||
104 | $.post(this.url, Object.assign({ | 105 | $.post(this.url, Object.assign({ |
105 | order: this.sort, | 106 | order: this.sort, |
106 | page: this.page | 107 | page: this.page |
107 | - }, this.filter, locationQuery)) | ||
108 | - .done(result => { | 108 | + }, this.filter, locationQuery)).done(result => { |
109 | this.productList = result.data.productList; | 109 | this.productList = result.data.productList; |
110 | this.filterConfig = result.data.filter; | 110 | this.filterConfig = result.data.filter; |
111 | }).fail(error => { | 111 | }).fail(error => { |
1 | <template> | 1 | <template> |
2 | - <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()"> | 2 | + <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()"> |
3 | <span class="icon icon-back back" @click="goBack()"></span> | 3 | <span class="icon icon-back back" @click="goBack()"></span> |
4 | + <span v-if="!shareData.isBlkShop">{{shareData.domain}}</span> | ||
4 | <div class="right"> | 5 | <div class="right"> |
5 | <span v-if="shareData.isBlkShop" v-show="shareData.isFav" class="icon" @click="collectShop()"></span> | 6 | <span v-if="shareData.isBlkShop" v-show="shareData.isFav" class="icon" @click="collectShop()"></span> |
6 | <span v-if="shareData.isBlkShop" v-show="!shareData.isFav" class="icon" @click="collectShop()"></span> | 7 | <span v-if="shareData.isBlkShop" v-show="!shareData.isFav" class="icon" @click="collectShop()"></span> |
@@ -21,6 +22,7 @@ | @@ -21,6 +22,7 @@ | ||
21 | z-index: 99; | 22 | z-index: 99; |
22 | color: #fff; | 23 | color: #fff; |
23 | font-size: 48px; | 24 | font-size: 48px; |
25 | + text-align: center; | ||
24 | 26 | ||
25 | .back { | 27 | .back { |
26 | width: 60px; | 28 | width: 60px; |
@@ -112,6 +114,9 @@ | @@ -112,6 +114,9 @@ | ||
112 | this.topChange = false; | 114 | this.topChange = false; |
113 | } | 115 | } |
114 | } | 116 | } |
117 | + }, | ||
118 | + created() { | ||
119 | + this.domain = this.shareData.domain; | ||
115 | } | 120 | } |
116 | }; | 121 | }; |
117 | </script> | 122 | </script> |
-
Please register or login to post a comment