Commit 652d58c0 by 高淑倩

add:apidata

parent ef9e5a84
......@@ -3,7 +3,7 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
parser: 'babel-eslint',
},
env: {
browser: true,
......@@ -13,17 +13,19 @@ module.exports = {
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
'standard',
],
// required to lint *.vue files
plugins: [
'vue'
],
plugins: ['vue'],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-useless-escape': 'off',
'no-tabs': 'off',
'comma-dangle': 0,
'space-before-function-paren': [0, 'always'],
},
}
......@@ -295,6 +295,11 @@
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
"dev": true
},
"animate.css": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/animate.css/-/animate.css-3.7.0.tgz",
"integrity": "sha512-u3iMXDJr0cxMdQocIciDiou9Au4L5f9uT+/jCtprw3s1j3HcfCuI+khF+90Ps2KdsEhM2soF7SXB4WUvI3HlXg=="
},
"ansi-escapes": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz",
......@@ -4478,8 +4483,7 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"aproba": {
"version": "1.2.0",
......@@ -4493,8 +4497,8 @@
"dev": true,
"optional": true,
"requires": {
"delegates": "1.0.0",
"readable-stream": "2.3.6"
"delegates": "^1.0.0",
"readable-stream": "^2.0.6"
}
},
"balanced-match": {
......@@ -4509,7 +4513,7 @@
"dev": true,
"optional": true,
"requires": {
"balanced-match": "1.0.0",
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
}
},
......@@ -4576,7 +4580,7 @@
"dev": true,
"optional": true,
"requires": {
"minipass": "2.2.4"
"minipass": "^2.2.1"
}
},
"fs.realpath": {
......@@ -4591,14 +4595,14 @@
"dev": true,
"optional": true,
"requires": {
"aproba": "1.2.0",
"console-control-strings": "1.1.0",
"has-unicode": "2.0.1",
"object-assign": "4.1.1",
"signal-exit": "3.0.2",
"string-width": "1.0.2",
"strip-ansi": "3.0.1",
"wide-align": "1.1.2"
"aproba": "^1.0.3",
"console-control-strings": "^1.0.0",
"has-unicode": "^2.0.0",
"object-assign": "^4.1.0",
"signal-exit": "^3.0.0",
"string-width": "^1.0.1",
"strip-ansi": "^3.0.1",
"wide-align": "^1.1.0"
}
},
"glob": {
......@@ -4607,12 +4611,12 @@
"dev": true,
"optional": true,
"requires": {
"fs.realpath": "1.0.0",
"inflight": "1.0.6",
"inherits": "2.0.3",
"minimatch": "3.0.4",
"once": "1.4.0",
"path-is-absolute": "1.0.1"
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^3.0.4",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
},
"has-unicode": {
......@@ -4627,7 +4631,7 @@
"dev": true,
"optional": true,
"requires": {
"safer-buffer": "2.1.2"
"safer-buffer": "^2.1.0"
}
},
"ignore-walk": {
......@@ -4636,7 +4640,7 @@
"dev": true,
"optional": true,
"requires": {
"minimatch": "3.0.4"
"minimatch": "^3.0.4"
}
},
"inflight": {
......@@ -4645,8 +4649,8 @@
"dev": true,
"optional": true,
"requires": {
"once": "1.4.0",
"wrappy": "1.0.2"
"once": "^1.3.0",
"wrappy": "1"
}
},
"inherits": {
......@@ -4667,7 +4671,7 @@
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "1.0.1"
"number-is-nan": "^1.0.0"
}
},
"isarray": {
......@@ -4682,7 +4686,7 @@
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "1.1.11"
"brace-expansion": "^1.1.7"
}
},
"minimist": {
......@@ -4697,8 +4701,8 @@
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "5.1.1",
"yallist": "3.0.2"
"safe-buffer": "^5.1.1",
"yallist": "^3.0.0"
}
},
"minizlib": {
......@@ -4707,7 +4711,7 @@
"dev": true,
"optional": true,
"requires": {
"minipass": "2.2.4"
"minipass": "^2.2.1"
}
},
"mkdirp": {
......@@ -4731,9 +4735,9 @@
"dev": true,
"optional": true,
"requires": {
"debug": "2.6.9",
"iconv-lite": "0.4.21",
"sax": "1.2.4"
"debug": "^2.1.2",
"iconv-lite": "^0.4.4",
"sax": "^1.2.4"
}
},
"node-pre-gyp": {
......@@ -4742,16 +4746,16 @@
"dev": true,
"optional": true,
"requires": {
"detect-libc": "1.0.3",
"mkdirp": "0.5.1",
"needle": "2.2.0",
"nopt": "4.0.1",
"npm-packlist": "1.1.10",
"npmlog": "4.1.2",
"rc": "1.2.7",
"rimraf": "2.6.2",
"semver": "5.5.0",
"tar": "4.4.1"
"detect-libc": "^1.0.2",
"mkdirp": "^0.5.1",
"needle": "^2.2.0",
"nopt": "^4.0.1",
"npm-packlist": "^1.1.6",
"npmlog": "^4.0.2",
"rc": "^1.1.7",
"rimraf": "^2.6.1",
"semver": "^5.3.0",
"tar": "^4"
}
},
"nopt": {
......@@ -4760,8 +4764,8 @@
"dev": true,
"optional": true,
"requires": {
"abbrev": "1.1.1",
"osenv": "0.1.5"
"abbrev": "1",
"osenv": "^0.1.4"
}
},
"npm-bundled": {
......@@ -4776,8 +4780,8 @@
"dev": true,
"optional": true,
"requires": {
"ignore-walk": "3.0.1",
"npm-bundled": "1.0.3"
"ignore-walk": "^3.0.1",
"npm-bundled": "^1.0.1"
}
},
"npmlog": {
......@@ -4786,10 +4790,10 @@
"dev": true,
"optional": true,
"requires": {
"are-we-there-yet": "1.1.4",
"console-control-strings": "1.1.0",
"gauge": "2.7.4",
"set-blocking": "2.0.0"
"are-we-there-yet": "~1.1.2",
"console-control-strings": "~1.1.0",
"gauge": "~2.7.3",
"set-blocking": "~2.0.0"
}
},
"number-is-nan": {
......@@ -4810,7 +4814,7 @@
"dev": true,
"optional": true,
"requires": {
"wrappy": "1.0.2"
"wrappy": "1"
}
},
"os-homedir": {
......@@ -4831,8 +4835,8 @@
"dev": true,
"optional": true,
"requires": {
"os-homedir": "1.0.2",
"os-tmpdir": "1.0.2"
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
}
},
"path-is-absolute": {
......@@ -4853,10 +4857,10 @@
"dev": true,
"optional": true,
"requires": {
"deep-extend": "0.5.1",
"ini": "1.3.5",
"minimist": "1.2.0",
"strip-json-comments": "2.0.1"
"deep-extend": "^0.5.1",
"ini": "~1.3.0",
"minimist": "^1.2.0",
"strip-json-comments": "~2.0.1"
},
"dependencies": {
"minimist": {
......@@ -4873,13 +4877,13 @@
"dev": true,
"optional": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "1.0.0",
"process-nextick-args": "2.0.0",
"safe-buffer": "5.1.1",
"string_decoder": "1.1.1",
"util-deprecate": "1.0.2"
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
"isarray": "~1.0.0",
"process-nextick-args": "~2.0.0",
"safe-buffer": "~5.1.1",
"string_decoder": "~1.1.1",
"util-deprecate": "~1.0.1"
}
},
"rimraf": {
......@@ -4888,14 +4892,13 @@
"dev": true,
"optional": true,
"requires": {
"glob": "7.1.2"
"glob": "^7.0.5"
}
},
"safe-buffer": {
"version": "5.1.1",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -4933,9 +4936,9 @@
"dev": true,
"optional": true,
"requires": {
"code-point-at": "1.1.0",
"is-fullwidth-code-point": "1.0.0",
"strip-ansi": "3.0.1"
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
"strip-ansi": "^3.0.0"
}
},
"string_decoder": {
......@@ -4944,16 +4947,15 @@
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "5.1.1"
"safe-buffer": "~5.1.0"
}
},
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "2.1.1"
"ansi-regex": "^2.0.0"
}
},
"strip-json-comments": {
......@@ -4968,13 +4970,13 @@
"dev": true,
"optional": true,
"requires": {
"chownr": "1.0.1",
"fs-minipass": "1.2.5",
"minipass": "2.2.4",
"minizlib": "1.1.0",
"mkdirp": "0.5.1",
"safe-buffer": "5.1.1",
"yallist": "3.0.2"
"chownr": "^1.0.1",
"fs-minipass": "^1.2.5",
"minipass": "^2.2.4",
"minizlib": "^1.1.0",
"mkdirp": "^0.5.0",
"safe-buffer": "^5.1.1",
"yallist": "^3.0.2"
}
},
"util-deprecate": {
......@@ -4989,20 +4991,18 @@
"dev": true,
"optional": true,
"requires": {
"string-width": "1.0.2"
"string-width": "^1.0.2"
}
},
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"yallist": {
"version": "3.0.2",
"bundled": true,
"dev": true,
"optional": true
"dev": true
}
}
},
......@@ -12312,6 +12312,11 @@
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
"dev": true
},
"velocity-animate": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/velocity-animate/-/velocity-animate-1.5.2.tgz",
"integrity": "sha512-m6EXlCAMetKztO1ppBhGU1/1MR3IiEevO6ESq6rcrSQ3Q77xYSW13jkfXW88o4xMrkXJhy/U7j4wFR/twMB0Eg=="
},
"vendors": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.2.tgz",
......
<template>
<div class="block">
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" layout="total, prev, pager, next, jumper" :total="dataList.totalCount">
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" layout="total, prev, pager, next, jumper" :total="pushlist.totalCount">
</el-pagination>
</div>
</template>
......@@ -11,7 +11,7 @@ export default {
currentPage: 1
}
},
props: ['dataList'],
props: ['pushlist'],
methods: {
handleSizeChange (val) {
console.log(`每页 ${val} 条`)
......
......@@ -9,4 +9,4 @@
* issues: https://github.com/mescroll/mescroll/issues
* QQ交流群: 633126761
*/
(function(a,b){if(typeof define==="function"){define(b)}else{if(typeof module!=="undefined"&&module.exports){module.exports=b()}else{this[a]=b()}}})("MeScroll",function(){var a=function(b,e){var h=this;h.version="1.3.8";h.isScrollBody=(!b||b==="body");h.scrollDom=h.isScrollBody?document.body:h.getDomById(b);if(!h.scrollDom){return}h.options=e||{};var d=navigator.userAgent;var c=!!d.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);var i=typeof window.orientation==="undefined";var g=d.indexOf("Android")>-1||d.indexOf("Adr")>-1;h.os={ios:c,pc:i,android:g};h.isDownScrolling=false;h.isUpScrolling=false;var f=h.options.down&&h.options.down.callback;h.initDownScroll();h.initUpScroll();setTimeout(function(){if(h.optDown.use&&h.optDown.auto&&f){if(h.optDown.autoShowLoading){h.triggerDownScroll()}else{h.optDown.callback&&h.optDown.callback(h)}}h.optUp.use&&h.optUp.auto&&!h.isUpAutoLoad&&h.triggerUpScroll()},30)};a.prototype.extendDownScroll=function(b){a.extend(b,{use:true,auto:true,autoShowLoading:false,isLock:false,isBoth:false,offset:80,outOffsetRate:0.2,bottomOffset:20,minAngle:45,hardwareClass:"mescroll-hardware",mustToTop:false,warpId:null,warpClass:"mescroll-downwarp",resetClass:"mescroll-downwarp-reset",textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",htmlContent:'<p class="downwarp-progress"></p><p class="downwarp-tip"></p>',inited:function(d,c){d.downTipDom=c.getElementsByClassName("downwarp-tip")[0];d.downProgressDom=c.getElementsByClassName("downwarp-progress")[0]},inOffset:function(c){if(c.downTipDom){c.downTipDom.innerHTML=c.optDown.textInOffset}if(c.downProgressDom){c.downProgressDom.classList.remove("mescroll-rotate")}},outOffset:function(c){if(c.downTipDom){c.downTipDom.innerHTML=c.optDown.textOutOffset}},onMoving:function(d,f,c){if(d.downProgressDom){var e=360*f;d.downProgressDom.style.webkitTransform="rotate("+e+"deg)";d.downProgressDom.style.transform="rotate("+e+"deg)"}},beforeLoading:function(d,c){return false},showLoading:function(c){if(c.downTipDom){c.downTipDom.innerHTML=c.optDown.textLoading}if(c.downProgressDom){c.downProgressDom.classList.add("mescroll-rotate")}},afterLoading:function(c){return 0},callback:function(c){c.resetUpScroll()}})};a.prototype.extendUpScroll=function(b){var c=this.os.pc;a.extend(b,{use:true,auto:true,isLock:false,isBoth:false,isBounce:true,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:100,toTop:{warpId:null,src:null,html:null,offset:1000,warpClass:"mescroll-totop",showClass:"mescroll-fade-in",hideClass:"mescroll-fade-out",fadeDuration:0.5,duration:300,supportTap:false,btnClick:null},loadFull:{use:false,delay:500},empty:{warpId:null,icon:null,tip:"暂无相关数据~",btntext:"",btnClick:null,supportTap:false},clearId:null,clearEmptyId:null,hardwareClass:"mescroll-hardware",warpId:null,warpClass:"mescroll-upwarp",htmlLoading:'<p class="upwarp-progress mescroll-rotate"></p><p class="upwarp-tip">加载中..</p>',htmlNodata:'<p class="upwarp-nodata">-- END --</p>',inited:function(d,e){},showLoading:function(d,e){e.innerHTML=d.optUp.htmlLoading},showNoMore:function(d,e){e.innerHTML=d.optUp.htmlNodata},onScroll:null,scrollbar:{use:c,barClass:"mescroll-bar"},lazyLoad:{use:false,attr:"imgurl",showClass:"mescroll-lazy-in",delay:500,offset:200}})};a.extend=function(d,b){if(!d){return b}for(var c in b){if(d[c]==null){d[c]=b[c]}else{if(typeof d[c]==="object"){a.extend(d[c],b[c])}}}return d};a.prototype.initDownScroll=function(){var c=this;c.optDown=c.options.down||{};c.extendDownScroll(c.optDown);c.touchstartEvent=function(f){if(c.isScrollTo){c.preventDefault(f)}c.startPoint=c.getPoint(f);c.lastPoint=c.startPoint;c.maxTouchmoveY=c.getBodyHeight()-c.optDown.bottomOffset;c.inTouchend=false;var d=c.getScrollTop();c.isKeepTop=d===0;if(c.os.pc&&d<=0){c.scrollDom.addEventListener("mousemove",c.touchmoveEvent,{passive:false});document.ondragstart=function(){return false}}};c.scrollDom.addEventListener("mousedown",c.touchstartEvent);c.scrollDom.addEventListener("touchstart",c.touchstartEvent);c.touchmoveEvent=function(l){if(!c.startPoint){return}var d=c.getScrollTop();if(d>0){c.isKeepTop=false}var h=c.getPoint(l);var f=h.y-c.startPoint.y;if(f>0){if(d<=0){c.preventDefault(l);if(c.optDown.use&&!c.inTouchend&&!c.isDownScrolling&&!c.optDown.isLock&&(!c.isUpScrolling||(c.isUpScrolling&&c.optUp.isBoth))){if(c.optDown.mustToTop&&!c.isKeepTop){return}var o=Math.abs(c.lastPoint.x-h.x);var n=Math.abs(c.lastPoint.y-h.y);var m=Math.sqrt(o*o+n*n);if(m!==0){var g=Math.asin(n/m)/Math.PI*180;if(g<c.optDown.minAngle){return}}if(c.maxTouchmoveY>0&&h.y>=c.maxTouchmoveY){c.inTouchend=true;c.touchendEvent();return}var p=h.y-c.lastPoint.y;if(!c.downHight){c.downHight=0}if(c.downHight<c.optDown.offset){if(c.movetype!==1){c.movetype=1;c.optDown.inOffset(c);c.downwarp.classList.remove(c.optDown.resetClass);c.isMoveDown=true;if(c.os.ios&&!c.isKeepTop){c.scrollDom.classList.add(c.optDown.hardwareClass);c.scrollDom.style.webkitOverflowScrolling="auto";c.isSetScrollAuto=true}}c.downHight+=p}else{if(c.movetype!==2){c.movetype=2;c.optDown.outOffset(c);c.downwarp.classList.remove(c.optDown.resetClass);c.isMoveDown=true;if(c.os.ios&&!c.isKeepTop){c.scrollDom.classList.add(c.optDown.hardwareClass);c.scrollDom.style.webkitOverflowScrolling="auto";c.isSetScrollAuto=true}}if(p>0){c.downHight+=p*c.optDown.outOffsetRate}else{c.downHight+=p}}c.downwarp.style.height=c.downHight+"px";var k=c.downHight/c.optDown.offset;c.optDown.onMoving(c,k,c.downHight)}}}else{if(f<0){var q=c.getScrollHeight();var j=c.getClientHeight();var i=q-j-d;if(!c.optUp.isBounce&&i<=0){c.preventDefault(l)}if(c.optUp.use&&!c.optUp.isLock&&c.optUp.hasNext&&!c.isUpScrolling&&(!c.isDownScrolling||(c.isDownScrolling&&c.optDown.isBoth))&&(j+c.optUp.offset>=q||i<=0)){c.triggerUpScroll()}}}c.lastPoint=h};c.scrollDom.addEventListener("touchmove",c.touchmoveEvent,{passive:false});c.touchendEvent=function(){if(c.optDown.use&&c.isMoveDown){if(c.downHight>=c.optDown.offset){c.triggerDownScroll()}else{c.downwarp.classList.add(c.optDown.resetClass);c.downHight=0;c.downwarp.style.height=0}if(c.isSetScrollAuto){c.scrollDom.style.webkitOverflowScrolling="touch";c.scrollDom.classList.remove(c.optDown.hardwareClass);c.isSetScrollAuto=false}c.movetype=0;c.isMoveDown=false}if(c.os.pc){c.scrollDom.removeEventListener("mousemove",c.touchmoveEvent);document.ondragstart=function(){return true}}};c.scrollDom.addEventListener("mouseup",c.touchendEvent);c.scrollDom.addEventListener("mouseleave",c.touchendEvent);c.scrollDom.addEventListener("touchend",c.touchendEvent);c.scrollDom.addEventListener("touchcancel",c.touchendEvent);if(c.optDown.use){c.downwarp=document.createElement("div");c.downwarp.className=c.optDown.warpClass;c.downwarp.innerHTML='<div class="downwarp-content">'+c.optDown.htmlContent+"</div>";var b=c.optDown.warpId?c.getDomById(c.optDown.warpId):c.scrollDom;if(c.optDown.warpId&&b){b.appendChild(c.downwarp)}else{if(!b){b=c.scrollDom}b.insertBefore(c.downwarp,c.scrollDom.firstChild)}setTimeout(function(){c.optDown.inited(c,c.downwarp)},0)}};a.prototype.preventDefault=function(b){if(b&&b.cancelable&&!b.defaultPrevented){b.preventDefault()}};a.prototype.getPoint=function(b){return{x:b.touches?b.touches[0].pageX:b.clientX,y:b.touches?b.touches[0].pageY:b.clientY}};a.prototype.triggerDownScroll=function(){if(!this.optDown.beforeLoading(this,this.downwarp)){this.showDownScroll();this.optDown.callback&&this.optDown.callback(this)}};a.prototype.showDownScroll=function(){this.isDownScrolling=true;this.optDown.showLoading(this);this.downHight=this.optDown.offset;this.downwarp.classList.add(this.optDown.resetClass);this.downwarp.style.height=this.optDown.offset+"px"};a.prototype.endDownScroll=function(){var d=this;var c=function(){d.downHight=0;d.downwarp.style.height=0;d.isDownScrolling=false;if(d.downProgressDom){d.downProgressDom.classList.remove("mescroll-rotate")}};var b=d.optDown.afterLoading(d);if(typeof b==="number"&&b>0){setTimeout(c,b)}else{c()}};a.prototype.lockDownScroll=function(b){if(b==null){b=true}this.optDown.isLock=b};a.prototype.initUpScroll=function(){var c=this;c.optUp=c.options.up||{use:false};c.extendUpScroll(c.optUp);if(c.optUp.scrollbar.use){c.scrollDom.classList.add(c.optUp.scrollbar.barClass)}if(!c.optUp.isBounce){c.setBounce(false)}if(c.optUp.use===false){return}c.optUp.hasNext=true;c.upwarp=document.createElement("div");c.upwarp.className=c.optUp.warpClass;var b;if(c.optUp.warpId){b=c.getDomById(c.optUp.warpId)}if(!b){b=c.scrollDom}b.appendChild(c.upwarp);c.preScrollY=0;c.lazyStartTime=new Date().getTime();c.lazyTag="mescroll-lazying";c.scrollEvent=function(){var g=c.getScrollTop();var f=g-c.preScrollY>0;c.preScrollY=g;if(!c.isUpScrolling&&(!c.isDownScrolling||(c.isDownScrolling&&c.optDown.isBoth))){if(!c.optUp.isLock&&c.optUp.hasNext){var d=c.getScrollHeight()-c.getClientHeight()-g;if(d<=c.optUp.offset&&f){c.triggerUpScroll()}}}var h=c.optUp.toTop;if(h.src||h.html){if(g>=h.offset){c.showTopBtn()}else{c.hideTopBtn()}}if(c.optUp.lazyLoad.use){var e=new Date().getTime();c.lazyTimer&&clearTimeout(c.lazyTimer);if(e-c.lazyStartTime>=c.optUp.lazyLoad.delay){c.lazyStartTime=e;c.lazyLoad(0)}else{c.lazyTimer=c.lazyLoad()}}c.optUp.onScroll&&c.optUp.onScroll(c,g,f)};if(c.isScrollBody){window.addEventListener("scroll",c.scrollEvent)}else{c.scrollDom.addEventListener("scroll",c.scrollEvent)}setTimeout(function(){c.optUp.inited(c,c.upwarp)},0)};a.prototype.setBounce=function(b){if(this.isScrollBody||!this.os.ios){return}if(b===false){this.optUp.isBounce=false;window.addEventListener("touchmove",this.bounceTouchmove,{passive:false})}else{this.optUp.isBounce=true;window.removeEventListener("touchmove",this.bounceTouchmove)}};a.prototype.bounceTouchmove=function(h){var j=this;var d=h.target;var f=true;while(d!==document.body&&d!==document){var m=d.classList;if(m){if(m.contains("mescroll")||m.contains("mescroll-touch")){f=false;break}else{if(m.contains("mescroll-touch-x")||m.contains("mescroll-touch-y")){var c=h.touches?h.touches[0].pageX:h.clientX;var b=h.touches?h.touches[0].pageY:h.clientY;if(!j.preWinX){j.preWinX=c}if(!j.preWinY){j.preWinY=b}var l=Math.abs(j.preWinX-c);var k=Math.abs(j.preWinY-b);var i=Math.sqrt(l*l+k*k);j.preWinX=c;j.preWinY=b;if(i!==0){var g=Math.asin(k/i)/Math.PI*180;if((g<=45&&m.contains("mescroll-touch-x"))||(g>45&&m.contains("mescroll-touch-y"))){f=false;break}}}}}d=d.parentNode}if(f&&h.cancelable&&!h.defaultPrevented){h.preventDefault()}};a.prototype.triggerUpScroll=function(){if(this.optUp.callback&&!this.isUpScrolling){this.showUpScroll();this.optUp.page.num++;this.isUpAutoLoad=true;this.optUp.callback(this.optUp.page,this)}};a.prototype.showUpScroll=function(){this.isUpScrolling=true;this.upwarp.classList.add(this.optUp.hardwareClass);this.upwarp.style.visibility="visible";this.upwarp.style.display="block";this.optUp.showLoading(this,this.upwarp)};a.prototype.showNoMore=function(){this.upwarp.style.visibility="visible";this.upwarp.style.display="block";this.optUp.hasNext=false;this.optUp.showNoMore(this,this.upwarp)};a.prototype.hideUpScroll=function(b){if(b){this.upwarp.style.display="none"}else{this.upwarp.style.visibility="hidden"}this.upwarp.classList.remove(this.optUp.hardwareClass);var c=this.upwarp.getElementsByClassName("upwarp-progress")[0];if(c){c.classList.remove("mescroll-rotate")}};a.prototype.endUpScroll=function(c,b){if(c!=null){if(c){this.showNoMore()}else{this.hideUpScroll(b)}}this.isUpScrolling=false};a.prototype.resetUpScroll=function(c){if(this.optUp&&this.optUp.use){var b=this.optUp.page;this.prePageNum=b.num;this.prePageTime=b.time;b.num=1;b.time=null;if(!this.isDownScrolling&&c!==false){if(c==null){this.removeEmpty();this.clearDataList();this.showUpScroll()}else{this.showDownScroll()}}this.isUpAutoLoad=true;this.optUp.callback&&this.optUp.callback(b,this)}};a.prototype.setPageNum=function(b){this.optUp.page.num=b-1};a.prototype.setPageSize=function(b){this.optUp.page.size=b};a.prototype.clearDataList=function(){var c=this.optUp.clearId||this.optUp.clearEmptyId;if(c){var b=this.getDomById(c);if(b){b.innerHTML=""}}};a.prototype.endByPage=function(c,e,d){var b;if(this.optUp.use&&e!=null){b=this.optUp.page.num<e}this.endSuccess(c,b,d)};a.prototype.endBySize=function(d,c,e){var b;if(this.optUp.use&&c!=null){var f=(this.optUp.page.num-1)*this.optUp.page.size+d;b=f<c}this.endSuccess(d,b,e)};a.prototype.endSuccess=function(c,b,i){var f=this;if(f.isDownScrolling){f.endDownScroll()}if(f.optUp.use){var j;if(c!=null){var e=f.optUp.page.num;var g=f.optUp.page.size;if(e===1){f.clearDataList();if(i){f.optUp.page.time=i}}if(c<g||b===false){f.optUp.hasNext=false;if(c===0&&e===1){j=false;f.showEmpty()}else{var d=(e-1)*g+c;if(d<f.optUp.noMoreSize){j=false}else{j=true}f.removeEmpty()}}else{j=false;f.optUp.hasNext=true;f.removeEmpty()}}var h=!f.optUp.hasNext;f.endUpScroll(j,h);f.loadFull();f.optUp.lazyLoad.use&&f.lazyLoad()}};a.prototype.endErr=function(){if(this.isDownScrolling){var b=this.optUp.page;if(b&&this.prePageNum){b.num=this.prePageNum;b.time=this.prePageTime}this.endDownScroll()}if(this.isUpScrolling){this.optUp.page.num--;this.endUpScroll(false)}};a.prototype.loadFull=function(){var b=this;if(b.optUp.loadFull.use&&!b.optUp.isLock&&b.optUp.hasNext&&b.optUp.callback&&b.getScrollHeight()<=b.getClientHeight()){setTimeout(function(){if(b.getScrollHeight()<=b.getClientHeight()){b.triggerUpScroll()}},b.optUp.loadFull.delay)}};a.prototype.lockUpScroll=function(b){if(b==null){b=true}this.optUp.isLock=b};a.prototype.showEmpty=function(){var c=this;var d=c.optUp.empty;var b=d.warpId||c.optUp.clearEmptyId;if(b==null){return}var g=c.getDomById(b);if(g){c.removeEmpty();var f="";if(d.icon){f+='<img class="empty-icon" src="'+d.icon+'"/>'}if(d.tip){f+='<p class="empty-tip">'+d.tip+"</p>"}if(d.btntext){f+='<p class="empty-btn">'+d.btntext+"</p>"}c.emptyDom=document.createElement("div");c.emptyDom.className="mescroll-empty";c.emptyDom.innerHTML=f;g.appendChild(c.emptyDom);if(d.btnClick){var e=c.emptyDom.getElementsByClassName("empty-btn")[0];if(d.supportTap){e.addEventListener("tap",function(h){h.stopPropagation();c.preventDefault(h);d.btnClick()})}else{e.onclick=function(){d.btnClick()}}}}};a.prototype.removeEmpty=function(){this.removeChild(this.emptyDom)};a.prototype.showTopBtn=function(c){if(!this.topBtnShow){this.topBtnShow=true;var d=this;var e=d.optUp.toTop;if(d.toTopBtn==null){if(e.html){d.toTopBtn=document.createElement("div");d.toTopBtn.innerHTML=e.html}else{d.toTopBtn=document.createElement("img");d.toTopBtn.src=e.src}d.toTopBtn.className=e.warpClass;if(e.supportTap){d.toTopBtn.addEventListener("tap",function(g){g.stopPropagation();d.preventDefault(g);var f=e.btnClick&&e.btnClick();if(f!==true){d.scrollTo(0,d.optUp.toTop.duration)}})}else{d.toTopBtn.onclick=function(){var f=e.btnClick&&e.btnClick();if(f!==true){d.scrollTo(0,d.optUp.toTop.duration)}}}var b;if(e.warpId){b=d.getDomById(e.warpId)}if(!b){b=document.body}b.appendChild(d.toTopBtn)}d.toTopBtn.classList.remove(e.hideClass);d.toTopBtn.classList.add(e.showClass);d.setTopBtnFadeDuration(c)}};a.prototype.hideTopBtn=function(b){if(this.topBtnShow&&this.toTopBtn){this.topBtnShow=false;this.toTopBtn.classList.remove(this.optUp.toTop.showClass);this.toTopBtn.classList.add(this.optUp.toTop.hideClass);this.setTopBtnFadeDuration(b)}};a.prototype.setTopBtnFadeDuration=function(b){if(this.toTopBtn){var c=(b!=null?b:this.optUp.toTop.fadeDuration)+"s";this.toTopBtn.style.animationDuration=c;this.toTopBtn.style.webkitAnimationDuration=c}};a.prototype.scrollTo=function(g,c){var d=this;var f=d.getScrollTop();var b=g;if(b>0){var e=d.getScrollHeight()-d.getClientHeight();if(b>e){b=e}}else{b=0}d.isScrollTo=true;d.scrollDom.style.webkitOverflowScrolling="auto";d.getStep(f,b,function(h){d.setScrollTop(h);if(h===b){d.scrollDom.style.webkitOverflowScrolling="touch";d.isScrollTo=false}},c)};a.prototype.getStep=function(f,d,k,l,h){var j=d-f;if(l===0||j===0){k&&k(d);return}l=l||300;h=h||30;var g=l/h;var c=j/g;var e=0;var b=window.setInterval(function(){if(e<g-1){f+=c;k&&k(f,b);e++}else{k&&k(d,b);window.clearInterval(b)}},h)};a.prototype.lazyLoad=function(b){var d=this;var c=b!=null?b:d.optUp.lazyLoad.delay;var e=setTimeout(function(){var k=d.scrollDom.querySelectorAll("["+d.optUp.lazyLoad.attr+"]");var f=k.length;for(var j=0;j<f;j++){var l=k[j];if(l.getAttribute(d.lazyTag)!=="true"&&d.isInSee(l,d.optUp.lazyLoad.offset)){var h=l.getAttribute(d.optUp.lazyLoad.attr);var g=new Image();g.onload=function(){var i=this.src;var n=this.dom;var m=d.optUp.lazyLoad.showClass;m&&n.classList.add(m);if(n.tagName==="IMG"){n.src=i}else{n.style.backgroundImage="url("+i+")"}n.removeAttribute(d.optUp.lazyLoad.attr);n.removeAttribute(d.lazyTag)};g.onerror=function(){this.dom.removeAttribute(d.lazyTag)};g.onabort=function(){this.dom.removeAttribute(d.lazyTag)};g.src=h;l.setAttribute(d.lazyTag,"true");g.dom=l}}},c);return e};a.prototype.isInSee=function(f,e){e=e||0;var b=this.getOffsetTop(f);var d=this.getScrollTop()-e;var g=b+f.offsetHeight;var c=d+e+this.getClientHeight()+e;return(b<c&&b>=d)||(g<=c&&g>d)};a.prototype.getOffsetTop=function(d){var c=d.offsetTop;var b=d.offsetParent;while(b!=null&&b!==this.scrollDom){c+=b.offsetTop+b.clientTop;b=b.offsetParent}return c};a.prototype.getScrollHeight=function(){return this.scrollDom.scrollHeight};a.prototype.getClientHeight=function(){if(this.isScrollBody&&document.compatMode==="CSS1Compat"){return document.documentElement.clientHeight}else{return this.scrollDom.clientHeight}};a.prototype.getBodyHeight=function(){return document.body.clientHeight||document.documentElement.clientHeight};a.prototype.getScrollTop=function(){if(this.isScrollBody){return document.documentElement.scrollTop||document.body.scrollTop}else{return this.scrollDom.scrollTop}};a.prototype.getToBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()};a.prototype.setScrollTop=function(b){if(typeof b==="number"){if(this.isScrollBody){document.documentElement.scrollTop=b;document.body.scrollTop=b}else{this.scrollDom.scrollTop=b}}};a.prototype.getDomById=function(c){var b;if(c){if(typeof c==="string"){b=document.getElementById(c)}else{if(c.nodeType){b=c}}}if(!b){console.error('the element with id as "'+c+'" can not be found: document.getElementById("'+c+'")==null')}return b};a.prototype.removeChild=function(c){if(c){var b=c.parentNode;b&&b.removeChild(c);c=null}};a.prototype.destroy=function(){var b=this;b.scrollDom.removeEventListener("touchstart",b.touchstartEvent);b.scrollDom.removeEventListener("touchmove",b.touchmoveEvent);b.scrollDom.removeEventListener("touchend",b.touchendEvent);b.scrollDom.removeEventListener("touchcancel",b.touchendEvent);b.scrollDom.removeEventListener("mousedown",b.touchstartEvent);b.scrollDom.removeEventListener("mousemove",b.touchmoveEvent);b.scrollDom.removeEventListener("mouseup",b.touchendEvent);b.scrollDom.removeEventListener("mouseleave",b.touchendEvent);b.removeChild(b.downwarp);if(b.isScrollBody){window.removeEventListener("scroll",b.scrollEvent)}else{b.scrollDom.removeEventListener("scroll",b.scrollEvent)}b.removeChild(b.upwarp);b.removeChild(b.toTopBtn);b.setBounce(true)};return a});
\ No newline at end of file
(function(a, b) { if (typeof define === 'function') { define(b) } else { if (typeof module !== 'undefined' && module.exports) { module.exports = b() } else { this[a] = b() } } })('MeScroll', function() { var a = function(b, e) { var h = this; h.version = '1.3.8'; h.isScrollBody = (!b || b === 'body'); h.scrollDom = h.isScrollBody ? document.body : h.getDomById(b); if (!h.scrollDom) { return }h.options = e || {}; var d = navigator.userAgent; var c = !!d.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); var i = typeof window.orientation === 'undefined'; var g = d.indexOf('Android') > -1 || d.indexOf('Adr') > -1; h.os = {ios: c, pc: i, android: g}; h.isDownScrolling = false; h.isUpScrolling = false; var f = h.options.down && h.options.down.callback; h.initDownScroll(); h.initUpScroll(); setTimeout(function() { if (h.optDown.use && h.optDown.auto && f) { if (h.optDown.autoShowLoading) { h.triggerDownScroll() } else { h.optDown.callback && h.optDown.callback(h) } }h.optUp.use && h.optUp.auto && !h.isUpAutoLoad && h.triggerUpScroll() }, 30) }; a.prototype.extendDownScroll = function(b) { a.extend(b, {use: true, auto: true, autoShowLoading: false, isLock: false, isBoth: false, offset: 80, outOffsetRate: 0.2, bottomOffset: 20, minAngle: 45, hardwareClass: 'mescroll-hardware', mustToTop: false, warpId: null, warpClass: 'mescroll-downwarp', resetClass: 'mescroll-downwarp-reset', textInOffset: '下拉刷新', textOutOffset: '释放更新', textLoading: '加载中 ...', htmlContent: '<p class="downwarp-progress"></p><p class="downwarp-tip"></p>', inited: function(d, c) { d.downTipDom = c.getElementsByClassName('downwarp-tip')[0]; d.downProgressDom = c.getElementsByClassName('downwarp-progress')[0] }, inOffset: function(c) { if (c.downTipDom) { c.downTipDom.innerHTML = c.optDown.textInOffset } if (c.downProgressDom) { c.downProgressDom.classList.remove('mescroll-rotate') } }, outOffset: function(c) { if (c.downTipDom) { c.downTipDom.innerHTML = c.optDown.textOutOffset } }, onMoving: function(d, f, c) { if (d.downProgressDom) { var e = 360 * f; d.downProgressDom.style.webkitTransform = 'rotate(' + e + 'deg)'; d.downProgressDom.style.transform = 'rotate(' + e + 'deg)' } }, beforeLoading: function(d, c) { return false }, showLoading: function(c) { if (c.downTipDom) { c.downTipDom.innerHTML = c.optDown.textLoading } if (c.downProgressDom) { c.downProgressDom.classList.add('mescroll-rotate') } }, afterLoading: function(c) { return 0 }, callback: function(c) { c.resetUpScroll() }}) }; a.prototype.extendUpScroll = function(b) { var c = this.os.pc; a.extend(b, {use: true, auto: true, isLock: false, isBoth: false, isBounce: true, callback: null, page: {num: 0, size: 10, time: null}, noMoreSize: 5, offset: 100, toTop: {warpId: null, src: null, html: null, offset: 1000, warpClass: 'mescroll-totop', showClass: 'mescroll-fade-in', hideClass: 'mescroll-fade-out', fadeDuration: 0.5, duration: 300, supportTap: false, btnClick: null}, loadFull: {use: false, delay: 500}, empty: {warpId: null, icon: null, tip: '暂无相关数据~', btntext: '', btnClick: null, supportTap: false}, clearId: null, clearEmptyId: null, hardwareClass: 'mescroll-hardware', warpId: null, warpClass: 'mescroll-upwarp', htmlLoading: '<p class="upwarp-progress mescroll-rotate"></p><p class="upwarp-tip">加载中..</p>', htmlNodata: '<p class="upwarp-nodata">-- END --</p>', inited: function(d, e) {}, showLoading: function(d, e) { e.innerHTML = d.optUp.htmlLoading }, showNoMore: function(d, e) { e.innerHTML = d.optUp.htmlNodata }, onScroll: null, scrollbar: {use: c, barClass: 'mescroll-bar'}, lazyLoad: {use: false, attr: 'imgurl', showClass: 'mescroll-lazy-in', delay: 500, offset: 200}}) }; a.extend = function(d, b) { if (!d) { return b } for (var c in b) { if (d[c] == null) { d[c] = b[c] } else { if (typeof d[c] === 'object') { a.extend(d[c], b[c]) } } } return d }; a.prototype.initDownScroll = function() { var c = this; c.optDown = c.options.down || {}; c.extendDownScroll(c.optDown); c.touchstartEvent = function(f) { if (c.isScrollTo) { c.preventDefault(f) }c.startPoint = c.getPoint(f); c.lastPoint = c.startPoint; c.maxTouchmoveY = c.getBodyHeight() - c.optDown.bottomOffset; c.inTouchend = false; var d = c.getScrollTop(); c.isKeepTop = d === 0; if (c.os.pc && d <= 0) { c.scrollDom.addEventListener('mousemove', c.touchmoveEvent, {passive: false}); document.ondragstart = function() { return false } } }; c.scrollDom.addEventListener('mousedown', c.touchstartEvent); c.scrollDom.addEventListener('touchstart', c.touchstartEvent); c.touchmoveEvent = function(l) { if (!c.startPoint) { return } var d = c.getScrollTop(); if (d > 0) { c.isKeepTop = false } var h = c.getPoint(l); var f = h.y - c.startPoint.y; if (f > 0) { if (d <= 0) { c.preventDefault(l); if (c.optDown.use && !c.inTouchend && !c.isDownScrolling && !c.optDown.isLock && (!c.isUpScrolling || (c.isUpScrolling && c.optUp.isBoth))) { if (c.optDown.mustToTop && !c.isKeepTop) { return } var o = Math.abs(c.lastPoint.x - h.x); var n = Math.abs(c.lastPoint.y - h.y); var m = Math.sqrt(o * o + n * n); if (m !== 0) { var g = Math.asin(n / m) / Math.PI * 180; if (g < c.optDown.minAngle) { return } } if (c.maxTouchmoveY > 0 && h.y >= c.maxTouchmoveY) { c.inTouchend = true; c.touchendEvent(); return } var p = h.y - c.lastPoint.y; if (!c.downHight) { c.downHight = 0 } if (c.downHight < c.optDown.offset) { if (c.movetype !== 1) { c.movetype = 1; c.optDown.inOffset(c); c.downwarp.classList.remove(c.optDown.resetClass); c.isMoveDown = true; if (c.os.ios && !c.isKeepTop) { c.scrollDom.classList.add(c.optDown.hardwareClass); c.scrollDom.style.webkitOverflowScrolling = 'auto'; c.isSetScrollAuto = true } }c.downHight += p } else { if (c.movetype !== 2) { c.movetype = 2; c.optDown.outOffset(c); c.downwarp.classList.remove(c.optDown.resetClass); c.isMoveDown = true; if (c.os.ios && !c.isKeepTop) { c.scrollDom.classList.add(c.optDown.hardwareClass); c.scrollDom.style.webkitOverflowScrolling = 'auto'; c.isSetScrollAuto = true } } if (p > 0) { c.downHight += p * c.optDown.outOffsetRate } else { c.downHight += p } }c.downwarp.style.height = c.downHight + 'px'; var k = c.downHight / c.optDown.offset; c.optDown.onMoving(c, k, c.downHight) } } } else { if (f < 0) { var q = c.getScrollHeight(); var j = c.getClientHeight(); var i = q - j - d; if (!c.optUp.isBounce && i <= 0) { c.preventDefault(l) } if (c.optUp.use && !c.optUp.isLock && c.optUp.hasNext && !c.isUpScrolling && (!c.isDownScrolling || (c.isDownScrolling && c.optDown.isBoth)) && (j + c.optUp.offset >= q || i <= 0)) { c.triggerUpScroll() } } }c.lastPoint = h }; c.scrollDom.addEventListener('touchmove', c.touchmoveEvent, {passive: false}); c.touchendEvent = function() { if (c.optDown.use && c.isMoveDown) { if (c.downHight >= c.optDown.offset) { c.triggerDownScroll() } else { c.downwarp.classList.add(c.optDown.resetClass); c.downHight = 0; c.downwarp.style.height = 0 } if (c.isSetScrollAuto) { c.scrollDom.style.webkitOverflowScrolling = 'touch'; c.scrollDom.classList.remove(c.optDown.hardwareClass); c.isSetScrollAuto = false }c.movetype = 0; c.isMoveDown = false } if (c.os.pc) { c.scrollDom.removeEventListener('mousemove', c.touchmoveEvent); document.ondragstart = function() { return true } } }; c.scrollDom.addEventListener('mouseup', c.touchendEvent); c.scrollDom.addEventListener('mouseleave', c.touchendEvent); c.scrollDom.addEventListener('touchend', c.touchendEvent); c.scrollDom.addEventListener('touchcancel', c.touchendEvent); if (c.optDown.use) { c.downwarp = document.createElement('div'); c.downwarp.className = c.optDown.warpClass; c.downwarp.innerHTML = '<div class="downwarp-content">' + c.optDown.htmlContent + '</div>'; var b = c.optDown.warpId ? c.getDomById(c.optDown.warpId) : c.scrollDom; if (c.optDown.warpId && b) { b.appendChild(c.downwarp) } else { if (!b) { b = c.scrollDom }b.insertBefore(c.downwarp, c.scrollDom.firstChild) }setTimeout(function() { c.optDown.inited(c, c.downwarp) }, 0) } }; a.prototype.preventDefault = function(b) { if (b && b.cancelable && !b.defaultPrevented) { b.preventDefault() } }; a.prototype.getPoint = function(b) { return {x: b.touches ? b.touches[0].pageX : b.clientX, y: b.touches ? b.touches[0].pageY : b.clientY} }; a.prototype.triggerDownScroll = function() { if (!this.optDown.beforeLoading(this, this.downwarp)) { this.showDownScroll(); this.optDown.callback && this.optDown.callback(this) } }; a.prototype.showDownScroll = function() { this.isDownScrolling = true; this.optDown.showLoading(this); this.downHight = this.optDown.offset; this.downwarp.classList.add(this.optDown.resetClass); this.downwarp.style.height = this.optDown.offset + 'px' }; a.prototype.endDownScroll = function() { var d = this; var c = function() { d.downHight = 0; d.downwarp.style.height = 0; d.isDownScrolling = false; if (d.downProgressDom) { d.downProgressDom.classList.remove('mescroll-rotate') } }; var b = d.optDown.afterLoading(d); if (typeof b === 'number' && b > 0) { setTimeout(c, b) } else { c() } }; a.prototype.lockDownScroll = function(b) { if (b == null) { b = true } this.optDown.isLock = b }; a.prototype.initUpScroll = function() { var c = this; c.optUp = c.options.up || {use: false}; c.extendUpScroll(c.optUp); if (c.optUp.scrollbar.use) { c.scrollDom.classList.add(c.optUp.scrollbar.barClass) } if (!c.optUp.isBounce) { c.setBounce(false) } if (c.optUp.use === false) { return }c.optUp.hasNext = true; c.upwarp = document.createElement('div'); c.upwarp.className = c.optUp.warpClass; var b; if (c.optUp.warpId) { b = c.getDomById(c.optUp.warpId) } if (!b) { b = c.scrollDom }b.appendChild(c.upwarp); c.preScrollY = 0; c.lazyStartTime = new Date().getTime(); c.lazyTag = 'mescroll-lazying'; c.scrollEvent = function() { var g = c.getScrollTop(); var f = g - c.preScrollY > 0; c.preScrollY = g; if (!c.isUpScrolling && (!c.isDownScrolling || (c.isDownScrolling && c.optDown.isBoth))) { if (!c.optUp.isLock && c.optUp.hasNext) { var d = c.getScrollHeight() - c.getClientHeight() - g; if (d <= c.optUp.offset && f) { c.triggerUpScroll() } } } var h = c.optUp.toTop; if (h.src || h.html) { if (g >= h.offset) { c.showTopBtn() } else { c.hideTopBtn() } } if (c.optUp.lazyLoad.use) { var e = new Date().getTime(); c.lazyTimer && clearTimeout(c.lazyTimer); if (e - c.lazyStartTime >= c.optUp.lazyLoad.delay) { c.lazyStartTime = e; c.lazyLoad(0) } else { c.lazyTimer = c.lazyLoad() } }c.optUp.onScroll && c.optUp.onScroll(c, g, f) }; if (c.isScrollBody) { window.addEventListener('scroll', c.scrollEvent) } else { c.scrollDom.addEventListener('scroll', c.scrollEvent) }setTimeout(function() { c.optUp.inited(c, c.upwarp) }, 0) }; a.prototype.setBounce = function(b) { if (this.isScrollBody || !this.os.ios) { return } if (b === false) { this.optUp.isBounce = false; window.addEventListener('touchmove', this.bounceTouchmove, {passive: false}) } else { this.optUp.isBounce = true; window.removeEventListener('touchmove', this.bounceTouchmove) } }; a.prototype.bounceTouchmove = function(h) { var j = this; var d = h.target; var f = true; while (d !== document.body && d !== document) { var m = d.classList; if (m) { if (m.contains('mescroll') || m.contains('mescroll-touch')) { f = false; break } else { if (m.contains('mescroll-touch-x') || m.contains('mescroll-touch-y')) { var c = h.touches ? h.touches[0].pageX : h.clientX; var b = h.touches ? h.touches[0].pageY : h.clientY; if (!j.preWinX) { j.preWinX = c } if (!j.preWinY) { j.preWinY = b } var l = Math.abs(j.preWinX - c); var k = Math.abs(j.preWinY - b); var i = Math.sqrt(l * l + k * k); j.preWinX = c; j.preWinY = b; if (i !== 0) { var g = Math.asin(k / i) / Math.PI * 180; if ((g <= 45 && m.contains('mescroll-touch-x')) || (g > 45 && m.contains('mescroll-touch-y'))) { f = false; break } } } } }d = d.parentNode } if (f && h.cancelable && !h.defaultPrevented) { h.preventDefault() } }; a.prototype.triggerUpScroll = function() { if (this.optUp.callback && !this.isUpScrolling) { this.showUpScroll(); this.optUp.page.num++; this.isUpAutoLoad = true; this.optUp.callback(this.optUp.page, this) } }; a.prototype.showUpScroll = function() { this.isUpScrolling = true; this.upwarp.classList.add(this.optUp.hardwareClass); this.upwarp.style.visibility = 'visible'; this.upwarp.style.display = 'block'; this.optUp.showLoading(this, this.upwarp) }; a.prototype.showNoMore = function() { this.upwarp.style.visibility = 'visible'; this.upwarp.style.display = 'block'; this.optUp.hasNext = false; this.optUp.showNoMore(this, this.upwarp) }; a.prototype.hideUpScroll = function(b) { if (b) { this.upwarp.style.display = 'none' } else { this.upwarp.style.visibility = 'hidden' } this.upwarp.classList.remove(this.optUp.hardwareClass); var c = this.upwarp.getElementsByClassName('upwarp-progress')[0]; if (c) { c.classList.remove('mescroll-rotate') } }; a.prototype.endUpScroll = function(c, b) { if (c != null) { if (c) { this.showNoMore() } else { this.hideUpScroll(b) } } this.isUpScrolling = false }; a.prototype.resetUpScroll = function(c) { if (this.optUp && this.optUp.use) { var b = this.optUp.page; this.prePageNum = b.num; this.prePageTime = b.time; b.num = 1; b.time = null; if (!this.isDownScrolling && c !== false) { if (c == null) { this.removeEmpty(); this.clearDataList(); this.showUpScroll() } else { this.showDownScroll() } } this.isUpAutoLoad = true; this.optUp.callback && this.optUp.callback(b, this) } }; a.prototype.setPageNum = function(b) { this.optUp.page.num = b - 1 }; a.prototype.setPageSize = function(b) { this.optUp.page.size = b }; a.prototype.clearDataList = function() { var c = this.optUp.clearId || this.optUp.clearEmptyId; if (c) { var b = this.getDomById(c); if (b) { b.innerHTML = '' } } }; a.prototype.endByPage = function(c, e, d) { var b; if (this.optUp.use && e != null) { b = this.optUp.page.num < e } this.endSuccess(c, b, d) }; a.prototype.endBySize = function(d, c, e) { var b; if (this.optUp.use && c != null) { var f = (this.optUp.page.num - 1) * this.optUp.page.size + d; b = f < c } this.endSuccess(d, b, e) }; a.prototype.endSuccess = function(c, b, i) { var f = this; if (f.isDownScrolling) { f.endDownScroll() } if (f.optUp.use) { var j; if (c != null) { var e = f.optUp.page.num; var g = f.optUp.page.size; if (e === 1) { f.clearDataList(); if (i) { f.optUp.page.time = i } } if (c < g || b === false) { f.optUp.hasNext = false; if (c === 0 && e === 1) { j = false; f.showEmpty() } else { var d = (e - 1) * g + c; if (d < f.optUp.noMoreSize) { j = false } else { j = true }f.removeEmpty() } } else { j = false; f.optUp.hasNext = true; f.removeEmpty() } } var h = !f.optUp.hasNext; f.endUpScroll(j, h); f.loadFull(); f.optUp.lazyLoad.use && f.lazyLoad() } }; a.prototype.endErr = function() { if (this.isDownScrolling) { var b = this.optUp.page; if (b && this.prePageNum) { b.num = this.prePageNum; b.time = this.prePageTime } this.endDownScroll() } if (this.isUpScrolling) { this.optUp.page.num--; this.endUpScroll(false) } }; a.prototype.loadFull = function() { var b = this; if (b.optUp.loadFull.use && !b.optUp.isLock && b.optUp.hasNext && b.optUp.callback && b.getScrollHeight() <= b.getClientHeight()) { setTimeout(function() { if (b.getScrollHeight() <= b.getClientHeight()) { b.triggerUpScroll() } }, b.optUp.loadFull.delay) } }; a.prototype.lockUpScroll = function(b) { if (b == null) { b = true } this.optUp.isLock = b }; a.prototype.showEmpty = function() { var c = this; var d = c.optUp.empty; var b = d.warpId || c.optUp.clearEmptyId; if (b == null) { return } var g = c.getDomById(b); if (g) { c.removeEmpty(); var f = ''; if (d.icon) { f += '<img class="empty-icon" src="' + d.icon + '"/>' } if (d.tip) { f += '<p class="empty-tip">' + d.tip + '</p>' } if (d.btntext) { f += '<p class="empty-btn">' + d.btntext + '</p>' }c.emptyDom = document.createElement('div'); c.emptyDom.className = 'mescroll-empty'; c.emptyDom.innerHTML = f; g.appendChild(c.emptyDom); if (d.btnClick) { var e = c.emptyDom.getElementsByClassName('empty-btn')[0]; if (d.supportTap) { e.addEventListener('tap', function(h) { h.stopPropagation(); c.preventDefault(h); d.btnClick() }) } else { e.onclick = function() { d.btnClick() } } } } }; a.prototype.removeEmpty = function() { this.removeChild(this.emptyDom) }; a.prototype.showTopBtn = function(c) { if (!this.topBtnShow) { this.topBtnShow = true; var d = this; var e = d.optUp.toTop; if (d.toTopBtn == null) { if (e.html) { d.toTopBtn = document.createElement('div'); d.toTopBtn.innerHTML = e.html } else { d.toTopBtn = document.createElement('img'); d.toTopBtn.src = e.src }d.toTopBtn.className = e.warpClass; if (e.supportTap) { d.toTopBtn.addEventListener('tap', function(g) { g.stopPropagation(); d.preventDefault(g); var f = e.btnClick && e.btnClick(); if (f !== true) { d.scrollTo(0, d.optUp.toTop.duration) } }) } else { d.toTopBtn.onclick = function() { var f = e.btnClick && e.btnClick(); if (f !== true) { d.scrollTo(0, d.optUp.toTop.duration) } } } var b; if (e.warpId) { b = d.getDomById(e.warpId) } if (!b) { b = document.body }b.appendChild(d.toTopBtn) }d.toTopBtn.classList.remove(e.hideClass); d.toTopBtn.classList.add(e.showClass); d.setTopBtnFadeDuration(c) } }; a.prototype.hideTopBtn = function(b) { if (this.topBtnShow && this.toTopBtn) { this.topBtnShow = false; this.toTopBtn.classList.remove(this.optUp.toTop.showClass); this.toTopBtn.classList.add(this.optUp.toTop.hideClass); this.setTopBtnFadeDuration(b) } }; a.prototype.setTopBtnFadeDuration = function(b) { if (this.toTopBtn) { var c = (b != null ? b : this.optUp.toTop.fadeDuration) + 's'; this.toTopBtn.style.animationDuration = c; this.toTopBtn.style.webkitAnimationDuration = c } }; a.prototype.scrollTo = function(g, c) { var d = this; var f = d.getScrollTop(); var b = g; if (b > 0) { var e = d.getScrollHeight() - d.getClientHeight(); if (b > e) { b = e } } else { b = 0 }d.isScrollTo = true; d.scrollDom.style.webkitOverflowScrolling = 'auto'; d.getStep(f, b, function(h) { d.setScrollTop(h); if (h === b) { d.scrollDom.style.webkitOverflowScrolling = 'touch'; d.isScrollTo = false } }, c) }; a.prototype.getStep = function(f, d, k, l, h) { var j = d - f; if (l === 0 || j === 0) { k && k(d); return }l = l || 300; h = h || 30; var g = l / h; var c = j / g; var e = 0; var b = window.setInterval(function() { if (e < g - 1) { f += c; k && k(f, b); e++ } else { k && k(d, b); window.clearInterval(b) } }, h) }; a.prototype.lazyLoad = function(b) { var d = this; var c = b != null ? b : d.optUp.lazyLoad.delay; var e = setTimeout(function() { var k = d.scrollDom.querySelectorAll('[' + d.optUp.lazyLoad.attr + ']'); var f = k.length; for (var j = 0; j < f; j++) { var l = k[j]; if (l.getAttribute(d.lazyTag) !== 'true' && d.isInSee(l, d.optUp.lazyLoad.offset)) { var h = l.getAttribute(d.optUp.lazyLoad.attr); var g = new Image(); g.onload = function() { var i = this.src; var n = this.dom; var m = d.optUp.lazyLoad.showClass; m && n.classList.add(m); if (n.tagName === 'IMG') { n.src = i } else { n.style.backgroundImage = 'url(' + i + ')' }n.removeAttribute(d.optUp.lazyLoad.attr); n.removeAttribute(d.lazyTag) }; g.onerror = function() { this.dom.removeAttribute(d.lazyTag) }; g.onabort = function() { this.dom.removeAttribute(d.lazyTag) }; g.src = h; l.setAttribute(d.lazyTag, 'true'); g.dom = l } } }, c); return e }; a.prototype.isInSee = function(f, e) { e = e || 0; var b = this.getOffsetTop(f); var d = this.getScrollTop() - e; var g = b + f.offsetHeight; var c = d + e + this.getClientHeight() + e; return (b < c && b >= d) || (g <= c && g > d) }; a.prototype.getOffsetTop = function(d) { var c = d.offsetTop; var b = d.offsetParent; while (b != null && b !== this.scrollDom) { c += b.offsetTop + b.clientTop; b = b.offsetParent } return c }; a.prototype.getScrollHeight = function() { return this.scrollDom.scrollHeight }; a.prototype.getClientHeight = function() { if (this.isScrollBody && document.compatMode === 'CSS1Compat') { return document.documentElement.clientHeight } else { return this.scrollDom.clientHeight } }; a.prototype.getBodyHeight = function() { return document.body.clientHeight || document.documentElement.clientHeight }; a.prototype.getScrollTop = function() { if (this.isScrollBody) { return document.documentElement.scrollTop || document.body.scrollTop } else { return this.scrollDom.scrollTop } }; a.prototype.getToBottom = function() { return this.getScrollHeight() - this.getClientHeight() - this.getScrollTop() }; a.prototype.setScrollTop = function(b) { if (typeof b === 'number') { if (this.isScrollBody) { document.documentElement.scrollTop = b; document.body.scrollTop = b } else { this.scrollDom.scrollTop = b } } }; a.prototype.getDomById = function(c) { var b; if (c) { if (typeof c === 'string') { b = document.getElementById(c) } else { if (c.nodeType) { b = c } } } if (!b) { console.error('the element with id as "' + c + '" can not be found: document.getElementById("' + c + '")==null') } return b }; a.prototype.removeChild = function(c) { if (c) { var b = c.parentNode; b && b.removeChild(c); c = null } }; a.prototype.destroy = function() { var b = this; b.scrollDom.removeEventListener('touchstart', b.touchstartEvent); b.scrollDom.removeEventListener('touchmove', b.touchmoveEvent); b.scrollDom.removeEventListener('touchend', b.touchendEvent); b.scrollDom.removeEventListener('touchcancel', b.touchendEvent); b.scrollDom.removeEventListener('mousedown', b.touchstartEvent); b.scrollDom.removeEventListener('mousemove', b.touchmoveEvent); b.scrollDom.removeEventListener('mouseup', b.touchendEvent); b.scrollDom.removeEventListener('mouseleave', b.touchendEvent); b.removeChild(b.downwarp); if (b.isScrollBody) { window.removeEventListener('scroll', b.scrollEvent) } else { b.scrollDom.removeEventListener('scroll', b.scrollEvent) }b.removeChild(b.upwarp); b.removeChild(b.toTopBtn); b.setBounce(true) }; return a })
......@@ -9,30 +9,27 @@ import './assets/styles/reset.css'
import './assets/styles/common.css'
import 'animate.css'
// import 'element-ui/lib/theme-chalk/index.css'
import qs from 'qs'
// import qs from 'qs'
import store from './store'
import Axios from 'axios'
import * as filters from './filters'
// 引入echarts
import echarts from 'echarts'
// import echarts from 'echarts'
import VCharts from 'v-charts'
import plugins from './plugin'
Vue.use(ElementUI)
Vue.use(VCharts)
Axios.defaults.withCredentials = true // 让ajax携带cookie
// const AUTH_TOKEN =
// 'normal-template-group-id=; cur_menu_index=2,0,0; JSESSIONID=B2F75494E6A8EE17E02290C6BB416CD5; UM_distinctid=166ccdf0e5f70d-05e2e61a01177d-b79193d-1fa400-166ccdf0e6036f; CNZZDATA1259419277=1964719690-1541039590-http%253A%252F%252Ftestcenter.bigaka.net%252F%7C1541039590; Hm_lvt_e2d87cf3717dbcd37c38af18128178c1=1541035458,1541125643,1541400895; CNZZDATA1263189240=393444180-1541032734-http%253A%252F%252Ftestcenter.bigaka.net%252F%7C1541399561; Hm_lpvt_e2d87cf3717dbcd37c38af18128178c1=1541404581; token=QuY4MdyNXUjnOSmTTn17apD9vxc'
// const AUTH_TOKEN = 'QuY4MdyNXUjnOSmTTn17apD9vxc'
// Axios.defaults.headers.common['Authorization'] = AUTH_TOKEN
// Axios.defaults.headers.common['Cookie'] = AUTH_TOKEN
Axios.defaults.withCredentials = true // 让ajax携带cookie
const AUTH_TOKEN = 'doX8dJusNpe3Tb77mzRhz2JgdCU'
Axios.defaults.headers.common['token'] = AUTH_TOKEN
Axios.interceptors.request.use(
config => {
if (config.method === 'post') {
config.data = qs.stringify(config.data)
config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
// config.data = qs.stringify(config.data)
config.headers['Content-Type'] = 'application/json'
}
return config
},
......@@ -41,8 +38,6 @@ Axios.interceptors.request.use(
}
)
Vue.use(ElementUI)
Object.keys(plugins).forEach(key => {
const plugin = plugins[key]
Vue.use(plugin)
......@@ -54,7 +49,7 @@ Object.keys(filters).forEach(key => {
Vue.config.productionTip = false
Vue.prototype.axios = Axios
Vue.prototype.$echarts = echarts
// Vue.prototype.$echarts = echarts
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
......
......@@ -5,7 +5,7 @@
<span class="gray"><span class="star-red">*</span> 推送名称仅供数据中心操作记录查询,您推送的会员将不会看到此信息。</span>
</el-form-item>
<el-form-item label="推送名称">
<el-input v-model="form.name" placeholder="请输入推送名称,10字以内"></el-input>
<el-input v-model.trim="form.name" placeholder="请输入推送名称,10字以内"></el-input>
</el-form-item>
<el-form-item label="选择推送素材" class="step-choose">
<span class="gray"><span class="star-red">*</span> 推送素材需前往<a href="#">微信公众平台</a>-管理-素材管理维护。</span>
......@@ -20,31 +20,42 @@
<img :src="currentImgUrl" alt="">
</div>
</div>
<el-dialog title="微信消息素材" :visible.sync="centerDialogVisible" width="80%" center class="add-subtitle title">
<el-dialog title="微信消息素材" :visible.sync="centerDialogVisible" width="1000px" center class="add-subtitle title">
<el-row>
<el-col :span="24">
<div class="add-line"></div>
</el-col>
</el-row>
<el-row :gutter="20" class="add-container">
<el-col :span="8" v-for="(item,index) in materList" :key="index">
<div class="add-content">
<img :src="item.thumb_url" @click="handleImg(item.thumb_url)">
<el-col v-if="!materList.length">
暂无素材
</el-col>
<el-col v-else :span="8" v-for="(item,index) in materList" :key="index">
<div class="add-content" v-for="(thumb,index) in item.content.news_item" :key="index" @click="handleImg(thumb.thumb_media_id,thumb.thumb_url)">
<img :src="thumb.thumb_url" :alt="thumb.title">
<div class="box-mask"><span>选择素材</span></div>
</div>
</el-col>
</el-row>
<span slot="footer" class="add-footer">
<el-button @click="centerDialogVisible = false" style="color: #fff;background-color: #204d74; border-color: #122b40;">取 消</el-button>
</span>
</el-dialog>
</el-form-item>
<el-form-item label="选择推送范围">
<el-radio-group v-model="form.resource">
<el-radio label="全体推送"></el-radio>
<el-radio label="精准推送"></el-radio>
<el-radio label="全体推送" @change="getAll"></el-radio>
<el-radio label="精准推送" @change="getsingele"></el-radio>
</el-radio-group>
<span v-if="isCount">统计中...</span>
<span v-else>预计推送数量{{currentTagCount}}(关注微信公众号用户)</span>
<div v-if="form.resource === '精准推送'">
<div class="form-tags">
<span @click="handleClickTag(item, index)" class="el-tag tag-info" :class="{active:item.isActive}" v-for="(item, index) in tagInfo" :key="item.tagId">{{item.name}}</span>
<span v-for="(item,index) in tagList" :key="item.tagId">
<span @click="handleClickTag(item, index)" class="el-tag tag-info" :class="{active:item.isActive}">
{{item.name}}
</span>
</span>
</div>
</div>
</el-form-item>
......@@ -56,7 +67,8 @@
</div>
<div v-else>
<el-button class="form-button">重新预览</el-button>
<span class="form-checknum">{{successNum}}</span>
<span class="form-checknum" v-if="form.resource === '全体推送'">{{this.currentTagCount}}</span>
<span class="form-checknum" v-else>{{successNum}}</span>
<span class="form-vipnum">标签会员数: {{tagNum}}</span>
<span>其中,关注公众号: {{followNum}}</span>
<span>已推送4次会员: {{fourthNum}}</span>
......@@ -67,7 +79,7 @@
<el-checkbox v-model="checked">本次推送为t测试组商户123自发行为,发放内容请遵守国家相关法律规定..</el-checkbox>
</el-form-item>
<el-form-item label="指定接收邮箱">
<el-input v-model="input" type="email" placeholder="请输入您要接收任务信息的邮箱"></el-input>
<el-input v-model="email" type="email" placeholder="请输入您要接收任务信息的邮箱"></el-input>
</el-form-item>
<el-form-item class="submit-dialog">
<el-button class="form-button" @click="handleConfirmPush" :style="isBtnCheckd" :disabled="!checked">确认推送</el-button>
......@@ -86,27 +98,21 @@
</template>
<script>
export default {
data () {
data() {
return {
form: {
name: '',
region: '',
date1: '',
date2: '',
delivery: false,
type: [],
resource: '全体推送',
desc: '',
materList: []
},
input: '',
checked: true,
dialogImageUrl: '',
materList: [],
email: '',
checked: false,
dialogVisible: false,
centerDialogVisible: false,
submitDialogVisible: false,
imageUrl: '',
currentImgUrl: '',
currentImgId: '',
isCount: false,
currentTagCount: 0,
tagNum: 0,
......@@ -114,104 +120,168 @@ export default {
fourthNum: 0,
successNum: 0,
currentTagIndex: 0,
tagInfo: [
{ tagId: 1, name: 'www' },
{ tagId: 2, name: '999111' },
{ tagId: 3, name: '标签' },
{ tagId: 4, name: '333' }
]
tagIds: [],
tagIdsSave: [],
tagList: [],
tagIdsList: [],
chooseTag: [],
}
},
created () {
this.getViewCount()
created() {
if (localStorage && localStorage.materList) {
this.materList = JSON.parse(localStorage.materList)
}
this.getTagList()
},
computed: {
isBtnCheckd () {
isBtnCheckd() {
return this.checked ? 'opacity: 1' : 'opacity: .65'
}
},
mounted () {
// this.getAddMaterial()
},
methods: {
handleConfirmPush () {
getAll() {
this.getTagCountAll()
},
getsingele() {
this.currentTagCount = 0
},
handleConfirmPush() {
// 校验
if (!this.form.name) {
return this.$message({
message: '请输入推送标题',
type: 'warning'
type: 'warning',
})
}
if (!this.currentImgUrl) {
return this.$message({
message: '请选择推送素材',
type: 'warning'
type: 'warning',
})
}
if (!this.currentImgUrl) {
return this.$message({
message: '请选择推送素材',
type: 'warning'
type: 'warning',
})
}
var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/
if (!this.email) {
return this.$message({
message: '请选择邮箱',
type: 'warning',
})
} else if (!reg.test(this.email)) {
return this.$message({
message: '邮箱格式不正确',
type: 'warning',
})
}
this.submitDialogVisible = true
},
handleClickTag (item, index) {
handleClickTag(item, index) {
item.isActive = !item.isActive
this.currentTagIndex = index
this.isCount = true
this.getTagCount(item)
if (item.isActive) {
this.tagIds.push(item.tagId)
this.tagIdsSave.push({
tagId: item.tagId,
name: item.name,
})
} else {
this.tagIds.forEach((tag, index) => {
if (tag === item.tagId) {
this.tagIds.splice(index, 1)
}
})
this.tagIdsSave.forEach((tag, index) => {
if (tag.tagId === item.tagId) {
this.tagIdsSave.splice(index, 1)
}
})
}
this.tagList = this.tagList.splice(0)
this.getTagCount()
this.getViewCount()
},
handleImg (url) {
handleImg(id, url) {
this.currentImgUrl = url
this.currentImgId = id
this.centerDialogVisible = false
},
onSubmit () {
onSubmit() {
if (this.currentTagCount < 1) {
return this.$message({
message: '推送成功人数>1时才可推送',
type: 'warning',
})
}
this.submitDialogVisible = false
this.save()
},
save () {
const temList = this.tagInfo.filter(item => item.isActive)
this.axios.get('/static/save.json', {
mediaId: '',
save() {
this.axios
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/save', {
mediaId: this.currentImgId,
msgId: '',
scope: this.form.resource === '全体推送' ? 0 : 1,
tagArrays: temList,
scope: this.form.resource === '全体推送' ? '0' : '1',
tagArrays: this.form.resource === '全体推送' ? this.tagList : this.tagIdsSave,
title: this.form.name,
tmplId: '',
type: 1
}).then(res => {
type: 1,
})
.then(res => {
if (res && res.data && res.data.code === 0) {
this.$message({
message: res.data.message,
type: 'success'
type: 'success',
})
// this.$router.push({ path: '/home/marketing' })
}
console.log('res', res)
})
},
getTagCount (item) {
// tagcount
getTagCount() {
this.axios
.get('/static/tag-count.json', {
params: {
id: item.tagId
}
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/tag-count', {
tagIds: this.tagIds,
type: '1',
})
.then(res => {
this.isCount = false
if (res.data) this.currentTagCount = res.data.result
})
},
getViewCount () {
// all
getTagCountAll() {
this.axios
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/tag-count', {
tagIds: this.tagIdsList,
type: '1',
})
.then(res => {
if (res.data) this.currentTagCount = res.data.result
})
},
// 初始化 taglist
getTagList() {
this.axios.post('http://testcenter.bigaka.net/crm/back/tag/customer-cache-list').then(res => {
this.tagList = res.data
this.tagList.forEach(item => {
this.tagIdsList.push(item.tagId)
})
this.getTagCountAll()
})
},
// 图文推送预览人数
getViewCount() {
this.isCount = true
this.axios
.post('http://rap2api.taobao.org/app/mock/115626/pre_view_count', {
tagIds: '1',
id: 1,
parentId: 1,
type: 2
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/pre_view_count', {
tagIds: this.tagIds,
})
.then(res => {
if (res && res.data && res.data.code === 0) {
......@@ -225,11 +295,25 @@ export default {
}
}
})
}
}
},
},
}
</script>
<style lang="stylus" scoped>
.box-mask
position absolute
width 100%
height 100%
background-color rgba(0, 0, 0, 0.4)
text-align center
font-size 16px
color #fff
top 0
left 0
pointer-event none
opacity 0
.box-mask:hover
opacity 1
.active
background #0096FF
color #fff
......@@ -274,27 +358,29 @@ export default {
line-height 24px
font-size 15px
color #73879C
>>>.el-dialog--center .el-dialog__footer
text-align center
.add-container
margin 0
padding 0 20px 20px 20px
padding 20px
.add-content
background-color pink
padding 0 6px
border 1px solid #ececec
position relative
top 30px
margin-bottom 35px
width 263px
height 236px
position relative
img
cursor pointer
width 100%
height 100%
.add-line
border-top 1px solid #e5e5e5
.form-tags
background-color #eee
height 260px
width 80%
height 100%
width 100%
border-radius 4px
.tag-info
width 80px
min-width 80px
height 25px
line-height 25px
text-align center
......
......@@ -5,7 +5,7 @@
<div class="left-title button-left" style="flex:2">
<div class="left-title-name fl">
<span>
<img src="./../../../assets/images/wechat.png">
<img src="@/assets/images/wechat.png">
</span>
<span class="title">微信触达域-公众号</span>
<span class="star-red">*</span>
......@@ -13,20 +13,20 @@
</div>
<div class="left-title-message fr">
<span>
<img src="./../../../assets/images/auth.png">
<img src="@/assets/images/auth.png">
</span>
</div>
</div>
<div class="left-icon">
<div class="icon-left fl">
<span class="icon-wechat" @click="handleAddMaterial">
<img src="./../../../assets/images/picture.png">
<img src="@/assets/images/picture.png">
</span>
<p class="title-center icon-wechat-msg">图文素材消息</p>
</div>
<div class="icon-right">
<span class="icon-wechat">
<img src="./../../../assets/images/temp.png" @click="handleAddTemp">
<img src="@/assets/images/temp.png" @click="handleAddTemp">
</span>
<p class="icon-wechat-msg title-center">营销模板消息</p>
</div>
......@@ -36,7 +36,7 @@
<div class="left-title button-right" style="flex:1">
<div class="left-title-name fl">
<span>
<img src="./../../../assets/images/message.png">
<img src="@/assets/images/message.png">
</span>
<span class="title">移动触达域-短信</span>
<span class="star-red">*</span>
......@@ -44,14 +44,14 @@
</div>
<div class="left-title-message fr">
<span>
<img src="./../../../assets/images/unauth.png">
<img src="@/assets/images/unauth.png">
</span>
</div>
</div>
<div class="right-marketing">
<div>
<span class="icon-wechat">
<img src="./../../../assets/images/message.png" @click="handleAddMessage">
<img src="@/assets/images/message.png" @click="handleAddMessage">
</span>
<p class="icon-wechat-msg title-center">短信营销消息</p>
</div>
......@@ -67,23 +67,19 @@
</template>
<script>
export default {
data () {
data() {
return {}
},
components: {},
computed: {},
mounted () {},
mounted() {},
methods: {
handleAddMaterial () {
handleAddMaterial() {
this.$router.push('addmarketing')
},
handleAddTemp () {
console.log('handleAddTemp')
handleAddTemp() {},
handleAddMessage() {},
},
handleAddMessage () {
console.log('handleAddMessage')
}
}
}
</script>
<style lang='stylus' scoped>
......
<template>
<div>
<el-col :span="6">
<div id="artChart" :style="{width: '200px', height: '100px'}"></div>
</el-col>
</div>
</template>
<script>
export default {
props: ['item'],
mounted () {
this.drawLine()
// console.log('acount', this.item.oriPageReadUser)
// console.log('auser', this.item.oriPageReadCount)
},
methods: {
drawLine () {
// 基于准备好的dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById('artChart'))
// 绘制图表
myChart.setOption({
xAxis: {
type: 'category',
show: false
},
yAxis: {
type: 'value',
show: false
},
series: [
{
data: [28, 85, 9, 41, 17, 99, 7],
type: 'line'
}
]
})
}
}
}
</script>
<template>
<div class="article-details">
<div class="title">• 文章详情</div>
<el-row :gutter="20" v-for="(item,index) in datalist" :key="index">
<el-row :gutter="20" v-for="(item,index) in GetarticleListTmp" :key="index">
<el-col :span="4" :offset="1">
<div class="article-img">
<img :src="item.thumb_url" class="img-size">
......@@ -31,66 +31,64 @@
</div>
</el-col>
<el-col :span="10" class="articleChart">
<!-- <ve-line :data="item.tempList" :extend="extend" :tooltip-visible="false" :legend-visible="false"></ve-line> -->
<ve-line :data="item.chartData" height="180px" :grid="grid" :extend="extend" :tooltip-visible="false"></ve-line>
<ve-line :data="item.chartData" height="110px" :grid="grid" :extend="extend" :tooltip-visible="false" :legend-visible="false"></ve-line>
</el-col>
</el-row>
</div>
</template>
<script>
import ArticleChart from './ArticleChart'
export default {
data () {
data() {
this.extend = {
series: {
smooth: 0
smooth: 0,
},
yAxis: {
splitLine: { show: false }
splitLine: { show: false },
},
'xAxis.0.axisLabel.show': false, // x轴标签不显示
'yAxis.0.axisLabel.show': false, // y轴标签不显示
'xAxis.0.splitLine.show': false // x轴表格线不显示
'xAxis.0.splitLine.show': false, // x轴表格线不显示
}
this.grid = {
left: 40,
eight: 40,
show: true,
backgroundColor: '#fff',
borderColor: '#FFF'
borderColor: '#FFF',
}
return {
chartData: {
columns: ['日期', '图文总阅读人数', '图文总阅读次数'],
rows: []
rows: [],
},
articleList: []
articleList: [],
}
},
created () {
this.datalist.forEach((item, index) => {
computed: {
GetarticleListTmp() {
this.GetarticleList.forEach((item, index) => {
const tempList = []
// 拼接 rows
item.mediaGetarticles.forEach(article => {
const { refDate, oriPageReadCount, oriPageReadUser } = article
tempList.push({
'日期': refDate,
'图文总阅读人数': oriPageReadUser,
'图文总阅读次数': oriPageReadCount
日期: refDate,
图文总阅读人数: oriPageReadUser,
图文总阅读次数: oriPageReadCount,
})
})
item.tempList = tempList
// 拼接图标所需数据
item.chartData = {
columns: ['日期', '图文总阅读人数', '图文总阅读次数'],
rows: item.tempList
rows: item.tempList,
}
})
return this.GetarticleList
},
props: ['datalist'],
components: {
ArticleChart
}
},
props: ['GetarticleList'],
}
</script>
......@@ -102,6 +100,7 @@ export default {
.title
height 30px
line-height 30px
margin-bottom 10px
.article-img
height 90px
.img-size
......@@ -117,8 +116,4 @@ export default {
line-height 50px
padding-right 30px
font-size 16px
.el-row
margin-bottom 10px
&:last-child
margin-bottom 0
</style>
......@@ -19,7 +19,7 @@
<el-row class="marketing-subtitle">
<el-col :span="6" class="subtitle-img">
<span>
<img src="./../../../assets/images/avatar.png">
<img src="@/assets/images/avatar.png">
</span>
</el-col>
<el-col :span="18" class="subtitle-tips">
......@@ -28,7 +28,7 @@
<el-row>
<el-col :span="12" class="wechat-icon">
<span>
<img src="./../../../assets/images/wechat.png">
<img src="@/assets/images/wechat.png">
</span>
<span>微信触达域-公众号</span>
<span>
......@@ -38,7 +38,7 @@
</el-col>
<el-col :span="12" class="wechat-icon">
<span>
<img src="./../../../assets/images/message.png">
<img src="@/assets/images/message.png">
</span>
<span>移动触达域-短信</span>
<span>
......@@ -55,13 +55,13 @@
</template>
<script>
export default {
data () {
data() {
return {}
},
components: {},
computed: {},
mounted () {},
methods: {}
mounted() {},
methods: {},
}
</script>
<style lang='stylus' scoped>
......
<template>
<el-tabs v-model="tabActive" type="card" class="market-tabs">
<el-tabs v-model="tabActive" type="card" class="market-tabs" @tab-click="handleClick">
<el-tab-pane label="图文素材消息" name="first">
<materia-list :imgList="imgList" @sendid="handleId"></materia-list>
<push-detail></push-detail>
<material-details v-if="materialChartList&&materialChartList.length" :datalist="datalist" :MediaSummary="MediaSummary" :materialChartList="materialChartList"></material-details>
<article-details v-if="articleChartList&&articleChartList.length" :datalist="datalist"></article-details>
<push-detail v-loading="loading" v-if="pushlist" :mediaId="mediaId" :pushlist="pushlist"></push-detail>
<material-details v-if="materialChartList&&materialChartList.length" :MediaList="MediaList" :materialChartList="materialChartList"></material-details>
<article-details v-if="GetarticleList&&GetarticleList.length" :GetarticleList="GetarticleList"></article-details>
</el-tab-pane>
<el-tab-pane label="营销模版消息" name="second">
<temp-list></temp-list>
<temp-list :templist="templist" @search="handleSearch" @reset="handleReset" @pageChange="pageChange"></temp-list>
</el-tab-pane>
<el-tab-pane label="短信营销消息" name="third">
<message-list :msgList="msgList" @search="handleMsgSearch" @reset="handleMsgReset" @pageChange="msgPageChange"></message-list>
</el-tab-pane>
<el-tab-pane label="短信营销消息" name="third">表格</el-tab-pane>
</el-tabs>
</template>
<script>
import http from '@/tool/http'
import api from '@/tool/api'
import MateriaList from './MateriaList'
import PushDetail from './PushList'
import MaterialDetails from './MaterialDetails'
import ArticleDetails from './ArticleDetails'
import TempList from './TempList'
import MessageList from './MessageList'
export default {
data () {
data() {
return {
tabActive: 'first',
imgList: [],
mediaId: '',
datalist: [],
pushlist: [],
MediaSummary: {},
articleChartList: [],
materialChartList: []
materialChartList: [],
loading: true,
GetarticleList: [],
MediaList: [],
templist: [],
msgList: [],
}
},
components: {
......@@ -36,53 +47,188 @@ export default {
MateriaList,
MaterialDetails,
ArticleDetails,
TempList
TempList,
MessageList,
},
created () {
this.getDataList()
created() {
// 初始化
this.getData()
// 点击
// this.getDataList()
},
methods: {
// 图文素材
getDataList () {
handleMsgSearch(e) {
this.handleGetSearchData(e)
},
handleMsgReset(e) {
this.handleGetSearchData(e)
},
msgPageChange(pageNo) {
this.getMessageList((this.pageNo = pageNo))
},
pageChange(pageNo) {
this.getTempList((this.pageNo = pageNo))
},
handleSearch(e) {
this.handleGetSearchData(e)
},
handleReset(e) {
this.handleGetSearchData(e)
},
handleGetSearchData(params) {
this.axios.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/list-data', params).then(res => {
this.templist = res.data.result
this.msgList = res.data.result
})
},
handleClick(tab, event) {
if (this.tabActive === 'second') {
this.getTempList((this.pageNo = 1))
}
if (this.tabActive === 'third') {
this.getMessageList((this.pageNo = 1))
}
},
async getData(type = 1) {
let params = {
pageNo: 1,
pageSize: 10,
}
this.loading = true
let getMaterialsRes = await http.post(params, api.getMaterialsList)
if (getMaterialsRes.data.code === 0) {
this.imgList = getMaterialsRes.data.result.result
localStorage.materList = JSON.stringify(this.imgList)
let imgId = this.imgList[0].media_id
let params = {
pageNo: 1,
pageSize: 10,
type,
mediaId: imgId,
}
let getPushRes = await http.post(params, api.getPushList)
if (getPushRes.data.code === 0) {
this.loading = false
this.pushlist = getPushRes.data.result
let params = {
mediaId: imgId,
}
let getArticleRes = await http.post(params, api.getarticlesummary)
if (getArticleRes.data.code === 0) {
// 素材总流量分析
this.MediaList = getArticleRes.data.result.wechatMediaSummary
// 素材单日流量分析
this.materialChartList = getArticleRes.data.result.wechatMediaSummary.mediaGetarticles.reverse()
// 文章流量分析
this.GetarticleList = getArticleRes.data.result.mediaGetarticle
}
}
}
},
handleId(params) {
this.mediaId = params
this.getPushDetail(this.mediaId)
this.getMaterianDatail(this.mediaId)
},
// 获取图文素材列表
getDataList() {
this.axios
// .post('/materials-list', {
.post('http://rap2api.taobao.org/app/mock/115626/materials-list', {
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/materials-list', {
pageNo: 1,
pageSize: 10
pageSize: 10,
})
.then(res => {
if (res && res.data && res.data.code === 0) {
res.data.result.result.forEach(item => {
this.imgList = item.content.news_item
this.imgList = res.data.result.result
localStorage.materList = JSON.stringify(this.imgList)
}
})
},
// 推送列表
getPushDetail(id = this.mediaId) {
this.axios
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/medialist', {
pageNo: 1,
pageSize: 10,
type: 1,
mediaId: id,
})
.then(res => {
if (res && res.data && res.data.code === 0) {
this.loading = false
this.pushlist = res.data.result
}
})
},
// 模板列表
async getTempList(pageNo = this.pageNo) {
let params = {
pageNo: 1,
pageSize: 10,
}
let getMaterialsRes = await http.post(params, api.getMaterialsList)
if (getMaterialsRes.data.code === 0) {
this.imgList = getMaterialsRes.data.result.result
localStorage.materList = JSON.stringify(this.imgList)
let imgId = this.imgList[0].media_id
this.axios
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/medialist', {
pageNo: this.pageNo,
pageSize: 10,
type: 2,
mediaId: imgId,
})
.then(res => {
if (res && res.data && res.data.code === 0) {
this.templist = res.data.result
}
})
}
},
// 消息列表
async getMessageList(pageNo = this.pageNo) {
let params = {
pageNo: 1,
pageSize: 10,
}
let getMaterialsRes = await http.post(params, api.getMaterialsList)
if (getMaterialsRes.data.code === 0) {
this.imgList = getMaterialsRes.data.result.result
localStorage.materList = JSON.stringify(this.imgList)
let imgId = this.imgList[0].media_id
this.axios
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/medialist', {
pageNo: pageNo,
pageSize: 10,
type: 3,
mediaId: imgId,
})
.then(res => {
if (res && res.data && res.data.code === 0) {
this.msgList = res.data.result
}
})
}
},
// 素材详情
GetMaterianDatail (id = this.mediaId) {
getMaterianDatail(id = this.mediaId) {
this.axios
.get('/static/getarticlesummary.json', {
mediaId: id
.post('http://testcenter.bigaka.net/crm/back/wechat/msg-mass/getarticlesummary', {
mediaId: id,
})
.then(res => {
// 文章流量分析
this.datalist = res.data.result.mediaGetarticle
// 文章单日流量分析
this.datalist.forEach(item => {
this.articleChartList = item.mediaGetarticles.reverse()
})
this.GetarticleList = res.data.result.mediaGetarticle
// 素材总流量分析
this.MediaSummary = res.data.result.wechatMediaSummary
this.MediaList = res.data.result.wechatMediaSummary
// 素材单日流量分析
this.materialChartList = res.data.result.wechatMediaSummary.mediaGetarticles.reverse()
})
},
handleId (params) {
this.mediaId = params
this.GetMaterianDatail()
}
}
},
}
</script>
<style lang="stylus" scoped>
......
<template>
<div class="materialist clear">
<ul>
<li v-for="(item,index) in imgList" :key="index" @click="handleClick(item)">
<img :src="item.thumb_url">
<ul :style="{width: ulWidth}">
<li v-for="(item,index) in imgList" :key="index" @click="handleClick(item)" class="fl">
<img v-for="(mater,index) in item.content.news_item" :key="index" :src="mater.thumb_url">
</li>
</ul>
</div>
......@@ -10,21 +10,33 @@
<script>
export default {
data () {
return {
materialList: []
}
},
computed: {
ulWidth () {
return this.imgList.length * 240 + 80 + 'px'
}
},
props: ['imgList'],
methods: {
handleClick (item) {
this.$emit('sendid', item.thumb_media_id)
this.$emit('sendid', item.media_id)
}
}
}
</script>
<style lang="stylus" scoped>
.materialist
width 1000px
overflow-x scroll
ul
width 100%
width 3000px
height 217px
white-space nowrap
overflow-x auto
overflow-x scroll
margin-bottom 5px
li
display inline-block
......@@ -33,10 +45,11 @@ export default {
width 240px
height 200px
li img:hover
border 1px solid skyblue
border 2px solid skyblue
box-shadow 2px 2px 2px skyblue
/* 定义滚动条高宽及背景 */
::-webkit-scrollbar
width 16px
height 6px
/* 滑块 */
::-webkit-scrollbar-thumb
......
<template>
<div>
<el-row>
<el-col :span="24">
<div id="myChart" :style="{width: '100%', height: '300px'}"></div>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
data () {
return {
userTotal: 0
}
},
props: ['materialChartList'],
mounted () {
this.drawLine()
},
methods: {
drawLine () {
// 基于准备好的dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById('myChart'))
// 绘制图表
myChart.setOption({
tooltip: {
trigger: 'axis'
},
legend: {
data: ['图文总阅读人数', '图文总阅读次数']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: [
'2016-1',
'2016-2',
'2016-3',
'2016-4',
'2016-5',
'2016-6',
'2016-7',
'2016-8',
'2016-9',
'2016-10',
'2016-11',
'2016-12'
]
},
yAxis: {
type: 'value'
},
series: [
{
name: '图文总阅读人数',
type: 'line',
stack: '总量',
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '图文总阅读次数',
type: 'line',
stack: '总量',
data: [220, 182, 191, 234, 290, 330, 310]
}
]
})
}
}
}
</script>
......@@ -16,86 +16,58 @@
</div>
</el-col>
</el-row>
<material-info :datalist="datalist" :MediaSummary="MediaSummary"></material-info>
<material-info :MediaList="MediaList" class="datailChart"></material-info>
<ve-line :data="chartData" :judge-width="true" :extend="extend" height="230px" :mark-line="markLine"></ve-line>
</div>
</template>
<script>
import MaterialInfo from './MaterialInfo'
import MaterialChart from './MaterialChart'
export default {
data () {
data() {
this.markLine = {
symbol: 'none',
data: [
{
// name: '标准1',
// yAxis: 1
name: 'Y 轴值为 100 的水平线',
yAxis: 100
// type: 'max',
// lineStyle: {
// normal: {
// color: 'green',
// width: 2,
// type: 'solid'
// }
// }
}
]
// itemStyle: {
// normal: {
// lineStyle: {
// type: 'solid',
// color: '#e2d73c ',
// width: 2
// },
// label: {
// formatter: '',
// textStyle: {
// fontSize: 16,
// fontWeight: 'bolder'
// }
// }
// }
// }
yAxis: 100,
},
],
}
this.extend = {
series: {
smooth: 0
}
smooth: 0,
},
}
return {
chartData: {
columns: ['日期', '图文总阅读人数', '图文总阅读次数'],
rows: []
}
rows: [],
},
}
},
mounted () {
mounted() {
this.materialChartList.forEach(item => {
const { refDate, intPageReadCount, intPageReadUser } = item
this.chartData.rows.push({
日期: refDate,
图文总阅读人数: intPageReadUser,
图文总阅读次数: intPageReadCount
图文总阅读次数: intPageReadCount,
})
})
},
props: ['datalist', 'MediaSummary', 'materialChartList'],
props: ['MediaList', 'materialChartList'],
components: {
MaterialInfo,
MaterialChart
}
},
}
</script>
<style lang="stylus" scoped>
.materian-details
background-color #fff
.datailChart
margin-bottom 20px
.detail-top
height 60px
line-height 60px
......
......@@ -3,11 +3,11 @@
<el-row>
<el-col :span="6">
<div class="detail-left">
<img :src="materianImg" class="info-img">
<!-- <img :src="materianImg" class="info-img"> -->
</div>
</el-col>
<el-col :span="18">
<material-text :MediaSummary="MediaSummary"></material-text>
<material-text :MediaList="MediaList"></material-text>
</el-col>
</el-row>
</div>
......@@ -20,12 +20,7 @@ export default {
materianImg: ''
}
},
props: ['datalist', 'MediaSummary'],
mounted () {
this.datalist.forEach(item => {
this.materianImg = item.thumb_url
})
},
props: ['MediaList'],
components: {
MaterialText
}
......
......@@ -7,12 +7,12 @@
</el-col>
<el-col :span="10">
<div>累积送达人数:
<span>{{MediaSummary.sendCountTotal}}</span>
<span>{{MediaList.sendCountTotal}}</span>
</div>
</el-col>
<el-col :span="8">
<div>平台推送次数:
<span>{{MediaSummary.pushCountTotal}}</span>
<span>{{MediaList.pushCountTotal}}</span>
</div>
</el-col>
</el-row>
......@@ -22,10 +22,10 @@
</el-col>
<el-col :span="8">
<div class="data-detail">
<p>图文阅读人数:{{MediaSummary.intPageReadUserTotal}}</p>
<p>图文阅读次数: {{MediaSummary.intPageReadCountTotal}}</p>
<p>原文链接阅读人数:{{MediaSummary.oriPageReadUserTotal}}</p>
<p>原文链接阅读次数:{{MediaSummary.oriPageReadCountTotal}}</p>
<p>图文阅读人数:{{MediaList.intPageReadUserTotal}}</p>
<p>图文阅读次数: {{MediaList.intPageReadCountTotal}}</p>
<p>原文链接阅读人数:{{MediaList.oriPageReadUserTotal}}</p>
<p>原文链接阅读次数:{{MediaList.oriPageReadCountTotal}}</p>
</div>
</el-col>
<el-col :span="4">
......@@ -33,10 +33,10 @@
</el-col>
<el-col :span="8">
<div class="data-detail">
<p>分享人数:{{MediaSummary.shareUserTotal}}</p>
<p>分享次数:{{MediaSummary.shareCountTotal}}</p>
<p>加入收藏人数:{{MediaSummary.addToFavUserTotal}}</p>
<p>加入收藏次数:{{MediaSummary.addToFavCountTotal}}</p>
<p>分享人数:{{MediaList.shareUserTotal}}</p>
<p>分享次数:{{MediaList.shareCountTotal}}</p>
<p>加入收藏人数:{{MediaList.addToFavUserTotal}}</p>
<p>加入收藏次数:{{MediaList.addToFavCountTotal}}</p>
</div>
</el-col>
</el-row>
......@@ -45,7 +45,7 @@
</template>
<script>
export default {
props: ['MediaSummary']
props: ['MediaList']
}
</script>
<style lang="stylus" scoped>
......
<template>
<div class="temp-list clear">
<el-row>
<div class="temp-button fr">
<el-button type="text" @click="reset">重置</el-button>
<el-button type="primary" @click="search">查询</el-button>
</div>
</el-row>
<el-form :inline="true" :model="form" class="demo-form-inline" style="min-width:980px;">
<el-row class="temp-input">
<el-col :span="10">
<el-form-item label="推送名称:">
<el-input v-model="title" placeholder="请输入推送名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item label="活动时间">
<el-date-picker type="date" placeholder="推送时间" v-model="queryDateStart" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
<span class="line time-line" :span="2">-</span>
<el-date-picker type="date" placeholder="推送时间" v-model="queryDateEnd" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row class="temp-input">
<el-col :span="14">
<el-form-item label="推送人数">
<el-input v-model.number="pushCountStart" placeholder="最小推送人数" style="width:210px"></el-input>
<span class="line time-line" :span="2">-</span>
<el-input v-model.number="pushCountEnd" placeholder="最大推送人数" style="width:200px"></el-input>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item label="创建推送节点:">
<el-select v-model="clerkId" placeholder="--全部--">
<el-option v-for="(item,index) in dataList" :key="index" :label="item.clerkName" :value="item.clerkId">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-table :data="dataList" style="width: 100%">
<el-table-column prop="title" label="推送名称" min-width="100" align="center">
</el-table-column>
<el-table-column prop="type" label="推送类型" min-width="76" align="center">
<template slot-scope="scope">
<span v-if="scope.row.type === 1">微信素材</span>
<span v-if="scope.row.type === 2">短信</span>
<span v-if="scope.row.type === 3">微信营销</span>
</template>
</el-table-column>
<el-table-column label="推送时间" min-width="150" align="center">
<template slot-scope="scope">
{{scope.row.pushTime | fomatDate}}
</template>
</el-table-column>
<el-table-column prop="scope" label="推送范围" min-width="260" align="center">
<template slot-scope="scope">
<span v-if="scope.row.scope === 0">全体推送</span>
<template v-if="scope.row.scope === 1 && scope.row.tagList ">
<span class="temp-tablespan">
{{scope.row.tagList && scope.row.tagList[0]}}
</span>
<span class="temp-tablespan">
{{scope.row.tagList && scope.row.tagList[1]}}
</span>
<el-popover v-if="scope.row.tagList" placement="bottom" title="标签" width="200" trigger="click">
<div>
<span v-for="(item,index) in scope.row.tagList" :key="index" class="table-tag" style="
display: inline-block;
width: 90px;
border: 1px solid transparent;
border-radius: 12px;
background: #0096ff;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #fff;
vertical-align: top;
margin: 0 5px 5px 0;
font-size: 13px;
line-height: 28px;">
{{item}}
</span>
</div>
<el-button class="fr temp-tablesmore" slot="reference">更多</el-button>
</el-popover>
</template>
</template>
</el-table-column>
<el-table-column prop="pushCount" label="推送人数" align="center">
</el-table-column>
<el-table-column prop="sentCount" label="推送成功人数" align="center">
</el-table-column>
<el-table-column prop="clerkName" label="创建消息节点" align="center">
</el-table-column>
<el-table-column prop="statusMsg" label="推送进度" align="center">
<template slot-scope="scope">
<span v-if="scope.row.statusMsg === '推送失败'" style="color:red">推送失败</span>
<span v-else-if="scope.row.statusMsg === '推送成功'" style="color:green">推送成功</span>
<span v-else>推送中</span>
</template>
</el-table-column>
</el-table>
<el-pagination @current-change="handleCurrentChange" :current-page="pageNo" :page-size="10" :total="total" layout="total, prev, pager, next, jumper">
</el-pagination>
</div>
</template>
<script>
export default {
data() {
return {
input: '',
form: {},
options: [],
value: '',
pageNo: 1,
pageSize: 10,
title: '',
type: '',
queryDateStart: '',
queryDateEnd: '',
pushCountStart: '',
pushCountEnd: '',
clerkId: '',
}
},
props: ['msgList'],
computed: {
dataList() {
const { result } = this.msgList
return result
},
total() {
const { totalCount } = this.msgList
return totalCount
},
},
methods: {
handleCurrentChange(val) {
this.pageNo = val
this.$emit('pageChange', this.pageNo)
},
reset() {
const paramsSearch = {
pageNo: 1,
pageSize: 10,
title: '',
queryDateStart: '',
queryDateEnd: '',
pushCountStart: '',
pushCountEnd: '',
clerkId: '',
}
this.$emit('reset', paramsSearch)
this.title = ''
this.queryDateStart = ''
this.queryDateEnd = ''
this.pushCountStart = ''
this.pushCountEnd = ''
this.clerkId = ''
},
search() {
const paramsSearch = {
pageNo: this.pageNo,
pageSize: this.pageSize,
title: this.title,
queryDateStart: this.queryDateStart,
queryDateEnd: this.queryDateEnd,
pushCountStart: this.pushCountStart,
pushCountEnd: this.pushCountEnd,
clerkId: this.clerkId,
}
this.$emit('search', paramsSearch)
},
},
}
</script>
<style lang="stylus" scoped>
>>>.el-pagination
padding 20px 5px
min-width 0px
text-align right
>>>.el-pagination .el-select .el-input
width auto
>>>.el-input__inner
min-width 10px
>>>.el-pagination__sizes
width 110px
>>>.temp-list .el-button:focus, .el-button:hover, .el-button:active
background-color none !important
.temp-list
.table-tag
color red
.el-button:focus, .el-button:hover, .el-button:active
background-color #f5f7fa
.temp-button
height 50px
width 120px
.temp-tablespan
display inline-block
width 90px
border 1px solid transparent
border-radius 12px
background #0096FF
text-align center
overflow hidden
text-overflow ellipsis
white-space nowrap
color #fff
padding 0px 3px
vertical-align top
font-size 13px
line-height 28px
.temp-tablesmore
padding 0
border none
color #0379cb
font-size 13px
line-height 28px
&::hover
color #0379cb
.time-line
margin-left 20px
margin-right 20px
</style>
<template>
<div class="detail-all clear">
<el-row>
<el-col :span="12" v-for="(item, index) in pushList" :key="index">
<el-col :span="12" v-for="(item, index) in pushlist.result" :key="index">
<div class="detail-single">
<div class="detail-top">
<span class="top-name detail-title">{{item.title}}</span>
<div class="top-right fr">
<span class="top-time detail-title">{{item.pushTime | fomatDate}}</span>
<span class="top-pushbtn">
<img src="./../../../../static/image/pushbtn.png">
<img src="@/assets/images/pushbtn.png">
<span class="top-state" v-if="item.status === 0">推送中</span>
<span class="top-state" v-if="item.status === 1">推送成功</span>
<span class="top-state" v-if="item.status === -1">推送失败 </span>
......@@ -37,42 +37,20 @@
</div>
</el-col>
</el-row>
<pagination v-show="pushList.length > 6" :dataList="dataList" class="detail-pagination"></pagination>
<pagination v-show="(pushlist&&pushlist.result&&pushlist.result.length) > 10" :pushlist="pushlist" class="detail-pagination"></pagination>
</div>
</template>
<script>
import Pagination from 'components/Pagination'
export default {
data () {
return {
dataList: [],
pushList: []
}
data() {
return {}
},
components: {
Pagination
Pagination,
},
created () {
this.GetPushDetail()
},
methods: {
GetPushDetail () {
this.axios
.post('http://rap2api.taobao.org/app/mock/115626/list-data', {
pageNo: 1,
pageSize: 10,
type: 1,
mediaId: 2
})
.then(res => {
if (res && res.data && res.data.code === 0) {
this.dataList = res.data.result
this.pushList = this.dataList.result
}
})
}
}
props: ['pushlist'],
}
</script>
<style lang="stylus" scoped>
......
......@@ -2,20 +2,21 @@
<div class="push-detail clear">
<div class="detail-top">
<span>
<img src="./../../../assets/images/push.png">
<img src="@/assets/images/push.png">
</span>
<span class="detail-title title">推送详情</span>
</div>
<detail class="detail-info"></detail>
<detail class="detail-info" :pushlist="pushlist"></detail>
</div>
</template>
<script>
import Detail from './PushDetail'
export default {
props: ['pushlist'],
components: {
Detail
}
Detail,
},
}
</script>
......
......@@ -3,11 +3,11 @@
<el-row>
<div class="temp-button fr">
<el-button type="text" @click="reset">重置</el-button>
<el-button type="primary" @click="getDataList">查询</el-button>
<el-button type="primary" @click="search">查询</el-button>
</div>
</el-row>
<el-form :inline="true" :model="form" class="demo-form-inline" style="min-width:1280px;">
<el-form :inline="true" :model="form" class="demo-form-inline" style="min-width:980px;">
<el-row class="temp-input">
<el-col :span="10">
<el-form-item label="推送名称:">
......@@ -16,9 +16,9 @@
</el-col>
<el-col :span="14">
<el-form-item label="活动时间">
<el-date-picker type="date" placeholder="推送时间" v-model="queryDateStart" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
<el-date-picker type="date" placeholder="推送时间" v-model="queryDateStart" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
<span class="line time-line" :span="2">-</span>
<el-date-picker type="date" placeholder="推送时间" v-model="queryDateEnd"></el-date-picker>
<el-date-picker type="date" placeholder="推送时间" v-model="queryDateEnd" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
......@@ -26,15 +26,15 @@
<el-row class="temp-input">
<el-col :span="14">
<el-form-item label="推送人数">
<el-input v-model.number="pushCountStart" placeholder="请输入推送名称" style="width:210px"></el-input>
<el-input v-model.number="pushCountStart" placeholder="最小推送人数" style="width:210px"></el-input>
<span class="line time-line" :span="2">-</span>
<el-input v-model.number="pushCountEnd" placeholder="请输入推送名称" style="width:200px"></el-input>
<el-input v-model.number="pushCountEnd" placeholder="最大推送人数" style="width:200px"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="10">
<el-form-item label="创建推送节点:">
<el-select v-model="clerkId" placeholder="--全部--">
<el-option v-for="item in options" :key="item.clerkId" :label="item.label" :value="item.clerkId">
<el-option v-for="(item,index) in dataList" :key="index" :label="item.clerkName" :value="item.clerkId">
</el-option>
</el-select>
</el-form-item>
......@@ -42,153 +42,161 @@
</el-row>
</el-form>
<el-table :data="dataList">
<el-table-column prop="title" label="推送名称" width="200">
<el-table :data="dataList" style="width: 100%">
<el-table-column prop="title" label="推送名称" min-width="100" align="center">
</el-table-column>
<el-table-column prop="type" label="推送类型" width="80">
<el-table-column prop="type" label="推送类型" min-width="76" align="center">
<template slot-scope="scope">
<span v-if="scope.row.type === 1">微信素材</span>
<span v-if="scope.row.type === 2">短信</span>
<span v-if="scope.row.type === 3">微信营销</span>
</template>
</el-table-column>
<el-table-column label="推送时间" width="170">
<el-table-column label="推送时间" min-width="150" align="center">
<template slot-scope="scope">
{{scope.row.push_time | fomatDate}}
{{scope.row.pushTime | fomatDate}}
</template>
</el-table-column>
<el-table-column prop="scope" label="推送范围" width="260">
<el-table-column prop="scope" label="推送范围" min-width="260" align="center">
<template slot-scope="scope">
<span v-if="scope.row.scope === 0">全体推送</span>
<template v-if="scope.row.scope === 1">
<template v-if="scope.row.scope === 1 && scope.row.tagList ">
<span class="temp-tablespan">
{{scope.row.tagList[0]}}
{{scope.row.tagList && scope.row.tagList[0]}}
</span>
<span class="temp-tablespan">
{{scope.row.tagList[1]}}
{{scope.row.tagList && scope.row.tagList[1]}}
</span>
<el-popover placement="bottom" title="标签" width="200" trigger="click">
<el-popover v-if="scope.row.tagList" placement="bottom" title="标签" width="200" trigger="click">
<div>
<span class="temp-tablespan" v-for="tag in scope.row.tagList" :key="tag">
{{tag}}
<span v-for="(item,index) in scope.row.tagList" :key="index" style="
display: inline-block;
width: 90px;
border: 1px solid transparent;
border-radius: 12px;
background: #0096ff;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #fff;
vertical-align: top;
margin: 0 5px 5px 0;
font-size: 13px;
line-height: 28px;">
{{item}}
</span>
</div>
<el-button class="fr temp-tablesmore" slot="reference">更多</el-button>
</el-popover>
</template>
</template>
</el-table-column>
<el-table-column prop="pushCount" label="推送人数" width="80">
<el-table-column prop="pushCount" label="推送人数" align="center">
</el-table-column>
<el-table-column prop="sentCount" label="推送成功人数" width="110">
<el-table-column prop="sentCount" label="推送成功人数" align="center">
</el-table-column>
<el-table-column prop="clerkName" label="创建消息节点">
<el-table-column prop="clerkName" label="创建消息节点" align="center">
</el-table-column>
<el-table-column prop="statusMsg" label="推送进度">
<el-table-column prop="statusMsg" label="推送进度" align="center">
<template slot-scope="scope">
<span v-if="scope.row.statusMsg === '推送失败'" style="color:red">推送失败</span>
<span v-else-if="scope.row.statusMsg === '推送成功'" style="color:green">推送成功</span>
<span v-else>推送中</span>
</template>
</el-table-column>
</el-table>
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNo" :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="total">
<el-pagination @current-change="handleCurrentChange" :current-page="pageNo" :page-size="10" :total="total" layout="total, prev, pager, next, jumper">
</el-pagination>
</div>
</template>
<script>
export default {
data () {
data() {
return {
input: '',
value6: '',
dataList: [],
form: {
name: '',
region: ''
},
options: [
{
clerkId: '1212',
label: '商户'
}
],
form: {},
options: [],
value: '',
pageNo: 1,
pageSize: 10,
total: 0,
title: '',
type: '',
queryDateStart: '',
queryDateEnd: '',
pushCountStart: '',
pushCountEnd: '',
clerkId: ''
clerkId: '',
}
},
created () {
this.getDataList()
props: ['templist'],
computed: {
dataList() {
const { result } = this.templist
return result
},
total() {
const { totalCount } = this.templist
return totalCount
},
},
methods: {
reset () {
this.pageNo = 1
this.pageSize = 10
this.total = 0
handleCurrentChange(val) {
this.pageNo = val
this.$emit('pageChange', this.pageNo)
},
reset() {
const paramsSearch = {
pageNo: 1,
pageSize: 10,
title: '',
queryDateStart: '',
queryDateEnd: '',
pushCountStart: '',
pushCountEnd: '',
clerkId: '',
}
this.$emit('reset', paramsSearch)
this.title = ''
this.type = ''
this.queryDateStart = ''
this.queryDateEnd = ''
this.pushCountStart = ''
this.pushCountEnd = ''
this.clerkId = ''
this.getDataList()
},
handleSizeChange (val) {
console.log(`每页 ${val} 条`)
search() {
const paramsSearch = {
pageNo: this.pageNo,
pageSize: this.pageSize,
title: this.title,
queryDateStart: this.queryDateStart,
queryDateEnd: this.queryDateEnd,
pushCountStart: this.pushCountStart,
pushCountEnd: this.pushCountEnd,
clerkId: this.clerkId,
}
this.$emit('search', paramsSearch)
},
handleCurrentChange (val) {
console.log(`当前页: ${val}`)
},
getDataList () {
const {
pageNo,
pageSize,
title,
type,
queryDateStart,
queryDateEnd,
pushCountStart,
pushCountEnd,
clerkId
} = this
this.axios
.get('/static/temp-list.json', {
params: {
pageNo,
pageSize,
title,
type,
queryDateStart,
queryDateEnd,
pushCountStart,
pushCountEnd,
clerkId
}
})
.then(res => {
if (res && res.data && res.data.data) {
const { data, totalCount } = res.data
this.dataList = data
this.total = totalCount
}
})
}
}
}
</script>
<style lang="stylus" scoped>
>>>.el-pagination
padding 20px 5px
min-width 0px
text-align right
>>>.el-pagination .el-select .el-input
width auto
>>>.el-input__inner
min-width 220px
min-width 10px
>>>.el-pagination__sizes
width 110px
>>>.temp-list .el-button:focus, .el-button:hover, .el-button:active
background-color none !important
.temp-list
.table-tag
color red
.el-button:focus, .el-button:hover, .el-button:active
background-color #f5f7fa
.temp-button
......@@ -197,11 +205,13 @@ export default {
.temp-tablespan
display inline-block
width 90px
overflow hidden
border 1px solid transparent
border-radius 12px
background #0096FF
text-align center
overflow hidden
text-overflow ellipsis
white-space nowrap
color #fff
padding 0px 3px
vertical-align top
......
export default {
getMaterialsList: 'http://testcenter.bigaka.net/crm/back/wechat/msg-mass/materials-list',
getPushList: 'http://testcenter.bigaka.net/crm/back/wechat/msg-mass/medialist',
getarticlesummary: 'http://testcenter.bigaka.net/crm/back/wechat/msg-mass/getarticlesummary',
}
// export default {
// getCode: 'http://rap2api.taobao.org/app/mock/115626/materials-list',
// getPush: 'http://rap2api.taobao.org/app/mock/115626/list-data',
// getData: 'http://rap2api.taobao.org/app/mock/115626/getarticlesummary',
// getTagCount: 'http://rap2api.taobao.org/app/mock/115626/testCount',
// getAllTag: '',
// }
import axios from 'axios'
// import qs from 'qs'
axios.interceptors.request.use(
config => {
// loading
return config
},
error => {
return Promise.reject(error)
}
)
axios.interceptors.response.use(
response => {
return response
},
error => {
return Promise.resolve(error.response)
}
)
function checkStatus(response) {
// loading
// 如果http状态码正常,则直接返回数据
if (response && (response.status === 200 || response.status === 304 || response.status === 400)) {
return response
// 如果不需要除了data之外的数据,可以直接 return response.data
}
// 异常状态下,把错误信息返回去
return {
status: -404,
msg: '网络异常',
}
}
function checkCode(res) {
// 如果code异常(这里已经包括网络错误,服务器错误,后端抛出的错误),可以弹出一个错误提示,告诉用户
if (res.status === -404) {
alert(res.msg)
}
if (res.data && !res.data.success) {
alert(res.data.error_msg)
}
return res
}
export default {
post(data, url) {
return axios({
method: 'post',
url: url,
// data: qs.stringify(data),
data: data,
timeout: 10000,
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json',
},
}).then(response => {
return checkStatus(response)
})
},
get(url, params) {
return axios({
method: 'get',
baseURL: 'https://cnodejs.org/api/v1',
url,
params, // get 请求时带的参数
timeout: 10000,
headers: {
'X-Requested-With': 'XMLHttpRequest',
},
})
.then(response => {
return checkStatus(response)
})
.then(res => {
return checkCode(res)
})
},
}
{
"code": 0,
"message": "",
"result": {
"wechatMediaSummary": {
"intPageReadUserTotal": 3,
"intPageReadCountTotal": 3,
"oriPageReadUserTotal": 0,
"oriPageReadCountTotal": 0,
"shareUserTotal": 0,
"shareCountTotal": 0,
"addToFavUserTotal": 0,
"addToFavCountTotal": 0,
"mediaId": "9cNIKtOZNJihIJyV2SdxhGXCcQF5WAhkxlxQL-p3mao",
"mediaGetarticles": [
{
"refDate": "2018-11-05",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-04",
"intPageReadUser": 2,
"intPageReadCount": 2,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-03",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-02",
"intPageReadUser": 1,
"intPageReadCount": 1,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-01",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-31",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-30",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-29",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-28",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-27",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-26",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-25",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-24",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-23",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-22",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-21",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-20",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-19",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-18",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-17",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-16",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-15",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-14",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-13",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-12",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-11",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-10",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-09",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-08",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-07",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
}
],
"sendCountTotal": 24,
"pushCountTotal": 7
},
"mediaGetarticle": [
{
"title": "测试推送",
"intPageReadUserTotal": 0,
"intPageReadCountTotal": 0,
"oriPageReadUserTotal": 0,
"oriPageReadCountTotal": 0,
"shareUserTotal": 0,
"shareCountTotal": 0,
"addToFavUserTotal": 0,
"addToFavCountTotal": 0,
"mediaId": "9cNIKtOZNJihIJyV2SdxhGXCcQF5WAhkxlxQL-p3mao",
"mediaGetarticles": [
{
"refDate": "2018-11-05",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-04",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-03",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-02",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-01",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-31",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-30",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-29",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-28",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-27",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-26",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-25",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-24",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-23",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-22",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-21",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-20",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-19",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-18",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-17",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-16",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-15",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-14",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-13",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-12",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-11",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-10",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-09",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-08",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-07",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 4,
"oriPageReadCount": 1,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
}
],
"msgMassId": 1057838922241019904,
"sendCountTotal": 0,
"pushCountTotal": 0
},
{
"title": "qwcasdasda",
"intPageReadUserTotal": 0,
"intPageReadCountTotal": 0,
"oriPageReadUserTotal": 0,
"oriPageReadCountTotal": 0,
"shareUserTotal": 0,
"shareCountTotal": 0,
"addToFavUserTotal": 0,
"addToFavCountTotal": 0,
"mediaId": "9cNIKtOZNJihIJyV2SdxhGXCcQF5WAhkxlxQL-p3mao",
"mediaGetarticles": [
{
"refDate": "2018-11-05",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-04",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-03",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-02",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-01",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-31",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-30",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-29",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-28",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-27",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-26",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-25",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-24",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-23",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-22",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-21",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-20",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-19",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-18",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-17",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-16",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-15",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-14",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-13",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-12",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-11",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-10",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-09",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-08",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-07",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 3,
"oriPageReadCount": 2,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
}
],
"msgMassId": 1058168792053583872,
"sendCountTotal": 0,
"pushCountTotal": 0
},
{
"msgid": "2247483897",
"title": "软文精准营销测试,点我!",
"intPageReadUserTotal": 1,
"intPageReadCountTotal": 1,
"oriPageReadUserTotal": 0,
"oriPageReadCountTotal": 0,
"shareUserTotal": 0,
"shareCountTotal": 0,
"addToFavUserTotal": 0,
"addToFavCountTotal": 0,
"mediaId": "9cNIKtOZNJihIJyV2SdxhGXCcQF5WAhkxlxQL-p3mao",
"mediaGetarticles": [
{
"refDate": "2018-11-05",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-04",
"intPageReadUser": 2,
"intPageReadCount": 2,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-03",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-02",
"intPageReadUser": 2,
"intPageReadCount": 2,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-01",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-31",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-30",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-29",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-28",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-27",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-26",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-25",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-24",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-23",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-22",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-21",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-20",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-19",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-18",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-17",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-16",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-15",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-14",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-13",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-12",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-11",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-10",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-09",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-08",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-07",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 2,
"oriPageReadCount": 3,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
}
],
"msgMassId": 1058205003421978624,
"sendCountTotal": 0,
"pushCountTotal": 0,
"thumb_url": "http://mmbiz.qpic.cn/mmbiz_jpg/myR8bhKp5ab8Gq0rmGvmlIbkbGdVxgWMQUIMOhQ7ick28Leraz5CDmqH3sdlkibg46PHibUxyD7yBwPM6KG7uGyXA/0?wx_fmt=jpeg",
"url": "http://mp.weixin.qq.com/s?__biz=MzAxMzk1MjAwNA==&mid=100000232&idx=1&sn=64a6b1fb2581e5b03317a37029f29f9d&chksm=1b9bf4832cec7d951df3f6b244ad682121dd7cf75406bcc4b36aabab35c0e67110f19ea63e61#rd"
},
{
"msgid": "",
"title": "8",
"intPageReadUserTotal": 3,
"intPageReadCountTotal": 3,
"oriPageReadUserTotal": 0,
"oriPageReadCountTotal": 0,
"shareUserTotal": 0,
"shareCountTotal": 0,
"addToFavUserTotal": 0,
"addToFavCountTotal": 0,
"mediaId": "9cNIKtOZNJihIJyV2SdxhGXCcQF5WAhkxlxQL-p3mao",
"mediaGetarticles": [
{
"refDate": "2018-11-05",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-04",
"intPageReadUser": 4,
"intPageReadCount": 4,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-03",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-02",
"intPageReadUser": 2,
"intPageReadCount": 2,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-11-01",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-31",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-30",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-29",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-28",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-27",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-26",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-25",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-24",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-23",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-22",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-21",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-20",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-19",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-18",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-17",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-16",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-15",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-14",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-13",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-12",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-11",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-10",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-09",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-08",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 0,
"oriPageReadCount": 0,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
},
{
"refDate": "2018-10-07",
"intPageReadUser": 0,
"intPageReadCount": 0,
"oriPageReadUser": 1,
"oriPageReadCount": 4,
"shareUser": 0,
"shareCount": 0,
"addToFavUser": 0,
"addToFavCount": 0
}
],
"msgMassId": 1059051282712629248,
"sendCountTotal": 0,
"pushCountTotal": 0
}
]
}
}
{
"code" : 0,
"message" : "suc"
}
\ No newline at end of file
{
"code" : 0,
"message" : "",
"result" : 5
}
\ No newline at end of file
{
"totalCount": 3,
"code": 0,
"msg": "成功",
"data": [
{
"title": "软文精准营销测试,点我!",
"type": 1,
"scope": 0,
"push_time": 1524642626000,
"tagList": [],
"pushCount": 2,
"sentCount": 12,
"clerkName": 8,
"statusMsg": "state"
},
{
"title": "营销测试",
"type": 2,
"scope": 0,
"push_time": 1524642626000,
"tagList": [],
"pushCount": 2,
"sentCount": 12,
"clerkName": 8,
"statusMsg": "state"
},
{
"title": "点我",
"type": 3,
"scope": 1,
"push_time": 1524642626000,
"tagList": [
"111",
"222",
"333"
],
"pushCount": 2,
"sentCount": 12,
"clerkName": 8,
"statusMsg": "state"
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment