Commit 60b466ca authored by jtwu's avatar jtwu

取名页加分享

parent a53ecb0b
...@@ -263,7 +263,8 @@ ...@@ -263,7 +263,8 @@
} from 'vue' } from 'vue'
import { import {
onLoad, onLoad,
onShow onShow,
onShareAppMessage
} from '@dcloudio/uni-app' } from '@dcloudio/uni-app'
import { import {
jump, jump,
...@@ -303,6 +304,12 @@ ...@@ -303,6 +304,12 @@
} = getCurrentInstance(); } = getCurrentInstance();
const $baseUrl = proxy.$baseUrl; const $baseUrl = proxy.$baseUrl;
onShareAppMessage(() => ({
title: '好名字是给宝宝独一无二的礼物',
path: `/pages/naming/naming?back_btn='hide'`,
imageUrl: $baseUrl + 'aiNaming/single.png'
}));
onLoad((options) => { onLoad((options) => {
back_btn.value = options.back_btn back_btn.value = options.back_btn
console.log('接收到的参数:', back_btn.value) console.log('接收到的参数:', back_btn.value)
......
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