From 375a31fa03281374f9a9da7bc77068d074b715e7 Mon Sep 17 00:00:00 2001 From: yanzai Date: Tue, 30 Jan 2024 20:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B5=81=E7=A8=8B=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=A5=E5=91=8A=E9=A2=84=E8=A7=88=EF=BC=8C?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=EF=BC=8C=E4=BC=98=E5=8C=96=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/ComboItemController.php | 2 +- app/Http/Controllers/HospitalController.php | 2 +- 大庆普济医院小程序/pages.json | 12 +- 大庆普济医院小程序/pages/buy/info/info.vue | 59 +++++----- 大庆普济医院小程序/pages/main/combo/combo.vue | 19 +-- .../pages/main/combo/combo_image.vue | 111 ++++++++++++++++++ 大庆普济医院小程序/pages/test/test.vue | 108 ++++++++++++----- .../components/report/type3.vue | 9 +- 8 files changed, 249 insertions(+), 73 deletions(-) create mode 100644 大庆普济医院小程序/pages/main/combo/combo_image.vue diff --git a/app/Http/Controllers/ComboItemController.php b/app/Http/Controllers/ComboItemController.php index 2b1612b..858ca98 100644 --- a/app/Http/Controllers/ComboItemController.php +++ b/app/Http/Controllers/ComboItemController.php @@ -307,7 +307,7 @@ class ComboItemController extends Controller public function GetComboImageList(Request $request){ $hospital = $request->post('hospital'); $combo = $request->post('combo'); - $info=DB::table('hospital_combo')->where(['hospital'=>$hospital,'combo_id'=>$combo])->first(); + $info=DB::table('hospital_combo')->where(['hospital'=>$hospital,'combo_id'=>$combo])->where('imgs','<>','')->first(); return Yo::echo([ 'info' => $info ]); diff --git a/app/Http/Controllers/HospitalController.php b/app/Http/Controllers/HospitalController.php index 328dd0d..a3bf3f3 100644 --- a/app/Http/Controllers/HospitalController.php +++ b/app/Http/Controllers/HospitalController.php @@ -70,7 +70,7 @@ class HospitalController extends Controller public function select_list() { Login::admin(); - $list = Hospital::where('del', 2)->get(); + $list = Hospital::where('del', 2)->where('status',1)->get(); return Yo::echo([ 'list' => $list ]); diff --git a/大庆普济医院小程序/pages.json b/大庆普济医院小程序/pages.json index 8eaecfc..b656321 100644 --- a/大庆普济医院小程序/pages.json +++ b/大庆普济医院小程序/pages.json @@ -9,7 +9,8 @@ "path": "pages/main/user/user", "style": { "navigationBarTitleText": "我的", - "enablePullDownRefresh": false + "enablePullDownRefresh": false, + "navigationStyle": "custom" } }, { @@ -52,6 +53,15 @@ } } + ,{ + "path" : "pages/main/combo/combo_image", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } ], "subPackages": [{ "root": "pages/buy", diff --git a/大庆普济医院小程序/pages/buy/info/info.vue b/大庆普济医院小程序/pages/buy/info/info.vue index 3fc2d77..3091643 100644 --- a/大庆普济医院小程序/pages/buy/info/info.vue +++ b/大庆普济医院小程序/pages/buy/info/info.vue @@ -109,33 +109,33 @@ if (type === 1) nextClick(false) if (type === 0) next_text.value = '下一步' } - //获取图片列表 - let image_list=ref([]) - let is_show_image=ref(false) - const getComboImage=async()=>{ - const response = await GetComboImageListAction({ - hospital: $store.buy_info.hospital, - combo:$store.buy_info.combo - }) - $response(response, () => { - if(response.data.info){ - let arr = response.data.info.imgs.split(",") + // //获取图片列表 + // let image_list=ref([]) + // let is_show_image=ref(false) + // const getComboImage=async()=>{ + // const response = await GetComboImageListAction({ + // hospital: $store.buy_info.hospital, + // combo:$store.buy_info.combo + // }) + // $response(response, () => { + // if(response.data.info){ + // let arr = response.data.info.imgs.split(",") - arr.forEach(function(v,k){ - if(v != ""){ - image_list.value.push(v) - is_show_image.value=true - } - }) - console.log( image_list.value) - }else{ - image_list.value=[] - } - console.log(image_list.value.length) - }) - } + // arr.forEach(function(v,k){ + // if(v != ""){ + // image_list.value.push(v) + // is_show_image.value=true + // } + // }) + // console.log( image_list.value) + // }else{ + // image_list.value=[] + // } + // console.log(image_list.value.length) + // }) + // } onShow(() => { - getComboImage() + // getComboImage() getUserInfo() HospitalExtraInfo('order_type') HospitalExtraInfo('readme') @@ -145,7 +145,7 @@