import{m as e,p as t,q as a,u as l,v as s,o as i,e as n,w as o,j as r,t as A,x as d,y as u,z as c,l as p,A as h,B as f,C as m,D as g,d as y,f as b,E as v,F as S,G as x,H as _,i as w,S as k,I as C,J as I,K as B,L as N,M as D,N as R,O as T,P as z,k as H,Q as M,R as L,$ as O,g as E,T as V,s as G,a as W,c as j,U as P,V as U,W as F,X as Q,Y,Z as $,_ as J,a0 as Z,a1 as X,a2 as q,a3 as K}from"./index-0tw8ZWev.js";import{_ as ee}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as te,_ as ae,b as le,g as se,a as ie}from"./home.228U5_5X.js";const ne=ee({name:"u-badge",mixins:[t,{props:{isDot:{type:Boolean,default:()=>e.badge.isDot},value:{type:[Number,String],default:()=>e.badge.value},modelValue:{type:[Number,String],default:()=>e.badge.modelValue},show:{type:Boolean,default:()=>e.badge.show},max:{type:[Number,String],default:()=>e.badge.max},type:{type:String,default:()=>e.badge.type},showZero:{type:Boolean,default:()=>e.badge.showZero},bgColor:{type:[String,null],default:()=>e.badge.bgColor},color:{type:[String,null],default:()=>e.badge.color},shape:{type:String,default:()=>e.badge.shape},numberType:{type:String,default:()=>e.badge.numberType},offset:{type:Array,default:()=>e.badge.offset},inverted:{type:Boolean,default:()=>e.badge.inverted},absolute:{type:Boolean,default:()=>e.badge.absolute}}},a],computed:{boxStyle:()=>({}),badgeStyle(){const e={};if(this.color&&(e.color=this.color),this.bgColor&&!this.inverted&&(e.backgroundColor=this.bgColor),this.absolute&&(e.position="absolute",this.offset.length)){const t=this.offset[0],a=this.offset[1]||t;e.top=l(t),e.right=l(a)}return e},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}},methods:{addStyle:s}},[["render",function(e,t,a,l,s,h){const f=p;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?(i(),n(f,{key:0,class:d([[e.isDot?"u-badge--dot":"u-badge--not-dot",e.inverted&&"u-badge--inverted","horn"===e.shape&&"u-badge--horn",`u-badge--${e.type}${e.inverted?"--inverted":""}`],"u-badge"]),style:u([h.addStyle(e.customStyle),h.badgeStyle])},{default:o((()=>[r(A(e.isDot?"":h.showValue),1)])),_:1},8,["class","style"])):c("",!0)}],["__scopeId","data-v-1b5e1c10"]]);const oe=ee({name:"u-tabs",mixins:[t,a,{props:{duration:{type:Number,default:()=>e.tabs.duration},list:{type:Array,default:()=>e.tabs.list},lineColor:{type:String,default:()=>e.tabs.lineColor},activeStyle:{type:[String,Object],default:()=>e.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:()=>e.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:()=>e.tabs.lineWidth},lineHeight:{type:[String,Number],default:()=>e.tabs.lineHeight},lineBgSize:{type:String,default:()=>e.tabs.lineBgSize},itemStyle:{type:[String,Object],default:()=>e.tabs.itemStyle},scrollable:{type:Boolean,default:()=>e.tabs.scrollable},current:{type:[Number,String],default:()=>e.tabs.current},keyName:{type:String,default:()=>e.tabs.keyName}}}],data:()=>({firstTime:!0,scrollLeft:0,scrollViewWidth:0,lineOffsetLeft:0,tabsRect:{left:0},innerCurrent:0,moving:!1}),watch:{current:{immediate:!0,handler(e,t){e!==this.innerCurrent&&(this.innerCurrent=e,this.$nextTick((()=>{this.resize()})))}},list(){this.$nextTick((()=>{this.resize()}))}},computed:{textStyle(){return e=>{const t={},a=e===this.innerCurrent?s(this.activeStyle):uni.$u.addStyle(this.inactiveStyle);return this.list[e].disabled&&(t.color="#c8c9cc"),h(a,t)}},propsBadge:()=>e.badge},async mounted(){this.init()},emits:["click","change"],methods:{addStyle:s,addUnit:l,setLineLeft(){const e=this.list[this.innerCurrent];if(!e)return;let t=this.list.slice(0,this.innerCurrent).reduce(((e,t)=>e+t.rect.width),0);const a=f(this.lineWidth);this.lineOffsetLeft=t+(e.rect.width-a)/2,this.firstTime&&setTimeout((()=>{this.firstTime=!1}),10)},animation(e,t=0){},clickHandler(e,t){this.$emit("click",{...e,index:t}),e.disabled||(this.innerCurrent=t,this.resize(),this.$emit("change",{...e,index:t}))},init(){m().then((()=>{this.resize()}))},setScrollLeft(){const e=this.list[this.innerCurrent],t=this.list.slice(0,this.innerCurrent).reduce(((e,t)=>e+t.rect.width),0),a=g().windowWidth;let l=t-(this.tabsRect.width-e.rect.width)/2-(a-this.tabsRect.right)/2+this.tabsRect.left/2;l=Math.min(l,this.scrollViewWidth-this.tabsRect.width),this.scrollLeft=Math.max(0,l)},resize(){0!==this.list.length&&Promise.all([this.getTabsRect(),this.getAllItemRect()]).then((([e,t=[]])=>{this.tabsRect=e,this.scrollViewWidth=0,t.map(((e,t)=>{this.scrollViewWidth+=e.width,this.list[t].rect=e})),this.setLineLeft(),this.setScrollLeft()}))},getTabsRect(){return new Promise((e=>{this.queryRect("u-tabs__wrapper__scroll-view").then((t=>e(t)))}))},getAllItemRect(){return new Promise((e=>{const t=this.list.map(((e,t)=>this.queryRect(`u-tabs__wrapper__nav__item-${t}`,!0)));Promise.all(t).then((t=>e(t)))}))},queryRect(e,t){return new Promise((t=>{this.$uGetRect(`.${e}`).then((e=>{t(e)}))}))}}},[["render",function(e,t,a,l,s,c){const h=p,f=te(y("u-badge"),ne),m=w,g=k;return i(),n(m,{class:"u-tabs"},{default:o((()=>[b(m,{class:"u-tabs__wrapper"},{default:o((()=>[v(e.$slots,"left",{},void 0,!0),b(m,{class:"u-tabs__wrapper__scroll-view-wrapper"},{default:o((()=>[b(g,{"scroll-x":e.scrollable,"scroll-left":s.scrollLeft,"scroll-with-animation":"",class:"u-tabs__wrapper__scroll-view","show-scrollbar":!1,ref:"u-tabs__wrapper__scroll-view"},{default:o((()=>[b(m,{class:"u-tabs__wrapper__nav",ref:"u-tabs__wrapper__nav"},{default:o((()=>[(i(!0),S(x,null,_(e.list,((t,a)=>(i(),n(m,{class:d(["u-tabs__wrapper__nav__item",[`u-tabs__wrapper__nav__item-${a}`,t.disabled&&"u-tabs__wrapper__nav__item--disabled"]]),key:a,onClick:e=>c.clickHandler(t,a),ref_for:!0,ref:`u-tabs__wrapper__nav__item-${a}`,style:u([c.addStyle(e.itemStyle),{flex:e.scrollable?"":1}])},{default:o((()=>[b(h,{class:d([[t.disabled&&"u-tabs__wrapper__nav__item__text--disabled"],"u-tabs__wrapper__nav__item__text"]),style:u([c.textStyle(a)])},{default:o((()=>[r(A(t[e.keyName]),1)])),_:2},1032,["class","style"]),b(f,{show:!(!t.badge||!(t.badge.show||t.badge.isDot||t.badge.value)),isDot:t.badge&&t.badge.isDot||c.propsBadge.isDot,value:t.badge&&t.badge.value||c.propsBadge.value,max:t.badge&&t.badge.max||c.propsBadge.max,type:t.badge&&t.badge.type||c.propsBadge.type,showZero:t.badge&&t.badge.showZero||c.propsBadge.showZero,bgColor:t.badge&&t.badge.bgColor||c.propsBadge.bgColor,color:t.badge&&t.badge.color||c.propsBadge.color,shape:t.badge&&t.badge.shape||c.propsBadge.shape,numberType:t.badge&&t.badge.numberType||c.propsBadge.numberType,inverted:t.badge&&t.badge.inverted||c.propsBadge.inverted,customStyle:"margin-left: 4px;"},null,8,["show","isDot","value","max","type","showZero","bgColor","color","shape","numberType","inverted"])])),_:2},1032,["onClick","style","class"])))),128)),b(m,{class:"u-tabs__wrapper__nav__line",ref:"u-tabs__wrapper__nav__line",style:u([{width:c.addUnit(e.lineWidth),transform:`translate(${s.lineOffsetLeft}px)`,transitionDuration:`${s.firstTime?0:e.duration}ms`,height:c.addUnit(e.lineHeight),background:e.lineColor,backgroundSize:e.lineBgSize}])},null,8,["style"])])),_:1},512)])),_:1},8,["scroll-x","scroll-left"])])),_:1}),v(e.$slots,"right",{},void 0,!0)])),_:3})])),_:3})}],["__scopeId","data-v-4e1c6ce7"]]);const re=ee({name:"u-link",mixins:[t,a,{props:{color:{type:String,default:()=>e.link.color},fontSize:{type:[String,Number],default:()=>e.link.fontSize},underLine:{type:Boolean,default:()=>e.link.underLine},href:{type:String,default:()=>e.link.href},mpTips:{type:String,default:()=>e.link.mpTips},lineColor:{type:String,default:()=>e.link.lineColor},text:{type:String,default:()=>e.link.text}}}],computed:{linkStyle(){return{color:this.color,fontSize:l(this.fontSize),lineHeight:l(f(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},emits:["click"],methods:{addStyle:s,openLink(){window.open(this.href),this.$emit("click")}}},[["render",function(e,t,a,l,s,d){const c=p;return i(),n(c,{class:"u-link",onClick:C(d.openLink,["stop"]),style:u([d.linkStyle,d.addStyle(e.customStyle)])},{default:o((()=>[r(A(e.text),1)])),_:1},8,["onClick","style"])}],["__scopeId","data-v-b2107375"]]);const Ae=ee({name:"u--text",mixins:[t,a,{computed:{value(){const{text:e,mode:t,format:a,href:l}=this;return"price"===t?I.func(a)?a(e):B(e,2):"date"===t?(!I.date(e)&&N(),I.func(a)?a(e):D(e,a||"yyyy-mm-dd")):"phone"===t?I.func(a)?a(e):"encrypt"===a?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?I.func(a)?a(e):"encrypt"===a?this.formatName(e):e:"link"===t?(!I.url(l)&&N(),e):e}},methods:{formatName(e){let t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){let a="";for(let t=0,l=e.length-2;te.text.type},show:{type:Boolean,default:()=>e.text.show},text:{type:[String,Number],default:()=>e.text.text},prefixIcon:{type:String,default:()=>e.text.prefixIcon},suffixIcon:{type:String,default:()=>e.text.suffixIcon},mode:{type:String,default:()=>e.text.mode},href:{type:String,default:()=>e.text.href},format:{type:[String,Function],default:()=>e.text.format},call:{type:Boolean,default:()=>e.text.call},openType:{type:String,default:()=>e.text.openType},bold:{type:Boolean,default:()=>e.text.bold},block:{type:Boolean,default:()=>e.text.block},lines:{type:[String,Number],default:()=>e.text.lines},color:{type:String,default:()=>e.text.color},size:{type:[String,Number],default:()=>e.text.size},iconStyle:{type:[Object,String],default:()=>e.text.iconStyle},decoration:{tepe:String,default:()=>e.text.decoration},margin:{type:[Object,String,Number],default:()=>e.text.margin},lineHeight:{type:[String,Number],default:()=>e.text.lineHeight},align:{type:String,default:()=>e.text.align},wordWrap:{type:String,default:()=>e.text.wordWrap}}}],emits:["click"],computed:{valueStyle(){const e={textDecoration:this.decoration,fontWeight:this.bold?"bold":"normal",wordWrap:this.wordWrap,fontSize:l(this.size)};return!this.type&&(e.color=this.color),this.isNvue&&this.lines&&(e.lines=this.lines),this.lineHeight&&(e.lineHeight=l(this.lineHeight)),!this.isNvue&&this.block&&(e.display="block"),h(e,s(this.customStyle))},isNvue:()=>!1,isMp:()=>!1},data:()=>({}),methods:{addStyle:s,clickHandler(){this.call&&"phone"===this.mode&&R({phoneNumber:this.text}),this.$emit("click")}}},[["render",function(e,t,a,l,s,h){const f=p,m=te(y("u-icon"),ae),g=w,v=te(y("u-link"),re),S=T;return e.show?(i(),n(g,{key:0,class:d(["u-text",[]]),style:u({margin:e.margin,justifyContent:"left"===e.align?"flex-start":"center"===e.align?"center":"flex-end"}),onClick:h.clickHandler},{default:o((()=>["price"===e.mode?(i(),n(f,{key:0,class:d(["u-text__price",e.type&&`u-text__value--${e.type}`]),style:u([h.valueStyle])},{default:o((()=>[r("¥")])),_:1},8,["class","style"])):c("",!0),e.prefixIcon?(i(),n(g,{key:1,class:"u-text__prefix-icon"},{default:o((()=>[b(m,{name:e.prefixIcon,customStyle:h.addStyle(e.iconStyle)},null,8,["name","customStyle"])])),_:1})):c("",!0),"link"===e.mode?(i(),n(v,{key:2,class:d(["u-text__value",[e.type&&`u-text__value--${e.type}`,e.lines&&`u-line-${e.lines}`]]),style:u({fontWeight:h.valueStyle.fontWeight,wordWrap:h.valueStyle.wordWrap,fontSize:h.valueStyle.fontSize}),text:e.value,href:e.href,underLine:""},null,8,["style","class","text","href"])):e.openType&&h.isMp?(i(),n(S,{key:3,class:"u-reset-button u-text__value",style:u([h.valueStyle]),"data-index":e.index,openType:e.openType,onGetuserinfo:e.onGetUserInfo,onContact:e.onContact,onGetphonenumber:e.onGetPhoneNumber,onError:e.onError,onLaunchapp:e.onLaunchApp,onOpensetting:e.onOpenSetting,lang:e.lang,"session-from":e.sessionFrom,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,"app-parameter":e.appParameter},{default:o((()=>[r(A(e.value),1)])),_:1},8,["style","data-index","openType","onGetuserinfo","onContact","onGetphonenumber","onError","onLaunchapp","onOpensetting","lang","session-from","send-message-title","send-message-path","send-message-img","show-message-card","app-parameter"])):(i(),n(f,{key:4,class:d(["u-text__value",[e.type&&`u-text__value--${e.type}`,e.lines&&`u-line-${e.lines}`]]),style:u([h.valueStyle])},{default:o((()=>[r(A(e.value),1)])),_:1},8,["style","class"])),e.suffixIcon?(i(),n(g,{key:5,class:"u-text__suffix-icon"},{default:o((()=>[b(m,{name:e.suffixIcon,customStyle:h.addStyle(e.iconStyle)},null,8,["name","customStyle"])])),_:1})):c("",!0)])),_:1},8,["style","onClick"])):c("",!0)}],["__scopeId","data-v-f3607d61"]]),de={props:{src:{type:String,default:()=>e.avatar.src},shape:{type:String,default:()=>e.avatar.shape},size:{type:[String,Number],default:()=>e.avatar.size},mode:{type:String,default:()=>e.avatar.mode},text:{type:String,default:()=>e.avatar.text},bgColor:{type:String,default:()=>e.avatar.bgColor},color:{type:String,default:()=>e.avatar.color},fontSize:{type:[String,Number],default:()=>e.avatar.fontSize},icon:{type:String,default:()=>e.avatar.icon},mpAvatar:{type:Boolean,default:()=>e.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>e.avatar.randomBgColor},defaultUrl:{type:String,default:()=>e.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:e=>I.range(e,[0,19])||""===e,default:()=>e.avatar.colorIndex},name:{type:String,default:()=>e.avatar.name}}};const ue=ee({name:"u-avatar",mixins:[t,a,de],data(){return{colors:["#ffb34b","#f2bba9","#f7a196","#f18080","#88a867","#bfbf39","#89c152","#94d554","#f19ec2","#afaae4","#e1b0df","#c38cc1","#72dcdc","#9acdcb","#77b1cc","#448aca","#86cefa","#98d1ee","#73d1f1","#80a7dc"],avatarUrl:this.src,allowMp:!1}},watch:{src:{immediate:!0,handler(e){this.avatarUrl=e,e||this.errorHandler()}}},computed:{imageStyle:()=>({})},created(){this.init()},emits:["click"],methods:{addStyle:s,addUnit:l,random:z,init(){},isImg(){return-1!==this.src.indexOf("/")},errorHandler(){this.avatarUrl=this.defaultUrl||"data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQ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Sq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"},clickHandler(){this.$emit("click",this.name)}}},[["render",function(e,t,a,l,s,r){const A=te(y("u-icon"),ae),c=te(y("u-text"),Ae),p=H,h=w;return i(),n(h,{class:d(["u-avatar",[`u-avatar--${e.shape}`]]),style:u([{backgroundColor:e.text||e.icon?e.randomBgColor?s.colors[""!==e.colorIndex?e.colorIndex:r.random(0,19)]:e.bgColor:"transparent",width:r.addUnit(e.size),height:r.addUnit(e.size)},r.addStyle(e.customStyle)]),onClick:r.clickHandler},{default:o((()=>[v(e.$slots,"default",{},(()=>[e.mpAvatar&&s.allowMp?(i(),S(x,{key:0},[],64)):e.icon?(i(),n(A,{key:1,name:e.icon,size:e.fontSize,color:e.color},null,8,["name","size","color"])):e.text?(i(),n(c,{key:2,text:e.text,size:e.fontSize,color:e.color,align:"center",customStyle:"justify-content: center"},null,8,["text","size","color"])):(i(),n(p,{key:3,class:d(["u-avatar__image",[`u-avatar__image--${e.shape}`]]),src:s.avatarUrl||e.defaultUrl,mode:e.mode,onError:r.errorHandler,style:u([{width:r.addUnit(e.size),height:r.addUnit(e.size)}])},null,8,["class","src","mode","onError","style"]))]),!0)])),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-07b879a9"]]);const ce=ee({name:"u-input",mixins:[t,a,{props:{modelValue:{type:[String,Number],default:()=>e.input.value},type:{type:String,default:()=>e.input.type},fixed:{type:Boolean,default:()=>e.input.fixed},disabled:{type:Boolean,default:()=>e.input.disabled},disabledColor:{type:String,default:()=>e.input.disabledColor},clearable:{type:Boolean,default:()=>e.input.clearable},password:{type:Boolean,default:()=>e.input.password},maxlength:{type:[String,Number],default:()=>e.input.maxlength},placeholder:{type:String,default:()=>e.input.placeholder},placeholderClass:{type:String,default:()=>e.input.placeholderClass},placeholderStyle:{type:[String,Object],default:()=>e.input.placeholderStyle},showWordLimit:{type:Boolean,default:()=>e.input.showWordLimit},confirmType:{type:String,default:()=>e.input.confirmType},confirmHold:{type:Boolean,default:()=>e.input.confirmHold},holdKeyboard:{type:Boolean,default:()=>e.input.holdKeyboard},focus:{type:Boolean,default:()=>e.input.focus},autoBlur:{type:Boolean,default:()=>e.input.autoBlur},disableDefaultPadding:{type:Boolean,default:()=>e.input.disableDefaultPadding},cursor:{type:[String,Number],default:()=>e.input.cursor},cursorSpacing:{type:[String,Number],default:()=>e.input.cursorSpacing},selectionStart:{type:[String,Number],default:()=>e.input.selectionStart},selectionEnd:{type:[String,Number],default:()=>e.input.selectionEnd},adjustPosition:{type:Boolean,default:()=>e.input.adjustPosition},inputAlign:{type:String,default:()=>e.input.inputAlign},fontSize:{type:[String,Number],default:()=>e.input.fontSize},color:{type:String,default:()=>e.input.color},prefixIcon:{type:String,default:()=>e.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:()=>e.input.prefixIconStyle},suffixIcon:{type:String,default:()=>e.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:()=>e.input.suffixIconStyle},border:{type:String,default:()=>e.input.border},readonly:{type:Boolean,default:()=>e.input.readonly},shape:{type:String,default:()=>e.input.shape},formatter:{type:[Function,null],default:()=>e.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}}],data:()=>({clearInput:!1,innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}),watch:{modelValue:{immediate:!0,handler(e,t){this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner?this.valueChange():M(this,"change"),this.firstChange=!1,this.changeFromInner=!1}}},computed:{isShowClear(){const{clearable:e,readonly:t,focused:a,innerValue:l}=this;return!!e&&!t&&!!a&&""!==l},inputClass(){let e=[],{border:t,disabled:a,shape:l}=this;return"surround"===t&&(e=e.concat(["u-border","u-input--radius"])),e.push(`u-input--${l}`),"bottom"===t&&(e=e.concat(["u-border-bottom","u-input--no-radius"])),e.join(" ")},wrapperStyle(){const e={};return this.disabled&&(e.backgroundColor=this.disabledColor),"none"===this.border?e.padding="0":(e.paddingTop="6px",e.paddingBottom="6px",e.paddingLeft="9px",e.paddingRight="9px"),h(e,s(this.customStyle))},inputStyle(){return{color:this.color,fontSize:l(this.fontSize),textAlign:this.inputAlign}}},emits:["update:modelValue","focus","blur","change","confirm","clear","keyboardheightchange"],methods:{setFormatter(e){this.innerFormatter=e},onInput(e){let{value:t=""}=e.detail||{};const a=(this.formatter||this.innerFormatter)(t);this.innerValue=t,this.$nextTick((()=>{this.innerValue=a,this.valueChange()}))},onBlur(e){this.$emit("blur",e.detail.value),m(150).then((()=>{this.focused=!1})),M(this,"blur")},onFocus(e){this.focused=!0,this.$emit("focus")},onConfirm(e){this.$emit("confirm",this.innerValue)},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},valueChange(){this.clearInput&&(this.innerValue="",this.clearInput=!1);const e=this.innerValue;this.$nextTick((()=>{this.$emit("update:modelValue",e),this.changeFromInner=!0,this.$emit("change",e),M(this,"change")}))},onClear(){this.clearInput=!0,this.innerValue="",this.$nextTick((()=>{this.valueChange(),this.$emit("clear")}))},clickHandler(){}}},[["render",function(e,t,a,l,s,r){const A=te(y("u-icon"),ae),p=w,h=L;return i(),n(p,{class:d(["u-input",r.inputClass]),style:u([r.wrapperStyle])},{default:o((()=>[b(p,{class:"u-input__content"},{default:o((()=>[e.prefixIcon||e.$slots.prefix?(i(),n(p,{key:0,class:"u-input__content__prefix-icon"},{default:o((()=>[v(e.$slots,"prefix",{},(()=>[b(A,{name:e.prefixIcon,size:"18",customStyle:e.prefixIconStyle},null,8,["name","customStyle"])]),!0)])),_:3})):c("",!0),b(p,{class:"u-input__content__field-wrapper",onClick:r.clickHandler},{default:o((()=>[b(h,{class:"u-input__content__field-wrapper__field",style:u([r.inputStyle]),type:e.type,focus:e.focus,cursor:e.cursor,value:s.innerValue,"auto-blur":e.autoBlur,disabled:e.disabled||e.readonly,maxlength:e.maxlength,placeholder:e.placeholder,"placeholder-style":e.placeholderStyle,"placeholder-class":e.placeholderClass,"confirm-type":e.confirmType,"confirm-hold":e.confirmHold,"hold-keyboard":e.holdKeyboard,"cursor-spacing":e.cursorSpacing,"adjust-position":e.adjustPosition,"selection-end":e.selectionEnd,"selection-start":e.selectionStart,password:e.password||"password"===e.type||!1,ignoreCompositionEvent:e.ignoreCompositionEvent,onInput:r.onInput,onBlur:r.onBlur,onFocus:r.onFocus,onConfirm:r.onConfirm,onKeyboardheightchange:r.onkeyboardheightchange},null,8,["style","type","focus","cursor","value","auto-blur","disabled","maxlength","placeholder","placeholder-style","placeholder-class","confirm-type","confirm-hold","hold-keyboard","cursor-spacing","adjust-position","selection-end","selection-start","password","ignoreCompositionEvent","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])])),_:1},8,["onClick"]),r.isShowClear?(i(),n(p,{key:1,class:"u-input__content__clear",onClick:r.onClear},{default:o((()=>[b(A,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})])),_:1},8,["onClick"])):c("",!0),e.suffixIcon||e.$slots.suffix?(i(),n(p,{key:2,class:"u-input__content__subfix-icon"},{default:o((()=>[v(e.$slots,"suffix",{},(()=>[b(A,{name:e.suffixIcon,size:"18",customStyle:e.suffixIconStyle},null,8,["name","customStyle"])]),!0)])),_:3})):c("",!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-a2973147"]]);var pe=!1,he=null;const fe=ee({data:()=>({icon:"公告:",icon2:"广播:",text1:"组件功能丰富多端兼容让您快速集成开箱即用",text2:"丰富多端兼容让您快速集成开箱即用",srcAvatar:"",acttab:0,value:"",talkdisabled:!1,placeholderText:"请输入内容",showadd:!1,autoplay:!0,userinfo:"",path:"http://192.168.10.150/dev-api",livedata:{},bufferRate:0,playDuration:0,videoContext:"",thistime:uni.$u.timeFormat(new Date,"yyyy-mm-dd hh:MM:ss"),codeimg:"",userid:"4",liveId:"2",upDown:!0,isLongPress:!1,timeout:null,list1:[{name:"讨论"},{name:"资料"}],talklist:[],scrollIntoView:""}),mounted(){this.initSocket();var e=this;O("initSocket",(()=>{e.initSocket()})),O("sendMsg",(t=>{e.sendMsg(t)})),O("closeWebSocket",(()=>{e.closeWebSocket()})),this.getEWechatSdk(),this.userinfo=JSON.parse(E("userInfo")),this.getliving(),this.gettalklist()},onReady:function(e){this.videoContext=V("myVideo")},onLoad(){},methods:{gettalklist(){const e={id:this.liveId};le(e).then((e=>{200==e.code&&(this.talklist=e.data,this.$nextTick((()=>{this.scrollIntoView="list_"+(this.talklist.length-1)})))}))},longPress(){this.timeout=setTimeout((()=>{this.isLongPress=!0,G({filePath:this.livedata.qwQrCode,success:()=>{W({title:"保存成功"})},fail:()=>{W({title:"保存失败",icon:"none"})}})}),500)},cancelLongPress(){clearTimeout(this.timeout),this.isLongPress=!1},getliving(){this.gettalklist();const e={id:this.liveId};se(e).then((e=>{200==e.code?(this.livedata=e.data,this.codeimg=e.data.qwQrCode,2==this.livedata.status?(this.autoplay=!0,this.videoContext.seek(this.livedata.nowDuration)):(this.autoplay=!1,this.placeholderText="直播开始才能发言讨论",this.talkdisabled=!0)):W({title:e.msg,icon:"none",duration:2e3})}))},addwechat(){this.showadd=!this.showadd},open(){},close(){this.showadd=!this.showadd},tabClick(e){this.acttab=e.index,0==e.index&&this.$nextTick((()=>{this.gettalklist()}))},getEWechatSdk(){let e="";e=/(Android)/i.test(navigator.userAgent)?"jWeixin":/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"wx":"jWeixin",j("wxSdk",e)},closeWebSocket(){null!=he&&P(),clearInterval(null)},reConnect(){var e=this;try{P()}catch(t){}setTimeout((function(){e.initSocket()}),1e4)},initSocket(){var e=this;he=U({url:"ws://live.ylrzcloud.com/socket/app/webSocket?userId="+this.userid+"&liveId="+this.liveId,multiple:!0,success:e=>{clearInterval(null),F((e=>{const t=JSON.parse(e.data);this.talklist.push(t.data),this.$nextTick((()=>{this.scrollIntoView="list_"+(this.talklist.length-1)})),"deleteId"==t.cmd?Q("deleteId"):"init"==t.cmd?Q("init",t.data):"reload"==t.cmd?Q("reload"):"sendStatus"==t.cmd&&Q("sendStatus",t.data)}))},error:e=>{Q("websocket",0)}}),Y((()=>{pe=!0,console.log("WebSocket连接已打开!!"),W({title:"插件已打开",icon:"none"})})),$((()=>{pe=!1,clearInterval(null),console.log("WebSocket连接已关闭!"),W({title:"插件离线",icon:"none"}),e.reConnect()})),J((()=>{pe=!1,clearInterval(null),console.log("WebSocket连接打开失败"),W({title:"插件离线",icon:"none"}),Z({content:"聊天连接失败是否重新尝试连接",success(){e.reConnect()}})}))},sendMsg(){if(pe){const e={liveId:this.livedata.liveId,userId:this.userinfo.userId,userType:0,cmd:"sendMsg",msg:this.value,nickName:this.userinfo.nickName,avatar:this.userinfo.avatar};he.send({data:JSON.stringify(e),success:()=>{console.log("发送成功"),this.value=""},fail:()=>{console.log("发送失败")}})}}}},[["render",function(e,t,a,l,s,d){const u=K,h=w,f=te(y("u-tabs"),oe),m=H,g=te(y("u-avatar"),ue),v=p,C=k,I=te(y("u-input"),ce),B=te(y("u-icon"),ae),N=te(y("u-popup"),ie);return i(),n(h,{class:"live column flex-1"},{default:o((()=>[s.upDown?(i(),n(h,{key:0,class:"videolist"},{default:o((()=>[b(h,{class:"vedio"},{default:o((()=>[b(u,{id:"myVideo",class:"videotop",src:s.path+s.livedata.videoUrl,autoplay:s.autoplay,controls:!1,poster:s.livedata.liveImgUrl,"vslide-gesture-in-fullscreen":"true","show-center-play-btn":!1},null,8,["src","autoplay","poster"])])),_:1}),s.autoplay?c("",!0):(i(),n(h,{key:0,class:"popup-video"},{default:o((()=>[1==s.livedata.status?(i(),n(h,{key:0,class:"fs36 bold"},{default:o((()=>[r("——直播还未开始——")])),_:1})):c("",!0),3==s.livedata.status?(i(),n(h,{key:1,class:"fs36 bold"},{default:o((()=>[r("——直播已经结束——")])),_:1})):c("",!0),b(h,{class:"fs28 mtb20"},{default:o((()=>[r("了解更多,点击下方联系老师")])),_:1}),b(h,{class:"more",onClick:t[0]||(t[0]=e=>s.showadd=!s.showadd)},{default:o((()=>[r("联系老师")])),_:1})])),_:1}))])),_:1})):c("",!0),b(h,{class:"justify-between align-center bgf",style:{"border-bottom":"#dedede solid 2rpx"}},{default:o((()=>[b(f,{list:s.list1,onClick:d.tabClick,inactiveStyle:"color:#888",itemStyle:"width:120rpx;height: 80rpx;"},null,8,["list","onClick"]),b(h,{class:"justify-around flex-1 align-center"},{default:o((()=>[b(h,{class:"reflash",onClick:t[1]||(t[1]=e=>d.getliving())},{default:o((()=>[r("刷新")])),_:1}),X(b(m,{src:"/assets/top-vyvsPGPG.png",class:"wh48",onClick:t[2]||(t[2]=e=>s.upDown=!s.upDown)},null,512),[[q,s.upDown]]),X(b(m,{src:"/assets/up-down-v32vSD-i.png",class:"wh48",onClick:t[3]||(t[3]=e=>s.upDown=!s.upDown)},null,512),[[q,!s.upDown]])])),_:1})])),_:1}),0==s.acttab?(i(),n(h,{key:1,class:"talkbox column flex-1 hidden",style:{height:"100%"}},{default:o((()=>[b(C,{"scroll-y":"true",class:"talk p20 scrolly flex-1 column",style:{width:"calc(100% - 40rpx)",height:"calc(100% - 40rpx)"},"scroll-into-view":s.scrollIntoView},{default:o((()=>[(i(!0),S(x,null,_(s.talklist,((e,t)=>(i(),n(h,{class:"list justify-start",key:e.index,id:`list_${t}`},{default:o((()=>[b(g,{src:e.avatar,size:"30"},null,8,["src"]),b(h,{class:"ml16"},{default:o((()=>[b(h,{class:"fs24"},{default:o((()=>[e.userId==s.userinfo.userId?(i(),n(v,{key:0,style:{color:"#3fc69b",transform:"scale(0.8)",display:"inline-block"}},{default:o((()=>[r("[ 我 ]")])),_:1})):c("",!0),b(v,null,{default:o((()=>[r(A(e.nickName),1)])),_:2},1024)])),_:2},1024),b(h,{class:"talktext bgf p20 mt12"},{default:o((()=>[b(h,{class:"fs24"},{default:o((()=>[r(A(e.msg),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["id"])))),128))])),_:1},8,["scroll-into-view"]),b(h,{class:"pb90 mb20"}),b(h,{class:"bot_talk bgf"},{default:o((()=>[b(I,{placeholder:s.placeholderText,border:"none",customStyle:"background:#f1f7f7;padding:12rpx;padding-left:40rpx",modelValue:s.value,"onUpdate:modelValue":t[4]||(t[4]=e=>s.value=e),shape:"circle",disabled:s.talkdisabled},null,8,["placeholder","modelValue","disabled"]),b(h,{class:"sent ml20",onClick:d.sendMsg},{default:o((()=>[r("发送")])),_:1},8,["onClick"])])),_:1})])),_:1})):c("",!0),1==s.acttab?(i(),n(h,{key:2,class:"informationbox"},{default:o((()=>[b(h,{class:"p20 bgf m20 radius20"},{default:o((()=>[b(h,{innerHTML:s.livedata.liveDesc},null,8,["innerHTML"]),X(b(h,null,{default:o((()=>[r("暂无资料")])),_:1},512),[[q,!s.livedata.liveDesc]])])),_:1})])),_:1})):c("",!0),b(h,{class:"invite-member",onClick:d.addwechat},{default:o((()=>[b(m,{src:"/assets/wechat-pqM5AshV.png",class:"wh80 weimg"}),b(h,{class:"addwe"},{default:o((()=>[r("加微信")])),_:1})])),_:1},8,["onClick"]),b(h,{class:""},{default:o((()=>[b(N,{show:s.showadd,onClose:d.close,onOpen:d.open,round:"20rpx",bgColor:"#fffee1"},{default:o((()=>[b(h,{class:"addchat p20"},{default:o((()=>[b(h,{class:"u-flex-row-reverse u-flex"},{default:o((()=>[b(B,{name:"close",size:"18",onClick:t[5]||(t[5]=e=>s.showadd=!s.showadd)})])),_:1}),b(h,{class:"column align-center"},{default:o((()=>[b(h,{class:"fs36",style:{color:"#ff5c03"}},{default:o((()=>[r("扫码添加助教老师")])),_:1}),b(h,{class:"fs28 color6"},{default:o((()=>[r("扫码添加助教老师")])),_:1}),b(h,{class:"p10 mt40",style:{border:"#ff5c03 solid 2rpx"}},{default:o((()=>[b(m,{src:s.codeimg,class:"wh180",onTouchstart:d.longPress,onTouchend:d.cancelLongPress},null,8,["src","onTouchstart","onTouchend"])])),_:1}),b(h,{class:"color6 mt20"},{default:o((()=>[r("长按识别二维码")])),_:1})])),_:1})])),_:1})])),_:1},8,["show","onClose","onOpen"])])),_:1})])),_:1})}],["__scopeId","data-v-524db1c3"]]);export{fe as default};