This commit is contained in:
Teng 2025-12-16 08:47:17 +08:00
parent 6d09a05c30
commit e4335de6b5
2 changed files with 38 additions and 22 deletions

View File

@ -82,21 +82,21 @@
<view class="triangle-left-bgc"></view> <view class="triangle-left-bgc"></view>
</view> </view>
</view> </view>
<view class="picking tp" @click="housactive(2)"> <view class="picking tp" @click="housactive(2)">
<image src="/static/index/warehouse/newhome/picking.png" mode="widthFix"></image> <image src="/static/index/warehouse/newhome/picking.png" mode="widthFix"></image>
</view> </view>
<view class="pickingtag tp" @click="housactive(2)"> <view class="pickingtag tp" @click="housactive(2)">
<view class="blue-bgc"> <view class="blue-bgc">
拣货 拣货
<view class="triangle-left-bgc"></view> <view class="triangle-left-bgc"></view>
</view> </view>
</view> </view>
<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>
</view> </view>
</template> </template>
@ -165,14 +165,20 @@
false // false //
) )
const playall = ref(false); const playall = ref(false);
let clickAudio
onMounted(() => { onMounted(() => {
playall.value = true; playall.value = true;
ceshi() ceshi()
clickAudio = uni.createInnerAudioContext()
clickAudio.src = '/static/click.mp3'
clickAudio.volume = 0.4
}) })
const housedex = ref(0); const housedex = ref(0);
const navurl = ref('') const navurl = ref('')
const housactive = (index : number) => { const housactive = (index : number) => {
clickAudio.stop() // Galgame
clickAudio.play()
console.log(index) console.log(index)
housedex.value = index; housedex.value = index;
if (index == 0) { if (index == 0) {
@ -187,7 +193,7 @@
url: '/' + navurl.value url: '/' + navurl.value
}) })
} }
if (index == 2) { if (index == 2) {
navurl.value = 'pages/Warehouse/picking' navurl.value = 'pages/Warehouse/picking'
uni.navigateTo({ uni.navigateTo({
@ -224,8 +230,8 @@
url: '/' + navurl.value url: '/' + navurl.value
}) })
} }
} }
@ -459,19 +465,20 @@
border-right: 0.5vw solid transparent; border-right: 0.5vw solid transparent;
border-top: 0.5vw solid #0385fa; border-top: 0.5vw solid #0385fa;
} }
.triangle-left-bgc{
.triangle-left-bgc {
position: absolute; position: absolute;
top: 2.68vw; top: 2.68vw;
left: 1.17vw; left: 1.17vw;
width: 0; width: 0;
height: 0; height: 0;
/* 左上是直角的三角形 —— 只要两个边有颜色 */ /* 左上是直角的三角形 —— 只要两个边有颜色 */
border-top: 0.45vw solid #0385fa; border-top: 0.45vw solid #0385fa;
/* 上边 */ /* 上边 */
border-left: 0.55vw solid #0385fa; border-left: 0.55vw solid #0385fa;
/* 左边 */ /* 左边 */
/* 另外两个边透明(保持三角形形状) */ /* 另外两个边透明(保持三角形形状) */
border-right: 0.55vw solid transparent; border-right: 0.55vw solid transparent;
border-bottom: 0.55vw solid transparent; border-bottom: 0.55vw solid transparent;
@ -491,37 +498,38 @@
color: #0385fa; color: #0385fa;
position: relative; position: relative;
.triangle-left-bgc{ .triangle-left-bgc {
position: absolute; position: absolute;
top: 2.68vw; top: 2.68vw;
left: 1.17vw; left: 1.17vw;
width: 0; width: 0;
height: 0; height: 0;
/* 左上是直角的三角形 —— 只要两个边有颜色 */ /* 左上是直角的三角形 —— 只要两个边有颜色 */
border-top: 0.45vw solid #60a1ff; border-top: 0.45vw solid #60a1ff;
/* 上边 */ /* 上边 */
border-left: 0.55vw solid #60a1ff; border-left: 0.55vw solid #60a1ff;
/* 左边 */ /* 左边 */
/* 另外两个边透明(保持三角形形状) */ /* 另外两个边透明(保持三角形形状) */
border-right: 0.55vw solid transparent; border-right: 0.55vw solid transparent;
border-bottom: 0.55vw solid transparent; border-bottom: 0.55vw solid transparent;
} }
.triangle-left { .triangle-left {
position: absolute; position: absolute;
top: 2.68vw; top: 2.68vw;
left: 1.2vw; left: 1.2vw;
width: 0; width: 0;
height: 0; height: 0;
/* 左上是直角的三角形 —— 只要两个边有颜色 */ /* 左上是直角的三角形 —— 只要两个边有颜色 */
border-top: 0.4vw solid #e4efff; border-top: 0.4vw solid #e4efff;
/* 上边 */ /* 上边 */
border-left: 0.5vw solid #e4efff; border-left: 0.5vw solid #e4efff;
/* 左边 */ /* 左边 */
/* 另外两个边透明(保持三角形形状) */ /* 另外两个边透明(保持三角形形状) */
border-right: 0.5vw solid transparent; border-right: 0.5vw solid transparent;
border-bottom: 0.5vw solid transparent; border-bottom: 0.5vw solid transparent;
@ -544,12 +552,13 @@
height: 5vw; height: 5vw;
} }
} }
.pickingtag{
.pickingtag {
position: fixed; position: fixed;
top: 24vw; top: 24vw;
left: 67vw; left: 67vw;
z-index: 51; z-index: 51;
.blue-imge { .blue-imge {
position: absolute; position: absolute;
top: 2.2vw; top: 2.2vw;
@ -559,6 +568,7 @@
height: 5vw; height: 5vw;
} }
} }
.wanjietag { .wanjietag {
position: fixed; position: fixed;
top: 22vw; top: 22vw;
@ -597,37 +607,43 @@
left: 35.5vw; left: 35.5vw;
z-index: 51; z-index: 51;
} }
.returntag { .returntag {
position: fixed; position: fixed;
top: 32.5vw; top: 32.5vw;
left: 84vw; left: 84vw;
z-index: 51; z-index: 51;
} }
.leadtag{
.leadtag {
position: fixed; position: fixed;
top: 44vw; top: 44vw;
left: 71vw; left: 71vw;
z-index: 51; z-index: 51;
} }
.right-title{
.right-title {
position: fixed; position: fixed;
right: 2vw; right: 2vw;
top: 3vw; top: 3vw;
display: flex; display: flex;
align-items: center; align-items: center;
.title-imge{
.title-imge {
width: 1.8vw; width: 1.8vw;
height: 1.8vw; height: 1.8vw;
margin-right: 0.5vw; margin-right: 0.5vw;
// margin-top: -0.3vw; // margin-top: -0.3vw;
} }
.title-font{
.title-font {
font-size: 32rpx; font-size: 32rpx;
// margin-left: 3vw; // margin-left: 3vw;
font-weight: 600; font-weight: 600;
} }
} }
// <view class="right-title"> // <view class="right-title">
// <image class="title-imge" src="/static/index/indeximage.png" mode="aspectFit"></image> // <image class="title-imge" src="/static/index/indeximage.png" mode="aspectFit"></image>
// <view class="title-font"> // <view class="title-font">

BIN
static/click.mp3 Normal file

Binary file not shown.