123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-history-history"],{"0374":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.art-wrap[data-v-58de164b]{padding:%?24?%;background-color:#f2f2f2}.art-wrap .tabs[data-v-58de164b]{overflow-x:auto;overflow-y:hidden;display:flex;background-color:#fff;border-radius:%?16?%}.art-wrap .tabs .tab[data-v-58de164b]{height:%?88?%;line-height:%?88?%;display:inline-block;padding:0 %?32?%;flex:1 0 auto;font-size:%?28?%;color:#35364f;position:relative;text-align:center}.art-wrap .tabs .tab[data-v-58de164b]::after{display:block;width:50%;border-bottom:2px solid transparent;position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);content:""}.art-wrap .tabs .tab.active[data-v-58de164b]{font-size:%?34?%;font-weight:700}.art-wrap .tabs .tab.active[data-v-58de164b]::after{border-bottom:2px solid #15cd85}.art-wrap .tab-container[data-v-58de164b]{background-color:#f2f2f2}.art-wrap .tab-container .item[data-v-58de164b]{margin-top:%?20?%}.art-wrap .tab-container .item .card[data-v-58de164b]{background:#fff;border-radius:%?10?%;padding:%?24?%}.art-wrap .tab-container .item .card .top[data-v-58de164b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:%?20?%}.art-wrap .tab-container .item .card .top .lf[data-v-58de164b]{flex:1;display:flex;align-items:center}.art-wrap .tab-container .item .card .top .lf .tag[data-v-58de164b]{font-size:%?20?%;display:inline-block;padding:%?4?% %?6?%;border:1px solid #15cd85;line-height:1;color:#15cd85;border-radius:%?4?%}.art-wrap .tab-container .item .card .top .lf .author[data-v-58de164b]{display:inline-block;padding-left:5px;line-height:1;color:#666}.art-wrap .tab-container .item .card .info[data-v-58de164b]{font-size:%?24?%;font-weight:500;color:#b0b0b0;line-height:1;padding-top:.22rem}.art-wrap .tab-container .item .card .info .title[data-v-58de164b]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#000;line-height:%?48?%;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical}.art-wrap .tab-container .item .card .info .footer[data-v-58de164b]{display:flex;justify-content:space-between;align-items:center;padding-top:%?10?%}',""]),t.exports=e},"1da1":function(t,e,r){"use strict";function n(t,e,r,n,a,i,o){try{var c=t[i](o),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,a)}r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var o=t.apply(e,r);function c(t){n(o,a,i,c,u,"next",t)}function u(t){n(o,a,i,c,u,"throw",t)}c(void 0)}))}},r("d3b7")},"24e7":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={base:{dev:"https://api.xazhyc.com",pro:"https://api.xazhyc.com"},appID:"10007",appKey:"82a8bf439373e311",appSecret:"82a8bf439373e311",permitTplId:7,TokenKey:"Authorization"}},"4c1f":function(t,e,r){"use strict";(function(t){r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.request=function(t){return l.apply(this,arguments)},r("d3b7");var a=n(r("c7eb")),i=n(r("5530")),o=n(r("1da1")),c=n(r("24e7")),u=r("89ed"),s=c.default.base.pro;function l(){return l=(0,o.default)((0,a.default)().mark((function e(r){return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){try{uni.showLoading({title:"加载中",mask:!0}),uni.request((0,i.default)((0,i.default)({},d(r)),{},{success:function(t){var r=t.data,a=r.code,i=r.msg;200===a?e(r):401===a?uni.showToast({title:"登录失效!",mask:!0,icon:"none",duration:3e3,complete:function(){uni.clearStorageSync(),setTimeout((function(){uni.reLaunch({url:"/pages/login/index"})}),3e3)}}):(n(r),uni.showToast({title:i,mask:!0,duration:3e3,icon:"none"}))},fail:function(t){uni.showToast({title:t,mask:!0,icon:"none"}),n(t)},complete:function(t){uni.hideLoading()}}))}catch(a){t("log",a," at libs/request.js:68"),n(a)}})));case 1:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(t){var e=t.url;e=s+e;var r=(0,i.default)({},t.data),n=(0,i.default)((0,i.default)({},t.header),{},{AppID:c.default.appID,AppKey:c.default.appKey,AppSecret:c.default.appSecret});(0,u.getToken)()&&(n[c.default.TokenKey]=(0,u.getToken)());var a=t.method||"get",o=t.dataType||"json",l={url:e,data:r,header:n,method:a,dataType:o};return l}}).call(this,r("0de9")["log"])},"53a5":function(t,e,r){"use strict";r.r(e);var n=r("ef9f"),a=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},"5d5f":function(t,e,r){"use strict";var n=r("d5ce"),a=r.n(n);a.a},"6b07":function(t,e,r){"use strict";r.r(e);var n=r("9081"),a=r("53a5");for(var i in a)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(i);r("5d5f");var o=r("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"58de164b",null,!1,n["a"],void 0);e["default"]=c.exports},"74cb":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.getArtByList=function(t){return(0,n.request)({url:"/art",method:"GET",data:t})},e.getArtByPage=function(t){return(0,n.request)({url:"/art/page",method:"GET",data:t})},e.getArtCatTop=function(t){return(0,n.request)({url:"/art/cat/top",method:"GET",data:t})},e.getNotices=function(t){return(0,n.request)({url:"/art/page",data:t})},e.getRecentArtByList=function(t){return(0,n.request)({url:"/art/recent",method:"GET",data:t})},e.getRecentListByArtCatAndLimit=function(t,e){return(0,n.request)({url:"/art/recent/".concat(t,"/").concat(e),method:"GET"})},e.getRecentListByLimit=function(t){return(0,n.request)({url:"/art/recent/".concat(t),method:"GET"})},r("99af");var n=r("4c1f")},"89ed":function(t,e,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getToken=function(){return uni.getStorageSync(i)},e.removeToken=function(){return uni.removeStorageSync(i)},e.setToken=function(t){return uni.setStorageSync(i,t)};var a=n(r("24e7")),i=a.default.TokenKey},9081:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"art-wrap"},[r("v-uni-view",{staticClass:"tabs"},t._l(t.tabs,(function(e,n){return r("v-uni-view",{key:n,staticClass:"tab",class:e.artCatId===t.artCatId?"active":"",on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.changeTab(e)}}},[t._v(t._s(e.artCatTitle))])})),1),r("v-uni-view",{staticClass:"tab-container"},t._l(t.artList,(function(e,n){return r("v-uni-view",{key:n,staticClass:"item"},[r("v-uni-view",{staticClass:"content card",on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.showDetail(e)}}},[r("v-uni-view",{staticClass:"top"},[r("v-uni-view",{staticClass:"lf"},[r("v-uni-view",{staticClass:"tag"},[t._v(t._s(e.artCatTitle))]),e.editorName?r("v-uni-view",{staticClass:"author"},[t._v(t._s(e.editorName))]):t._e()],1),r("v-uni-view",{staticClass:"rt"},[r("span",[t._v(t._s(t.MessageTimeFormat(e.issuedAt)))])])],1),r("v-uni-view",{staticClass:"info"},[e.artTitle?r("v-uni-view",{staticClass:"title"},[t._v(t._s(e.artTitle))]):t._e(),r("v-uni-view",{staticClass:"footer"},[r("v-uni-view",{staticClass:"author"},[t._v(t._s(e.artAuthor?e.artAuthor:"未知"))]),r("v-uni-view",{staticClass:"time"},[t._v(t._s(e.issuedAt))])],1)],1)],1)],1)})),1)],1)},a=[]},c7eb:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- e.default=function(){return t};var t={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(P){l=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,o=Object.create(a.prototype),c=new E(n||[]);return i(o,"_invoke",{value:L(t,r,c)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=d;var h={};function p(){}function v(){}function g(){}var y={};l(y,c,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(A([])));m&&m!==r&&a.call(m,c)&&(y=m);var w=g.prototype=p.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var r;i(this,"_invoke",{value:function(i,o){function c(){return new e((function(r,c){(function r(i,o,c,u){var s=f(t[i],t,o);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==(0,n.default)(d)&&a.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(d).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)})(i,o,r,c)}))}return r=r?r.then(c,c):c()}})}function L(t,e,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return O()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=T(o,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function T(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=void 0,T(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var a=f(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,h;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new _(d(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(w),l(w,s,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t},r("7a82"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("d401"),r("14d9"),r("159b"),r("131a"),r("26e9"),r("fb6a");var n=function(t){return t&&t.__esModule?t:{default:t}}(r("53ca"))},d5ce:function(t,e,r){var n=r("0374");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("4f06").default;a("07926d6f",n,!0,{sourceMap:!1,shadowMode:!1})},ef9f:function(t,e,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(r("5530"));r("e9c4"),r("99af");r("89ed");var i=r("3ae3"),o=r("74cb"),c={data:function(){return{artCatId:"",tabs:[],artList:[],conditions:{page:1,limit:10},total:0}},onShow:function(){this.conditions={page:1,limit:10},this.artList=[],this.getArtCatTop()},methods:{MessageTimeFormat:i.MessageTimeFormat,changeTab:function(t){this.artCatId=t.artCatId,this.conditions={page:1,limit:10},this.artList=[],this.getArtByPage()},getArtCatTop:function(){var t=this;(0,o.getArtCatTop)().then((function(e){t.tabs=e.data,e.data.length>0&&(t.artCatId=e.data[0].artCatId,t.getArtByPage())}))},getArtByPage:function(){var t=this,e=JSON.parse(JSON.stringify(this.artList));(0,o.getArtByPage)((0,a.default)((0,a.default)({},this.conditions),{},{artCatId:this.artCatId})).then((function(r){t.artList=e.concat(r.data),t.total=r.total}))},showDetail:function(){uni.navigateTo({url:"/pages/webview/webview?href=".concat("http://h5.xazhyc.com","/art/views/detail.html&artId=473700&name=通讯录")})}},onReachBottom:function(){this.total>=this.conditions.page*this.conditions.limit&&(this.conditions.page++,this.getArtByPage())},onPullDownRefresh:function(){this.conditions={page:1,limit:10},this.artList=[],this.getArtCatTop(),uni.stopPullDownRefresh()}};e.default=c}}]);
|