1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-371088ac"],{"6dc5":function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var a=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r);return[n].concat(r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}))).concat([a]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=c[n.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](n.parts[a]);for(;a<n.parts.length;a++)r.parts.push(i(n.parts[a]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(a=0;a<n.parts.length;a++)o.push(i(n.parts[a]));c[n.id]={id:n.id,refs:1,parts:o}}}}function a(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function i(t){var e,n,r=document.querySelector("style["+g+'~="'+t.id+'"]');if(r){if(h)return p;r.parentNode.removeChild(r)}if(A){var i=f++;r=d||(d=a()),e=o.bind(null,r,i,!1),n=o.bind(null,r,i,!0)}else r=a(),e=function(t,e){var n=e.css,r=e.media,a=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute(g,e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function o(t,e,n,r){var a=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else{var i=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(8),c={},u=s&&(document.head||document.getElementsByTagName("head")[0]),d=null,f=0,h=!1,p=function(){},m=null,g="data-vue-ssr-id",A="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,a){h=n,m=a||{};var i=l(t,e);return r(i),function(e){for(var n=[],a=0;a<i.length;a++){var o=i[a],s=c[o.id];s.refs--,n.push(s)}e?r(i=l(t,e)):i=[];for(a=0;a<n.length;a++){s=n[a];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete c[s.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e,n,r,a,i){var o,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(o=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId=a),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=r),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:s,options:u}}},function(t,e,n){"use strict";var r=n(9);e.a={name:"vue-waterfall-easy",components:{alink:r.a},props:{width:{type:Number},height:{type:[Number,String]},reachBottomDistance:{type:Number,default:20},loadingDotCount:{type:Number,default:3},loadingDotStyle:{type:Object},gap:{type:Number,default:20},mobileGap:{type:Number,default:8},maxCols:{type:Number,default:5},imgsArr:{type:Array,required:!0},srcKey:{type:String,default:"src"},hrefKey:{type:String,default:"href"},imgWidth:{type:Number,default:240},isRouterLink:{type:Boolean,default:!1},linkRange:{type:String,default:"card"},loadingTimeOut:{type:Number,default:500},cardAnimationClass:{type:[String],default:"default-card-animation"},enablePullDownEvent:{type:Boolean,default:!1}},data:function(){return{msg:"this is from vue-waterfall-easy.vue",isMobile:!!navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i),isPreloading:!0,isPreloading_c:!0,imgsArr_c:[],loadedCount:0,cols:NaN,imgBoxEls:null,beginIndex:0,colsHeightArr:[],LoadingTimer:null,isFirstLoad:!0,over:!1}},computed:{colWidth:function(){return this.imgWidth+this.gap},imgWidth_c:function(){return this.isMobile?window.innerWidth/2-this.mobileGap:this.imgWidth},hasLoadingSlot:function(){return!!this.$scopedSlots.loading}},mounted:function(){var t=this;this.bindClickEvent(),this.loadingMiddle(),this.preload(),this.cols=this.calcuCols(),this.$on("preloaded",(function(){t.isFirstLoad=!1,t.imgsArr_c=t.imgsArr.concat([]),t.$nextTick((function(){t.isPreloading=!1,t.imgBoxEls=t.$el.getElementsByClassName("img-box"),t.waterfall()}))})),this.isMobile||this.width||window.addEventListener("resize",this.response),this.isMobile&&this.enablePullDownEvent&&this.pullDown(),this.scroll()},beforeDestroy:function(){window.removeEventListener("resize",this.response)},watch:{isPreloading:function(t,e){var n=this;t?setTimeout((function(){n.isPreloading&&(n.isPreloading_c=!0)}),this.loadingTimeOut):this.isPreloading_c=!1},imgsArr:function(t,e){(this.imgsArr_c.length>t.length||this.imgsArr_c.length>0&&t[0]&&!t[0]._height)&&this.reset(),this.preload()}},methods:{preload:function(t,e){var n=this;this.imgsArr.forEach((function(t,e){if(!(e<n.loadedCount)){if(!t[n.srcKey])return n.imgsArr[e]._height="0",void(++n.loadedCount==n.imgsArr.length&&n.$emit("preloaded"));var r=new Image;r.src=t[n.srcKey],r.onload=r.onerror=function(t){n.loadedCount++,n.imgsArr[e]._height="load"==t.type?Math.round(n.imgWidth_c/(r.width/r.height)):n.isMobile?n.imgWidth_c:n.imgWidth,"error"==t.type&&(n.imgsArr[e]._error=!0,n.$emit("imgError",n.imgsArr[e])),n.loadedCount==n.imgsArr.length&&n.$emit("preloaded")}}}))},calcuCols:function(){var t=this.width?this.width:window.innerWidth,e=parseInt(t/this.colWidth);return e=0===e?1:e,this.isMobile?2:e>this.maxCols?this.maxCols:e},waterfall:function(){if(this.imgBoxEls){var t,e,n,r=this.isMobile?this.imgBoxEls[0].offsetWidth:this.colWidth;0==this.beginIndex&&(this.colsHeightArr=[]);for(var a=this.beginIndex;a<this.imgsArr.length;a++){if(!this.imgBoxEls[a])return;if(n=this.imgBoxEls[a].offsetHeight,a<this.cols)this.colsHeightArr.push(n),t=0,e=a*r;else{var i=Math.min.apply(null,this.colsHeightArr),o=this.colsHeightArr.indexOf(i);t=i,e=o*r,this.colsHeightArr[o]=i+n}this.imgBoxEls[a].style.left=e+"px",this.imgBoxEls[a].style.top=t+"px"}this.beginIndex=this.imgsArr.length}},response:function(){var t=this.cols;this.cols=this.calcuCols(),t!==this.cols&&(this.beginIndex=0,this.waterfall(),this.over&&this.setOverTipPos())},scrollFn:function(){var t=this.$refs.scrollEl;if(!this.isPreloading){var e=Math.min.apply(null,this.colsHeightArr);t.scrollTop+t.offsetHeight>e-this.reachBottomDistance&&(this.isPreloading=!0,this.$emit("scrollReachBottom"))}},scroll:function(){this.$refs.scrollEl.addEventListener("scroll",this.scrollFn)},waterfallOver:function(){this.$refs.scrollEl.removeEventListener("scroll",this.scrollFn),this.isPreloading=!1,this.over=!0,this.setOverTipPos()},setOverTipPos:function(){var t=this,e=Math.max.apply(null,this.colsHeightArr);this.$nextTick((function(){t.$refs.over.style.top=e+"px"}))},bindClickEvent:function(){var t=this;this.$el.querySelector(".vue-waterfall-easy").addEventListener("click",(function(e){var n=e.target;if(-1===e.target.className.indexOf("over")&&-1==n.className.indexOf("img-box")){for(;-1==n.className.indexOf("img-inner-box");)n=n.parentNode;var r=n.getAttribute("data-index");t.$emit("click",e,{index:r,value:t.imgsArr_c[r]})}}))},pullDown:function(){var t,e=this,n=this.$el.querySelector(".vue-waterfall-easy-scroll");n.addEventListener("touchmove",(function(r){if(0===n.scrollTop){var a=r.changedTouches[0];t||(t=a.pageY);var i=a.pageY-t;i>0&&r.preventDefault(),e.$emit("pullDownMove",i)}})),n.addEventListener("touchend",(function(r){0===n.scrollTop&&(t=NaN,e.$emit("pullDownEnd"))}))},loadingMiddle:function(){var t=this.$el.querySelector(".vue-waterfall-easy-scroll"),e=t.offsetWidth-t.clientWidth;this.$el.querySelector(".loading").style.marginLeft=-e/2+"px"},reset:function(){this.imgsArr_c=[],this.beginIndex=0,this.loadedCount=0,this.isFirstLoad=!0,this.isPreloading=!0,this.scroll(),this.over=!1}}}},function(t,e,n){"use strict";e.a={name:"alink",props:["to"],data:function(){return{msg:"this is from alink.vue"}},methods:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),a=n(13),i=!1,o=n(2),s=function(t){i||n(6)},l=o(r.a,a.a,!1,s,"data-v-ded6b974",null);l.options.__file="src\\vue-waterfall-easy\\vue-waterfall-easy.vue",e.default=l.exports},function(t,e,n){var r=n(7);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("5fd04388",r,!1,{})},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.vue-waterfall-easy-container[data-v-ded6b974] {\n width: 100%;\n height: 100%;\n position: relative;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy-scroll[data-v-ded6b974] {\n position: relative;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy[data-v-ded6b974] {\n position: absolute;\n width: 100%;\n}\n@-webkit-keyframes show-card-data-v-ded6b974 {\n0% {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n}\n100% {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n@keyframes show-card-data-v-ded6b974 {\n0% {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n}\n100% {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n.vue-waterfall-easy-container .vue-waterfall-easy > .img-box[data-v-ded6b974] {\n position: absolute;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 50%;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy > .img-box.default-card-animation[data-v-ded6b974] {\n -webkit-animation: show-card-data-v-ded6b974 0.4s;\n animation: show-card-data-v-ded6b974 0.4s;\n -webkit-transition: left 0.6s, top 0.6s;\n transition: left 0.6s, top 0.6s;\n -webkit-transition-delay: 0.1s;\n transition-delay: 0.1s;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy a[data-v-ded6b974] {\n display: block;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy a.img-inner-box[data-v-ded6b974] {\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy .__err__ .img-wraper[data-v-ded6b974] {\n background-image: url(data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAeAAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk1M0JCM0QwNkVFNDExRThCNTJCQUQ2RDFGQzg0NzIxIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk1M0JCM0NGNkVFNDExRThCNTJCQUQ2RDFGQzg0NzIxIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob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size: 50% 50%;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy .__err__ .img-wraper img[data-v-ded6b974] {\n display: none;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy a.img-wraper > img[data-v-ded6b974] {\n width: 100%;\n display: block;\n border: none;\n}\n.vue-waterfall-easy-container .vue-waterfall-easy .over[data-v-ded6b974] {\n position: absolute;\n width: 100%;\n text-align: center;\n font-size: 12px;\n line-height: 1.6;\n color: #aaa;\n}\n.vue-waterfall-easy-container > .loading.first[data-v-ded6b974] {\n bottom: 50%;\n -webkit-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n.vue-waterfall-easy-container > .loading[data-v-ded6b974] {\n position: absolute;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n bottom: 6px;\n z-index: 999;\n}\n@-webkit-keyframes ball-beat-data-v-ded6b974 {\n50% {\n opacity: 0.2;\n -webkit-transform: scale(0.75);\n transform: scale(0.75);\n}\n100% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n@keyframes ball-beat-data-v-ded6b974 {\n50% {\n opacity: 0.2;\n -webkit-transform: scale(0.75);\n transform: scale(0.75);\n}\n100% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n.vue-waterfall-easy-container > .loading.ball-beat > .dot[data-v-ded6b974] {\n vertical-align: bottom;\n background-color: #4b15ab;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin: 3px;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n display: inline-block;\n -webkit-animation: ball-beat-data-v-ded6b974 0.7s 0s infinite linear;\n animation: ball-beat-data-v-ded6b974 0.7s 0s infinite linear;\n}\n.vue-waterfall-easy-container > .loading.ball-beat > .dot[data-v-ded6b974]:nth-child(2n-1) {\n -webkit-animation-delay: 0.35s;\n animation-delay: 0.35s;\n}\n",""])},function(t,e){t.exports=function(t,e){for(var n=[],r={},a=0;a<e.length;a++){var i=e[a],o=i[0],s=i[1],l=i[2],c=i[3],u={id:t+":"+a,css:s,media:l,sourceMap:c};r[o]?r[o].parts.push(u):n.push(r[o]={id:o,parts:[u]})}return n}},function(t,e,n){"use strict";var r=n(4),a=n(12),i=!1,o=n(2),s=function(t){i||n(10)},l=o(r.a,a.a,!1,s,null,null);l.options.__file="src\\vue-waterfall-easy\\components\\alink.vue",e.a=l.exports},function(t,e,n){var r=n(11);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(1)("75b4b0a0",r,!1,{})},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"",""])},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("a",{staticClass:"alink",attrs:{href:t.to,target:"_blank"}},[t._t("default")],2)};r._withStripped=!0;var a={render:r,staticRenderFns:[]};e.a=a},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-waterfall-easy-container",style:{width:t.width&&!t.isMobile?t.width+"px":"",height:parseFloat(t.height)==t.height?t.height+"px":t.height}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isPreloading_c,expression:"isPreloading_c"}],staticClass:"loading ball-beat",class:{first:t.isFirstLoad}},[t._t("loading",null,{isFirstLoad:t.isFirstLoad}),t._l(t.loadingDotCount,(function(e){return t.hasLoadingSlot?t._e():n("div",{staticClass:"dot",style:t.loadingDotStyle})}))],2),n("div",{ref:"scrollEl",staticClass:"vue-waterfall-easy-scroll"},[t._t("waterfall-head"),n("div",{staticClass:"vue-waterfall-easy",style:t.isMobile?"":{width:t.colWidth*t.cols+"px",left:"50%",marginLeft:-1*t.colWidth*t.cols/2+"px"}},[t._l(t.imgsArr_c,(function(e,r){return n("div",{staticClass:"img-box",class:[t.cardAnimationClass,{__err__:e._error}],style:{padding:(t.isMobile?t.mobileGap:t.gap)/2+"px",width:t.isMobile?"":t.colWidth+"px"}},[n(t.isRouterLink&&"card"==t.linkRange?"router-link":"alink",{tag:"component",staticClass:"img-inner-box",attrs:{"data-index":r,to:"card"==t.linkRange&&e[t.hrefKey]}},[e[t.srcKey]?n(t.isRouterLink&&"img"==t.linkRange?"router-link":"alink",{tag:"component",staticClass:"img-wraper",style:{width:t.imgWidth_c+"px",height:!!e._height&&e._height+"px"},attrs:{to:"img"==t.linkRange&&e[t.hrefKey]}},[n("img",{attrs:{src:e[t.srcKey]}})]):t._e(),t._t("default",null,{index:r,value:e})],2)],1)})),t.over?n("div",{ref:"over",staticClass:"over"},[t._t("waterfall-over",[t._v("被你看光了")])],2):t._e()],2)],2)])};r._withStripped=!0;var a={render:r,staticRenderFns:[]};e.a=a}]).default},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"n",(function(){return i})),n.d(e,"D",(function(){return o})),n.d(e,"h",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"y",(function(){return u})),n.d(e,"a",(function(){return d})),n.d(e,"x",(function(){return f})),n.d(e,"s",(function(){return h})),n.d(e,"t",(function(){return p})),n.d(e,"C",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"i",(function(){return A})),n.d(e,"k",(function(){return v})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return y})),n.d(e,"z",(function(){return x})),n.d(e,"B",(function(){return k})),n.d(e,"A",(function(){return O})),n.d(e,"H",(function(){return _})),n.d(e,"o",(function(){return C})),n.d(e,"c",(function(){return E})),n.d(e,"G",(function(){return S})),n.d(e,"E",(function(){return D})),n.d(e,"F",(function(){return B})),n.d(e,"w",(function(){return N})),n.d(e,"u",(function(){return j})),n.d(e,"v",(function(){return T})),n.d(e,"p",(function(){return R})),n.d(e,"b",(function(){return I})),n.d(e,"r",(function(){return M})),n.d(e,"q",(function(){return P}));var r=n("b6bd");function a(t){return Object(r.a)({url:"app/routine",method:"get",params:t})}function i(){return Object(r.a)({url:"app/routine/syncSubscribe",method:"GET"})}function o(){return Object(r.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function s(){return Object(r.a)({url:"app/routine/create",method:"get"})}function l(t){return Object(r.a)({url:"app/routine/".concat(t,"/edit"),method:"get"})}function c(t){return Object(r.a)({url:"app/routine/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function u(t){return Object(r.a)({url:"app/wechat/menu",method:"get"})}function d(t){return Object(r.a)({url:"app/wechat/menu",method:"post",data:t})}function f(t){return Object(r.a)({url:"app/wechat/template",method:"get",params:t})}function h(){return Object(r.a)({url:"app/wechat/template/create",method:"get"})}function p(t){return Object(r.a)({url:"app/wechat/template/".concat(t,"/edit"),method:"get"})}function m(t){return Object(r.a)({url:"app/wechat/template/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function g(t){return Object(r.a)({url:t.url,method:"post",data:t.key})}function A(t){return Object(r.a)({url:"app/routine/download",method:"post",data:t})}function v(){return Object(r.a)({url:"app/routine/info",method:"get"})}function b(t){return Object(r.a)({url:"app/wechat/keyword",method:"get",params:t})}function w(t){return Object(r.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function y(t,e){return Object(r.a)({url:t,method:"get",params:e.key})}function x(t){return Object(r.a)({url:"/app/wechat/news",method:"POST",data:t})}function k(t){return Object(r.a)({url:"app/wechat/news",method:"GET",params:t})}function O(t){return Object(r.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function _(t){return Object(r.a)({url:"app/wechat/user",method:"GET",params:t})}function C(){return Object(r.a)({url:"app/wechat/user/tag_group",method:"GET"})}function E(t){return Object(r.a)({url:t,method:"GET"})}function S(){return Object(r.a)({url:"app/wechat/tag",method:"GET"})}function D(){return Object(r.a)({url:"app/wechat/tag/create",method:"GET"})}function B(t){return Object(r.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function N(){return Object(r.a)({url:"app/wechat/group",method:"GET"})}function j(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function T(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function R(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function I(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function M(){return Object(r.a)({url:"/app/wechat/card",method:"GET"})}function P(t){return Object(r.a)({url:"/app/wechat/card",method:"post",data:t})}},c42b:function(t,e,n){"use strict";var r=n("a34a"),a=n.n(r),i=n("6dc5"),o=n.n(i),s=n("b562"),l=n("2f62"),c=n("d708");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e,n,r,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}var h={name:"newsCategory",props:{scrollerHeight:{type:String,default:"100%"},contentTop:{type:String,default:"205"},contentWidth:{type:String,default:"100%"},maxCols:{type:Number,default:8},isShow:{type:Boolean,default:!1},isShowSend:{type:Boolean,default:!1},userIds:{type:String,default:""},isAll:{type:Number|String,default:0},where:{type:Object,default:function(){return{}}}},components:{vueWaterfallEasy:o.a},data:function(){return{roterPre:c.a.roterPre,isDel:!1,imgsArr:[],group:0,fetchImgsArr:[],orderData:{},gridPic:{xl:6,lg:8,md:8,sm:24,xs:24},grid:{xl:8,lg:8,md:8,sm:24,xs:24},formValidate:{cate_name:"",page:1,limit:10}}},created:function(){this.getData()},methods:{send:function(t,e,n){var r=this,a={title:e,num:n,url:"app/wechat/push",method:"post",ids:{id:t.id,user_ids:this.userIds,all:this.isAll}};1==this.isAll&&(a.ids.where=this.where),this.$modalSure(a).then((function(t){r.$Message.success(t.msg)})).catch((function(t){r.$Message.error(t.msg)}))},clickFn:function(t,e){e.index;var n=e.value;t.preventDefault(),"div"===t.target.tagName.toLowerCase()&&this.$emit("getCentList",n)},del:function(t,e,n){var r=this,a={title:e,num:n,url:"app/wechat/news/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$Message.success(t.msg),r.$nextTick((function(){r.imgsArr=[]})),r.formValidate.page=1,r.getData()})).catch((function(t){r.$Message.error(t.msg)}))},clkk:function(t){this.$router.push({path:this.roterPre+"/app/wechat/news_category/save/"+t.id})},mouseenterOut:function(t){this.$set(t,"isDel",!0)},mouseenterOver:function(t){this.$set(t,"isDel",!1)},userSearchs:function(){var t=this;this.$nextTick((function(){t.imgsArr=[]})),this.formValidate.page=1,this.getData()},getData:function(){var t=this;Object(s.B)(this.formValidate).then(function(){var e,n=(e=a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.data.list.length){e.next=5;break}t.imgsArr=[],t.$nextTick((function(){t.$refs.waterfall.waterfallOver()})),e.next=12;break;case 5:if(r=Math.ceil(n.data.count/t.formValidate.limit)+1,n.data.list.map((function(t){t.isDel=!1})),t.imgsArr=t.imgsArr.concat(n.data.list)||[],t.formValidate.page++,t.formValidate.page!==r){e.next=12;break}return t.$refs.waterfall.waterfallOver(),e.abrupt("return");case 12:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(t){f(i,r,a,o,s,"next",t)}function s(t){f(i,r,a,o,s,"throw",t)}o(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(n,!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(l.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}})},p=(n("d612"),n("2877")),m=Object(p.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:{height:t.scrollerHeight+"px"||!1}},[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition}},[n("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[n("Col",{attrs:{span:"24"}},[n("FormItem",{attrs:{label:"图文搜索:",prop:"cate_name","label-for":"cate_name"}},[n("Input",{staticClass:"input-add",attrs:{placeholder:"请输入","element-id":"cate_name"},model:{value:t.formValidate.cate_name,callback:function(e){t.$set(t.formValidate,"cate_name",e)},expression:"formValidate.cate_name"}}),n("Button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1),n("Row",{directives:[{name:"show",rawName:"v-show",value:t.$route.path===this.roterPre+"/app/wechat/news_category/index",expression:"$route.path === this.roterPre + '/app/wechat/news_category/index'"}],attrs:{type:"flex"}},[n("router-link",{attrs:{to:t.roterPre+"/app/wechat/news_category/save/0"}},[n("Button",{staticClass:"bnt",attrs:{type:"primary"}},[t._v("添加图文消息")])],1)],1)],1)],1),n("div",{staticClass:"contentBox"},[n("div",{ref:"content",style:{top:t.contentTop+"px"||!1,width:t.contentWidth},attrs:{id:"content"}},[n("vue-waterfall-easy",{ref:"waterfall",attrs:{imgsArr:t.imgsArr,maxCols:t.maxCols,reachBottomDistance:30},on:{click:t.clickFn,scrollReachBottom:t.getData},scopedSlots:t._u([{key:"default",fn:function(e){return 0!==e.value.new.length?n("div",{staticClass:"img-info"},[t._l(e.value.new,(function(r,a){return n("div",{key:a},[0===a?n("div",[n("div",{staticClass:"news_pic",style:{backgroundImage:"url("+r.image_input[0]+")",backgroundSize:"100% 100%"},on:{mouseenter:function(e){return t.mouseenterOut(r)},mouseleave:function(e){return t.mouseenterOver(r)}}},[n("Button",{directives:[{name:"show",rawName:"v-show",value:e.value.new[a].isDel&&t.isShow,expression:"props.value.new[i].isDel && isShow"}],attrs:{type:"success",shape:"circle",icon:"md-create"},on:{click:function(n){return t.clkk(e.value)}}}),n("Button",{directives:[{name:"show",rawName:"v-show",value:e.value.new[a].isDel&&t.isShow,expression:"props.value.new[i].isDel && isShow"}],staticClass:"mt5",attrs:{type:"error",shape:"circle",icon:"md-trash"},on:{click:function(n){return t.del(e.value,"删除图文",a)}}}),n("Button",{directives:[{name:"show",rawName:"v-show",value:e.value.new[a].isDel&&t.isShowSend,expression:"props.value.new[i].isDel && isShowSend"}],attrs:{type:"primary",icon:"md-paper-plane",shape:"circle"},on:{click:function(n){return t.send(e.value,"发送",a)}}},[t._v("推送")])],1),n("span",{staticClass:"news_sp"},[t._v(t._s(r.title))])]):n("div",{staticClass:"news_cent"},[r.synopsis?n("span",{staticClass:"news_sp1"},[t._v(t._s(r.title))]):t._e(),0!==r.image_input.length?n("div",{staticClass:"news_cent_img"},[n("img",{attrs:{src:r.image_input[0]}})]):t._e()])])})),n("p",{staticClass:"some-info"},[t._v(t._s(e.value.id))])],2):t._e()}}],null,!0)},[n("div",{attrs:{slot:"waterfall-over"},slot:"waterfall-over"})])],1)])],1)}),[],!1,null,"160900b4",null);e.a=m.exports},d612:function(t,e,n){"use strict";var r=n("fe32");n.n(r).a},fe32:function(t,e,n){}}]);
|