增加技师端---用户端 聊天界面

This commit is contained in:
贾祥聪
2025-08-21 16:38:20 +08:00
parent 9f85cf458a
commit 2935d32d68
454 changed files with 248 additions and 237 deletions

View File

@@ -0,0 +1 @@
import{e as a,u as e,f as l,P as t,o as s,q as o,b as u,w as n,j as r,F as c,s as d,bS as i,r as p,a as f,i as m,c as _,t as x,h as y,aP as b,ai as h}from"./index-8146d74e.js";import{_ as g}from"./page-meta.142863c8.js";import{_ as k}from"./u-search.cf02bd17.js";import{_ as v}from"./u-icon.58b55f5a.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";const w=j(a({__name:"index",setup(a){const j=e(),w=l(""),C=l([]),V=async()=>{const a=await i({keyword:w.value});C.value=a};return t(()=>{V()}),(a,e)=>{const l=p(f("page-meta"),g),t=m,i=p(f("u-search"),k),S=p(f("u-icon"),v);return s(),o(c,null,[u(l,{"page-style":a.$theme.pageStyle},null,8,["page-style"]),u(t,{class:"container"},{default:n(()=>[u(t,{class:"text-3xl font-bold mb-[30rpx]"},{default:n(()=>[r("选择城市")]),_:1}),u(i,{placeholder:"搜索城市名",modelValue:w.value,"onUpdate:modelValue":e[0]||(e[0]=a=>w.value=a),shape:"round",clearabled:!0,animation:!0,height:70,"bg-color":"#f2f2f2",onSearch:V,onCustom:V},null,8,["modelValue"]),u(t,{class:"text-[24rpx] text-[#c8c9cc] mt-[30rpx] mb-[30rpx]"},{default:n(()=>[r("已开通以下城市")]),_:1}),u(t,null,{default:n(()=>[u(t,null,{default:n(()=>[(s(!0),o(c,null,d(C.value,(a,e)=>(s(),_(t,{key:e,class:"anchor flex mb-[10rpx]"},{default:n(()=>[u(t,{class:"font-bold text-[32rpx]"},{default:n(()=>[r(x(e),1)]),_:2},1024),u(t,{class:"ml-[20rpx]"},{default:n(()=>[(s(!0),o(c,null,d(a,(a,e)=>(s(),_(t,{key:e,onClick:e=>(a=>{const e={city_id:a.id,latitude:a.db09_lat,longitude:a.db09_lng,cityName:a.name};b("chooseCity",e),h()})(a),class:"pb-[40rpx] pt-[4rpx] w-[500rpx]"},{default:n(()=>{var e;return[(null==(e=y(j).userInfo)?void 0:e.city_id)!=a.id?(s(),_(t,{key:0},{default:n(()=>[r(x(a.name),1)]),_:2},1024)):(s(),_(t,{key:1,class:"u-flex justify-between"},{default:n(()=>[u(t,{class:"text-[#fa3534]"},{default:n(()=>[r(x(a.name),1)]),_:2},1024),u(S,{name:"checkmark",color:"#fa3534"})]),_:2},1024))]}),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-95c14dc8"]]);export{w as default};