feat:小程序首页分享
This commit is contained in:
+16
-1
@@ -62,7 +62,8 @@
|
|||||||
<!-- <up-loading-icon :show="productLoading"></up-loading-icon> -->
|
<!-- <up-loading-icon :show="productLoading"></up-loading-icon> -->
|
||||||
<view class="yp_item" v-for="item in faddishProduct" :key="item.id" @click.stop="jumpInfo(item)">
|
<view class="yp_item" v-for="item in faddishProduct" :key="item.id" @click.stop="jumpInfo(item)">
|
||||||
<view class="yp_item_image_wrapper">
|
<view class="yp_item_image_wrapper">
|
||||||
<image :src="item.url" mode="aspectFill" lazy-load class="yp_item_image" shape="square" radius="15"></image>
|
<image :src="item.url" mode="aspectFill" lazy-load class="yp_item_image" shape="square" radius="15">
|
||||||
|
</image>
|
||||||
<!-- <up-image :src="item.url" width="100%" height="88" bgColor="#f1f6ff00" shape="square"
|
<!-- <up-image :src="item.url" width="100%" height="88" bgColor="#f1f6ff00" shape="square"
|
||||||
radius="15"></up-image> -->
|
radius="15"></up-image> -->
|
||||||
</view>
|
</view>
|
||||||
@@ -327,6 +328,20 @@ export default {
|
|||||||
this.initMPHeader();
|
this.initMPHeader();
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
// 分享给朋友
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
title: "TB聚合商城",
|
||||||
|
path: "/pages/home/home",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
return {
|
||||||
|
title: "TB聚合商城",
|
||||||
|
query: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
mounted() { },
|
mounted() { },
|
||||||
methods: {
|
methods: {
|
||||||
initMPHeader() {
|
initMPHeader() {
|
||||||
|
|||||||
Reference in New Issue
Block a user