Files
chazhi_admin_broker/public/h5/assets/bundle-tea-room-choose-room-reserve.DMqdCLVi.js
2026-03-11 18:24:59 +08:00

2 lines
10 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Q=Object.defineProperty,X=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var P=(d,a,p)=>a in d?Q(d,a,{enumerable:!0,configurable:!0,writable:!0,value:p}):d[a]=p,L=(d,a)=>{for(var p in a||(a={}))Z.call(a,p)&&P(d,p,a[p]);if(I)for(var p of I(a))ee.call(a,p)&&P(d,p,a[p]);return d},U=(d,a)=>X(d,Y(a));import{d as W,i as G,aU as te,r as x,T as le,f as _,g as f,ai as ae,c as M,j as F,u as o,ae as R,w as t,k as e,l as H,m as n,p as O,q as N,aC as se,F as z,s as ne,t as q,af as oe,n as re,x as J,o as ce,a as pe,b as de,e as ie,_ as ue,ad as xe,bd as me,v as A,aE as E,aF as _e}from"./index-B-O76M86.js";import{_ as K}from"./wd-img.St7DZ4lX.js";import{_ as fe}from"./wd-swiper.CwC-Igp9.js";import{u as ge,_ as he}from"./useMescroll.CF7o-8Z8.js";import{_ as be}from"./RoomList.vue_vue_type_script_setup_true_name_RoomList_lang.DEr534Tk.js";import{_ as we}from"./wd-gap.BAKEf3S6.js";import{_ as ve,a as Ce}from"./wd-tabs.C8DG_53B.js";import"./wd-tag.xrpdYPqB.js";import"./PriceFormat.vue_vue_type_script_setup_true_name_PriceFormat_lang.D3cTQufW.js";import"./order.DxPOPHyl.js";import"./wd-badge.B92bS3IB.js";import"./useChildren.CuMc9-cW.js";const ye={},ke=W(U(L({},ye),{__name:"BookingTime",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(d,{emit:a}){const p=G("OSS"),h=d;te(()=>{v.handleInitTime()});const b=[{time:"09:00",disabled:!0},{time:"09:30",disabled:!1},{time:"10:00",disabled:!1},{time:"10:30",disabled:!1},{time:"11:00",disabled:!1},{time:"11:30",disabled:!1}],V=["周日","周一","周二","周三","周四","周五","周六"],D=x([]),w=x(0),m=x([]),T=x(0),v={handleInitTime:()=>{const c=new Date,l=[];for(let u=0;u<7;u++){const s=new Date(c);s.setDate(c.getDate()+u);const $=s.getMonth()+1,C=s.getDate(),S=V[s.getDay()];l.push(`${$}/${C}${S}`)}D.value=l},handleSelectTime:c=>{const l=m.value.indexOf(c);l>-1?m.value.splice(l,1):m.value.push(c),T.value=m.value.length*.5},handleConfirmSelectedTime:()=>{console.log("确认选择的时间:",w.value,m.value),i.value=!1},resetSelectedTime:()=>{m.value=[]}},i=le({get:()=>h.modelValue,set:c=>r("update:modelValue",c)}),r=a;return(c,l)=>{const u=_(f("wd-img"),K),s=H,$=_(f("wd-gap"),we),C=re,S=_(f("wd-tab"),ve),j=se,B=_(f("wd-tabs"),Ce),y=_(f("wd-popup"),ae);return F(),M(y,{modelValue:o(i),"onUpdate:modelValue":l[2]||(l[2]=g=>R(i)?i.value=g:null),"lock-scroll":"","custom-style":"border-radius: 32rpx 32rpx 0rpx 0rpx;",position:"bottom"},{default:t(()=>[e(s,{class:"relative pb-78rpx"},{default:t(()=>[e(s,{class:"absolute top-18rpx right-30rpx",onClick:l[0]||(l[0]=g=>i.value=!1)},{default:t(()=>[e(u,{width:"60rpx",height:"60rpx",src:`${o(p)}icon/icon_close.png`},null,8,["src"])]),_:1}),e(s,{class:"text-36rpx text-[#121212] leading-50rpx text-center pt-50rpx pb-40rpx"},{default:t(()=>[n("选择时间")]),_:1}),e(s,{class:""},{default:t(()=>[e(s,{class:"booking-time"},{default:t(()=>[e(B,{modelValue:o(w),"onUpdate:modelValue":l[1]||(l[1]=g=>R(w)?w.value=g:null),color:"#4C9F44"},{default:t(()=>[(F(!0),O(z,null,N(o(D),g=>(F(),M(j,{key:g,"scroll-y":""},{default:t(()=>[e(S,{title:`${g}`,name:g},{default:t(()=>[e(s,{class:""},{default:t(()=>[e(s,{class:"!h-500rpx mt-30rpx"},{default:t(()=>[e(s,{class:"grid grid-cols-4 gap-x-20rpx gap-y-20rpx mx-30rpx"},{default:t(()=>[(F(),O(z,null,N(b,k=>e(s,{key:k.time,class:ne(["h-72rpx rounded-16rpx flex items-center justify-center text-28rpx leading-40rpx",[k.disabled?"bg-[#F7F7F7] text-[#C9C9C9]":o(m).includes(k.time)?"bg-[#F1F8F0] text-[#4C9F44]":"bg-[#F7F7F7] text-[#303133]"]]),onClick:Se=>!k.disabled&&v.handleSelectTime(k.time)},{default:t(()=>[n(q(k.time),1)]),_:2},1032,["class","onClick"])),64))]),_:2},1024)]),_:2},1024),e(s,{class:""},{default:t(()=>[e(s,null,{default:t(()=>[e($,{height:"2rpx","bg-color":"#E5E5E5"})]),_:1}),e(s,{class:""},{default:t(()=>[e(s,{class:"w-full fixed bottom-0 left-0 right-0 bg-white h-152rpx text-32rpx leading-44rpx flex items-center justify-center leading-90rpx text-center"},{default:t(()=>[e(s,{class:"w-330rpx h-90rpx bg-[#F6F7F8] rounded-8rpx text-[#303133] mr-30rpx",onClick:v.resetSelectedTime},{default:t(()=>[n("重置")]),_:1},8,["onClick"]),e(s,{class:"w-330rpx h-90rpx bg-[#4C9F44] rounded-8rpx text-[#fff]",onClick:v.handleConfirmSelectedTime},{default:t(()=>[e(C,null,{default:t(()=>[n("确定")]),_:1}),o(T)?(F(),M(C,{key:0},{default:t(()=>[n(""+q(o(T))+"小时)",1)]),_:1})):oe("",!0)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["title","name"])]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}})),Fe=J(ke,[["__scopeId","data-v-0d4c3d9c"]]),Te="<p>这里是富文本内容,需要后台传递</p>",$e=W({__name:"choose-room-reserve",setup(d){const a=G("OSS"),p=x([`${a}images/banner1.png`,`${a}images/banner1.png`,`${a}images/banner1.png`]),h=x(0),b=x(!1),V=x(!1),D=x([]),w=x(!1),m=x(1),{mescrollInit:T,downCallback:v}=ge(ie,de);ce(()=>{});const i={upCallback:r=>{r.endErr()},handleCollect:()=>{E.info("收藏成功")},handleService:()=>{w.value=!0},handleSelectMenu:r=>{console.log("🚀 ~ item:",r),i.sheetMenuType=="service"?r.value==="saveImage"?E.success("图片已保存"):r.value==="addWeChat"&&E.success("已添加门店微信"):chooseRoom.sheetMenuType=="call"&&r.index==1&&_e({phoneNumber:r.value}),V.value=!1},handleLocation:()=>{E.info("正在导航..."),A({url:"/pages/map/map"})},handleCallPhone:()=>{chooseRoom.sheetMenuType="call",V.value=!0,D.value=[{name:15005837859,value:""},{name:"呼叫",value:15005837859}]},handleChangeTab:r=>{},handleClick:r=>{console.log("Clicked item:",r)},onChange:r=>{h.value=r.current},handleToRecharge:()=>{A({url:"/bundle/store-recharge/store-recharge"})}};return(r,c)=>{const l=H,u=_(f("wd-img"),K),s=xe,$=_(f("wd-swiper"),fe),C=me,S=_(f("wd-icon"),ue),j=_(f("mescroll-body"),he),B=pe("layout-tabbar-uni");return F(),M(B,null,{default:t(()=>[e(l,{class:"pb-200rpx"},{default:t(()=>[e(l,null,{default:t(()=>[e(s,{layoutLeft:""},{left:t(()=>[e(l,{class:"flex items-center"},{default:t(()=>[e(l,{class:"text-[#4C9F44] text-32rpx leading-44rpx flex items-center"},{default:t(()=>[e(l,{class:"w-40rpx h-40rpx leading-36rpx rounded-40rpx bg-[#E1F3DE] mr-10rpx"},{default:t(()=>[n("1")]),_:1}),e(l,null,{default:t(()=>[n("选择茶室")]),_:1})]),_:1}),e(l,{class:"flex items-center mx-10rpx"},{default:t(()=>[e(u,{width:"50rpx",height:"14rpx",src:`${o(a)}icon/icon_switch_left2.png`},null,8,["src"])]),_:1}),e(l,{class:"text-[#4C9F44] text-32rpx leading-44rpx flex items-center"},{default:t(()=>[e(l,{class:"w-40rpx h-40rpx leading-36rpx rounded-40rpx bg-[#E1F3DE] mr-10rpx"},{default:t(()=>[n("2")]),_:1}),e(l,null,{default:t(()=>[n("预定")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(l,{class:""},{default:t(()=>[e(l,{class:"mt-32rpx mx-30rpx"},{default:t(()=>[e($,{"value-key":"image",height:"240rpx",indicatorPosition:"bottom-left",indicator:{type:"dots-bar"},list:o(p),current:o(h),"onUpdate:current":c[0]||(c[0]=y=>R(h)?h.value=y:null),onClick:i.handleClick,onChange:i.onChange,mode:"aspectFit"},null,8,["list","current","onClick","onChange"])]),_:1}),e(l,{class:"bg-white rounded-16rpx py-26rpx px-30rpx mt-24rpx mx-30rpx"},{default:t(()=>[e(l,{class:"text-[#303133] text-32rpx leading-44rpx font-bold mb-24rpx"},{default:t(()=>[n("使用说明")]),_:1}),e(l,{class:""},{default:t(()=>[e(C,{nodes:Te})]),_:1})]),_:1}),e(l,{class:"bg-white rounded-16rpx py-26rpx px-30rpx mt-24rpx mx-30rpx",onClick:c[1]||(c[1]=y=>b.value=!0)},{default:t(()=>[e(l,{class:"text-[#303133] text-32rpx leading-44rpx font-bold mb-24rpx"},{default:t(()=>[n("预定时间")]),_:1}),e(l,{class:"flex items-center justify-between"},{default:t(()=>[e(l,{class:"text-[26rpx] text-[#606266] leading-36rpx"},{default:t(()=>[n("3小时起订")]),_:1}),e(l,{class:"flex items-center"},{default:t(()=>[e(l,{class:"text-[28rpx] text-[#909399] leading-40rpx"},{default:t(()=>[n(" 3小时起订 ")]),_:1}),e(l,{class:"mt-4rpx"},{default:t(()=>[e(S,{name:"chevron-right",size:"22px",color:"#909399"})]),_:1})]),_:1})]),_:1})]),_:1}),e(l,{class:"bg-white rounded-16rpx px-30rpx pb-32rpx mx-30rpx mt-20rpx"},{default:t(()=>[e(l,{class:"pt-32rpx text-[#303133] text-32rpx leading-44rpx"},{default:t(()=>[n("适用门店")]),_:1}),e(l,{class:"mt-26rpx flex items-center"},{default:t(()=>[e(l,{class:"mr-24rpx"},{default:t(()=>[e(u,{width:"170rpx",height:"170rpx",src:`${o(a)}images/home/home_image5.png`},null,8,["src"])]),_:1}),e(l,{class:"flex-1 flex justify-between items-center relative"},{default:t(()=>[e(l,{class:""},{default:t(()=>[e(l,{class:"text-[#303133] text-30rpx leading-40rpx line-2"},{default:t(()=>[n("这是商家的名称这是")]),_:1}),e(l,{class:"mt-26rpx text-[#909399] text-24rpx leading-34rpx"},{default:t(()=>[n("距您9km")]),_:1}),e(l,{class:"flex items-center mt-14rpx"},{default:t(()=>[e(l,{class:"mr-8rpx"},{default:t(()=>[e(u,{width:"28rpx",height:"28rpx",src:`${o(a)}icon/icon_location.png`},null,8,["src"])]),_:1}),e(l,{class:"ml-2rpx text-26rpx text-[#606266] line-2 w-300rpx"},{default:t(()=>[n("青浦区仓路478号青浦区仓路478号青浦区仓路478号青浦区仓路478号青浦区仓路478号青浦区仓路478号")]),_:1})]),_:1})]),_:1}),e(l,{class:"flex absolute top-1/2 right-0 -translate-y-1/2"},{default:t(()=>[e(l,{class:"text-center mr-20rpx",onClick:i.handleLocation},{default:t(()=>[e(u,{width:"64rpx",height:"64rpx",src:`${o(a)}icon/icon_nav.png`},null,8,["src"])]),_:1},8,["onClick"]),e(l,{class:"text-center",onClick:i.handleCallPhone},{default:t(()=>[e(u,{width:"64rpx",height:"64rpx",src:`${o(a)}icon/icon_phone.png`},null,8,["src"])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1}),e(l,{class:"bg-white mx-30rpx rounded-16rpx px-30rpx pb-32rpx mx-30rpx mt-20rpx"},{default:t(()=>[e(l,{class:"text-32rpx text-[#303133] leading-44rpx pt-32rpx"},{default:t(()=>[n("选择茶室包间")]),_:1}),e(l,{class:"mt-26rpx"},{default:t(()=>[e(j,{onInit:o(T),onDown:o(v),onUp:i.upCallback},{default:t(()=>[e(be,{"is-reserve":!0,"store-type":o(m)},null,8,["store-type"])]),_:1},8,["onInit","onDown","onUp"])]),_:1})]),_:1}),e(l,{class:"w-full fixed bottom-0 left-0 right-0 bg-white h-152rpx flex items-center justify-center"},{default:t(()=>[e(l,{class:"text-32rpx leading-44rpx flex items-center justify-center leading-90rpx text-center"},{default:t(()=>[e(l,{class:"w-630rpx h-90rpx bg-[#4C9F44] rounded-8rpx text-[#fff]"},{default:t(()=>[n("下一步")]),_:1})]),_:1})]),_:1})]),_:1}),e(Fe,{modelValue:o(b),"onUpdate:modelValue":c[2]||(c[2]=y=>R(b)?b.value=y:null)},null,8,["modelValue"])]),_:1})]),_:1})}}}),ze=J($e,[["__scopeId","data-v-c0b10515"]]);export{ze as default};