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 // #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary') plus.screen.lockOrientation('portrait-primary')
plus.navigator.closeSplashscreen()
if (userStore.isLogin) { if (userStore.isLogin) {
plus.navigator.closeSplashscreen() // plus.navigator.closeSplashscreen()
} else { } else {
uni.reLaunch({ // uni.reLaunch({
url: '/pages/login/index', // url: '/pages/login/index',
success: () => { // success: () => {
plus.navigator.closeSplashscreen() // plus.navigator.closeSplashscreen()
}, // },
}) // })
} }
// #endif // #endif
}, },

View File

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

View File

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

View File

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