Commit fa48c1c3 authored by 王炽's avatar 王炽

添加分享

parent e9685618
......@@ -20,7 +20,11 @@
</swiper>
<image @tap="backHandler" class="btnback" :src="$baseUrl+'searchpage/btnback.png'"></image>
<image class="search-icon" :src="$baseUrl + 'contentLibrary/1003/Seach.png'"></image>
<image
class="search-icon"
:src="$baseUrl + 'contentLibrary/1003/Seach.png'"
@click="handleSearchClick"
></image>
<!-- 专家来了 -->
<view class="list-area-container">
......@@ -243,6 +247,7 @@
import TabBarConLibrary from '@/components/TabBarConLibrary.vue';
import { jump, JumpType } from '@/utils/index.js';
import { fetchContentLibraryJSON } from '../../api/contentlibrary';
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
const { proxy } = getCurrentInstance();
const $baseUrl = proxy.$baseUrl;
......@@ -1175,6 +1180,20 @@
// });
const shareTitle = ref('7000万中国家庭都在看!科学育儿,全程陪伴,源于母爱。');
const shareImg = ref($baseUrl + `'contentLibrary/1003/shareicon.png'`);
onShareAppMessage = () => {
console.log('onShareAppMessage',options);
return {
title: shareTitle,
path: '/pages/library/ContentLibrary',
imageUrl: shareImg
}
}
const bannerList = ref([
{
img: $baseUrl + `contentLibrary/1003/${libraryData?.value?.bannerList[0]?.img}`,
......@@ -1314,6 +1333,13 @@
uni.navigateBack();
}
//搜索
const handleSearchClick = () => {
uni.navigateTo({
url: "/pages/search/search"
})
}
const handleBannerClick = (item, index) => {
jump({
type: JumpType.H5,
......
......@@ -1015,6 +1015,7 @@
}
}
//攻略点击事件
const gonglueHandler = () => {
const url = vipIntegral.value.gonglue.url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment