Compare commits
2 Commits
1c5ebf6d42
...
3fd5753c1f
| Author | SHA1 | Date |
|---|---|---|
|
|
3fd5753c1f | |
|
|
a8bc60e492 |
|
|
@ -17,12 +17,12 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="clikurlbox">
|
<view class="clikurlbox">
|
||||||
<view class="tp" :class="'itemact'+(index+1)" v-for="(item,index) in animArray" :key='index'
|
<view class="tp" :class="'itemact'+(index+1)" v-for="(item,index) in animArray" :key='index'
|
||||||
@click.stop="housactive(index)">
|
@click="housactive(index)">
|
||||||
<donghua :width="item.width" :height="item.height" :links="item.url" :playing="index == housedex" />
|
<donghua :width="item.width" :height="item.height" :links="item.url" :playing="index == housedex" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cardtm">
|
<view class="cardtm">
|
||||||
<view class="b" :class="{ 'actve':housedex == i}" v-for="(v,i) in ['采购','盘点','拣货','请领出库','退货入库','监控室']">
|
<view class="b" :class="{ 'actve':housedex == i}" v-for="(v,i) in ['采购','盘点','拣货','请领出库','退货入库','监控室']" @click="housactive(i)">
|
||||||
<text></text>{{v}}
|
<text></text>{{v}}
|
||||||
<view class="tp">
|
<view class="tp">
|
||||||
<image src="/static/index/warehouse/home/z.png" mode=""></image>
|
<image src="/static/index/warehouse/home/z.png" mode=""></image>
|
||||||
|
|
@ -42,17 +42,18 @@
|
||||||
const setout = ref(null)
|
const setout = ref(null)
|
||||||
const navurl = ref('')
|
const navurl = ref('')
|
||||||
const housactive = (index : number) => {
|
const housactive = (index : number) => {
|
||||||
|
console.log(index)
|
||||||
housedex.value = index;
|
housedex.value = index;
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
if (now - lastTap.value < DOUBLE_TAP_DELAY) {
|
if (now - lastTap.value < DOUBLE_TAP_DELAY) {
|
||||||
// 双击成立
|
// 双击成立
|
||||||
clearTimeout(setout.value)
|
clearTimeout(setout.value)
|
||||||
// if (index == 0) {
|
if (index == 1) {
|
||||||
// navurl.value = 'pages/Warehouse/paymoney'
|
navurl.value = 'pages/Warehouse/paymoney'
|
||||||
// uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url: '/' + navurl.value
|
url: '/' + navurl.value
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
navurl.value = 'pages/procurement/material'
|
navurl.value = 'pages/procurement/material'
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
@ -71,13 +72,18 @@
|
||||||
url: "/pages/watch/full"
|
url: "/pages/watch/full"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (index == 6) {
|
if (index === 5) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/watch/full"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (index == 7) {
|
||||||
navurl.value = 'pages/procurement/outbound?code=0'
|
navurl.value = 'pages/procurement/outbound?code=0'
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/' + navurl.value
|
url: '/' + navurl.value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (index == 7) {
|
if (index == 8) {
|
||||||
navurl.value = 'pages/procurement/outbound?code=1'
|
navurl.value = 'pages/procurement/outbound?code=1'
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/' + navurl.value
|
url: '/' + navurl.value
|
||||||
|
|
@ -88,12 +94,6 @@
|
||||||
} else {
|
} else {
|
||||||
setout.value = setTimeout(() => {
|
setout.value = setTimeout(() => {
|
||||||
// console.log("点击哪个了", index)
|
// console.log("点击哪个了", index)
|
||||||
if (index === 5) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/watch/full"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}, DOUBLE_TAP_DELAY)
|
}, DOUBLE_TAP_DELAY)
|
||||||
// 记录本次时间,等待下次点击
|
// 记录本次时间,等待下次点击
|
||||||
lastTap.value = now
|
lastTap.value = now
|
||||||
|
|
@ -171,6 +171,18 @@
|
||||||
width: '14.3vw',
|
width: '14.3vw',
|
||||||
height: '13vw'
|
height: '13vw'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
url: genPaths(
|
||||||
|
'/static/index/warehouse/home',
|
||||||
|
'unit11-',
|
||||||
|
5, // 张数
|
||||||
|
'png',
|
||||||
|
0, // 起始索引为 1
|
||||||
|
false // 不补零
|
||||||
|
),
|
||||||
|
width: '14.3vw',
|
||||||
|
height: '13vw'
|
||||||
|
},
|
||||||
])
|
])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -220,6 +232,13 @@
|
||||||
right: 21vw;
|
right: 21vw;
|
||||||
z-index: 65;
|
z-index: 65;
|
||||||
}
|
}
|
||||||
|
.itemact6 {
|
||||||
|
width: 18.2vw;
|
||||||
|
height: 12vw;
|
||||||
|
top: 8vw;
|
||||||
|
left: 12vw;
|
||||||
|
z-index: 65;
|
||||||
|
}
|
||||||
view{
|
view{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
@ -240,6 +259,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 1vw;
|
padding: 0 1vw;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
z-index: 70;
|
||||||
&:nth-child(1){
|
&:nth-child(1){
|
||||||
top: 38vw;
|
top: 38vw;
|
||||||
left: 19.5vw;
|
left: 19.5vw;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue