|
|
@@ -28,7 +28,7 @@
|
|
|
fit="cover"
|
|
|
>
|
|
|
</van-image>
|
|
|
- <div class="name">光之城-卡牌</div>
|
|
|
+ <div class="name">{{ storeInfo.storeName }}</div>
|
|
|
<div class="location">
|
|
|
<img src="/native/svgs/icon_kapai_dizhi.svg" alt="" />
|
|
|
<span>浙江 杭州</span>
|
|
|
@@ -57,13 +57,13 @@
|
|
|
</van-sticky>
|
|
|
<div class="list-content">
|
|
|
<div class="procuct" v-for="(item, index) in list" :key="index">
|
|
|
- <product-info :info="item"></product-info>
|
|
|
+ <product-info-mine :info="item"></product-info-mine>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="bottom">
|
|
|
- <button-bg type="warning">分享店铺</button-bg>
|
|
|
+ <button-bg type="warning" openType="share">分享店铺 </button-bg>
|
|
|
<button-bg type="prim" isRight>管理商品</button-bg>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -73,10 +73,10 @@
|
|
|
import { mapState } from 'vuex';
|
|
|
import ButtonBg from '../../components/ButtonBg.vue';
|
|
|
import NavHeader from '../../components/NavHeader.vue';
|
|
|
-import ProductInfo from '../../components/ProductInfo.vue';
|
|
|
+import ProductInfoMine from '../../components/ProductInfoMine.vue';
|
|
|
import SortItem from '../../components/SortItem.vue';
|
|
|
export default {
|
|
|
- components: { ButtonBg, SortItem, ProductInfo, NavHeader },
|
|
|
+ components: { ButtonBg, SortItem, NavHeader, ProductInfoMine },
|
|
|
data() {
|
|
|
return {
|
|
|
option1: [{ text: '全部商品', value: 0 }, { text: '新款商品', value: 1 }, { text: '活动商品', value: 2 }],
|
|
|
@@ -92,16 +92,20 @@ export default {
|
|
|
loading: false,
|
|
|
list: [],
|
|
|
empty: false,
|
|
|
- finish: false
|
|
|
+ finish: false,
|
|
|
+ storeInfo: {}
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(['systemInfo'])
|
|
|
+ ...mapState(['systemInfo', 'userStoreInfo'])
|
|
|
},
|
|
|
methods: {
|
|
|
loginMethods() {
|
|
|
this.loading = true;
|
|
|
this.getData();
|
|
|
+ this.$store.dispatch('getUserStore').then(res => {
|
|
|
+ this.storeInfo = res;
|
|
|
+ });
|
|
|
},
|
|
|
getData() {
|
|
|
let data = {
|
|
|
@@ -118,7 +122,13 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- onPageScroll() {}
|
|
|
+ onPageScroll() {},
|
|
|
+ onShareAppMessage() {
|
|
|
+ return {
|
|
|
+ title: '卓卡——' + this.storeInfo.storeName,
|
|
|
+ path: '/pages/store/homePage?id=' + this.storeInfo.id
|
|
|
+ };
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|