59 lines
1.6 KiB
Vue
59 lines
1.6 KiB
Vue
<template>
|
|
<view>
|
|
<s-layout title="首页" navbar="custom" tabbar="" :bgStyle="{ color: '#fff' }">
|
|
<web-view :src="url">
|
|
<cover-view-tabbar activeUrl="/pages/index/index" />
|
|
</web-view>
|
|
</s-layout>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed, ref } from 'vue';
|
|
import { onLoad, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
|
|
import sheep from '@/sheep';
|
|
import $share from '@/sheep/platform/share';
|
|
import CoverViewTabbar from '@/pages/index/components/cover-view-tabbar.vue';
|
|
|
|
// 隐藏原生tabBar
|
|
uni.hideTabBar({
|
|
fail: () => {},
|
|
});
|
|
|
|
const tabbar = computed(() => {
|
|
return sheep.$store('app').template.basic?.tabbar;
|
|
});
|
|
|
|
const template = computed(() => sheep.$store('app').template?.home);
|
|
|
|
onLoad((options) => {
|
|
// #ifdef MP
|
|
// 小程序识别二维码
|
|
if (options.scene) {
|
|
const sceneParams = decodeURIComponent(options.scene).split('=');
|
|
console.log('sceneParams=>', sceneParams);
|
|
options[sceneParams[0]] = sceneParams[1];
|
|
}
|
|
// #endif
|
|
|
|
// 预览模板
|
|
if (options.templateId) {
|
|
sheep.$store('app').init(options.templateId);
|
|
}
|
|
|
|
// 解析分享信息
|
|
if (options.spm) {
|
|
$share.decryptSpm(options.spm);
|
|
}
|
|
|
|
// 进入指定页面(完整页面路径)
|
|
if (options.page) {
|
|
sheep.$router.go(decodeURIComponent(options.page));
|
|
}
|
|
});
|
|
|
|
const url = ref('https://fitting-room.huimeimeta.com/pages/report/index');
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|