新主页设置完成

This commit is contained in:
Teng 2025-12-25 09:50:35 +08:00
parent 3313913011
commit 5f3d46a899
3 changed files with 54 additions and 31 deletions

View File

@ -4,12 +4,12 @@
<view class="home"> <view class="home">
<image class="all-home" src="/static/index/warehouse/newhome/backpage.jpg" mode="aspectFit"></image> <image class="all-home" src="/static/index/warehouse/newhome/backpage.jpg" mode="aspectFit"></image>
</view> </view>
<view class="right-title"> <!-- <view class="right-title">
<image class="title-imge" src="/static/home.png" mode="aspectFit"></image> <image class="title-imge" src="/static/home.png" mode="aspectFit"></image>
<view class="title-font"> <view class="title-font">
{{ uni.getStorageSync('nuName') }} {{ uni.getStorageSync('nuName') }}
</view> </view>
</view> </view> -->
<view class="paizi tp"> <view class="paizi tp">
<donghua width="15vw" height="15vw" :interval="300" :links="paiziarray" :playing="playall" :loop="true" /> <donghua width="15vw" height="15vw" :interval="300" :links="paiziarray" :playing="playall" :loop="true" />
</view> </view>
@ -37,13 +37,20 @@
<view class="juzhen tp" @click="housactive(6)"> <view class="juzhen tp" @click="housactive(6)">
<donghua width="17vw" height="17vw" :interval="300" :links="juzhenarray" :playing="playall" :loop="true" /> <donghua width="17vw" height="17vw" :interval="300" :links="juzhenarray" :playing="playall" :loop="true" />
</view> </view>
<!-- <view class="juzhentag tp" @click="housactive(6)"> <view class="juzhentag tp" @click="housactive(6)">
<view class="blue-bgc" style="background: #7BC2FF;width: 8vw;"> <view class="blue-bgc" style="background: #7BC2FF;width: 7vw;">
库房矩阵 设置
<view class="triangle-middle" style="border-top: 0.5vw solid #7BC2FF"></view> <view class="triangle-middle" style="border-top: 0.5vw solid #7BC2FF"></view>
</view> </view>
<image class="blue-imge" src="/static/index/warehouse/home/z.png" mode=""></image> <image class="blue-imge" src="/static/index/warehouse/home/z.png" mode=""></image>
</view> --> </view>
<view class="exittag tp" @click="exitshow=true">
<view class="blue-bgc" style="background: #7BC2FF;width: 7vw;">
退出
<view class="triangle-middle" style="border-top: 0.5vw solid #7BC2FF"></view>
</view>
<image class="blue-imge" src="/static/index/warehouse/home/z.png" mode=""></image>
</view>
<view class="caigou tp" @click="housactive(0)"> <view class="caigou tp" @click="housactive(0)">
<donghua width="16vw" height="16vw" :interval="150" :links="caigouarray" :playing="playall" :loop="true" /> <donghua width="16vw" height="16vw" :interval="150" :links="caigouarray" :playing="playall" :loop="true" />
</view> </view>
@ -115,6 +122,7 @@
<view :style="moverStyle"> <view :style="moverStyle">
<image style="width: 100%;height: 100%;" :src="cararray[cartarget]" mode="widthFix"></image> <image style="width: 100%;height: 100%;" :src="cararray[cartarget]" mode="widthFix"></image>
</view> </view>
<exit :show="exitshow" @close="exitshow=false" />
<!-- 自动更新组件 --> <!-- 自动更新组件 -->
<zy-update ref="zyupgrade" :noticeflag="true" theme="blue" :h5preview="false" oldversion="1.0.0" <zy-update ref="zyupgrade" :noticeflag="true" theme="blue" :h5preview="false" oldversion="1.0.0"
:appstoreflag="true" :autocheckupdate="true"></zy-update> :appstoreflag="true" :autocheckupdate="true"></zy-update>
@ -126,12 +134,14 @@
import { onBackPress, onShow } from "@dcloudio/uni-app" import { onBackPress, onShow } from "@dcloudio/uni-app"
import { queryPadPageList } from '@/pages/watch/api/lunpan.js' import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
import ZyUpdate from '@/component/zy-upgrade/zy-upgrade.vue' import ZyUpdate from '@/component/zy-upgrade/zy-upgrade.vue'
import exit from "@/component/public/exit.vue"
onBackPress(() => { onBackPress(() => {
return true; // return true; //
}) })
const zyupgrade = ref(null); const zyupgrade = ref(null);
const leftMenuArray = ref([]) const leftMenuArray = ref([])
const exitshow = ref(false);
// //
onShow(() => { onShow(() => {
zyupgrade.value?.check_update(); zyupgrade.value?.check_update();
@ -261,12 +271,11 @@
url: '/pages/Warehouse/warehome', url: '/pages/Warehouse/warehome',
}) })
} }
// if (index == 5) { if (index == 6) {
// navurl.value = 'pages/procurement/inventory' uni.navigateTo({
// uni.navigateTo({ url: '/pages/watch/settings/settings',
// url: '/' + navurl.value })
// }) }
// }
// if (index == 7) { // if (index == 7) {
// navurl.value = 'pages/procurement/outbound?code=1' // navurl.value = 'pages/procurement/outbound?code=1'
// uni.navigateTo({ // uni.navigateTo({
@ -542,7 +551,21 @@
left: 19vw; left: 19vw;
z-index: 50; z-index: 50;
} }
.exittag {
position: fixed;
top: 6vw;
right: 10.5vw;
z-index: 51;
.blue-imge {
position: absolute;
top: 2.2vw;
left: 50%;
transform: translateX(-50%);
width: 3vw;
height: 5vw;
}
}
.juzhentag { .juzhentag {
position: fixed; position: fixed;
top: 20vw; top: 20vw;

View File

@ -315,7 +315,7 @@
element.isNew = true element.isNew = true
}) })
relArray.value = [] relArray.value = []
console.log("!!!",res.result.records) // console.log("!!!",res.result.records)
relArray.value.push(...res.result.records) relArray.value.push(...res.result.records)

