首页跳转
This commit is contained in:
1 parent
25521bd220
commit
4540d547bb
2 files changed
+20
-17
No files matched your search
+14
-11
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { getAppInfo, getLaunchParam } from "@/sheep/utils/app"
|
||||
import { getAppInfo, getLaunchParam, isDevEnv } from "@/sheep/utils/app"
|
||||
import { onShow } from "@dcloudio/uni-app"
|
||||
|
||||
const moduleList = [
|
||||
@@ -133,17 +133,20 @@ const doModuleJump = (item: any) => {
|
||||
|
||||
<template>
|
||||
<crud-layout mainIsScroll bg="/static/page/blue-bg.png">
|
||||
<view class="h-30rpx" />
|
||||
<tm-sheet :margin="[0]">
|
||||
<view class="flex-row items-center justify-center flex-wrap">
|
||||
<view class="w-half flex justify-center py-2 rounded-1" v-for="(item, index) in moduleList" :key="index">
|
||||
<view class="w-half text-center rounded-1 active:bg-#e8e8e8 duration-200" @tap="doModuleJump(item)">
|
||||
<image class="w-80 h-80 px-2 pt-2" :src="item.iconPath" />
|
||||
<tm-text font-size="32">{{ item.text }}</tm-text>
|
||||
<view class="w-full h-full flex-col-center">
|
||||
<view class="h-30rpx" />
|
||||
<tm-sheet v-if="isDevEnv()" :margin="[0]">
|
||||
<view class="flex-row items-center justify-center flex-wrap">
|
||||
<view class="w-half flex justify-center py-2 rounded-1" v-for="(item, index) in moduleList" :key="index">
|
||||
<view class="w-half text-center rounded-1 active:bg-#e8e8e8 duration-200" @tap="doModuleJump(item)">
|
||||
<image class="w-80 h-80 px-2 pt-2" :src="item.iconPath" />
|
||||
<tm-text font-size="32">{{ item.text }}</tm-text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</tm-sheet>
|
||||
<view class="h-30rpx" />
|
||||
</tm-sheet>
|
||||
<view v-else>加载中...</view>
|
||||
<view class="h-30rpx" />
|
||||
</view>
|
||||
</crud-layout>
|
||||
</template>
|
||||
Reference in new issue
Block a user