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

@ -165,14 +165,20 @@
false //
)
const playall = ref(false);
let clickAudio
onMounted(() => {
playall.value = true;
ceshi()
clickAudio = uni.createInnerAudioContext()
clickAudio.src = '/static/click.mp3'
clickAudio.volume = 0.4
})
const housedex = ref(0);
const navurl = ref('')
const housactive = (index : number) => {
clickAudio.stop() // Galgame
clickAudio.play()
console.log(index)
housedex.value = index;
if (index == 0) {
@ -459,7 +465,8 @@
border-right: 0.5vw solid transparent;
border-top: 0.5vw solid #0385fa;
}
.triangle-left-bgc{
.triangle-left-bgc {
position: absolute;
top: 2.68vw;
left: 1.17vw;
@ -492,7 +499,7 @@
position: relative;
.triangle-left-bgc{
.triangle-left-bgc {
position: absolute;
top: 2.68vw;
left: 1.17vw;
@ -509,6 +516,7 @@
border-right: 0.55vw solid transparent;
border-bottom: 0.55vw solid transparent;
}
.triangle-left {
position: absolute;
top: 2.68vw;
@ -544,7 +552,8 @@
height: 5vw;
}
}
.pickingtag{
.pickingtag {
position: fixed;
top: 24vw;
left: 67vw;
@ -559,6 +568,7 @@
height: 5vw;
}
}
.wanjietag {
position: fixed;
top: 22vw;
@ -597,37 +607,43 @@
left: 35.5vw;
z-index: 51;
}
.returntag {
position: fixed;
top: 32.5vw;
left: 84vw;
z-index: 51;
}
.leadtag{
.leadtag {
position: fixed;
top: 44vw;
left: 71vw;
z-index: 51;
}
.right-title{
.right-title {
position: fixed;
right: 2vw;
top: 3vw;
display: flex;
align-items: center;
.title-imge{
.title-imge {
width: 1.8vw;
height: 1.8vw;
margin-right: 0.5vw;
// margin-top: -0.3vw;
}
.title-font{
.title-font {
font-size: 32rpx;
// margin-left: 3vw;
font-weight: 600;
}
}
// <view class="right-title">
// <image class="title-imge" src="/static/index/indeximage.png" mode="aspectFit"></image>
// <view class="title-font">

BIN
static/click.mp3 Normal file

Binary file not shown.