|
|
import{r as e,g as t,d as o,m as n,a as i,o as a,c as l,w as s,n as r,b as c,e as u,t as d,f as p,i as f,h,j as m,k as y,l as g,p as v,q as b,s as _,I as w,u as S,v as C,F as k,x,y as $,z as T,A as E,B as I,C as A,D as B,E as z,G as R,S as O}from"./index-9240c313.js";import{_ as N,r as j,o as P}from"./uni-app.es.a1362213.js";const q=new class{constructor(e){this.baseURL=e}request(o){const{url:n}=o;return new Promise(((i,a)=>{e({...o,url:this.baseURL+n,header:{token:t("token")||""},success:e=>{e.data.code,i(e.data)},fail:e=>{console.log(e,"网络请求错误信息--------------"),a(e)}})}))}get(e){return this.request({...e,method:"get"})}post(e){return this.request({...e,method:"post"})}}("http://aladmin.shs.broing.cn");const H={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};const D=N({name:"u-icon",data:()=>({}),emits:["click"],mixins:[n,i,{props:{name:{type:String,default:o.icon.name},color:{type:String,default:o.icon.color},size:{type:[String,Number],default:o.icon.size},bold:{type:Boolean,default:o.icon.bold},index:{type:[String,Number],default:o.icon.index},hoverClass:{type:String,default:o.icon.hoverClass},customPrefix:{type:String,default:o.icon.customPrefix},label:{type:[String,Number],default:o.icon.label},labelPos:{type:String,default:o.icon.labelPos},labelSize:{type:[String,Number],default:o.icon.labelSize},labelColor:{type:String,default:o.icon.labelColor},space:{type:[String,Number],default:o.icon.space},imgMode:{type:String,default:o.icon.imgMode},width:{type:[String,Number],default:o.icon.width},height:{type:[String,Number],default:o.icon.height},top:{type:[String,Number],default:o.icon.top},stop:{type:Boolean,default:o.icon.stop}}}],computed:{uClasses(){let e=[];return e.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&e.push("u-icon__icon--"+this.color),e},iconStyle(){let e={};return e={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(e.color=this.color),e},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let e={};return e.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),e.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),e},icon(){return H["uicon-"+this.name]||this.name}},methods:{clickHandler(e){this.$emit("click",this.index),this.stop&&this.preventEvent(e)}}},[["render",function(e,t,o,n,i,y){const g=f,v=h,b=m;return a(),l(b,{class:c(["u-icon",["u-icon--"+e.labelPos]]),onClick:y.clickHandler},{default:s((()=>[y.isImg?(a(),l(g,{key:0,class:"u-icon__img",src:e.name,mode:e.imgMode,style:r([y.imgStyle,e.$u.addStyle(e.customStyle)])},null,8,["src","mode","style"])):(a(),l(v,{key:1,class:c(["u-icon__icon",y.uClasses]),style:r([y.iconStyle,e.$u.addStyle(e.customStyle)]),"hover-class":e.hoverClass},{default:s((()=>[u(d(y.icon),1)])),_:1},8,["class","style","hover-class"])),""!==e.label?(a(),l(v,{key:2,class:"u-icon__label",style:r({color:e.labelColor,fontSize:e.$u.addUnit(e.labelSize),marginLeft:"right"==e.labelPos?e.$u.addUnit(e.space):0,marginTop:"bottom"==e.labelPos?e.$u.addUnit(e.space):0,marginRight:"left"==e.labelPos?e.$u.addUnit(e.space):0,marginBottom:"top"==e.labelPos?e.$u.addUnit(e.space):0})},{default:s((()=>[u(d(e.label),1)])),_:1},8,["style"])):p("",!0)])),_:1},8,["onClick","class"])}],["__scopeId","data-v-7c903111"]]);const L=N({name:"u-search",mixins:[n,i,{props:{shape:{type:String,default:o.search.shape},bgColor:{type:String,default:o.search.bgColor},placeholder:{type:String,default:o.search.placeholder},clearabled:{type:Boolean,default:o.search.clearabled},focus:{type:Boolean,default:o.search.focus},showAction:{type:Boolean,default:o.search.showAction},actionStyle:{type:Object,default:o.search.actionStyle},actionText:{type:String,default:o.search.actionText},inputAlign:{type:String,default:o.search.inputAlign},inputStyle:{type:Object,default:o.search.inputStyle},disabled:{type:Boolean,default:o.search.disabled},borderColor:{type:String,default:o.search.borderColor},searchIconColor:{type:String,default:o.search.searchIconColor},color:{type:String,default:o.search.color},placeholderColor:{type:String,default:o.search.placeholderColor},searchIcon:{type:String,default:o.search.searchIcon},searchIconSize:{type:[Number,String],default:o.search.searchIconSize},margin:{type:String,default:o.search.margin},animation:{type:Boolean,default:o.search.animation},modelValue:{type:String,default:o.search.value},value:{type:String,default:o.search.value},maxlength:{type:[String,Number],default:o.search.maxlength},height:{type:[String,Number],default:o.search.height},label:{type:[String,Number,null],default:o.search.label}}}],data(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword(e){this.$emit("update:modelValue",e),this.$emit("change",e)},modelValue:{immediate:!0,handler(e){this.keyword=e}}},computed:{showActionBtn(){return!this.animation&&this.showAction}},emits:["clear","search","custom","focus","blur","click","clickIcon","update:modelValue","change"],methods:{inputChange(e){this.keyword=e.detail.value},clear(){this.keyword="",this.$nextTick((()=>{this.$emit("clear")}))},search(e){this.$emit("search",e.detail.value);try{y()}catch(t){}},custom(){this.$emit("custom",this.keyword);try{y()}catch(e){}},getFocus(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur(){setTimeout((()=>{this.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler(){this.disabled&&this.$emit("click")},clickIcon(){this.$emit("clickIcon")}}},[["render",function(e,t,o,n,i,f){const y=h,S=j(g("u-icon"),D),C=m,k=w;return a(),l(C,{class:"u-search",onClick:f.clickHandler,style:r([{margin:e.margin},e.$u.addStyle(e.customStyle)])},{default:s((()=>[v(C,{class:"u-search__content",style:r({backgroundColor:e.bgColor,borderRadius:"round"==e.shape?"100px":"4px",borderColor:e.borderColor})},{default:s((()=>[e.$slots.label||null!==e.label?b(e.$slots,"label",{key:0},(()=>[v(y,{class:"u-search__content__label"},{default:s((()=>[u(d(e.label),1)])),_:1})]),!0):p("",!0),v(C,{class:"u-search__content__icon"},{default:s((()=>[v(S,{onClick:f.clickIcon,size:e.searchIconSize,name:e.searchIcon,color:e.searchIconColor?e.searchIconColor:e.color},null,8,["onClick","size","name","color"])])),_:1}),v(k,{"confirm-type":"search",onBlur:f.blur,value:i.keyword,onConfirm:f.search,onInput:f.inputChange,disabled:e.disabled,onFocus:f.getFocus,focus:e.focus,maxlength:e.maxlength,"placeholder-class":"u-search__content__input--placeholder",placeholder:e.placeholder,"placeholder-style":`color: ${e.placeholderColor}`,class:"u-search__content__input",type:"text",style:r([{textAlign:e.inputAlign,color:e.color,backgroundColor:e.bgColor,height:e.$u.addUnit(e.height)},e.inputStyle])},null,8,["onBlur","value","onConfirm","onInput","disabled","onFocus","focus","maxlength","placeholder","placeholder-style","style"]),i.keyword&&e.clearabled&&i.focused?(a(),l(C,{key:1,class:"u-search__content__icon u-search__content__close",onClick:f.clear},{default:s((()=>[v(S,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})])),_:1},8,["onClick"])):p("",!0)])),_:3},8,["style"]),v(y,{style:r([e.actionStyle]),class:c(["u-search__action",[(f.showActionBtn||i.show)&&"u-search__action--active"]]),onClick:_(f.custom,["stop","prevent"])},{default:s((()=>[u(d(e.actionText),1)])),_:1},8,["style","class","onClick"])])),_:3},8,["onClick","style"])}],["__scopeId","data-v-a2f7ffa4"]]);var U,M,V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},F={};
|
|
|
U={get exports(){return F},set exports(e){F=e}},M=F,function(e){var t=e.setTimeout,o=e.clearTimeout,n=e.XMLHttpRequest,i=e.XDomainRequest,a=e.ActiveXObject,l=e.EventSource,s=e.document,r=e.Promise,c=e.fetch,u=e.Response,d=e.TextDecoder,p=e.TextEncoder,f=e.AbortController;if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(e){s.readyState="complete"}),!1)),null==n&&null!=a&&(n=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f){var h=c;c=function(e,t){var o=t.signal;return h(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return o._reader=t,o._aborted&&o._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(e){function t(e,t,o){if(1===o)return e>=128>>t&&e<<t<=2047;if(2===o)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===o)return e>=65536>>t&&e<<t<=1114111;throw new Error}function o(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var n=65533,i="",a=this.bitsNeeded,l=this.codePoint,s=0;s<e.length;s+=1){var r=e[s];0!==a&&(r<128||r>191||!t(l<<6|63&r,a-6,o(a,l)))&&(a=0,l=n,i+=String.fromCharCode(l)),0===a?(r>=0&&r<=127?(a=0,l=r):r>=192&&r<=223?(a=6,l=31&r):r>=224&&r<=239?(a=12,l=15&r):r>=240&&r<=247?(a=18,l=7&r):(a=0,l=n),0===a||t(l,a,o(a,l))||(a=0,l=n)):(a-=6,l=l<<6|63&r),0===a&&(l<=65535?i+=String.fromCharCode(l):(i+=String.fromCharCode(55296+(l-65535-1>>10)),i+=String.fromCharCode(56320+(l-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=l,i},null!=d&&null!=p&&function(){try{return"test"===(new d).decode((new p).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(d=m);var y=function(){};function g(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=y}function v(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function b(e){for(var t=Object.create(null),o=e.split("\r\n"),n=0;n<o.length;n+=1){var i=o[n].split(": "),a=i.shift(),l=i.join(": ");t[v(a)]=l}this._map=t}function _(){}function w(e){this._headers=e}function S(){}function C(){this._listeners=Object.create(null)}function k(e){t((function(){throw e}),0)}function x(e){this.type=e,this.target=void 0}function $(e,t){x.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function T(e,t){x.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function E(e,t){x.call(this,e),this.error=t.error}g.prototype.open=function(e,i){this._abort(!0);var a=this,l=this._xhr,s=1,r=0;this._abort=function(e){0!==a._sendTimeout&&(o(a._sendTimeout),a._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,l.onload=y,l.onerror=y,l.onabort=y,l.onprogress=y,l.onreadystatechange=y,l.abort(),0!==r&&(o(r),r=0),e||(a.readyState=4,a.onabort(null),a.onreadystatechange())),s=0};var c=function(){if(1===s){var e=0,t="",o=void 0;if("contentType"in l)e=200,t="OK",o=l.contentType;else try{e=l.status,t=l.statusText,o=l.getResponseHeader("Content-Type")}catch(n){e=0,t="",o=void 0}0!==e&&(s=2,a.readyState=2,a.status=e,a.statusText=t,a._contentType=o,a.onreadystatechange())}},u=function(){if(c(),2===s||3===s){s=3;var e="";try{e=l.responseText}catch(t){}a.readyState=3,a.responseText=e,a.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:y}),u(),1===s||2===s||3===s){if(s=4,0!==r&&(o(r),r=0),a.readyState=4,"load"===e)a.onload(t);else if("error"===e)a.onerror(t);else{if("abort"!==e)throw new TypeError;a.onabort(t)}a.onreadystatechange()}},p=function(){r=t((function(){p()}),500),3===l.readyState&&u()};"onload"in l&&(l.onload=function(e){d("load",e)}),"onerror"in l&&(l.onerror=function(e){d("error",e)}),"onabort"in l&&(l.onabort=function(e){d("abort",e)}),"onprogress"in l&&(l.onprogress=u),"onreadystatechange"in l&&(l.onreadystatechange=function(e){!function(e){null!=l&&(4===l.readyState?"onload"in l&&"onerror"in l&&"onabort"in l||d(""===l.responseText?"error":"load",e):3===l.readyState?"onprogress"in l||u():2===l.readyState&&c())}(e)}),!("contentType"in l)&&"ontimeout"in n.prototype||(i+=(-1===i.indexOf("?")?"?":"&")+"padding=true"),l.open(e,i,!0),"readyState"in l&&(r=t((function(){p()}),0))},g.prototype.abort=function(){this._abort(!1)},g.prototype.getResponseHeader=function(e){return this._contentType},g.prototype.setRequestHeader=function(e,t){var o=this._xhr;"setRequestHeader"in o&&o.setRequestHeader(e,t)},g.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},g.prototype.send=function(){if("ontimeout"in n.prototype&&("sendAsBinary"in n.prototype||"mozAnon"in n.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(i){throw i}}else{var o=this;o._sendTimeout=t((function(){o._sendTimeout=0,o.send()}),4)}},b.prototype.get=function(e){return this._map[v(e)]},null!=n&&null==n.HEADERS_RECEIVED&&(n.HEADERS_RECEIVED=2),_.prototype.open=function(e,t,o,i,a,l,s){e.open("GET",a);var r=0;for(var c in e.onprogress=function(){var t=e.responseText.slice(r);r+=t.length,o(t)},e.onerror=function(e){e.preventDefault(),i(new Error("NetworkError"))},e.onload=function(){i(null)},e.onabort=function(){i(null)},e.onreadystatechange=function(){if(e.readyState===n.HEADERS_RECEIVED){var o=e.status,i=e.statusText,a=e.getResponseHeader("Content-Type"),l=e.getAllResponseHeaders();t(o,i,a,new b(l))}},e.withCredentials=l,s)Object.prototype.hasOwnProperty.call(s,c)&&e.setRequestHeader(c,s[c]);return e.send(),e},w.prototype.get=function(e){return this._headers.get(e)},S.prototype.open=function(e,t,o,n,i,a,l){var s=null,u=new f,p=u.signal,h=new d;return c(i,{headers:l,credentials:a?"include":"same-origin",signal:p,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new w(e.headers)),new r((function(e,t){var n=function(){s.read().then((function(t){if(t.done)e(void 0);else{var i=h.decode(t.value,{stream:!0});o(i),n()}})).catch((function(e){t(e)}))};n()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){n(e)})),{abort:function(){null!=s&&s.cancel(),u.abort()}}},C.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var o=t.length,n=0;n<o;n+=1){var i=t[n];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(a){k(a)}}},C.prototype.addEventListener=function(e,t){e=String(e);var o=this._listeners,n=o[e];null==n&&(n=[],o[e]=n);for(var i=!1,a=0;a<n.length;a+=1)n[a]===t&&(i=!0);i||n.push(t)},C.prototype.removeEventListener=function(e,t){e=String(e);var o=this._listeners,n=o[e];if(null!=n){for(var i=[],a=0;a<n.length;a+=1)n[a]!==t&&i.push(n[a]);0===i.length?delete o[e]:o[e]=i}},$.prototype=Object.create(x.prototype),T.prototype=Object.create(x.prototype),E.prototype=Object.create(x.prototype);var I=-1,A=-1,B=/^text\/event\-stream(;.*)?$/i,z=function(e,t){var o=null==e?t:parseInt(e,10);return o!=o&&(o=t),R(o)},R=function(e){return Math.min(Math.max(e,1e3),18e6)},O=function(e,t,o){try{"function"==typeof t&&t.call(e,o)}catch(n){k(n)}};function N(e,a){C.call(this),a=a||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,a,l){a=String(a);var s=Boolean(l.withCredentials),r=l.lastEventIdQueryParameterName||"lastEventId",c=R(1e3),u=z(l.heartbeatTimeout,45e3),d="",p=c,f=!1,h=0,m=l.headers||{},y=l.Transport,v=j&&null==y?void 0:new g(null!=y?new y:null!=n&&"withCredentials"in n.prototype||null==i?new n:new i),b=null!=y&&"string"!=typeof y?new y:null==v?new S:new _,w=void 0,C=0,k=I,x="",N="",P="",q="",H=0,D=0,L=0,U=function(t,o,n,i){if(0===k)if(200===t&&null!=n&&B.test(n)){k=1,f=Date.now(),p=c,e.readyState=1;var a=new T("open",{status:t,statusText:o,headers:i});e.dispatchEvent(a),O(e,e.onopen,a)}else{var l="";200!==t?(o&&(o=o.replace(/\s+/g," ")),l="EventSource's response has a status "+t+" "+o+" that is not 200. Aborting the connection."):l="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",F(),a=new T("error",{status:t,statusText:o,headers:i}),e.dispatchEvent(a),O(e,e.onerror,a),console.error(l)}},M=function(n){if(1===k){for(var i=-1,a=0;a<n.length;a+=1)(r=n.charCodeAt(a))!=="\n".charCodeAt(0)&&r!=="\r".charCodeAt(0)||(i=a);var l=(-1!==i?q:"")+n.slice(0,i+1);q=(-1===i?q:"")+n.slice(i+1),""!==n&&(f=Date.now(),h+=n.length);for(var s=0;s<l.length;s+=1){var r=l.charCodeAt(s);if(H===A&&r==="\n".charCodeAt(0))H=0;else if(H===A&&(H=0),r==="\r".charCodeAt(0)||r==="\n".charCodeAt(0)){if(0!==H){1===H&&(L=s+1);var m=l.slice(D,L-1),y=l.slice(L+(L<s&&l.charCodeAt(L)===" ".charCodeAt(0)?1:0),s);"data"===m?(x+="\n",x+=y):"id"===m?N=y:"event"===m?P=y:"retry"===m?(c=z(y,c),p=c):"heartbeatTimeout"===m&&(u=z(y,u),0!==C&&(o(C),C=t((function(){K()}),u)))}if(0===H){if(""!==x){d=N,""===P&&(P="message");var g=new $(P,{data:x.slice(1),lastEventId:N});if(e.dispatchEvent(g),"open"===P?O(e,e.onopen,g):"message"===P?O(e,e.onmessage,g):"error"===P&&O(e,e.onerror,g),2===k)return}x="",P=""}H=r==="\r".charCodeAt(0)?A:0}else 0===H&&(D=s,H=1),1===H?r===":".charCodeAt(0)&&(L=s+1,H=2):2===H&&(H=3)}}},V=function(n){if(1===k||0===k){k=I,0!==C&&(o(C),C=0),C=t((function(){K()}),p),p=R(Math.min(16*c,2*p)),e.readyState=0;var i=new E("error",{error:n});e.dispatchEvent(i),O(e,e.onerror,i),null!=n&&console.error(n)}},F=function(){k=2,null!=w&&(w.abort(),w=void 0),0!==C&&(o(C),C=0),e.readyState=2},K=function(){if(C=0,k===I){f=!1,h=0,C=t((function(){K()}),u),k=0,x="",P="",N=d,q="",D=0,L=0,H=0;var o=a;if("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==d){var n=a.indexOf("?");o=-1===n?a:a.slice(0,n+1)+a.slice(n+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===r?"":e})),o+=(-1===a.indexOf("?")?"?":"&")+r+"="+encodeURIComponent(d)}var i=e.withCredentials,l={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(l[c]=s[c]);try{w=b.open(v,U,M,V,o,i,l)}catch(m){throw F(),m}}else if(f||null==w){var p=Math.max((f||Date.now())+u-Date.now(),1);f=!1,C=t((function(){K()}),p)}else V(new Error("No activity within "+u+" milliseconds. "+(0===k?"No response received.":h+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0)};e.url=a,e.readyState=0,e.withCredentials=s,e.headers=m,e._close=F,K()}(this,e,a)}var j=null!=c&&null!=u&&"body"in u.prototype;N.prototype=Object.create(C.prototype),N.prototype.CONNECTING=0,N.prototype.OPEN=1,N.prototype.CLOSED=2,N.prototype.close=function(){this._close()},N.CONNECTING=0,N.OPEN=1,N.CLOSED=2,N.prototype.withCredentials=void 0;var P,q,H=l;null==n||null!=l&&"withCredentials"in l.prototype||(H=N),(P=M).EventSourcePolyfill=N,P.NativeEventSource=l,void 0!==(q=void(P.EventSource=H))&&(U.exports=q)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:V:globalThis);const K=N({__name:"show-time",setup:e=>(P((()=>{})),(e,t)=>{const o=m;return a(),l(o,{class:"show-time"})})},[["__scopeId","data-v-48629e1f"]]);const G=N({__name:"dialogue",props:{chatLog:{type:Array,default:()=>[]},projectConfig:{type:Object,default:()=>({})},userinfo:{type:Object,default:()=>({})}},emits:["clickKeywordSearch"],setup(e,{emit:t}){!async function(){const e=await q.get({url:"/api/index/getRecorm"});o.value=e.data}();const o=S([]);return(n,i)=>{const r=f,c=m,p=h;return a(),C(k,null,[v(K),v(c,{class:"inquire-group"},{default:s((()=>[v(r,{class:"avatar",src:e.projectConfig.Al_avatar},null,8,["src"]),v(c,{class:"group-wrap"},{default:s((()=>[(a(!0),C(k,null,x(o.value,(e=>(a(),l(c,{class:"group-item",key:e.id,onClick:o=>function(e){t("clickKeywordSearch",e)}(e.title)},{default:s((()=>[v(c,{class:"item-title"},{default:s((()=>[u(d(e.title),1)])),_:2},1024),v(c,{class:"item-content"},{default:s((()=>[u(d(e.content),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1}),v(c,{class:"inquire-group"},{default:s((()=>[v(r,{class:"avatar",src:e.projectConfig.Al_avatar},null,8,["src"]),v(c,{class:"dialogue"},{default:s((()=>[v(c,{class:"top"},{default:s((()=>[u(d(e.projectConfig.Al_name),1)])),_:1}),v(c,{class:"inquire"},{default:s((()=>[u(d(e.projectConfig.Al_name)+"为您服务,请输入您的问题。",1)])),_:1})])),_:1})])),_:1}),v(K),(a(!0),C(k,null,x(e.chatLog,((t,o)=>(a(),l(c,{class:"dialogue-wrap",key:o,ref_for:!0,ref:"messageListContainer"},{default:s((()=>[v(K),v(c,{class:"response-group inquire-group"},{default:s((()=>[v(c,{class:"dialogue answer-inner"},{default:s((()=>[v(c,{class:"top answer-name"},{default:s((()=>[u(d(e.userinfo.nickname),1)])),_:1}),v(p,{selectable:"true"},{default:s((()=>[v(c,{class:"answer-dialogue"},{default:s((()=>[u(d(t.message),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),v(r,{class:"avatar",style:{"margin-right":"0"},src:e.userinfo.avatar},null,8,["src"])])),_:2},1024),v(K),v(c,{class:"inquire-group"},{default:s((()=>[v(r,{class:"avatar",src:e.projectConfig.Al_avatar},null,8,["src"]),v(c,{class:"dialogue"},{default:s((()=>[v(c,{class:"top"},{default:s((()=>[u(d(e.projectConfig.Al_name),1)])),_:1}),v(p,{selectable:"true"},{default:s((()=>[v(c,{class:"inquire"},{default:s((()=>[u(d(t.response),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))],64)}}},[["__scopeId","data-v-c9ee7596"]]),X=N({__name:"bottom-bar",props:{leftBtnText:{type:String,default:"修改上次记录"},rightBtnText:{type:String,default:"确认添加"},bgColor:{type:String,default:"#ffffff"},borderTop:{type:String,default:"0rpx"},zIndex:{type:Number,default:88},isLastRecord:{type:Boolean,default:!0}},emits:["leftClick","rightClick"],setup(e,{emit:t}){$((t=>({30329026:e.zIndex,"24ae731b":e.borderTop,11627030:e.bgColor})));const o=()=>{t("leftClick")},n=()=>{t("rightClick")};return(t,i)=>{const r=m;return a(),l(r,{class:"bottomBar"},{default:s((()=>[v(r,{class:"barBox"},{default:s((()=>[b(t.$slots,"default",{},(()=>[e.isLastRecord?p("",!0):(a(),l(r,{key:0,class:"cancel",onClick:o},{default:s((()=>[u(d(e.leftBtnText),1)])),_:1})),v(r,{class:"save",onClick:n},{default:s((()=>[u(d(e.rightBtnText),1)])),_:1})]),!0)])),_:3})])),_:3})}}},[["__scopeId","data-v-21a96403"]]),J={props:{show:{type:Boolean,default:o.transition.show},mode:{type:String,default:o.transition.mode},duration:{type:[String,Number],default:o.transition.duration},timingFunction:{type:String,default:o.transition.timingFunction}}},W=e=>({enter:`u-${e}-enter u-${e}-enter-active`,"enter-to":`u-${e}-enter-to u-${e}-enter-active`,leave:`u-${e}-leave u-${e}-leave-active`,"leave-to":`u-${e}-leave-to u-${e}-leave-active`});const Q=N({name:"u-transition",data:()=>({inited:!1,viewStyle:{},status:"",transitionEnded:!1,display:!1,classes:""}),computed:{mergeStyle(){const{viewStyle:e,customStyle:t}=this;return{transitionDuration:`${this.duration}ms`,transitionTimingFunction:this.timingFunction,...uni.$u.addStyle(t),...e}}},mixins:[n,i,{methods:{clickHandler(){this.$emit("click")},vueEnter(){const e=W(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,this.$nextTick((async()=>{await uni.$u.sleep(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=e["enter-to"]}))},vueLeave(){if(!this.display)return;const e=W(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,this.$nextTick((()=>{this.transitionEnded=!1,this.$emit("leave"),setTimeout(this.onTransitionEnd,this.duration),this.classes=e["leave-to"]}))},onTransitionEnd(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}},J],watch:{show:{handler(e){e?this.vueEnter():this.vueLeave()},immediate:!0}}},[["render",function(e,t,o,n,i,u){const d=m;return i.inited?(a(),l(d,{key:0,class:c(["u-transition",i.classes]),ref:"u-transition",onClick:e.clickHandler,style:r([u.mergeStyle]),onTouchmove:e.noop},{default:s((()=>[b(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick","class","style","onTouchmove"])):p("",!0)}],["__scopeId","data-v-d9214d5a"]]);const Z=N({name:"u-overlay",mixins:[n,i,{props:{show:{type:Boolean,default:o.overlay.show},zIndex:{type:[String,Number],default:o.overlay.zIndex},duration:{type:[String,Number],default:o.overlay.duration},opacity:{type:[String,Number],default:o.overlay.opacity}}}],computed:{overlayStyle(){const e={position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":`rgba(0, 0, 0, ${this.opacity})`};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},methods:{clickHandler(){this.$emit("click")}}},[["render",function(e,t,o,n,i,r){const c=j(g("u-transition"),Q);return a(),l(c,{show:e.show,"custom-class":"u-overlay",duration:e.duration,"custom-style":r.overlayStyle,onClick:r.clickHandler},{default:s((()=>[b(e.$slots,"default",{},void 0,!0)])),_:3},8,["show","duration","custom-style","onClick"])}],["__scopeId","data-v-d03bd871"]]);const Y=N({name:"u-status-bar",mixins:[n,i,{props:{bgColor:{type:String,default:o.statusBar.bgColor}}}],data:()=>({}),computed:{style(){const e={};return e.height=uni.$u.addUnit(uni.$u.sys().statusBarHeight,"px"),e.backgroundColor=this.bgColor,uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},[["render",function(e,t,o,n,i,c){const u=m;return a(),l(u,{style:r([c.style]),class:"u-status-bar"},{default:s((()=>[b(e.$slots,"default",{},void 0,!0)])),_:3},8,["style"])}],["__scopeId","data-v-0a45c0d8"]]);const ee=N({name:"u-safe-bottom",mixins:[n,i,{props:{}}],data:()=>({safeAreaBottomHeight:0,isNvue:!1}),computed:{style(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},mounted(){}},[["render",function(e,t,o,n,i,s){const u=m;return a(),l(u,{class:c(["u-safe-bottom",[!i.isNvue&&"u-safe-area-inset-bottom"]]),style:r([s.style])},null,8,["style","class"])}],["__scopeId","data-v-6e02536d"]]);const te=N({name:"u-popup",mixins:[n,i,{props:{show:{type:Boolean,default:o.popup.show},overlay:{type:Boolean,default:o.popup.overlay},mode:{type:String,default:o.popup.mode},duration:{type:[String,Number],default:o.popup.duration},closeable:{type:Boolean,default:o.popup.closeable},overlayStyle:{type:[Object,String],default:o.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:o.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:o.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:o.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:o.popup.safeAreaInsetTop},closeIconPos:{type:String,default:o.popup.closeIconPos},round:{type:[Boolean,String,Number],default:o.popup.round},zoom:{type:Boolean,default:o.popup.zoom},bgColor:{type:String,default:o.popup.bgColor},overlayOpacity:{type:[Number,String],default:o.popup.overlayOpacity}}}],data(){return{overlayDuration:this.duration+50}},watch:{show(e,t){}},computed:{transitionStyle(){const e={zIndex:this.zIndex,position:"fixed",display:"flex"};return e[this.mode]=0,"left"===this.mode||"right"===this.mode?uni.$u.deepMerge(e,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?uni.$u.deepMerge(e,{left:0,right:0}):"center"===this.mode?uni.$u.deepMerge(e,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const e={};if(uni.$u.sys(),"center"!==this.mode&&(e.flex=1),this.bgColor&&(e.backgroundColor=this.bgColor),this.round){const t=uni.$u.addUnit(this.round);"top"===this.mode?(e.borderBottomLeftRadius=t,e.borderBottomRightRadius=t):"bottom"===this.mode?(e.borderTopLeftRadius=t,e.borderTopRightRadius=t):"center"===this.mode&&(e.borderRadius=t)}return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick(){this.closeOnClickOverlay&&this.$emit("close")},close(e){this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")}}},[["render",function(e,t,o,n,i,u){const d=j(g("u-overlay"),Z),f=j(g("u-status-bar"),Y),h=j(g("u-icon"),D),y=m,w=j(g("u-safe-bottom"),ee),S=j(g("u-transition"),Q);return a(),l(y,{class:"u-popup"},{default:s((()=>[e.overlay?(a(),l(d,{key:0,show:e.show,onClick:u.overlayClick,duration:i.overlayDuration,customStyle:e.overlayStyle,opacity:e.overlayOpacity},null,8,["show","onClick","duration","customStyle","opacity"])):p("",!0),v(S,{show:e.show,customStyle:u.transitionStyle,mode:u.position,duration:e.duration,onAfterEnter:u.afterEnter,onClick:u.clickHandler},{default:s((()=>[v(y,{class:"u-popup__content",style:r([u.contentStyle]),onClick:_(e.noop,["stop"])},{default:s((()=>[e.safeAreaInsetTop?(a(),l(f,{key:0})):p("",!0),b(e.$slots,"default",{},void 0,!0),e.closeable?(a(),l(y,{key:1,onClick:_(u.close,["stop"]),class:c(["u-popup__content__close",["u-popup__content__close--"+e.closeIconPos]]),"hover-class":"u-popup__content__close--hover","hover-stay-time":"150"},{default:s((()=>[v(h,{name:"close",color:"#909399",size:"18",bold:""})])),_:1},8,["onClick","class"])):p("",!0),e.safeAreaInsetBottom?(a(),l(w,{key:2})):p("",!0)])),_:3},8,["style","onClick"])])),_:3},8,["show","customStyle","mode","duration","onAfterEnter","onClick"])])),_:3})}],["__scopeId","data-v-ca966c1e"]]);const oe=N({__name:"custom-popup",props:{isShowPopup:{type:Boolean,default:!1},isShowClose:{type:Boolean,default:!1},posterImg:{type:String,default:"/static/images/vip-icon.png"}},emits:["closePopup"],setup(e,{emit:t}){function o(){t("closePopup")}return(t,n)=>{const i=f,r=m;return e.isShowPopup?(a(),l(r,{key:0,class:"mask-wrap"},{default:s((()=>[v(r,{class:"center-content"},{default:s((()=>[b(t.$slots,"default",{},(()=>[v(r,{class:"top-wrap"},{default:s((()=>[e.isShowClose?(a(),l(i,{key:0,onClick:o,class:"close-icon",src:"/static/images/close.png"})):p("",!0),v(i,{class:"poster-img",src:e.posterImg,"show-menu-by-longpress":""},null,8,["src"]),v(r,{class:"btn-wrap"},{default:s((()=>[v(r,{class:"save-btn"},{default:s((()=>[u("长按图片保存")])),_:1})])),_:1})])),_:1})]),!0)])),_:3})])),_:3})):p("",!0)}}},[["__scopeId","data-v-cc92dc01"]]),ne=N({__name:"bottom-popup",props:{isShow:{type:Boolean,default:!1},userinfo:{type:Object,default:()=>({})},projectConfig:{type:Object,default:()=>({})}},emits:["closePopup","clearAll"],setup(e,{emit:t}){const o=S(!1);function n(){!function(e,t=!1){t?T({url:e}):e?E({url:e}):I()}("/pages/member/member")}function i(){t("closePopup")}function r(){t("clearAll")}return(t,c)=>{const y=m,b=f,_=h,w=j(g("u-popup"),te);return a(),l(y,{class:"bottom-popup"},{default:s((()=>[v(w,{show:e.isShow,round:16,mode:"bottom"},{default:s((()=>[v(y,{class:"content"},{default:s((()=>[v(y,{class:"title"},{default:s((()=>[u("我的菜单栏")])),_:1}),v(b,{class:"close-icon",src:"/assets/close-icon-de96aad6.png",onClick:i}),v(y,{class:"info-wrap"},{default:s((()=>[v(y,{class:"left-info"},{default:s((()=>[v(b,{class:"avatar-icon",src:e.userinfo.avatar},null,8,["src"]),v(y,{class:""},{default:s((()=>[v(y,{class:"nickname"},{default:s((()=>[u(d(e.userinfo.nickname),1)])),_:1}),v(y,{class:"userid"},{default:s((()=>[u("ID:"+d(e.userinfo.idcode),1)])),_:1})])),_:1})])),_:1}),0==e.userinfo.is_vip?(a(),l(y,{key:0,class:"right-info"},{default:s((()=>[u(d(0==e.userinfo.number?"您的体验次数已经用完啦,升级VIP获得全部功能使用权~":`拥有免费次数:${e.userinfo.number}次`),1)])),_:1})):p("",!0),1==e.userinfo.is_vip?(a(),l(y,{key:1,class:"right-info vip-wrap"},{default:s((()=>[v(b,{class:"vip-icon",src:"/assets/vip-icon-a4685d29.png",mode:""}),u(" 使用次数无限制哦~ ")])),_:1})):p("",!0)])),_:1}),v(y,{class:"invite-wrap"},{default:s((()=>[v(y,{class:"invite-left"},{default:s((()=>[v(y,{class:""},{default:s((()=>[u("邀请新的朋友来体验")])),_:1}),v(y,{class:"times"},{default:s((()=>[u("邀请成功可获得 "),v(_,{style:{"font-weight":"700",color:"#dbc5b8"}},{default:s((()=>[u(d(e.projectConfig.share_num)+"次",1)])),_:1}),u(" 次数奖励")])),_:1})])),_:1}),v(y,{class:"invite-right",onClick:c[0]||(c[0]=e=>o.value=!0)},{default:s((()=>[u("邀请朋友 ")])),_:1})])),_:1}),0==e.userinfo.is_vip?(a(),l(b,{key:0,src:"/assets/vip-bg-18bb2d02.png",class:"vip-bg",onClick:n})):p("",!0),v(y,{class:"clear-all",onClick:r},{default:s((()=>[u("清除聊天记录")])),_:1}),v(b,{class:"tips",src:"/assets/button-042dd44e.png",mode:""})])),_:1})])),_:1},8,["show"]),v(oe,{isShowClose:!0,isShowPopup:o.value,onClosePopup:c[1]||(c[1]=e=>o.value=!1),posterImg:e.userinfo.share_qr,height:"900rpx"},null,8,["isShowPopup","posterImg"])])),_:1})}}},[["__scopeId","data-v-943f682a"]]);function ie(e,t=!1){A({title:e,icon:t?"success":"none"})}const ae=N({__name:"index",setup(e){const o=S(""),n=S(!1),i=S(),c=S(),u=S();B((()=>{t("token")&&(b(),y(),async function(){const e=await q.get({url:"/api/index/getConfig"});c.value=e.data,R("server_qr",e.data.server_qr)}())}));const d=S([]);async function p(e){d.value.push({message:o.value,response:""});let n=new F.EventSourcePolyfill(`http://aladmin.shs.broing.cn/api/message/sendText2?message=${e}`,{headers:{token:t("token")||"",accept:"application/json, text/javascript, */*; q=0.01","Content-Type":"multipart/form-data; boundary=----WebKitFormBoundaryay3HuJlbDrA4oKqJ"}});n.onopen=function(e){},n.onmessage=function(e){console.log("onmessage",e.data),d.value[d.value.length-1].response=d.value[d.value.length-1].response.concat(e.data).replaceAll("<br/>"," ").replaceAll("undefined"," ")},n.onerror=function(e){n.close()},o.value="",y(),"您的会话次数不足"===res.msg&&ie(`${res.msg}`)}function h(e){o.value=e,p(e)}async function y(){const e=await q.post({url:"/api/user/getuserinfo"});i.value=e.data,console.log("获取个人信息",e)}async function b(){const e=await q.get({url:"/api/message/getRecord"});e.data.forEach((e=>{e.response=e.response.replaceAll("<br/>","")})),d.value=e.data}async function _(){const e=await q.get({url:"/api/message/clearGroup"});b(),n.value=!1,"清除成功"===e.msg&&ie("清除聊天记录成功")}return P((()=>{z({success:function(e){console.log(e,"------------")}})})),(e,t)=>{const y=m,b=O,w=f,S=j(g("u-search"),L);return a(),l(y,{class:"content"},{default:s((()=>[v(b,{"scroll-y":"","scroll-x":"","show-scrollbar":"","scroll-with-animation":"",style:r({paddingBottom:"20px",height:e.screenHeight-e.bottomHeight-e.statusbarHeight-148+"px",position:"relative"}),class:"scrollView","scroll-top":e.scrollTopHeight,"scroll-into-view":e.getScrollView},{default:s((()=>[v(y,{id:"scroll-view-content"},{default:s((()=>[v(G,{chatLog:d.value,projectConfig:c.value,userinfo:i.value,ref_key:"dialogueRef",ref:u,onClickKeywordSearch:h},null,8,["chatLog","projectConfig","userinfo"])])),_:1})])),_:1},8,["style","scroll-top","scroll-into-view"]),v(X,{bgColor:"#151419"},{default:s((()=>[v(y,{class:"bottom-wrap"},{default:s((()=>[v(w,{class:"menu-icon",src:"/assets/menu-ded83980.png",onClick:t[0]||(t[0]=e=>n.value=!0)}),v(S,{placeholder:"请输入消息...",modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=e=>o.value=e),shape:"square",bgColor:"#242228",showAction:!1,onSearch:t[2]||(t[2]=e=>p(o.value))},null,8,["modelValue"])])),_:1})])),_:1}),v(ne,{isShow:n.value,onClosePopup:t[3]||(t[3]=e=>n.value=!1),userinfo:i.value,projectConfig:c.value,onClearAll:_},null,8,["isShow","userinfo","projectConfig"])])),_:1})}}},[["__scopeId","data-v-32d8967d"]]);export{ae as default}; |