"use strict";const t=require("../../common/vendor.js");if(!Array){t.resolveComponent("layout-default-uni")()}const e={__name:"chat",setup(e){const a=t.ref([{id:1,text:"今天天气不错",time:"15:24",isMine:!1,type:"support",avatar:"/acdr/src/static/my/avatar.jpg"},{id:2,text:"是啊,阳光明媚",time:"15:25",isMine:!0,type:"customer",avatar:"/acdr/src/static/my/avatar.jpg"}]),r=t.ref(""),i=()=>{""!==r.value.trim()&&(a.value.push({id:a.value.length+1,text:r.value,time:(new Date).toLocaleTimeString().slice(0,5),isMine:!0,type:"customer",avatar:"/acdr/static/customer/avatar.png"}),r.value="")};return(e,s)=>({a:t.f(a.value,((e,a,r)=>({a:e.avatar,b:t.t(e.text),c:t.t(e.time),d:e.id,e:e.isMine?1:"",f:"customer"===e.type?1:"",g:"support"===e.type?1:""}))),b:r.value,c:t.o((t=>r.value=t.detail.value)),d:t.o(i)})}},a=t._export_sfc(e,[["__scopeId","data-v-096b2daa"]]);wx.createPage(a);