diff --git a/src/main.ts b/src/main.ts index 8d202a8..89fb0f6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,10 +7,20 @@ import fengUniappExploit from 'feng-uniapp-exploit' import store from './store' export function createApp() { - const app = createSSRApp(App) - app.use(uviewPlus) - app.use(fengUniappExploit) - app.use(store) - - return { app } -} + const app = createSSRApp(App) + app.use(uviewPlus) + app.use(fengUniappExploit) + app.use(store) + app.mixin({ + onShareAppMessage() { // 分享给好友 + return { + title: '惠企帮', + path: '/pages/index/index', + } + }, + onShareTimeline() { // 分享朋友圈 + return { title: '惠企帮' } + } + }) + return { app } +} \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 521dd35..a15bb8e 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -3,7 +3,7 @@ @leftClick="leftClick"> - @@ -314,33 +315,34 @@ icon: 'none' }) } - + const clickcount = ref(0) - const clickchat = () =>{ + const clickchat = () => { clickcount.value++ - if(!showtypeChat.value) { + if (!showtypeChat.value) { showChat.value = true clickcount.value = 0 } else { - if(clickcount.value === 1) { + if (clickcount.value === 1) { showtypeChat.value = false } } } - + let intervalId; + function myPeriodicFunction() { - if(!showChat.value) { + if (!showChat.value) { showtypeChat.value = true clickcount.value = 0 } } onMounted(() => { - intervalId = setInterval(myPeriodicFunction, 5000); + intervalId = setInterval(myPeriodicFunction, 5000); }); - + onUnmounted(() => { - clearInterval(intervalId); + clearInterval(intervalId); }); @@ -351,6 +353,7 @@ currentTab.value = '' await getMemberCenter(currentTab.value) }) + \ No newline at end of file diff --git a/src/static/img/jrb.png b/src/static/img/jrb.png index 24f57e3..88b76c9 100644 Binary files a/src/static/img/jrb.png and b/src/static/img/jrb.png differ diff --git a/src/static/img/kdb.png b/src/static/img/kdb.png index 5a4fefb..cc92148 100644 Binary files a/src/static/img/kdb.png and b/src/static/img/kdb.png differ diff --git a/src/static/img/mtb.png b/src/static/img/mtb.png index e370664..0c3d9e4 100644 Binary files a/src/static/img/mtb.png and b/src/static/img/mtb.png differ diff --git a/src/static/img/qyb.png b/src/static/img/qyb.png index 62201e6..69568e3 100644 Binary files a/src/static/img/qyb.png and b/src/static/img/qyb.png differ