@@ -5,10 +5,13 @@ import "./style/my.scss"; | |||||
//#region VUE3 | //#region VUE3 | ||||
import { createSSRApp } from 'vue' | import { createSSRApp } from 'vue' | ||||
import { store } from '../src/store/index' | import { store } from '../src/store/index' | ||||
import share from "../src/utils/share" | |||||
export function createApp() { | export function createApp() { | ||||
const app = createSSRApp(App) | const app = createSSRApp(App) | ||||
app.use(uviewPlus) | app.use(uviewPlus) | ||||
app.use(store) | app.use(store) | ||||
app.mixin(share) | |||||
return { | return { | ||||
app | app | ||||
} | } | ||||
@@ -424,25 +424,6 @@ onShow(() => { | |||||
}); | }); | ||||
//#endregion --------------------- | //#endregion --------------------- | ||||
onShareAppMessage((res) => { | |||||
return { | |||||
title: "邃芒智像", | |||||
}; | |||||
}); | |||||
// 分享到朋友圈 | |||||
onShareTimeline((res) => { | |||||
return { | |||||
title: "邃芒智像", | |||||
}; | |||||
}); | |||||
// 收藏 | |||||
onAddToFavorites((res) => { | |||||
return { | |||||
title: "邃芒智像", | |||||
}; | |||||
}); | |||||
//#region 公共方法 | //#region 公共方法 | ||||
function goOtherPage(url) { | function goOtherPage(url) { | ||||
@@ -0,0 +1,21 @@ | |||||
export default { | |||||
onShareAppMessage() { | |||||
return { | |||||
title: "邃芒智像", | |||||
}; | |||||
}, | |||||
// 分享到朋友圈 | |||||
onShareTimeline() { | |||||
return { | |||||
title: "邃芒智像", | |||||
}; | |||||
}, | |||||
// 收藏 | |||||
onAddToFavorites() { | |||||
return { | |||||
title: "邃芒智像", | |||||
}; | |||||
} | |||||
} |