glhcp/server/public/mobile/static/js/bundle-pages-chat-chat.4dd1...

1 line
42 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-chat-chat"],{"0760":function(t,e,i){"use strict";i.r(e);var n=i("55d5"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"0d00":function(t,e,i){"use strict";i.r(e);var n=i("aa0e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},1170:function(t,e,i){"use strict";i.r(e);var n=i("ca34"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"1ba8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["em-smile","em-laughing","em-blush","em-smiley","em-relaxed","em-smirk","em-heart_eyes","em-kissing_heart","em-kissing_closed_eyes","em-flushed","em-relieved","em-satisfied","em-grin","em-wink","em-stuck_out_tongue_winking_eye","em-stuck_out_tongue_closed_eyes","em-grinning","em-kissing","em-kissing_smiling_eyes","em-stuck_out_tongue","em-sleeping","em-worried","em-frowning","em-anguished","em-open_mouth","em-grimacing","em-confused","em-hushed","em-expressionless","em-unamused","em-sweat_smile","em-sweat","em-disappointed_relieved","em-weary","em-pensive","em-disappointed","em-confounded","em-fearful","em-cold_sweat","em-persevere","em-cry","em-sob","em-joy","em-astonished","em-scream","em-tired_face","em-angry","em-rage","em-triumph","em-sleepy","em-yum","em-mask","em-dizzy_face","em-sunglasses","em-imp","em-smiling_imp","em-neutral_face","em-no_mouth","em-innocent","em-alien","em-heart","em-broken_heart","em-hankey","em-thumbsup","em-thumbsdown","em-ok_hand","em-facepunch","em-fist","em-v","em-point_up","em-point_down","em-point_left","em-point_right","em-pray"];e.default=n},"259e":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=n},"2efe":function(t,e,i){"use strict";i.r(e);var n=i("63a9"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"4d7d":function(t,e,i){"use strict";var n=i("55c6"),a=i.n(n);a.a},"55c6":function(t,e,i){var n=i("a00d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("16791d4e",n,!0,{sourceMap:!1,shadowMode:!1})},"55d5":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle:function(){var t={};return t.width=this.size+"rpx",t.height=this.size+"rpx","circle"==this.mode&&(t.borderColor="#e4e4e4 #e4e4e4 #e4e4e4 ".concat(this.color?this.color:"#c7c7c7")),t}}};e.default=n},"5a93":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"5c2f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-image[data-v-5c6487b9]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-5c6487b9]{width:100%;height:100%}.u-image__loading[data-v-5c6487b9], .u-image__error[data-v-5c6487b9]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}',""]),t.exports=e},"61c0":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"u-loading",class:"circle"==t.mode?"u-loading-circle":"u-loading-flower",style:[t.cricleStyle]}):t._e()},o=[]},"63a2":function(t,e,i){"use strict";var n=i("6c73"),a=i.n(n);a.a},"63a9":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("1ba8")),o={name:"emoji",data:function(){return{emoji:a.default}},methods:{handleClick:function(t){this.$emit("input","[".concat(t,"]"))}}};e.default=o},"660b":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():i("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?i("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):i("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},o=[]},"6c73":function(t,e,i){var n=i("9501");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5fcf3bd7",n,!0,{sourceMap:!1,shadowMode:!1})},"6c9c":function(t,e,i){"use strict";var n=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("d4ec")),o=n(i("bee2")),r=n(i("ade3")),s=i("357b"),c=function(){function t(e,i){(0,a.default)(this,t),(0,r.default)(this,"events",{connect:null,close:null,message:null,error:null,open:null}),this.connected=!1,this.error=!1,this.url="".concat(e).concat((0,s.paramsToStr)(i)),this.socketTask={},this.reconnectLock=!0,this.reconnectTimeout=null,this.reconnectNums=0,this.timeout=1e4,this.clientTimeout=null,this.serverTimeout=null}return(0,o.default)(t,[{key:"addEvent",value:function(t,e){this.events[t]=e}},{key:"dispatch",value:function(t,e){var i=this.events[t];i&&i(e)}},{key:"connect",value:function(){this.connected||(this.dispatch("connect"),this.socketTask=uni.connectSocket({url:this.url,complete:function(){}}),this.socketTask.onOpen(this.onOpen.bind(this)),this.socketTask.onError(this.onError.bind(this)),this.socketTask.onMessage(this.onMessage.bind(this)),this.socketTask.onClose(this.onClose.bind(this)))}},{key:"close",value:function(){this.reconnectLock=!1,clearTimeout(this.clientTimeout),clearTimeout(this.serverTimeout),this.socketTask.close&&this.socketTask.close()}},{key:"reconnect",value:function(){var t=this;this.reconnectLock&&(this.reconnectNums>=5||(this.reconnectNums++,this.reconnectLock=!1,clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout((function(){t.connect(),t.reconnectLock=!0}),4e3)))}},{key:"start",value:function(){var t=this;clearTimeout(this.clientTimeout),clearTimeout(this.serverTimeout),this.clientTimeout=setTimeout((function(){t.send({event:"ping"}),t.serverTimeout=setTimeout((function(){t.socketTask.close()}),t.timeout)}),this.timeout)}},{key:"reset",value:function(){this.reconnectNums=0,this.start()}},{key:"send",value:function(t){if(this.connected){var e=JSON.stringify(t);this.socketTask.send({data:e})}}},{key:"onOpen",value:function(){this.connected=!0,this.start(),this.dispatch("open")}},{key:"onError",value:function(t){this.error=!0,this.connected=!1,this.dispatch("error")}},{key:"onMessage",value:function(t){var e=t.data;this.dispatch("message",JSON.parse(e)),this.reset()}},{key:"onClose",value:function(t){this.dispatch("close"),this.connected=!1,this.reconnect()}}]),t}(),u=c;e.default=u},7171:function(t,e,i){"use strict";i.r(e);var n=i("660b"),a=i("cb4c");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7208");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"5c6487b9",null,!1,n["a"],r);e["default"]=c.exports},7208:function(t,e,i){"use strict";var n=i("774a"),a=i.n(n);a.a},"774a":function(t,e,i){var n=i("5c2f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("28f9c44e",n,!0,{sourceMap:!1,shadowMode:!1})},"778d":function(t,e,i){"use strict";i.r(e);var n=i("61c0"),a=i("0760");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("4d7d");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"60256ec8",null,!1,n["a"],r);e["default"]=c.exports},"7eac":function(t,e,i){"use strict";var n=i("ab77"),a=i.n(n);a.a},"813d":function(t,e,i){"use strict";var n=i("b65b"),a=i.n(n);a.a},8312:function(t,e,i){"use strict";i.r(e);var n=i("a126"),a=i("0d00");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7eac");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"0a5a34e0",null,!1,n["a"],r);e["default"]=c.exports},"93ab":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA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ue5INDOiGMq1cKhuDCuS/1cvAGYBONi0ab/PxwKCtyDlvgKN4EgNhP8CkORZryQp0CEAAAAASUVORK5CYII="},9501:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.emoji-lists[data-v-67769de1]{display:flex;flex-wrap:wrap;padding:%?20?%}.emoji-lists .emoji-item[data-v-67769de1]{width:12.5%;text-align:center;padding:%?10?% 0;-webkit-transform:scale(1.2);transform:scale(1.2)}',""]),t.exports=e},"9e3d":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */uni-page-body[data-v-002ce5af]{pading:0;height:100%}.chat[data-v-002ce5af]{height:100%}.chat .goods[data-v-002ce5af]{display:flex;position:fixed;width:%?600?%;right:%?20?%;bottom:calc(%?120?% + env(safe-area-inset-bottom));border-radius:%?14?%;background:#fff;padding:%?20?%}.chat .goods .close[data-v-002ce5af]{position:absolute;left:%?-20?%;top:%?-20?%}.chat .goods .send-btn[data-v-002ce5af]{padding:%?8?% %?22?%}.chat .content[data-v-002ce5af]{transition:all .3s;flex:1;min-height:0}.chat .content .loading[data-v-002ce5af]{padding:%?20?%;height:40px}.chat .content .chat-lists[data-v-002ce5af]{padding:0 %?20?% %?30?%;overflow:hidden;position:relative}.chat .content .chat-lists .chat-tips[data-v-002ce5af]{padding:%?4?% %?20?%;border-radius:%?21?%;display:inline-block;text-align:center;background-color:rgba(0,0,0,.2)}.chat .content .chat-lists .chat-item[data-v-002ce5af]{padding-top:%?30?%}.chat .content .chat-lists .chat-item.visibility[data-v-002ce5af]{visibility:hidden}.chat .content .chat-lists .chat-item .chat-info[data-v-002ce5af]{display:flex;align-items:flex-start}.chat .content .chat-lists .chat-item.right .chat-info[data-v-002ce5af]{flex-direction:row-reverse}.chat .content .chat-lists .chat-item.right .chat-info .text-box[data-v-002ce5af]{background-color:#ed5349;color:#fff}.chat .content .chat-lists .chat-item .avatar[data-v-002ce5af]{width:%?78?%;height:%?78?%;border-radius:%?14?%;flex:none}.chat .content .chat-lists .chat-item .text-box[data-v-002ce5af]{max-width:%?500?%;min-width:%?80?%;background-color:#fff;border-radius:%?14?%;padding:%?16?% %?20?%;margin:0 %?20?%;word-break:break-word;line-height:%?40?%}.chat .content .chat-lists .chat-item .image-box[data-v-002ce5af]{max-width:%?300?%;margin:0 %?20?%}.chat .content .chat-lists .chat-item .image-box .image[data-v-002ce5af]{max-width:100%}.chat .content .chat-lists .chat-item .goods-box[data-v-002ce5af]{position:static;width:%?510?%}.chat .error[data-v-002ce5af]{padding:0 %?30?% %?30?%}.chat .error .error-msg[data-v-002ce5af]{color:#bbb;word-break:break-word}.chat .footer[data-v-002ce5af]{background:#f2f2f2;padding-bottom:env(safe-area-inset-bottom)}.chat .footer .footer-input[data-v-002ce5af]{height:%?100?%;padding:0 %?20?%}.chat .footer .footer-input .icon[data-v-002ce5af]{width:%?52?%;height:%?52?%}.chat .footer .footer-input .input-contain[data-v-002ce5af]{margin:0 %?20?%;background-color:#fff;height:%?68?%;border-radius:%?60?%;flex:1;overflow:hidden;padding:0 %?10?% 0 %?30?%}.chat .footer .footer-input .input-contain .text-area[data-v-002ce5af]{flex:1;height:%?100?%;word-break:break-all}.chat .emoji-wrap[data-v-002ce5af]{height:0;transition:all .3s}.chat .emoji-wrap.emoji-show[data-v-002ce5af]{height:200px}.chat .send-btn[data-v-002ce5af]{padding:0 %?25?%;color:#fff;background-color:#ed5349;border-radius:%?60?%}',""]),t.exports=e},a00d:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-loading-circle[data-v-60256ec8]{display:inline-flex;vertical-align:middle;width:%?28?%;height:%?28?%;background:0 0;border-radius:50%;border:2px solid;border-color:#e5e5e5 #e5e5e5 #e5e5e5 #8f8d8e;-webkit-animation:u-circle-data-v-60256ec8 1s linear infinite;animation:u-circle-data-v-60256ec8 1s linear infinite}.u-loading-flower[data-v-60256ec8]{width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:a 1s steps(12) infinite;animation:u-flower-data-v-60256ec8 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwID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lKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}@-webkit-keyframes u-flower-data-v-60256ec8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes u-flower-data-v-60256ec8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes u-circle-data-v-60256ec8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),t.exports=e},a126:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?i("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),i("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?i("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},o=[]},aa0e:function(t,e,i){"use strict";i("a9e3"),i("acd8"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&""!==t&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=n},ab77:function(t,e,i){var n=i("5a93");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0d47c85e",n,!0,{sourceMap:!1,shadowMode:!1})},b65b:function(t,e,i){var n=i("9e3d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("3062023a",n,!0,{sourceMap:!1,shadowMode:!1})},b938:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"emoji"},[i("v-uni-view",{staticClass:"emoji-lists"},t._l(t.emoji,(function(e,n){return i("v-uni-view",{key:n,staticClass:"emoji-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handleClick(e)}}},[i("v-uni-text",{staticClass:"em",class:e})],1)})),1)],1)},o=[]},c951:function(t,e,i){"use strict";i.r(e);var n=i("b938"),a=i("2efe");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("63a2");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"67769de1",null,!1,n["a"],r);e["default"]=c.exports},ca34:function(t,e,i){"use strict";var n=i("4ea4");i("d3b7"),i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2909")),o=n(i("3835"));i("96cf");var r=n(i("1da1")),s=n(i("6c9c")),c=i("e9dc"),u=i("6ab0"),d=i("3b3e"),l=i("357b"),f=i("fa85"),h=(i("26cb"),{data:function(){return{pageStatus:"loading",scrollTop:"",intoView:"",page:1,msg:"",socket:{},kefu:{},showEmoji:!1,recoreds:[],errorMsg:"",goodsInfo:{},isError:!1,showGoods:!1,showIndex:-1}},computed:{timeFormat:function(){var t=this;return function(e,i){var n=(0,f.timeFormatChat)(e.create_time_stamp);return i&&e.create_time_stamp-t.recoreds[i-1].create_time_stamp<300&&!e.show_time&&(n=""),n}},replaceEmoji:function(){return function(t){return t.replace(/\[em-([a-z_]+)\]/g,'<span class="em em-$1"></span>')}},$getImageUri:function(){var t=this;return function(e){return t.$store.state.app.config.base_domain+e}}},watch:{kefu:function(t){t.id&&this.setTitle(t.nickname)}},methods:{init:function(){var t=this;this.shopId=this.$Route.query.shop_id||0,this.goodsId=this.$Route.query.goods_id,this.socket=new s.default(this.appConfig.ws_domain,{token:this.$store.getters.token,type:"user",client:l.client,shop_id:this.shopId}),this.socket.addEvent("connect",(function(){t.setTitle("连接中...")})),this.socket.addEvent("open",(function(){t.setTitle(t.kefu.nickname),t.isError=!1})),this.socket.addEvent("message",(function(e){switch(e.event){case"login":t.loginEvent(e.data);break;case"chat":t.chatEvent(e.data);break;case"transfer":t.transferEvent(e.data);break;case"error":t.errorEvent(e.data);break}})),this.socket.addEvent("error",(function(e){t.setTitle("连接失败")}))},showTips:function(t){var e=this;t?uni.showModal({title:"温馨提示",content:t,success:function(t){t.confirm?e.$Router.replace({path:"/bundle/pages/contact_offical/contact_offical?id=".concat(e.shopId)}):t.cancel&&e.$Router.back()}}):setTimeout((function(){e.$Router.replace({path:"/bundle/pages/contact_offical/contact_offical?id=".concat(e.shopId)})}),200)},getConfig:function(){return(0,u.getChatConfig)({shop_id:this.shopId}).then((function(t){return Promise.resolve(t)})).catch((function(){return Promise.reject()}))},getData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.getConfig();case 3:if(i=e.sent,0!=i.code){e.next=6;break}return e.abrupt("return",t.showTips(i.msg));case 6:return e.next=8,t.getChatRecord();case 8:if(t.getGoods(),t.scrollToBottom(),t.kefu.id){e.next=13;break}return t.setTitle("客服不在线"),e.abrupt("return");case 13:t.socket.connect(),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](0);case 18:case"end":return e.stop()}}),e,null,[[0,16]])})))()},getGoods:function(){var t=this;this.goodsId&&(0,d.getGoodsDetail)({goods_id:this.goodsId}).then((function(e){1==e.code&&(t.goodsInfo=e.data,t.kefu.id&&(t.showGoods=!0))}))},previewImage:function(t){uni.previewImage({urls:[t]})},uploadFile:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var i,n,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.chooseImage({count:1});case 2:if(i=e.sent,n=(0,o.default)(i,2),a=n[0],r=n[1],!a){e.next=8;break}return e.abrupt("return");case 8:return uni.showLoading({title:"上传中..."}),e.prev=9,e.next=12,(0,l.uploadFile)(r.tempFilePaths[0]);case 12:s=e.sent,t.send(s.base_uri,2),uni.hideLoading(),e.next=21;break;case 17:e.prev=17,e.t0=e["catch"](9),t.$toast({title:"上传失败,请稍后再试"}),uni.hideLoading();case 21:case"end":return e.stop()}}),e,null,[[9,17]])})))()},sendText:function(){this.msg&&(this.send(this.msg,1),this.msg="")},sendGoods:function(){this.showGoods=!1,this.send(this.goodsId,3)},getChatRecord:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var i,n,o,r,s,u,d,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.page,n=t.pageStatus,"finish"!=n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,c.chatRecord)({shop_id:t.shopId,page_no:i});case 5:o=e.sent,1==o.code&&(s=0,t.page++,u=o.data,d=u.kefu,l=u.record,t.kefu=d,t.showIndex=l.list.length,t.recoreds.length&&(s=t.recoreds[0].id,t.recoreds[0].show_time=!0),(r=t.recoreds).unshift.apply(r,(0,a.default)(l.list)),t.$nextTick((function(){l.more||(t.pageStatus="finish"),t.scrollToItem(s),t.showIndex=-1})));case 7:case"end":return e.stop()}}),e)})))()},send:function(t,e){this.socket.send({event:"chat",data:{msg:t,msg_type:e,to_id:this.kefu.id,to_type:"kefu"}})},handleEmojiShow:function(){var t=this;this.showEmoji=!this.showEmoji,this.showEmoji&&setTimeout((function(){t.scrollToBottom()}),300)},scrollToupper:function(){this.getChatRecord()},scrollToBottom:function(){var t=this;this.intoView="bottom",this.$nextTick((function(){t.intoView=""}))},scrollToItem:function(t){var e=this;this.intoView="chat-item_".concat(t),this.$nextTick((function(){e.intoView=""}))},handleEmojiInput:function(t){this.msg=this.msg+t},chatEvent:function(t){var e=this;this.isError=!1,"kefu"==t.from_type&&uni.vibrateLong({success:function(){console.log("success")}}),t.shop_id==this.shopId&&(this.recoreds.push(t),this.$nextTick((function(){(0,l.getRect)("#bottom").then((function(i){i.bottom<1e3&&e.scrollToItem(t.id)}))})))},errorEvent:function(t){var e=this;this.errorMsg=t.msg,this.isError=!0,this.$nextTick((function(){e.scrollToBottom()}))},loginEvent:function(t){this.socket.send({event:"user_online",data:{kefu_id:this.kefu.id}})},transferEvent:function(t){this.kefu=t},setTitle:function(t){uni.setNavigationBarTitle({title:t})}},onLoad:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.scrollToupper=(0,l.debounce)(t.scrollToupper,500,t),t.init(),t.getData();case 3:case"end":return e.stop()}}),e)})))()},onUnload:function(){this.socket.close()},onReady:function(){}});e.default=h},cb4c:function(t,e,i){"use strict";i.r(e);var n=i("259e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},d86f:function(t,e,i){"use strict";i.r(e);var n=i("edf4"),a=i("1170");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("813d");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"002ce5af",null,!1,n["a"],r);e["default"]=c.exports},edf4:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uLoading:i("778d").default,priceFormat:i("8312").default,emoji:i("c951").default,uIcon:i("4569").default,uImage:i("7171").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"chat flex-col"},[n("v-uni-view",{staticClass:"content",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showEmoji=!1}}},[n("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":!0,"scroll-top":t.scrollTop,"scroll-into-view":t.intoView},on:{scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrollToupper.apply(void 0,arguments)}}},["loading"==t.pageStatus?n("v-uni-view",{staticClass:"loading flex row-center"},[n("u-loading",{attrs:{mode:"flower",size:"40"}})],1):t._e(),n("v-uni-view",{staticClass:"chat-lists"},t._l(t.recoreds,(function(e,i){return n("v-uni-view",{key:e.id,staticClass:"chat-item",class:{right:"user"==e.from_type,left:"kefu"==e.from_type,visibility:t.showIndex>i},attrs:{id:"chat-item_"+e.id}},[1==e.type?[t.timeFormat(e,i)?n("v-uni-view",{staticClass:"text-center m-b-30 white"},[n("v-uni-view",{staticClass:"chat-tips xs"},[t._v(t._s(t.timeFormat(e,i)))])],1):t._e(),n("v-uni-view",{staticClass:"chat-info"},[n("v-uni-image",{staticClass:"avatar",attrs:{src:t.$getImageUri(e.from_avatar)}}),1==e.msg_type?n("v-uni-view",{staticClass:"text-box"},[n("v-uni-rich-text",{attrs:{nodes:t.replaceEmoji(e.msg),space:"nbsp"}})],1):t._e(),2==e.msg_type?n("v-uni-view",{staticClass:"image-box"},[n("v-uni-image",{staticClass:"image",attrs:{mode:"widthFix",src:t.$getImageUri(e.msg)},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.previewImage(t.$getImageUri(e.msg))}}})],1):t._e(),3==e.msg_type?n("v-uni-view",{staticClass:"goods m-r-20 goods-box"},[n("v-uni-view",{staticClass:"goods-img m-r-20"},[n("v-uni-image",{staticStyle:{width:"140rpx",height:"140rpx"},attrs:{src:t.$getImageUri(e.goods.image)}})],1),n("v-uni-view",{staticClass:"goods-info flex-1"},[n("v-uni-view",{staticClass:"line-2"},[t._v(t._s(e.goods.name))]),n("v-uni-view",{staticClass:"flex m-t-10 row-between"},[n("price-format",{attrs:{color:t.colorConfig.primary,"subscript-size":26,"first-size":38,"second-size":26,price:e.goods.min_price}})],1)],1)],1):t._e()],1)]:[n("v-uni-view",{staticClass:"text-center white"},[n("v-uni-view",{staticClass:"muted xs"},[t._v(t._s(e.msg))])],1)]],2)})),1),t.isError?n("v-uni-view",{staticClass:"error"},[n("v-uni-view",{staticClass:"error-msg text-center xs"},[t._v(t._s(t.errorMsg))])],1):t._e(),n("v-uni-view",{attrs:{id:"bottom"}})],1)],1),n("v-uni-view",{staticClass:"footer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showGoods=!1}}},[n("v-uni-view",{staticClass:"footer-input flex"},[n("v-uni-view",{staticClass:"album",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadFile.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"icon",attrs:{src:i("f317")}})],1),n("v-uni-view",{staticClass:"input-contain flex"},[n("v-uni-input",{staticClass:"text-area",attrs:{"confirm-type":"send",maxlength:"-1"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.scrollToBottom.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.sendText.apply(void 0,arguments)}},model:{value:t.msg,callback:function(e){t.msg=e},expression:"msg"}}),n("v-uni-image",{staticClass:"icon",attrs:{src:i("93ab")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleEmojiShow.apply(void 0,arguments)}}})],1),n("v-uni-button",{staticClass:"send-btn",attrs:{size:"sm"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sendText.apply(void 0,arguments)}}},[t._v("发送")])],1),n("v-uni-view",{staticClass:"emoji-wrap",class:{"emoji-show":t.showEmoji}},[n("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":"true"}},[n("emoji",{on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleEmojiInput.apply(void 0,arguments)}}})],1)],1)],1),t.showGoods?n("v-uni-view",{staticClass:"goods"},[n("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showGoods=!1}}},[n("u-icon",{attrs:{name:"close-circle-fill",color:"#ccc",size:"40"}})],1),n("v-uni-view",{staticClass:"goods-img m-r-20"},[n("u-image",{attrs:{width:"140rpx",height:"140rpx",src:t.goodsInfo.image}})],1),n("v-uni-view",{staticClass:"goods-info flex-1"},[n("v-uni-view",{staticClass:"line-2"},[t._v(t._s(t.goodsInfo.name))]),n("v-uni-view",{staticClass:"flex m-t-10 row-between"},[n("price-format",{attrs:{color:t.colorConfig.primary,"subscript-size":26,"first-size":38,"second-size":26,price:t.goodsInfo.min_price}}),n("v-uni-view",{staticClass:"send-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sendGoods.apply(void 0,arguments)}}},[t._v("发送链接")])],1)],1)],1):t._e()],1)},o=[]},f317:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAB59JREFUaEPtWX2MXFUV/5332FlZpWWr1dRFjQgia1Ai0RBNNMSP/qEgIiuGRoOCyy7dmXffLpSGDyeD32W7976Zsm2H2Eg0GrM2IeofSEwE/vAjscZqLCL1M8WKLRQiBXZ25x1zXu5t7k53llm6OzMhnb/m47y553fP1++cQ3iFvegVhgenAXW7RVuxUCsy7cTJSx3WTFkqFothqVSqA1jyD9qJxJ61pG4nASoWi4E8WCqVUnl/5MiRvlwud0YHFD/pyFqtNr9+/frnnW5OT19wASABIMLDw8N9fX19IwCuBnAOgL4usJTo+jyAQ0Q0A2CX1voFp7MD5QOS95zP588Jw/B+AJcASAFkFuuil9NpX71ev7JSqRwCsmydhYYDlH0Rx/GZzPwQgPdZMD8H8FMimmPmjiYHImJm7gHwCQAfsRf9GyK6TCzlQGVKFovFM0ql0nwcxxPMPCnfMfPWJEm+5aPvAitlFx9F0a1E9E2rz4QxZmpoaCicmZmpL7CQUuphAB8E8KAxZqMI9ff3Bxs2bGhLpjt8+DD19vYucPHZ2dnUnS+/Hzt2LBXFlVI/A/AxAI8YYz7kWyhDvWXLlrNqtdqjAAaIaFxrrZ3l2mEZG9xycY2XJ2maJFk18aZDtVrtwunp6ecElIDJACmlzgZwEMBriWhUa72rXYBcphodHe3P5XJXEdG7rdvvJ6K9xphnnIwXHiPMvBPAUwDOE5nFAD0O4HVEtFl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jXJ0SIFEwn88PBEEwTkTXA1jjgDDzt4MgkE79ieUC8VFZ18pSfRzHJWb+sv19npknkiQpNww/l5/lXMcaRZG4lnAsZ5FnmXlPmqZTbh4mlXsJ12oMgUU/+52oUupKItrDzP1W+L61a9eOlEqlFz0+uLy07WYKSilpycW3pV+/T4CUy+V/eVmraTZqCclCoRNxNT4+/vY0TSWupDjL63dEdI3W+uDL5XJjxph7lFIfB/BRYb/GmH+sEpAFsFx2s+PoqsSSFZDi/OkkSR6Rz6dcWF+qPrwMizR9xD9LKTUO4BvCOtI0/VG5XB46FUBCXSRgm6XflcTR+F8nXLBQKHyYiG6WnsgY86tlA2rnGOslbiRjGNKhNhbWZY2xmHkkSZLdqz3GatW8Lrt5RV5Yxo1EtKvpGMtuHv5gs9rXjDF3uBlYqwe3Q86by33VticHiehdbgPhtg/ZoksptReA0P7HiehSrfXTrqi1Q9lWzhA94zgWZiGDyfNlVKy1vtoNLTNALlVGUbSRiB6wfyybiC8aY/7WJSsVN4M/F8AeALJxkOHJRq31g43rFNkROSvdDeBm22E+R0R/TNNUCmunN3lpEARnM/NFAF5jL3nSGHOLv5ZcdMcax/FtaZreafsbabY6ur3zXDHThZlfDILgK66F9xn9oltwERgbG3trGIaX2xGt3ExHQclKUiiYjITr9fpPduzY8ffGhXHmgosE4km5v5VgbbeMz9L9s5veumPA7Va0xfOaMpeOulGLyi9L7DSgZV1XB4RPW6gDl76sI/8PyFqcnPQfAmMAAAAASUVORK5CYII="},fa85:function(t,e,i){"use strict";i("a9e3"),i("d3b7"),i("4d63"),i("ac1f"),i("25f0"),i("4d90"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormatChat=e.timeFormat=void 0;var n=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),10==t.toString().length&&(t*=1e3);var i,n=new Date(t),a={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"M+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(var o in a)i=new RegExp("("+o+")").exec(e),i&&(e=e.replace(i[1],1==i[1].length?a[o]:a[o].padStart(i[1].length,"0")));return e};e.timeFormat=a;var o=function(t){10==t.toString().length&&(t*=1e3);var e=new Date(t),i=a(t,"yyyy年mm月dd日 hh:MM");return c(e)?i=a(t,"hh:MM"):u(e)?i=n[e.getDay()]+a(t," hh:MM"):r(e)&&(i=a(t,"mm月dd日 hh:MM")),i};e.timeFormatChat=o;var r=function(t){var e=new Date;return t.getYear()==e.getYear()},s=function(t){var e=new Date;return r(t)&&t.getMonth()==e.getMonth()},c=function(t){var e=new Date;return s(t)&&t.getDate()==e.getDate()},u=function(t){var e=new Date;return!!s(t)&&(e.getDay()-t.getDay()>0&&e.getDate()-t.getDate()<7||void 0)}}}]);