View File

@ -1,9 +1,9 @@
<template> <template>
<view class="index-content-other"> <view class="index-content-other">
<!-- <view class="index-content-right" @click="goback"> <view class="index-content-right">
<image class="back-img" :src="`/static/index/settings/back.png`" /> <!-- <image class="back-img" :src="`/static/index/settings/back.png`" />
返回 返回 -->
</view> --> </view>
<view class="array-father"> <view class="array-father">
<view v-for="(item,index) in iconsArray.slice(0,3)" :key="index" class="item" @click="jumpToTarget(index)"> <view v-for="(item,index) in iconsArray.slice(0,3)" :key="index" class="item" @click="jumpToTarget(index)">
<view class="left-item"> <view class="left-item">
@ -45,14 +45,14 @@
</view> </view>
</view> </view>
</view> </view>
<view class="bottom-button" @click="exitshow=true"> <!-- <view class="bottom-button" @click="exitshow=true">
注销登录 注销登录
</view> </view> -->
<view class="text-center"> <view class="text-center">
<view>{{ uni.getStorageSync('orgListName') }}</view> <!-- <view>{{ uni.getStorageSync('orgListName') }}</view> -->
</view> </view>
<exit :show="exitshow" @close="exitshow=false" /> <!-- <exit :show="exitshow" @close="exitshow=false" /> -->
<reset :show="resetshow" @close="resetshow=false" /> <reset :show="resetshow" @close="resetshow=false" />
<zy-update ref="zyupgrade" :noticeflag="true" theme="blue" :h5preview="false" oldversion="1.0.0" <zy-update ref="zyupgrade" :noticeflag="true" theme="blue" :h5preview="false" oldversion="1.0.0"
:appstoreflag="true" :autocheckupdate="true" @showupdateTips="noNeed"></zy-update> :appstoreflag="true" :autocheckupdate="true" @showupdateTips="noNeed"></zy-update>
@ -91,7 +91,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, watch, nextTick } from 'vue' import { ref, onMounted, watch, nextTick } from 'vue'
import exit from "@/component/public/exit.vue" // import exit from "@/component/public/exit.vue"
import reset from "@/component/public/reset.vue" import reset from "@/component/public/reset.vue"
import ZyUpdate from '@/component/zy-upgrade/zy-upgrade.vue' import ZyUpdate from '@/component/zy-upgrade/zy-upgrade.vue'
import oneseven from '@/pages/login/oneseven.vue' import oneseven from '@/pages/login/oneseven.vue'
@ -101,7 +101,7 @@
const issay = ref(false) const issay = ref(false)
const openany = ref(false); const openany = ref(false);
const opentype = ref(false); const opentype = ref(false);
const exitshow = ref(false); // const exitshow = ref(false);
const resetshow = ref(false); const resetshow = ref(false);
const emit = defineEmits(['jump']) const emit = defineEmits(['jump'])
// const props = defineProps({ isShow: { type: Boolean, required: true } }) // const props = defineProps({ isShow: { type: Boolean, required: true } })
@ -208,9 +208,9 @@
} }
} }
const goback = () => { // const goback = () => {
uni.navigateBack() // uni.navigateBack()
} // }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@ -347,7 +347,7 @@
.text-center { .text-center {
margin-top: 40rpx; margin-top: 40rpx;
height: 60rpx; height: 30rpx;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;