。。。

This commit is contained in:
TimSpan 2024-09-11 16:58:49 +08:00
parent 8d588076da
commit fd1c56bdab
2 changed files with 112 additions and 39 deletions

View File

@ -1,44 +1,85 @@
<template> <template>
<view> <view>
<view class="content"> <view class="swiper-demo">
<div @tap="routerPush(1)" class="grid-item"> <nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
<image class="grid-item-image"></image> <nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 150px">
<view class="grid-item-text">企事业单位</view> <img :src="item" alt="" style="height: 100%; width: 100%" draggable="false"/>
</div> </nut-swiper-item>
<div class="grid-item"> </nut-swiper>
<image class="grid-item-image"></image> </view>
<view class="grid-item-text">监督考核</view> <view class="margin-top">
</div> <nut-grid :column-num="3">
<div class="grid-item"> <nut-grid-item
<image class="grid-item-image"></image> text="企事业单位"
<view class="grid-item-text">警保风采</view> @click="Taro.navigateTo({url: '/subPages/pages/policeManager/index'})">
</div> </nut-grid-item>
<div class="grid-item"> <nut-grid-item
<image class="grid-item-image"></image> text="警保风采"
<view class="grid-item-text">三色预警</view> @click="Taro.navigateTo({url: '/pages/index/dataEntry/personnelInformationEntry/personnelInformationEntry'})">
</div> </nut-grid-item>
<nut-grid-item text=".....">
</nut-grid-item>
</nut-grid>
</view> </view>
</view> </view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import './index.scss'
import {ref} from 'vue'
import Taro from "@tarojs/taro"; import Taro from "@tarojs/taro";
const routerPush = (path) => { const list = ref([
switch (path) { 'https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg',
case 1: 'https://storage.360buyimg.com/jdc-article/NutUItaro2.jpg',
Taro.navigateTo({ 'https://storage.360buyimg.com/jdc-article/welcomenutui.jpg',
url: '/subPages/pages/policeManager/index', 'https://storage.360buyimg.com/jdc-article/fristfabu.jpg'
])
const swiperRef = ref()
})
}
}
import './index.scss'
</script> </script>
<style scoped lang="scss"> <!--<template>-->
<!-- <view>-->
<!-- <view class="content">-->
<!-- <div @tap="routerPush(1)" class="grid-item">-->
<!-- <image class="grid-item-image"></image>-->
<!-- <view class="grid-item-text">企事业单位</view>-->
<!-- </div>-->
<!-- <div class="grid-item">-->
<!-- <image class="grid-item-image"></image>-->
<!-- <view class="grid-item-text">监督考核</view>-->
<!-- </div>-->
<!-- <div class="grid-item">-->
<!-- <image class="grid-item-image"></image>-->
<!-- <view class="grid-item-text">警保风采</view>-->
<!-- </div>-->
<!-- <div class="grid-item">-->
<!-- <image class="grid-item-image"></image>-->
<!-- <view class="grid-item-text">三色预警</view>-->
<!-- </div>-->
<!-- </view>-->
</style> <!-- </view>-->
<!--</template>-->
<!--<script setup lang="ts">-->
<!--import Taro from "@tarojs/taro";-->
<!--const routerPush = (path) => {-->
<!-- switch (path) {-->
<!-- case 1:-->
<!-- Taro.navigateTo({-->
<!-- url: '/subPages/pages/policeManager/index',-->
<!-- })-->
<!-- }-->
<!--}-->
<!--import './index.scss'-->
<!--</script>-->
<!--<style scoped lang="scss">-->
<!--</style>-->

View File

@ -1,20 +1,52 @@
<template> <template>
<view class="myProject">
<view> <view>
<view class="content">
</view> </view>
</view> </view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import api from "@/request/index";
import {onMounted} from "vue";
import Taro from "@tarojs/taro";
import Taro, {useLoad} from "@tarojs/taro"; const getMyServiceProject = async () => {
const token = Taro.getStorageSync('token')
useLoad(() => { const resp = await api.get(`/projectManageIndex/getMyServiceProject`, {
console.log('onLoad') token: token.value
}) })
console.log(resp.data)
}
import './index.scss'
onMounted(async () => {
await getMyServiceProject()
})
</script> </script>
<style scoped lang="scss">
</style>
<!--<template>-->
<!-- <view>-->
<!-- <view class="content">-->
<!-- </view>-->
<!-- </view>-->
<!--</template>-->
<!--<script setup lang="ts">-->
<!--import Taro, {useLoad} from "@tarojs/taro";-->
<!--useLoad(() => {-->
<!-- console.log('onLoad')-->
<!--})-->
<!--import './index.scss'-->
<!--</script>-->