一、在要分享的页面引入
import {onShareAppMessage}from '@dcloudio/uni-app'
二、在该页面复制该代码
onShareAppMessage(()=>{
return{
title:'彩虹机回收',
path:'/pages/index/index',
imageUrl:'/static/2.jpg'
}
})
三、运行到微信小程序,直接点右上角的分享。完成
一、在要分享的页面引入
import {onShareAppMessage}from '@dcloudio/uni-app'
二、在该页面复制该代码
onShareAppMessage(()=>{
return{
title:'彩虹机回收',
path:'/pages/index/index',
imageUrl:'/static/2.jpg'
}
})
三、运行到微信小程序,直接点右上角的分享。完成