File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ onMounted(() => {
105105 })
106106 // #ifdef MP-WEIXIN
107107 // 微信广告
108- if (uni .createInterstitialAd && showWxAd3 .value && props .useWxAd ) {
108+ if (uni .createInterstitialAd && showWxAd3 .value && props .useWxAd && ! isFree . value ) {
109109 interstitialAd = uni .createInterstitialAd ({ adUnitId: ' adunit-fc8522e2b1185c89' })
110110 nextTick (() => {
111111 interstitialAd && interstitialAd .show ()
Original file line number Diff line number Diff line change 3939<script lang="ts" setup>
4040import { ref } from ' vue'
4141import packageConfig from ' ../../../package.json'
42+ import { onShareAppMessage , onShareTimeline } from ' @dcloudio/uni-app'
4243
4344const imgModules: any = import .meta .glob (' ../images/*.png' , { eager: true })
4445
@@ -402,6 +403,22 @@ function kindToggle(id: string) {
402403 }
403404 list .value = listValue
404405}
406+
407+ onShareAppMessage (() => {
408+ return {
409+ title: ' 一个基于Vue3+TS的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。' ,
410+ path: ' /pages/index/Index' ,
411+ imageUrl: imgModules [' ../images/share.png' ].default
412+ }
413+ })
414+
415+ onShareTimeline (() => {
416+ return {
417+ title: ' 一个基于Vue3+TS的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。' ,
418+ path: ' /pages/index/Index' ,
419+ imageUrl: imgModules [' ../images/share.png' ].default
420+ }
421+ })
405422 </script >
406423
407424<style lang="scss" scoped>
Original file line number Diff line number Diff line change 1515import { useRewardAd } from ' @/store/useRewardAd'
1616import { pause } from ' @/uni_modules/wot-design-uni/components/common/util'
1717import { onMounted } from ' vue'
18- const { createRewardVideoAd, showRewardAd, isFree } = useRewardAd ()
18+ const { createRewardVideoAd, showRewardAd } = useRewardAd ()
1919
2020onMounted (async () => {
2121 await pause ()
You can’t perform that action at this time.
0 commit comments