40 lines
1.0 KiB
Vue
40 lines
1.0 KiB
Vue
<template>
|
|
<view>
|
|
<s-layout title="试衣间" navbar="custom" tabbar="" :bgStyle="{ color: '#fff' }">
|
|
<web-view :src="url">
|
|
<cover-view-tabbar activeUrl="/pages/index/room" />
|
|
</web-view>
|
|
</s-layout>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed, ref } from 'vue';
|
|
import { onLoad, onUnload, onPageScroll, onPullDownRefresh, onShow } from '@dcloudio/uni-app';
|
|
import sheep from '@/sheep';
|
|
import $share from '@/sheep/platform/share';
|
|
import CoverViewTabbar from '@/pages/index/components/cover-view-tabbar.vue';
|
|
import { getAccessToken } from '@/sheep/request';
|
|
|
|
// 隐藏原生tabBar
|
|
uni.hideTabBar({
|
|
fail: () => {},
|
|
});
|
|
|
|
onShow(async () => {
|
|
if (!sheep.$store('user').isLogin) {
|
|
uni.redirectTo({ url: '/pages/login/index' });
|
|
}
|
|
});
|
|
|
|
onLoad(() => {});
|
|
|
|
onUnload(() => {});
|
|
|
|
const url = ref(
|
|
`https://fitting-room.huimeimeta.com/pages/fittingRoom/index?token=${getAccessToken()}`,
|
|
);
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|