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

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{_ as e}from"./page-meta.142863c8.js";import{e as a,r as s,a as l,o as t,c as n,w as o,b as u,j as i,t as r,m as c,i as m,p as d,B as p,f,q as _,k as x,F as g,s as b,b6 as h,a4 as v}from"./index-8146d74e.js";import{_ as y}from"./u-navbar.938f0656.js";import{_ as k}from"./u-sticky.de792d2a.js";import{_ as j}from"./u-icon.58b55f5a.js";import{_ as V}from"./z-paging.69e9efa0.js";import{_ as w}from"./u-image.2676d4c0.js";import{_ as C}from"./_plugin-vue_export-helper.1b428a4d.js";import{S as z}from"./business.65364477.js";const F=C(a({__name:"businessCard",props:{item:{type:Object,default:()=>{}}},setup:e=>(a,p)=>{const f=s(l("u-image"),w),_=m,x=d;return t(),n(_,{class:"p-2 bg-white rounded-lg flex",onClick:p[0]||(p[0]=a=>{return s=e.item.id,l=e.item.is_join,void c({url:`/packages/pages/business_detail/business_detail?id=${s}&isJoin=${l}`});var s,l})},{default:o(()=>[u(_,{class:"flex-none"},{default:o(()=>[u(f,{src:e.item.logo,"border-radius":"20",height:"200",width:"200"},null,8,["src"])]),_:1}),u(_,{class:"flex flex-col ml-[20rpx]"},{default:o(()=>[u(_,{class:"font-bold text-xl"},{default:o(()=>[i(r(e.item.name),1)]),_:1}),u(_,{class:"text-xs mt-[30rpx] text-muted font-medium line-clamp-2"},{default:o(()=>[i(r(e.item.synopsis||"暂无简介~"),1)]),_:1}),u(_,{class:"text-content text-xs mt-2 introduct font-medium"},{default:o(()=>[u(x,null,{default:o(()=>[i(r(e.item.category_name),1)]),_:1})]),_:1})]),_:1})]),_:1})}}),[["__scopeId","data-v-df1aab7e"]]),$=C(a({__name:"join_business",setup(a){const r=p(),c=f(""),d=()=>{c.value="",r.value.reload()},w=e=>{r.value.reload()},C=f([]),$=async(e,a)=>{try{const{lists:s}=await z({keyword:c.value,page_no:e,page_size:a});r.value.complete(s),!s.length&&c.value&&uni.$u.toast("未获取到相关商家信息")}catch(s){console.log("报错=>",s),r.value.complete(!1)}};return(a,p)=>{const f=s(l("page-meta"),e),z=s(l("u-navbar"),y),I=s(l("u-sticky"),k),O=s(l("u-icon"),j),S=m,U=h,q=v,B=s(l("z-paging"),V);return t(),_(g,null,[u(f,{"page-style":a.$theme.pageStyle},null,8,["page-style"]),u(S,{class:"join-business flex flex-col min-h-0 h-full"},{default:o(()=>[u(I,{"h5-nav-height":"0","bg-color":"transparent"},{default:o(()=>[u(z,{"is-back":!0,"is-fixed":!0,title:"加入商家","border-bottom":!1,"title-bold":!1,background:{background:"rgba(256,256, 256, 0)"},"title-color":"#000"},null,8,["background"])]),_:1}),u(S,{class:"px-[30rpx] py-[20rpx] bg-[transparent]"},{default:o(()=>[u(S,{class:"search-input flex bg-[#F6F7F8]"},{default:o(()=>[u(S,{class:"search-input-icon flex items-center flex-none"},{default:o(()=>[u(O,{name:"search"})]),_:1}),u(S,{class:"search-input-wrapper flex items-center flex-1"},{default:o(()=>[u(U,{class:"search-input-inner flex-1",placeholder:"请输入商家 ID/名称",modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=e=>c.value=e),focus:!0,onConfirm:w},null,8,["modelValue"]),c.value.length?(t(),n(S,{key:0,class:"flex-none px-3 text-muted",onClick:d},{default:o(()=>[u(O,{name:"close-circle",size:"34"})]),_:1})):x("",!0)]),_:1}),u(q,{class:"search-input-btn flex-none",onClick:w},{default:o(()=>[i(" 搜索 ")]),_:1})]),_:1})]),_:1}),u(S,{class:"search-content flex-1"},{default:o(()=>[u(B,{ref_key:"paging",ref:r,fixed:!1,height:"100%",modelValue:C.value,"onUpdate:modelValue":p[1]||(p[1]=e=>C.value=e),onQuery:$},{default:o(()=>[(t(!0),_(g,null,b(C.value,e=>(t(),n(S,{class:"px-[30rpx] mb-[20rpx]",key:e},{default:o(()=>[u(F,{item:e},null,8,["item"])]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-6bfa622a"]]);export{$ as default};