feat: 增加分享功能
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
<wd-cell size="large" title="数据统计" is-link @click="openStatsPopup"/>
|
||||
<wd-cell size="large" title="主题色" is-link @click="openThemePopup"/>
|
||||
<wd-cell size="large" title="存储详情" is-link @click="openStoragePopup"/>
|
||||
<wd-cell size="large" title="关于我们" is-link @click="openAboutPopup"/>
|
||||
</wd-cell-group>
|
||||
|
||||
<wd-text :text="`版本号:${appStore.version}`" custom-style="margin-top: 5px;display:block; text-align:center;"></wd-text>
|
||||
@@ -66,6 +67,7 @@
|
||||
<point-popup />
|
||||
|
||||
<theme-popup />
|
||||
<about-popup />
|
||||
</view>
|
||||
</wd-config-provider>
|
||||
</template>
|
||||
@@ -87,6 +89,11 @@ import PointPopup from "@/components/Profile/PointPopup.vue";
|
||||
import StatsPopup from "@/components/Profile/StatsPopup.vue";
|
||||
import { getTheme, getThemePrimaryColor } from "@/utils/themes";
|
||||
import ThemePopup from "@/components/Profile/ThemePopup.vue";
|
||||
import AboutPopup from "@/components/Profile/AboutPopup.vue";
|
||||
import { share } from '@/utils/share'
|
||||
|
||||
const { onShareAppMessage } = share()
|
||||
onShareAppMessage()
|
||||
|
||||
const profileStore = useProfileStore()
|
||||
const appStore = useAppStore()
|
||||
@@ -147,6 +154,10 @@ function openStoragePopup() {
|
||||
profileStore.showStoragePopup = true
|
||||
}
|
||||
|
||||
function openAboutPopup() {
|
||||
profileStore.showAboutPopup = true
|
||||
}
|
||||
|
||||
function openPointPopup() {
|
||||
profileStore.showPointPopup = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user