main
unknown 2024-05-30 19:29:36 +08:00
parent f6d37b8486
commit 05ba22c572
4 changed files with 19 additions and 11 deletions

View File

@ -13,15 +13,16 @@ export default {
}
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary')
plus.navigator.closeSplashscreen()
if (userStore.isLogin) {
plus.navigator.closeSplashscreen()
// plus.navigator.closeSplashscreen()
} else {
uni.reLaunch({
url: '/pages/login/index',
success: () => {
plus.navigator.closeSplashscreen()
},
})
// uni.reLaunch({
// url: '/pages/login/index',
// success: () => {
// plus.navigator.closeSplashscreen()
// },
// })
}
// #endif
},

View File

@ -1,6 +1,7 @@
<template>
<view class="content">
<template v-if="list.length">
{{ list.value }}
<uv-swiper
height="100vh"
:list="list"
@ -29,7 +30,7 @@
import { onLoad, onReady, onUnload } from '@dcloudio/uni-app'
import { useUserStore } from '@/store/modules/user'
import { http } from '@/utils/request'
import { ref } from 'vue'
import { ref,nextTick } from 'vue'
const userStore = useUserStore()
const list = ref([])
@ -67,11 +68,14 @@ async function getInit() {
try {
const resData = await http.get('/configurations')
list.value = resData.launch_images
} catch (error) {
} finally {
if (list.value.length === 0) {
checkLogin()
}
} catch (error) {
} finally {
}
}

View File

@ -169,7 +169,7 @@ const getStoreData = () => {
}
http
.get('/auth/stores', {
// params: params,
params: params,
})
.then((res) => {
store.value = [{ title: '全部门店', id: null }].concat(res)

View File

@ -54,6 +54,9 @@ const baseColums = [
{
title: '申请时间',
dataIndex: 'created_format',
isShow: (row) => {
return row?.taskable?.status != 1
},
},
{
title: '清洁范围',