|
|
|
|
@ -133,6 +133,7 @@
|
|
|
|
|
popup.value.close();
|
|
|
|
|
};
|
|
|
|
|
const selectDone = async () => {
|
|
|
|
|
|
|
|
|
|
if (priceIndex.value === null) {
|
|
|
|
|
delete screenObj.value.combo_price;
|
|
|
|
|
} else {
|
|
|
|
|
@ -146,6 +147,7 @@
|
|
|
|
|
}
|
|
|
|
|
await getComboList();
|
|
|
|
|
popup_new.value.close();
|
|
|
|
|
|
|
|
|
|
shaixuan_popup_status.value=false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -171,7 +173,8 @@
|
|
|
|
|
$response(response, async () => {
|
|
|
|
|
combo_select.value = response.data;
|
|
|
|
|
combo_select.value.sort_sale_count=[{id:1,name:"销量从低到高"},{id:2,name:"销量从高到低"}]
|
|
|
|
|
combo_select.value.sort_price=[{id:1,name:"价格从低到高"},{id:2,name:"价格从高到低"}]
|
|
|
|
|
// combo_select.value.sort_price=[{id:1,name:"价格从低到高"},{id:2,name:"价格从高到低"}]
|
|
|
|
|
combo_select.value.sort_price=[{id:2,name:"价格从高到低"}]
|
|
|
|
|
if ("sort_list" in combo_select.value) {
|
|
|
|
|
selectKey.value = "sort_list";
|
|
|
|
|
sortIndex.value = 0;
|
|
|
|
|
@ -192,8 +195,9 @@
|
|
|
|
|
name: "",
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let random=ref(0);
|
|
|
|
|
const combo_list_computed = computed(() => {
|
|
|
|
|
random.value=Math.random()
|
|
|
|
|
let list = [];
|
|
|
|
|
for (let i in combo_list.value.list) {
|
|
|
|
|
let push = false;
|
|
|
|
|
@ -219,10 +223,12 @@
|
|
|
|
|
list.push(combo_list.value.list[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
});
|
|
|
|
|
let combo_list_k = ref(null)
|
|
|
|
|
const getComboList = async (e) => {
|
|
|
|
|
|
|
|
|
|
uni.showLoading();
|
|
|
|
|
let obj = {
|
|
|
|
|
doctor: $store.save.doctor,
|
|
|
|
|
@ -244,6 +250,7 @@
|
|
|
|
|
const response = await $api("ComboList", obj);
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
|
|
combo_list.value = response.data;
|
|
|
|
|
price_max_min.value=combo_list.value.price_max_min
|
|
|
|
|
});
|
|
|
|
|
@ -285,14 +292,21 @@
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
let shaixuan_popup_status=ref(false);//筛选窗口打开状态
|
|
|
|
|
let tiaojian_poput_status=ref(false);
|
|
|
|
|
const open = (key) => {
|
|
|
|
|
if (key) {
|
|
|
|
|
// 点击三个筛选条件
|
|
|
|
|
if(tiaojian_poput_status.value===true){
|
|
|
|
|
popup.value.close();
|
|
|
|
|
tiaojian_poput_status.value=false
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
selectKey.value = key;
|
|
|
|
|
popup.value.close();
|
|
|
|
|
|
|
|
|
|
popup_new.value.close();
|
|
|
|
|
let time = setTimeout(() => {
|
|
|
|
|
popup.value.open("top");
|
|
|
|
|
tiaojian_poput_status.value=true
|
|
|
|
|
clearTimeout(time);
|
|
|
|
|
}, 400);
|
|
|
|
|
} else {
|
|
|
|
|
@ -464,8 +478,8 @@
|
|
|
|
|
price_max_min.value=value
|
|
|
|
|
console.log(price_max_min.value);
|
|
|
|
|
}
|
|
|
|
|
const combosex_change=()=>{
|
|
|
|
|
|
|
|
|
|
const combosex_change=(value)=>{
|
|
|
|
|
screenObj.value.combo_sex=value
|
|
|
|
|
}
|
|
|
|
|
const tabsClickFunc=(value)=>{
|
|
|
|
|
tabs_active_id.value=value
|
|
|
|
|
@ -551,12 +565,12 @@
|
|
|
|
|
}" class="mx-20rpx center text-#2f2f2f text-26rpx">
|
|
|
|
|
<view>筛选</view>
|
|
|
|
|
<view class="select_item_icon2_wrapper">
|
|
|
|
|
<image v-if="screenObj.combo_price || screenObj.combo_item || screenObj.price_range || screenObj.combo_crowd || screenObj.combo_type" src="@/static/assets/shaixuan_active@2x.png"></image>
|
|
|
|
|
<image v-if="screenObj.combo_price || screenObj.combo_item || screenObj.price_range || screenObj.combo_crowd || screenObj.combo_type" src="@/static/assets/shaixuan_active1@2x.png"></image>
|
|
|
|
|
<image v-else src="@/static/assets/shaixuan@2x.png"></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="list_wrapper" ref="combo_list_k">
|
|
|
|
|
<view class="list_wrapper" ref="combo_list_k" :key="random">
|
|
|
|
|
<view class="combo_wrapper" v-for="(i, k) in combo_list_computed" :key="k">
|
|
|
|
|
<view style="display: flex;">
|
|
|
|
|
<view class="combo_info_wrapper">
|
|
|
|
|
@ -669,13 +683,24 @@
|
|
|
|
|
<view class="popup_new_main">
|
|
|
|
|
<view style="">
|
|
|
|
|
<view class="shaixuan_title">性别</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view style="display: flex;flex-wrap: wrap; ">
|
|
|
|
|
<view @click="combosex_change(0)" :class="['shaixuan_button',{'shaixuan_button_active': screenObj.combo_sex==0}]">
|
|
|
|
|
不限
|
|
|
|
|
</view>
|
|
|
|
|
<view @click="combosex_change(1)" :class="['shaixuan_button',{'shaixuan_button_active': screenObj.combo_sex==1}]">
|
|
|
|
|
男
|
|
|
|
|
</view>
|
|
|
|
|
<view @click="combosex_change(2)" :class="['shaixuan_button',{'shaixuan_button_active': screenObj.combo_sex==2}]">
|
|
|
|
|
女
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view>
|
|
|
|
|
<uni-data-select
|
|
|
|
|
v-model="screenObj.combo_sex"
|
|
|
|
|
:localdata="sex_range"
|
|
|
|
|
@change="combosex_change"
|
|
|
|
|
></uni-data-select>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view class="shaixuan_title">套餐类型</view>
|
|
|
|
|
<view style="display: flex;flex-wrap: wrap; ">
|
|
|
|
|
@ -685,7 +710,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="shaixuan_title">价格区间</view>
|
|
|
|
|
<PriceRange @huakuaiValue="getHuaKuaiValue" :step="combo_list.step" :rangDate="price_max_min" :rangMax="combo_list.price_max" :dataInfo="combo_list.price_range"></PriceRange>
|
|
|
|
|
<PriceRange @huakuaiValue="getHuaKuaiValue" :step="combo_list.step" :rangDate="price_max_min" :rangMax="Number(combo_list.price_max)" :dataInfo="combo_list.price_range"></PriceRange>
|
|
|
|
|
<view style="margin-top: -70rpx;">
|
|
|
|
|
<view class="shaixuan_title">适用人群</view>
|
|
|
|
|
<view style="display: flex;flex-wrap: wrap; ">
|
|
|
|
|
|