套餐列表增加关键字筛选

main
刘佳宇 1 year ago
parent f36f5dc862
commit dc649731b6

@ -160,11 +160,12 @@ const combo_list_computed = computed(() => {
} }
return list; return list;
}); });
const getComboList = async () => { const getComboList = async (e) => {
uni.showLoading(); uni.showLoading();
let obj = { let obj = {
doctor: $store.save.doctor, doctor: $store.save.doctor,
hospital: hospital_active.value, hospital: hospital_active.value,
search: e?.value,
}; };
if ($store.getCheckupTypeId()) { if ($store.getCheckupTypeId()) {
let b = $store.getCheckupTypeId(); let b = $store.getCheckupTypeId();
@ -387,6 +388,16 @@ const toRouter = () => {
<view class="doctor_tip_wrapper">自动筛选匹配套餐</view> <view class="doctor_tip_wrapper">自动筛选匹配套餐</view>
</view> </view>
</view> --> </view> -->
<view class="bg-#d8edf2">
<uni-search-bar
class="search"
radius="100"
placeholder="请输入关键字搜索"
@clear="getComboList()"
@cancel="getComboList()"
@confirm="getComboList"
/>
</view>
<view class="select_wrapper flex" v-if="selectKey"> <view class="select_wrapper flex" v-if="selectKey">
<template v-for="(value, key, index) in combo_select" :key="index"> <template v-for="(value, key, index) in combo_select" :key="index">
<view <view
@ -528,7 +539,7 @@ const toRouter = () => {
</view> </view>
</uni-popup> </uni-popup>
<uni-popup ref="popup" mask-background-color="transparent"> <uni-popup ref="popup" mask-background-color="transparent">
<view class="pt-180rpx w-full h-100vh" @click="popup.close()"> <view class="pt-292rpx w-full h-100vh" @click="popup.close()">
<view class="bg-[rgba(0,0,0,0.3)] h-100%"> <view class="bg-[rgba(0,0,0,0.3)] h-100%">
<view <view
class="bg-#fff" class="bg-#fff"

Loading…
Cancel
Save