12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-918be96a"],{"082b":function(t,e,n){},"0e52":function(t,e,n){},"158c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAkFJREFUSEvtlk1rE1EUht9zY5s0mUkXoqCIqAhtkpULC6Jbf4IoiCCJVakfINKFq7YrF0UEP4paJwgiKP4Et4pQF64yaUFURBQUF00madKY+0qkwUxnTKZ2KCLe5ZyP55xzz5lzBRt8ZIN5WAOQkspVLgI8IIBqBUpAA/KyaCVuAMIgwQcGpk6Vjwrx2M8pBceK980noQLT2fIEBJO+TolJO29O/Qe2KhD4Dv+tku69wCgcJ9nZBH3CcREZ9+1ScrpBmXbJDKP05qbUV+t7SprJlkYpcgtAf5Cu66KzLOT5Qj4526njAaZyzlsBd68T9tOckHdFy9jTFZjOlb8A2BIGEMBX2zK3/nXATwC2hZThZ9syt/fIsHIH0GdCAt61LfNsVyAmqIY/lA4rpVxjsdYAtJbS/M7EM0yJ7g4EkM46lwEaa4W49cWx88a1nnOYHqOBurOIlZ33y0BIkO1d2P7e2okCEaAlch2NqDFoz4jTNcNMrnSQkOfeyOQ4FWxovnbJlOwTjTTBR14bHipYyRc9gJUxQt/2GCs1EpN4YanpVDplAxEjUWM1Q63nvEB1rmAlZnr8acr3BBgNA0hgtmiZp7uPRdaZg3B/GEBQXtl5Y+T3wCOMpAYrZSEHwgBSZKm4mDDxVJptf67OGsrWhiLSmPcbB/mDO2z5aZLDC/nkgi9w10nG4puq10G9eTVURfqu1KLRj/1V52GnbDlunIjV6zt0s3HVE6iob9Xv8UvvH0jNF7i+QQ9mHfhNE8xdb60fYvsNLJOMxfQAAAAASUVORK5CYII="},"433f":function(t,e,n){"use strict";n("5ba7")},"47c3":function(t,e,n){"use strict";n("082b")},"5ba7":function(t,e,n){},"64ea":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("img",{attrs:{src:t.fileIcon,alt:""}})},s=[],a=n("325c"),l={name:"file-icon",props:{type:{default:1},fileName:{default:""}},computed:{fileType:function(){var t="";return t=2===this.type?"folder":Object(a["h"])(this.fileName||""),t},fileIcon:function(){return Object(a["g"])("".concat(this.fileType,"_bg"))}}},o=l,c=n("2877"),r=Object(c["a"])(o,i,s,!1,null,null,null);e["a"]=r.exports},"809b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAOxJREFUWEft1bENwjAQheE/HRuwA2NQ0TIBFRVLMAjMQEtFyQhIjMAGVAhZsiULBZ995yKIS3tx8uX5Lh6Y2DVMzIODpB3xhDwhKQGp7j30twmt4pefpQSkeo8eCphTfNEaMKGsoISZRdATMKEsoBxzi6AFYEJpQZ+YZQRdABNKAxrDPCJoDphQraASJg2QCdUCqsGYUbWgFowJVQPSYNQoCWTBqFAlUA9MM6oE2gBH4A6E/0wabek4+lbPp+8AbMdulLYsHAPXDpg8qR2wB14akDYN9TopIfWDtQsdJCXnCXlCUgJS3Xvo5xJ6A/WPQiV5qJTwAAAAAElFTkSuQmCC"},"86a6":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("div",{ref:"header",staticClass:"header-wrap"},[e("div",{staticClass:"header"},[e("img",{staticClass:"return-img",attrs:{src:n("f5a4"),alt:""},on:{click:function(e){return t.$router.back()}}}),e("p",{staticClass:"header-title"},[t._v("\n 我的消息\n "),0===t.tabIndex?e("button",{staticClass:"full-mark-read",attrs:{type:"button"},on:{click:function(e){return t.unreadChangeAll(t.swipeCellMessage.list)}}},[e("img",{attrs:{src:n("158c"),alt:""}}),t._v("全标已读\n ")]):t._e()]),0===t.tabIndex?e("button",{staticClass:"header-btn",attrs:{type:"button"},on:{click:function(e){return t.swipeCellMessage.openOrCloseEdit()}}},[t._v("\n "+t._s(t.swipeCellMessage&&t.swipeCellMessage.edit?"取消":"管理")+"\n ")]):e("button",{staticClass:"header-btn",attrs:{type:"button"},on:{click:function(e){return t.swipeCellList.openOrCloseEdit()}}},[t._v("\n "+t._s(t.swipeCellList&&t.swipeCellList.edit?"取消":"管理")+"\n ")])])]),0===t.tabIndex?e("swipe-cell-list",{key:"1",ref:"swipeCellMessage",staticStyle:{"margin-top":"10px"},attrs:{option:t.swipeCellOptionMessage},scopedSlots:t._u([{key:"item",fn:function(i){var s=i.item;return[e("div",{staticClass:"subscribe-messages-module"},[e("div",{staticClass:"subscribe-messages-head-between",on:{click:function(e){t.unreadChange(s.id,1,!1).then((function(){return s.is_read=1}))}}},[e("div",{staticClass:"subscribe-messages-head-left"},[e("div",{staticClass:"imgbox"},[e("img",{attrs:{src:n("ad23"),alt:""}}),s.is_read?t._e():e("span",{staticClass:"font-13"},[t._v("未读")])]),e("span",{staticClass:"font-12"},[t._v("\n "+t._s(s.title)+"\n ")])])]),e("div",{staticClass:"subscribe-messages-bottom",on:{click:function(e){return t.toDetail(s,!0)}}},[e("p",{staticClass:"subscribe-messages-bottom-title"},[t._v("\n "+t._s(s.content)+"\n ")]),e("div",{staticClass:"subscribe-messages-bottom-btn-box"},[e("button",{staticClass:"subscribe-messages-bottom-btn",attrs:{type:"button"}},[t._v("\n 查看详情\n ")])])])])]}}],null,!1,4065398084)}):t._e(),e("van-overlay",{attrs:{show:t.cancelCatchUpPopup,"z-index":"99999"},on:{click:function(e){t.cancelCatchUpPopup=!1}}},[e("div",{staticClass:"window"},[e("span",{staticClass:"window-text"},[t._v("确定要取消订阅?")]),e("div",{staticClass:"window-btn-box"},[e("button",{staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){t.cancelCatchUpPopup=!1}}},[t._v("\n 取消\n ")]),e("button",{staticClass:"confirm",attrs:{type:"button"},on:{click:function(e){return t.batchesDel(t.checkIds)}}},[t._v("\n 确定\n ")])])])]),e("van-overlay",{attrs:{show:t.delMessagePopup,"z-index":"99999"},on:{click:function(e){t.delMessagePopup=!1}}},[e("div",{staticClass:"window"},[e("span",{staticClass:"window-text"},[t._v("确定删除消息?")]),e("div",{staticClass:"window-btn-box"},[e("button",{staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){t.delMessagePopup=!1}}},[t._v("\n 取消\n ")]),e("button",{staticClass:"confirm",attrs:{type:"button"},on:{click:function(e){return t.batchesDel(t.checkIds)}}},[t._v("\n 确定\n ")])])])])],1)},s=[],a=(n("ac6a"),n("f3e2"),n("6d67"),n("f523")),l=(n("325c"),n("3d84")),o=n("d399"),c=n("b8b9"),r=n("64ea"),u=n("a8d6"),h={components:{TextHideByLine:u["a"],FileIcon:r["a"],TextHighlight:c["a"],SwipeCellList:l["a"]},data:function(){var t=this;return{tabIndex:0,cancelCatchUpPopup:!1,delMessagePopup:!1,markNum:{reply_num:0,comment_num:0,praise_num:0,video_praise_num:0,comment_praise_num:0,follow_num:0},checkIds:"",swipeCellOptionMessage:{showSearch:!1,searchKey:"title",nextItemShow:!0,nextItemFilter:function(t){return 1!=t.is_read},getHeaderHeight:function(){return t.$refs.header.offsetHeight},listApi:function(t){return a["a"].getMessageList(t)},itemButtons:[{text:function(t){return 1===t.is_read?"标记未读":"标记已读"},bgColor:"#2A63F3",click:function(e){var n=1===e.is_read?0:1;return t.unreadChange(e.id,n).then((function(){e.is_read=n}))}},{text:"删除",bgColor:"#FFAE18",click:function(e){t.checkIds=e.id,t.delMessagePopup=!0}}],bottomButtons:[{text:"已读",bgColor:"#2A63F3",click:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.length)return Object(o["a"])("请至少选择一个");t.unreadChangeAll(e)}},{text:"删除",bgColor:"#FFAE18",click:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.length)return Object(o["a"])("请至少选择一个");t.checkIds=e.map((function(t){return t.id})).join(","),t.delMessagePopup=!0}}]},swipeCellMessage:null}},mounted:function(){this.swipeCellMessage=this.$refs.swipeCellMessage},methods:{tabChange:function(t){var e=this;this.tabIndex!==t&&(this.tabIndex=t,this.$nextTick((function(){e.swipeCellMessage=e.$refs.swipeCellMessage,e.swipeCellList=e.$refs.swipeCellList})))},getMarkNum:function(){var t=this;a["a"].getMarkNum().then((function(e){var n=e.data;t.markNum=n}))},toDetail:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];console.log(t),e&&this.unreadChange(t.id,1,!1).then((function(){return t.is_read=1})),1!=t.type_id&&3!=t.type_id||this.$router.push("activity_ticket_info?id="+t.children_id),2==t.type_id&&this.$router.push("/activity-detail?id=".concat(t.children_id)),4==t.type_id&&this.$router.push("/activity_order_info?id=".concat(t.children_id)),5==t.type_id&&this.$router.push("/activity_bill_info?id=".concat(t.children_id))},unreadChange:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a["a"].unreadChange({id:t,type:3,is_read:e}).then((function(t){var e=t.msg;n&&Object(o["a"])(e)}))},unreadChangeAll:function(t){var e=this;return this.unreadChange("",1,!1).then((function(){e.$toast("已将所选消息标为已读"),t.forEach((function(t){return t.is_read=1})),e.swipeCellList.openOrCloseEdit(!0)}))},batchesDel:function(t){var e=0===this.tabIndex?this.swipeCellMessage:this.swipeCellList;return a["a"].batchesDel({id:t,type:1}).then((function(t){var n=t.msg;Object(o["a"])(n),e.resetList(),e.openOrCloseEdit(!0)}))}}},A=h,d=(n("beb1"),n("2877")),p=Object(d["a"])(A,i,s,!1,null,"35fb9aca",null);e["default"]=p.exports},a5ea:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("span",{staticClass:"text-hide"},[e("text-highlight",{attrs:{val:t.content,"highlight-key":t.highlightKey,color:t.color}}),t.hideBtn?t._e():e("span",{directives:[{name:"show",rawName:"v-show",value:t.valSize>t.maxSize,expression:"valSize > maxSize"}],staticClass:"full-text",on:{click:function(e){e.stopPropagation(),t.showAll=!t.showAll}}},[t._v("\n "+t._s(t.showAll?"收起":"全文")+"\n ")])],1)},s=[],a=n("b8b9"),l=n("325c"),o={name:"text-hide",components:{TextHighlight:a["a"]},props:{val:{default:""},maxSize:{default:50},hideBtn:{default:!1},highlightKey:{default:""},color:{default:"#FF6700"}},data:function(){return{showAll:!1}},computed:{valSize:function(){return Object(l["j"])(this.val)},content:function(){var t=this.maxSize,e=this.val;return!this.showAll&&this.valSize>t&&t>0&&(e=Object(l["i"])(e,t)+"..."),e}}},c=o,r=(n("47c3"),n("2877")),u=Object(r["a"])(c,i,s,!1,null,"76d332c4",null);e["a"]=u.exports},a8d6:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("span",{ref:"textHide",staticClass:"text-hide-by-line ellipsis",style:{lineClamp:t.showAll?t.contentLine+2:t.maxLine,background:t.bgColor}},[0===t.contentLine?e("span",{ref:"textFixed",staticClass:"text-hide-by-line text-hide-by-line-fixed"},[t._t("default"),e("text-highlight",{attrs:{val:t.content,"highlight-key":t.highlightKey,color:t.color}}),e("span",{staticClass:"full-text",staticStyle:{position:"relative"}},[t._v("全文")])],2):t._e(),t._t("default"),e("text-highlight",{attrs:{val:t.content,"highlight-key":t.highlightKey,color:t.color}}),t.hideBtn||"text"!==t.btnType?t._e():e("span",{directives:[{name:"show",rawName:"v-show",value:t.contentLine>t.maxLine,expression:"contentLine > maxLine"}],staticClass:"full-text",style:{background:t.bgColor,position:t.showAll?"relative":"absolute"},on:{click:function(e){e.stopPropagation(),t.showAll=!t.showAll}}},[t._v("\n "+t._s(t.showAll?"收起":"全文")+"\n ")]),t.hideBtn||"icon"!==t.btnType?t._e():e("span",{directives:[{name:"show",rawName:"v-show",value:t.contentLine>t.maxLine,expression:"contentLine > maxLine"}],staticClass:"full-text-icon",style:{background:t.bgColor,width:t.fontSize+"px",height:t.fontSize+"px"},on:{click:function(e){e.stopPropagation(),t.showAll=!t.showAll}}},[t.showAll?e("img",{attrs:{src:n("809b"),alt:""}}):e("img",{attrs:{src:n("d706"),alt:""}})])],2)},s=[],a=n("b8b9"),l=n("325c"),o=n("a5ea"),c={name:"text-hide-by-line",components:{TextHide:o["a"],TextHighlight:a["a"]},props:{val:{default:""},maxLine:{default:2},hideBtn:{default:!1},bgColor:{default:"#FFFFFF"},btnType:{default:"text"},highlightKey:{default:""},color:{default:"#FF6700"}},data:function(){return{showAll:!1,contentLine:0,fontSize:0}},computed:{valSize:function(){return Object(l["j"])(this.val)},content:function(){var t=this.maxSize,e=this.val;return!this.showAll&&this.valSize>t&&t>0&&(e=Object(l["i"])(e,t)+"..."),e}},mounted:function(){var t=this;this.$nextTick((function(){t.heightChangeEvent()}))},methods:{heightChangeEvent:function(t){var e=this,n=this.$refs.textHide,i=new ResizeObserver((function(){e.contentLine=0,e.$refs.textHide&&(e.fontSize=parseFloat(window.getComputedStyle(e.$refs.textHide).fontSize)),e.$nextTick((function(){if(0===e.contentLine&&e.$refs.textFixed){var t=parseFloat(e.$refs.textFixed.offsetWidth),n=parseFloat(e.$refs.textHide.offsetWidth);e.contentLine=Math.ceil(t/n)}}))}));i.observe(n)}}},r=c,u=(n("433f"),n("2877")),h=Object(u["a"])(r,i,s,!1,null,"b3df1f9c",null);e["a"]=h.exports},ad23:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABuZJREFUeF7tW3tsU2UU/53brevWdiJsglES8MGgA5UMHzFCNIBKfKBBxKCEbS3IHw7CYyKJDsQ/5I3yNFD2CIyIQggSEwMoCZmokQHKVhhBwGBUHM+13aNr7zG3Y2Udt2tv+91lpDTZXzvP3/2+851zvvMRdP49VODOTiGMMhBymWgQs5wjQerDgBVtf8rPTYBbhnyZSKoj5tMBRq2fcehMmbVeTxNJD+GDHd48iQOTmWksAUNBiE8PgxmoIeL9Mhm2n3Kaq0XbG59hKlbkFNZbDVL6dAAFYM4VbWhQHlEtgLKA3LSprjTbLUJHwgA8ls+9fJJnFggzAfQWYVQMMq6AscYoWz4/Xk7XYqCPSJIAAEy507xTZZmXEZCdiBHx8jJQL0n0fu1mc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OxANEAZCaAhzbaAaRWAAU+4bP8MDnF2UplF7PebLZPfUAZ4kSq2R9v6y1iBIXJuepIg/cQncBXVIAaAZYWMS6zQBouQNA0m+BXLvnLIMHitq0d1uBqtX6xICRsz24ImQqoM1bAp0Tfgw+cC9h7yfqDY9EQX7lIy/O/iMuG2TwEbI5PNtE3vw8+6gB64vSE/VVlf+9tU04+FtAnGwlERKdCossgjp7WrHPh2Vf+YQBEEyFRRVDGWnAk0MMWGI3wZIuPglSvFb6Ax84m/HzyQAaBRSHwWJIRDlsNgHfLM5Av96J1f6xftqLV2W8WtIITyJJUXs5rChNtCGiNDu/+zQDkg7prxooSt9w3IJG/HUp/oAYaogoCkS0xMYMN+Dp3BQYdF4EARk47PLjwNFEg2GHlpieTdFYl3V304U1RYOrwOGp0W3A8YZ38ycZkfdw193ho2cCWPKluEivCmzntvgNAHS/GCl+04j857vuE1bs92HZDt0BuPVipDuuxnLul7CzJB2SpH5MKsFt4uImnLqgRxs8tBbUr8aCq6AbLkdnvJyKotfUq+/1e1qwYa/Yvt8tWyDS5ahC2F3X42PzDMH7wcH9246Mugsyth7wYV91opG961Aa9XpcYc+d5slnmcOGCLo7QuuljyQqqN1sKe8o/86IjBraST4k1QZJUo/Jta+KpB6UbAMhyUdlFQiSfFi6bR0k9bj8zVMiiR9MdDwqe/KTGQKmRRqKjpRcxdW8S+pHU+Fbwp3PTEv1Hq2N9PWU3J6I57uc1vJY3wh1lhXXCugoJIkfToZjGXo6y1yo18AlABeISnvU01m15ZmUj6cj7dOw5/NADoMGESMLBOUGNfR8HgwPEy4RWBnXr+uu5/P/A1uP+4CMZfBOAAAAAElFTkSuQmCC"},b8b9:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("span",{staticClass:"text-highlight",domProps:{innerHTML:t._s(t.content)}})},s=[],a={name:"text-highlight",props:{val:{default:""},highlightKey:{default:""},color:{default:"#FF6700"}},computed:{content:function(){this.highlightKey,this.color;var t=this.val;return t}}},l=a,o=n("2877"),c=Object(o["a"])(l,i,s,!1,null,null,null);e["a"]=c.exports},beb1:function(t,e,n){"use strict";n("0e52")},d706:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAP5JREFUWEft1bENwjAQheE/HRuwA2NQ0TIBFRVLMAjMQEtFyQhIjMAGVAhdYSlCse/OdhGhSxXFdvLl2T4PzOwaZuYhQNqMREKRkJaA1h5r6O8S2gJ34KX9mbF9CRyAI/CZGlNaQzvgDDyBdQeUYG7ACjgBey9oA1yABfBoRI0xb0CSv3pB0r8HyoyRD1q2fQvKhbGCapNyYzwgL6oK4wVZUdWYGpCGasLUgnIoeZ7qTHFrl4qoZZflxv/uPuknRa8a05JQQo5R8qwJ0wM0nj65z1Zg41lnKoyWd0lSck0eB5YXpD4ta8jzHXPfAGlRRUKRkJaA1h5rKBLSEtDav898QiVd7SACAAAAAElFTkSuQmCC"}}]);
- //# sourceMappingURL=chunk-918be96a.63be7d32.js.map
|