更新 1. H5 套餐列表 2. 流程缓存逻辑
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\API\H5;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ConfigService;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ComboController extends Controller
|
||||
{
|
||||
public function select(Request $request)
|
||||
{
|
||||
$combo = [[
|
||||
'label' => '类型一',
|
||||
'value' => '1',
|
||||
], [
|
||||
'label' => '类型二',
|
||||
'value' => '2',
|
||||
]];
|
||||
$person = [[
|
||||
'label' => '类型一',
|
||||
'value' => '1',
|
||||
], [
|
||||
'label' => '类型二',
|
||||
'value' => '2',
|
||||
]];
|
||||
return \Yz::Return(true, '获取成功', [
|
||||
'combo' => $combo,
|
||||
'person' => $person
|
||||
]);
|
||||
}
|
||||
|
||||
public function list(Request $request)
|
||||
{
|
||||
$hospital = $request->post('hospital');
|
||||
$doctor = $request->post('doctor');
|
||||
$openid = $request->post('openid');
|
||||
$item = [
|
||||
'cover' => '/assets/h5/combo.png',
|
||||
'name' => '中老年体检套餐(女)',
|
||||
'sex' => 2,
|
||||
'combo_type' => '1',
|
||||
'person_type' => '1',
|
||||
'tag' => [[
|
||||
'text' => '女已婚',
|
||||
'text_color' => '#47ABD8',
|
||||
'color' => '#EBF5FC',
|
||||
], [
|
||||
'text' => '22个项目',
|
||||
'text_color' => '#34C292',
|
||||
'color' => '#E9F8F3',
|
||||
]],
|
||||
'desc' => ['血糖', '腹部超声', '心电图'],
|
||||
'price' => '1229.00',
|
||||
'original_price' => '2048.88',
|
||||
'count' => '77'
|
||||
];
|
||||
$list = [];
|
||||
for ($i = 0; $i < 20; $i++) {
|
||||
$list[] = $item;
|
||||
}
|
||||
$hospital_info = [
|
||||
'id' => $hospital,
|
||||
'name' => '秀英院区',
|
||||
'address' => '秀英院区秀英院区秀英院区地址',
|
||||
'latitude' => '39.867671',
|
||||
'longitude' => '119.514223',
|
||||
];
|
||||
|
||||
$info = [
|
||||
'name' => '演示用户',
|
||||
'sex' => '2',
|
||||
'count' => 2
|
||||
];
|
||||
|
||||
$doctor_info = [
|
||||
'id' => $doctor,
|
||||
'name' => '张大夫'
|
||||
];
|
||||
|
||||
return \Yz::Return(true, '获取成功', [
|
||||
'list' => $list,
|
||||
'hospital' => $hospital_info,
|
||||
'doctor' => $doctor_info,
|
||||
'info' => $info,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 58 KiB |
@ -1 +0,0 @@
|
||||
.more_item_name_wrapper[data-v-55786203]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.4375rem}.more_item_wrapper[data-v-55786203]{width:50%}.more_item_icon_wrapper[data-v-55786203]{width:2.59375rem;height:2.59375rem;margin:.46875rem auto 0}.more_item_icon_wrapper uni-image[data-v-55786203]{width:2.59375rem;height:2.59375rem;display:block;object-fit:contain}.more_item_name_wrapper[data-v-55786203]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.8125rem}.ad_button_wrapper[data-v-55786203]{width:5.125rem;height:1.5rem;background:#fff;border-radius:.75rem;font-weight:500;font-size:.78125rem;color:#35acb2;line-height:1.5rem;text-align:center;position:absolute;right:.875rem;bottom:.8125rem}.ad_title_wrapper[data-v-55786203]{font-weight:500;font-size:1.5625rem;color:#fff;line-height:1;margin-top:1.15625rem;margin-left:1.90625rem}.check_item_desc_wrapper[data-v-55786203]{font-weight:500;font-size:.625rem;color:#b7b7b7;line-height:1;text-align:center;margin-top:.34375rem}.check_item_name_wrapper[data-v-55786203]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.4375rem}.check_item_wrapper[data-v-55786203]{width:50%}.check_item_icon_wrapper[data-v-55786203]{width:2.59375rem;height:2.59375rem;margin:0 auto}.check_item_icon_wrapper uni-image[data-v-55786203]{width:2.59375rem;height:2.59375rem;display:block;object-fit:contain}.order_item_name_wrapper[data-v-55786203]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.8125rem}.order_item_wrapper[data-v-55786203]{width:50%;border-right:.03125rem #E8E8E8 solid}.order_item_wrapper[data-v-55786203]:last-child{border-right:none}.order_item_icon_wrapper[data-v-55786203]{width:2.4375rem;height:2.4375rem;margin:0 auto}.order_item_icon_wrapper uni-image[data-v-55786203]{width:2.4375rem;height:2.4375rem;display:block;object-fit:contain}.button_wrapper[data-v-55786203]{width:3rem;height:1.6875rem;background:#35acb2;border-radius:.84375rem;font-weight:500;font-size:.6875rem;color:#fff;text-align:center;line-height:1.6875rem;position:absolute;right:.3125rem;bottom:1.1875rem}.content_tip_wrapper[data-v-55786203]{font-weight:400;font-size:.75rem;color:#939393;line-height:1;margin-top:.71875rem}.user_name_wrapper[data-v-55786203]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1}.user_sex_wrapper[data-v-55786203]{font-size:.6875rem;color:#939393;line-height:1;margin-left:.625rem}.user_info_wrapper[data-v-55786203]{display:flex;align-items:center}.logo_wrapper[data-v-55786203]{width:2.8125rem;height:2.8125rem;margin-left:.84375rem}.content_wrapper[data-v-55786203]{margin-left:.78125rem}.logo_wrapper uni-image[data-v-55786203]{width:2.8125rem;height:2.8125rem;display:block;object-fit:contain}.map_wrapper[data-v-55786203]{position:absolute;height:1.6875rem;background:#35acb2;border-radius:.84375rem;top:-2.25rem;right:0;display:flex;align-items:center;justify-content:center;padding-left:.5rem;padding-right:.625rem}.map_icon_wrapper[data-v-55786203]{width:.78125rem;height:.875rem}.map_icon_wrapper uni-image[data-v-55786203]{width:.78125rem;height:.875rem;display:block;object-fit:contain}.map_name_wrapper[data-v-55786203]{height:.6875rem;font-weight:500;font-size:.6875rem;color:#fff;line-height:1;margin-left:.4375rem}.map_long_wrapper[data-v-55786203]{font-weight:500;font-size:.6875rem;color:#fff;line-height:1;margin-left:.53125rem;padding-left:.53125rem;border-left:.03125rem solid #ffffff}.more_item_wrapper[data-v-55786203]{width:5.3125rem;height:4.90625rem;background:#fff;border-radius:.28125rem}.more_wrapper[data-v-55786203]{width:21.21875rem;margin:.46875rem auto 0;display:flex;align-items:center;justify-content:space-around}.ad_wrapper[data-v-55786203]{position:relative;overflow:hidden;width:21.21875rem;height:4.84375rem;background:linear-gradient(-90deg,#b4dada,#13848c 90%);border-radius:.3125rem;margin:.46875rem auto 0}.check_wrapper[data-v-55786203]{width:21.1875rem;height:6.71875rem;background:#fff;border-radius:.3125rem;margin:.46875rem auto 0;display:flex;align-items:center;justify-content:space-around}.bannder_wrapper[data-v-55786203]{width:100%;height:14.25rem;position:relative;z-index:1}.bannder_wrapper uni-image[data-v-55786203]{width:100%;height:14.25rem;display:block;object-fit:contain}.user_wrapper[data-v-55786203]{width:21.1875rem;height:2.34375rem;margin:0 auto;position:relative}.user_box_wrapper[data-v-55786203]{z-index:2;position:absolute;width:21.1875rem;height:4.8125rem;background:#fff;border-radius:.3125rem;bottom:0;display:flex;align-items:center}.order_wrapper[data-v-55786203]{width:21.1875rem;height:6.09375rem;background:#fff;border-radius:.3125rem;margin:.46875rem auto 0;display:flex;align-items:center;justify-content:space-around}
|
||||
@ -0,0 +1 @@
|
||||
.more_item_name_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.4375rem}.more_item_wrapper[data-v-2c7127b1]{width:50%}.more_item_icon_wrapper[data-v-2c7127b1]{width:2.59375rem;height:2.59375rem;margin:.46875rem auto 0}.more_item_icon_wrapper uni-image[data-v-2c7127b1]{width:2.59375rem;height:2.59375rem;display:block;object-fit:contain}.more_item_name_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.8125rem}.ad_button_wrapper[data-v-2c7127b1]{width:5.125rem;height:1.5rem;background:#fff;border-radius:.75rem;font-weight:500;font-size:.78125rem;color:#35acb2;line-height:1.5rem;text-align:center;position:absolute;right:.875rem;bottom:.8125rem}.ad_title_wrapper[data-v-2c7127b1]{font-weight:500;font-size:1.5625rem;color:#fff;line-height:1;margin-top:1.15625rem;margin-left:1.90625rem}.check_item_desc_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.625rem;color:#b7b7b7;line-height:1;text-align:center;margin-top:.34375rem}.check_item_name_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.4375rem}.check_item_wrapper[data-v-2c7127b1]{width:50%}.check_item_icon_wrapper[data-v-2c7127b1]{width:2.59375rem;height:2.59375rem;margin:0 auto}.check_item_icon_wrapper uni-image[data-v-2c7127b1]{width:2.59375rem;height:2.59375rem;display:block;object-fit:contain}.order_item_name_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1;text-align:center;margin-top:.8125rem}.order_item_wrapper[data-v-2c7127b1]{width:50%;border-right:.03125rem #E8E8E8 solid}.order_item_wrapper[data-v-2c7127b1]:last-child{border-right:none}.order_item_icon_wrapper[data-v-2c7127b1]{width:2.4375rem;height:2.4375rem;margin:0 auto}.order_item_icon_wrapper uni-image[data-v-2c7127b1]{width:2.4375rem;height:2.4375rem;display:block;object-fit:contain}.button_wrapper[data-v-2c7127b1]{width:3rem;height:1.6875rem;background:#35acb2;border-radius:.84375rem;font-weight:500;font-size:.6875rem;color:#fff;text-align:center;line-height:1.6875rem;position:absolute;right:.3125rem;bottom:1.1875rem}.content_tip_wrapper[data-v-2c7127b1]{font-weight:400;font-size:.75rem;color:#939393;line-height:1;margin-top:.71875rem}.user_name_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.8125rem;color:#323232;line-height:1}.user_sex_wrapper[data-v-2c7127b1]{font-size:.6875rem;color:#939393;line-height:1;margin-left:.625rem}.user_info_wrapper[data-v-2c7127b1]{display:flex;align-items:center}.logo_wrapper[data-v-2c7127b1]{width:2.8125rem;height:2.8125rem;margin-left:.84375rem}.content_wrapper[data-v-2c7127b1]{margin-left:.78125rem}.logo_wrapper uni-image[data-v-2c7127b1]{width:2.8125rem;height:2.8125rem;display:block;object-fit:contain}.map_wrapper[data-v-2c7127b1]{position:absolute;height:1.6875rem;background:#35acb2;border-radius:.84375rem;top:-2.25rem;right:0;display:flex;align-items:center;justify-content:center;padding-left:.5rem;padding-right:.625rem}.map_icon_wrapper[data-v-2c7127b1]{width:.78125rem;height:.875rem}.map_icon_wrapper uni-image[data-v-2c7127b1]{width:.78125rem;height:.875rem;display:block;object-fit:contain}.map_name_wrapper[data-v-2c7127b1]{height:.6875rem;font-weight:500;font-size:.6875rem;color:#fff;line-height:1;margin-left:.4375rem}.map_long_wrapper[data-v-2c7127b1]{font-weight:500;font-size:.6875rem;color:#fff;line-height:1;margin-left:.53125rem;padding-left:.53125rem;border-left:.03125rem solid #ffffff}.more_item_wrapper[data-v-2c7127b1]{width:5.3125rem;height:4.90625rem;background:#fff;border-radius:.28125rem}.more_wrapper[data-v-2c7127b1]{width:21.21875rem;margin:.46875rem auto 0;display:flex;align-items:center;justify-content:space-around}.ad_wrapper[data-v-2c7127b1]{position:relative;overflow:hidden;width:21.21875rem;height:4.84375rem;background:linear-gradient(-90deg,#b4dada,#13848c 90%);border-radius:.3125rem;margin:.46875rem auto 0}.check_wrapper[data-v-2c7127b1]{width:21.1875rem;height:6.71875rem;background:#fff;border-radius:.3125rem;margin:.46875rem auto 0;display:flex;align-items:center;justify-content:space-around}.bannder_wrapper[data-v-2c7127b1]{width:100%;height:14.25rem;position:relative;z-index:1}.bannder_wrapper uni-image[data-v-2c7127b1]{width:100%;height:14.25rem;display:block;object-fit:contain}.user_wrapper[data-v-2c7127b1]{width:21.1875rem;height:2.34375rem;margin:0 auto;position:relative}.user_box_wrapper[data-v-2c7127b1]{z-index:2;position:absolute;width:21.1875rem;height:4.8125rem;background:#fff;border-radius:.3125rem;bottom:0;display:flex;align-items:center}.order_wrapper[data-v-2c7127b1]{width:21.1875rem;height:6.09375rem;background:#fff;border-radius:.3125rem;margin:.46875rem auto 0;display:flex;align-items:center;justify-content:space-around}
|
||||
@ -0,0 +1 @@
|
||||
.tip_wrapper[data-v-0b58075f]{height:100vh;width:100%;display:flex;align-items:center;justify-content:center}
|
||||
@ -1 +0,0 @@
|
||||
.tip_wrapper[data-v-98c97285]{height:100vh;width:100%;display:flex;align-items:center;justify-content:center}
|
||||
@ -1 +0,0 @@
|
||||
import{c as a,w as s,i as o,d as e,h as t,f as n}from"./index-kKqG3HBi.js";const r={__name:"combo",setup:r=>(r,l)=>{const c=o;return e(),a(c,null,{default:s((()=>[t(" Combo "),n(c,{class:"blank_wrapper"})])),_:1})}};export{r as default};
|
||||
@ -0,0 +1 @@
|
||||
import{r as e,o as a,c as s,w as t,z as o,A as p,i as n,d as r,h as d,t as i}from"./index-DZ-bgQ02.js";import{_ as l}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=l({__name:"login",props:{openid:{type:String,default:""}},setup(l){const u=l,_=e("授权登录中,请稍候...");return a((()=>{(()=>{let e="";u.openid&&(e=decodeURIComponent(u.openid)),e?(o("OPENID",e),p({url:"/pages/main/index/index"})):_.value="未获取到授权信息,请从小程序进入"})()})),(e,a)=>{const o=n;return r(),s(o,{class:"tip_wrapper"},{default:t((()=>[d(i(_.value),1)])),_:1})}}},[["__scopeId","data-v-0b58075f"]]);export{u as default};
|
||||
@ -1 +0,0 @@
|
||||
import{r as e,o as a,c as s,w as p,v as t,p as o,i as n,d as r,h as d,t as i}from"./index-kKqG3HBi.js";import{_ as l}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=l({__name:"login",props:{openid:{type:String,default:""}},setup(l){const u=l,_=e("授权登录中,请稍候...");return a((()=>{(()=>{let e="";u.openid&&(e=decodeURIComponent(u.openid)),e?(t("OPENID",e),o({url:"/pages/main/index/index"})):_.value="未获取到授权信息,请从小程序进入"})()})),(e,a)=>{const t=n;return r(),s(t,{class:"tip_wrapper"},{default:p((()=>[d(i(_.value),1)])),_:1})}}},[["__scopeId","data-v-98c97285"]]);export{u as default};
|
||||
@ -0,0 +1 @@
|
||||
import{c as a,w as s,i as r,d as e,h as t,f as n}from"./index-DZ-bgQ02.js";const d={__name:"order",setup:d=>(d,l)=>{const o=r;return e(),a(o,null,{default:s((()=>[t(" Order "),n(o,{class:"blank_wrapper"})])),_:1})}};export{d as default};
|
||||
@ -1 +0,0 @@
|
||||
import{c as a,w as s,i as r,d as e,h as t,f as n}from"./index-kKqG3HBi.js";const d={__name:"order",setup:d=>(d,l)=>{const o=r;return e(),a(o,null,{default:s((()=>[t(" Order "),n(o,{class:"blank_wrapper"})])),_:1})}};export{d as default};
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 223 B |