更新羽声语音h5

This commit is contained in:
yziiy
2025-10-23 16:04:28 +08:00
parent f77801f9a1
commit 4fc72fbffe
228 changed files with 5384 additions and 4065 deletions

View File

@@ -28,11 +28,6 @@
</view>
</view>
</view>
<!-- <uni-grid :column="3" :showBorder="false" :square="false">
<uni-grid-item class="decorate-box" @click="openPopup(item)" >
</uni-grid-item>
</uni-grid> -->
<view class="color-9" v-else style="text-align: center;font-size: 24rpx;">
暂无数据
</view>
@@ -85,9 +80,9 @@
<view>
{{menu.day}}
</view>
<view class="sale" v-if="menu.discount">
<!-- <view class="sale" v-if="menu.discount">
7折优惠
</view>
</view> -->
</view>
</view>
</template>
@@ -105,14 +100,13 @@
</view>
<view class="button-footer">
<view class="pay-button" @click="toPay">
确认支付
</view>
</view>
</view>
</uni-popup>
</view>
<view v-else>
<!-- 请求出错啦 -->
</view>
</view>
</template>
@@ -147,7 +141,7 @@
methods: {
async gettabs() {
http.get('/api/Decorate/get_type_list', {
token: uni.getStorageSync('token') ?? '',
token: uni.getStorageSync('token') || '',
have_hot: 0
}).then(response => {
const {
@@ -163,15 +157,6 @@
value: ele.name
}
})
// Object.keys(data).forEach(ele => {
// // console.log(ele)
// const item = {
// type: +ele,
// value: data[ele]
// }
// list.push(item)
// })
// console.log(list)
}
// this.tabs = list
this.errorPage = false
@@ -184,17 +169,10 @@
});
},
async getDecorate(type) {
// let listData = []
http.get('/api/Decorate/get_decorate_list', {
token: uni.getStorageSync('token') ?? '',
token: uni.getStorageSync('token') || '',
type
}).then(response => {
// console.log(response.data)
// for (let i = 1; i <= 40; i++) {
// listData.push(...response.data)
// }
// this.listData =listData
// console.log(listData)
const {
data,
code
@@ -208,7 +186,7 @@
},
async getDecorateDetail(id, detail) {
http.get('/api/Decorate/get_decorate_detail', {
token: uni.getStorageSync('token') ?? '',
token: uni.getStorageSync('token') || '',
did: id
}).then(response => {
const {
@@ -271,18 +249,28 @@
mask: true
})
http.post('/api/Decorate/pay_decorate', {
token: uni.getStorageSync('token') ?? '',
token: uni.getStorageSync('token') || '',
did: this.decorateDetail.did,
day: this.payData.day
}).then(response => {
uni.showToast({
title: '购买成功',
icon: 'success',
mask: true,
duration: 1000
});
uni.hideLoading()
this.closePopup()
if(response.code) {
uni.showToast({
title: '购买成功',
icon: 'success',
mask: true,
duration: 1000
});
uni.hideLoading()
this.closePopup()
} else {
uni.showToast({
title: response.msg,
icon: 'none',
mask: true,
duration: 1000
});
}
}).catch(error => {});
},
// 点击去充值
@@ -376,7 +364,7 @@
width: 686rpx;
height: 200rpx;
border-radius: 14rpx 14rpx 14rpx 14rpx;
background-image: url('@/static/image/swiper.png');
background-image: url('@/static/image/swipers.png');
background-repeat: no-repeat;
background-size: 100% 100%;
margin-bottom: 32rpx;
@@ -443,11 +431,12 @@
}
.active-menubox {
border: 0;
background-image: url('@/static/image/menuBg.png');
background: linear-gradient( 180deg, #FBFBFF 0%, #F7EBFF 100%);
border: 2rpx solid;
border-radius: 12rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
color: #0DFFB9;
color: var(--primary-color);
}
@@ -484,7 +473,7 @@
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 28rpx;
color: #0DFFB9;
color: var(--primary-color);
}
}
@@ -506,9 +495,16 @@
width: 376rpx;
height: 84rpx;
background-image: url('@/static/image/propMall/pay.png');
// background-image: url('@/static/image/propMall/pay.png');
background-repeat: no-repeat;
background-size: 100% 100%;
background: var(--primary-color);
color: var(--font-button-color);
font-size: var(--font-button-size-p);
border-radius: 106rpx;
display: inline-flex;
align-items: center;
justify-content: center;
}
}
}