master
王文杰 7 months ago
parent d500942108
commit cc1bc9b0a0

@ -121,13 +121,15 @@ const handleWeightChange = (val) => {
activeWeightKey.value = val
}
//
const handleCategoryChange = (val) => {
const handleCategoryChange = (item) => {
if (!item.disabled) {
categoryList.forEach((e) => {
if (val == e.code) {
if (item.code == e.code) {
e.selected = !e.selected
}
})
}
}
//
const handleBooking = async () => {
if (!isBooking.value) {
@ -232,7 +234,7 @@ const handlePopClose = (item) => {
'category-item',
]"
hover-class="none"
@click="handleCategoryChange(item.code)"
@click="handleCategoryChange(item)"
>
<view class="right">
<image class="icon" :src="item.icon"></image>

@ -11,8 +11,8 @@
* 4. token
*/
import { useMemberStore } from '@/stores'
const baseURL = 'http://192.168.0.166:8808/api'
// const baseURL = 'http://222.71.165.188:8808/api'
// const baseURL = 'http://192.168.0.166:8808/api'
const baseURL = 'http://222.71.165.188:8808/api'
// 添加拦截器
const httpInterceptor = {
// 拦截前触发

Loading…
Cancel
Save