1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-history~pages-index-index"],{"007b":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"uni-list-chat",attrs:{"hover-class":t.clickable||t.link?"uni-list-chat--hover":""},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.onClick.apply(void 0,arguments)}}},[e("v-uni-view",{class:{"uni-list--border":t.border,"uni-list-chat--first":t.isFirstChild}}),e("v-uni-view",{staticClass:"uni-list-chat__container"},[e("v-uni-view",{staticClass:"uni-list-chat__header-warp"},[t.avatarCircle||0===t.avatarList.length?e("v-uni-view",{staticClass:"uni-list-chat__header",class:{"header--circle":t.avatarCircle}},[e("v-uni-image",{staticClass:"uni-list-chat__header-image",attrs:{src:t.avatar,mode:"aspectFill"}})],1):e("v-uni-view",{staticClass:"uni-list-chat__header"},t._l(t.avatarList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"uni-list-chat__header-box",class:t.computedAvatar,style:{width:t.imageWidth+"px",height:t.imageWidth+"px"}},[e("v-uni-image",{staticClass:"uni-list-chat__header-image",style:{width:t.imageWidth+"px",height:t.imageWidth+"px"},attrs:{src:i.url,mode:"aspectFill"}})],1)})),1)],1),t.badgeText&&"left"===t.badgePositon?e("v-uni-view",{staticClass:"uni-list-chat__badge uni-list-chat__badge-pos",class:[t.isSingle]},[e("v-uni-text",{staticClass:"uni-list-chat__badge-text"},[t._v(t._s("dot"===t.badgeText?"":t.badgeText))])],1):t._e(),e("v-uni-view",{staticClass:"uni-list-chat__content"},[e("v-uni-view",{staticClass:"uni-list-chat__content-main"},[e("v-uni-text",{staticClass:"uni-list-chat__content-title uni-ellipsis"},[t._v(t._s(t.title))]),e("v-uni-text",{staticClass:"uni-list-chat__content-note uni-ellipsis"},[t._v(t._s(t.note))])],1),e("v-uni-view",{staticClass:"uni-list-chat__content-extra"},[t._t("default",[e("v-uni-text",{staticClass:"uni-list-chat__content-extra-text"},[t._v(t._s(t.time))]),t.badgeText&&"right"===t.badgePositon?e("v-uni-view",{staticClass:"uni-list-chat__badge",class:[t.isSingle,"right"===t.badgePositon?"uni-list-chat--right":""]},[e("v-uni-text",{staticClass:"uni-list-chat__badge-text"},[t._v(t._s("dot"===t.badgeText?"":t.badgeText))])],1):t._e()])],2)],1)],1)],1)},n=[]},"0c26":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0}},created:function(){this.firstChildAppend=!1},methods:{loadMore:function(t){this.$emit("scrolltolower")}}};i.default=a},1436:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-list-chat[data-v-4f2985af]{font-size:%?32?%;position:relative;flex-direction:column;justify-content:space-between;background-color:#fff}.uni-list-chat--hover[data-v-4f2985af]{background-color:#f5f5f5}.uni-list--border[data-v-4f2985af]{position:relative;margin-left:%?30?%}.uni-list--border[data-v-4f2985af]:after{position:absolute;top:0;right:0;left:0;height:1px;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#e5e5e5}.uni-list-item--first[data-v-4f2985af]:after{height:0}.uni-list-chat--first[data-v-4f2985af]{border-top-width:0}.uni-ellipsis[data-v-4f2985af]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-ellipsis-2[data-v-4f2985af]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.uni-list-chat__container[data-v-4f2985af]{position:relative;display:flex;flex-direction:row;flex:1;padding:%?20?% %?30?%;position:relative;overflow:hidden}.uni-list-chat__header-warp[data-v-4f2985af]{position:relative}.uni-list-chat__header[data-v-4f2985af]{display:flex;align-content:center;flex-direction:row;justify-content:center;align-items:center;flex-wrap:wrap-reverse;width:45px;height:45px;border-radius:5px;border-color:#eee;border-width:1px;border-style:solid;overflow:hidden}.uni-list-chat__header-box[data-v-4f2985af]{box-sizing:border-box;display:flex;width:45px;height:45px;overflow:hidden;border-radius:2px}.uni-list-chat__header-image[data-v-4f2985af]{margin:1px;width:45px;height:45px}.uni-list-chat__header-image[data-v-4f2985af]{display:block;width:100%;height:100%}.avatarItem--1[data-v-4f2985af]{width:100%;height:100%}.avatarItem--2[data-v-4f2985af]{width:47%;height:47%}.avatarItem--3[data-v-4f2985af]{width:32%;height:32%}.header--circle[data-v-4f2985af]{border-radius:50%}.uni-list-chat__content[data-v-4f2985af]{display:flex;flex-direction:row;flex:1;overflow:hidden;padding:2px 0}.uni-list-chat__content-main[data-v-4f2985af]{display:flex;flex-direction:column;justify-content:space-between;padding-left:%?20?%;flex:1;overflow:hidden}.uni-list-chat__content-title[data-v-4f2985af]{font-size:16px;color:#3b4144;font-weight:400;overflow:hidden}.uni-list-chat__content-note[data-v-4f2985af]{margin-top:3px;color:#999;font-size:12px;font-weight:400;overflow:hidden}.uni-list-chat__content-extra[data-v-4f2985af]{flex-shrink:0;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;margin-left:5px}.uni-list-chat__content-extra-text[data-v-4f2985af]{color:#999;font-size:12px;font-weight:400;overflow:hidden}.uni-list-chat__badge-pos[data-v-4f2985af]{position:absolute;left:calc(45px + 10px - 6px + 0px);top:calc(%?20?%/ 2 + 1px + 0px)}.uni-list-chat__badge[data-v-4f2985af]{display:flex;justify-content:center;align-items:center;border-radius:100px;background-color:#ff5a5f}.uni-list-chat__badge-text[data-v-4f2985af]{color:#fff;font-size:12px}.uni-badge--single[data-v-4f2985af]{width:18px;height:18px}.uni-badge--complex[data-v-4f2985af]{width:auto;height:18px;padding:0 6px}.uni-badge--dot[data-v-4f2985af]{left:calc(45px + 15px - 10px/ 2 + 1px + 0px);width:10px;height:10px;padding:0}',""]),t.exports=i},"1adf":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("a9e3"),e("d401"),e("d3b7"),e("25f0"),e("c975");var a={name:"UniListChat",props:{title:{type:String,default:""},note:{type:String,default:""},clickable:{type:Boolean,default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},badgeText:{type:[String,Number],default:""},badgePositon:{type:String,default:"right"},time:{type:String,default:""},avatarCircle:{type:Boolean,default:!1},avatar:{type:String,default:""},avatarList:{type:Array,default:function(){return[]}}},computed:{isSingle:function(){if("dot"===this.badgeText)return"uni-badge--dot";var t=this.badgeText.toString();return t.length>1?"uni-badge--complex":"uni-badge--single"},computedAvatar:function(){return this.avatarList.length>4?(this.imageWidth=13.95,"avatarItem--3"):this.avatarList.length>1?(this.imageWidth=21.15,"avatarItem--2"):(this.imageWidth=45,"avatarItem--1")}},data:function(){return{isFirstChild:!1,border:!0,imageWidth:50}},mounted:function(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0),this.border=this.list.border)},methods:{getForm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniList",i=this.$parent,e=i.$options.name;while(e!==t){if(i=i.$parent,!i)return!1;e=i.$options.name}return i},onClick:function(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},openPage:function(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi:function(t){var i=this;uni[t]({url:this.to,success:function(t){i.$emit("click",{data:t})},fail:function(t){i.$emit("click",{data:t}),console.error(t.errMsg)}})}}};i.default=a},"1f61":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("d3b7"),e("159b"),e("3c65"),e("a434"),e("e25e");var a={addVisitor:function(t,i){if(0==t.length)return t=[i],t;var e=!1;return t.forEach((function(t){t.visitor_id==i.visitor_id&&(e=!0)})),e?void 0:(t.unshift(i),t)},removeVisitor:function(t,i){for(var e=0;e<t.length;e++)t[e].visitor_id==i&&t.splice(e,1);return t},receiveMessage:function(t,i){for(var e=0;e<t.length;e++)t[e].visitor_id==i.visitor_id&&(t[e].last_message=i.content,t[e].unread_num=parseInt(t[e].unread_num)+1);return t}};i.default=a},3512:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-list[data-v-2ab34114]{display:flex;background-color:#fff;position:relative;flex-direction:column}.uni-list--border[data-v-2ab34114]{position:relative;z-index:-1}.uni-list--border-top[data-v-2ab34114]{position:absolute;top:0;right:0;left:0;height:1px;-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc;z-index:1}.uni-list--border-bottom[data-v-2ab34114]{position:absolute;bottom:0;right:0;left:0;height:1px;-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}',""]),t.exports=i},3764:function(t,i,e){"use strict";e.r(i);var a=e("007b"),n=e("8fe7");for(var r in n)["default"].indexOf(r)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(r);e("7778");var s=e("f0c5"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"4f2985af",null,!1,a["a"],void 0);i["default"]=o.exports},5894:function(t,i,e){"use strict";e.r(i);var a=e("0c26"),n=e.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(r);i["default"]=n.a},7778:function(t,i,e){"use strict";var a=e("f006"),n=e.n(a);n.a},"8fe7":function(t,i,e){"use strict";e.r(i);var a=e("1adf"),n=e.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(r);i["default"]=n.a},"99b2":function(t,i,e){"use strict";e.r(i);var a=e("dbfa"),n=e("5894");for(var r in n)["default"].indexOf(r)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(r);e("ed32");var s=e("f0c5"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"2ab34114",null,!1,a["a"],void 0);i["default"]=o.exports},b089:function(t,i,e){var a=e("3512");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("17719aba",a,!0,{sourceMap:!1,shadowMode:!1})},dbfa:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this.$createElement,i=this._self._c||t;return i("v-uni-view",{staticClass:"uni-list uni-border-top-bottom"},[this.border?i("v-uni-view",{staticClass:"uni-list--border-top"}):this._e(),this._t("default"),this.border?i("v-uni-view",{staticClass:"uni-list--border-bottom"}):this._e()],2)},n=[]},ed32:function(t,i,e){"use strict";var a=e("b089"),n=e.n(a);n.a},f006:function(t,i,e){var a=e("1436");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("51e0887b",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |