vaneditor
Version:
``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```
1 lines • 16.3 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-notice-list"],{"06ac":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"uni-load-more"},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[n("v-uni-view",{staticClass:"load1"},[n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}})],1),n("v-uni-view",{staticClass:"load2"},[n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}})],1),n("v-uni-view",{staticClass:"load3"},[n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}}),n("v-uni-view",{style:{background:t.color}})],1)],1),n("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},a=[];n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}))},"09c2":function(t,e,n){"use strict";n.r(e);var i=n("06ac"),a=n("ba86");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("264f");var o=n("2877"),s=Object(o["a"])(a["default"],i["a"],i["b"],!1,null,"053f1968",null);e["default"]=s.exports},"0d8c":function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("8e6e"),n("ac6a"),n("456d");var a=i(n("bd86")),r=i(n("09c2")),o=i(n("5a0c")),s=i(n("d3ed")),u=i(n("f0ab"));function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(n,!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={data:function(){return{list:[],end:!1,page:{pageSize:10,currentPage:1,count:0,name:"",loading:!1}}},onLoad:function(){this.queryData()},onPullDownRefresh:function(){this.list=[],this.page.currentPage=1,this.queryData("refresh")},onReachBottom:function(){this.list.length<this.page.count&&this.queryData()},components:{uniLoadMore:r.default,uniIcons:u.default},methods:{handleClick:function(t){uni.navigateTo({url:"/pages/notice/detail?id=".concat(t.id)})},queryData:function(t){var e=this;this.page.loading=!0,this.$ajax({method:"post",url:"/weChat/cms/notice/queryPage",data:c({},this.page)}).then((function(n){e.page.count=n.count,e.list.push.apply(e.list,e.renderData(n.data)),e.list.length>=e.page.count&&(e.end=!0),e.page.currentPage+=1,"refresh"===t&&uni.stopPullDownRefresh(),e.page.loading=!1}))},renderData:function(t){return t.map((function(t){return t.createTime=(0,o.default)(t.createTime).format("YYYY年MM月DD日 HH:MM"),t.content=t.detail?(0,s.default)(t.detail,40):"",t}))}}};e.default=l},"0f7a":function(t,e,n){"use strict";var i=n("ded4"),a=n.n(i);a.a},"264f":function(t,e,n){"use strict";var i=n("98b5"),a=n.n(i);a.a},"58a1":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".route-main[data-v-5f8405c0]{background:#fff;padding-bottom:%?20?%;text-align:left}.route-main .route-list[data-v-5f8405c0]{padding:0 %?30?%}.route-main .route-list .route-item[data-v-5f8405c0]{position:relative;border-bottom:1px solid #eaeaea;padding:%?30?% 0 %?20?% 0;line-height:1.5}.route-main .route-list .route-item .title[data-v-5f8405c0]{font-size:%?30?%;font-weight:700;color:#333;margin-bottom:%?12?%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.route-main .route-list .route-item .time[data-v-5f8405c0]{font-size:%?24?%;color:#666;margin-bottom:%?12?%}.route-main .route-list .route-item .content[data-v-5f8405c0]{font-size:%?26?%;color:#999}.route-main .route-list .route-item .right[data-v-5f8405c0]{position:absolute;right:0;bottom:%?36?%;color:#a3a3a3}.end[data-v-5f8405c0]{text-align:center;font-size:%?28?%;padding-top:%?20?%}",""])},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",r="week",o="month",s="quarter",u="year",d=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,c=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},f={s:l,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+l(i,2,"0")+":"+l(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,o),a=e-i<0,r=t.clone().add(n+(a?-1:1),o);return Number(-(n+(e-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(d){return{M:o,y:u,w:r,d:a,h:i,m:n,s:e,ms:t,Q:s}[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v="en",m={};m[v]=h;var g=function(t){return t instanceof b},p=function(t,e,n){var i;if(!t)return v;if("string"==typeof t)m[t]&&(i=t),e&&(m[t]=e,i=t);else{var a=t.name;m[a]=t,i=a}return n||(v=i),i},w=function(t,e,n){if(g(t))return t.clone();var i=e?"string"==typeof e?{format:e,pl:n}:e:{};return i.date=t,new b(i)},y=f;y.l=p,y.i=g,y.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var b=function(){function l(t){this.$L=this.$L||p(t.locale,null,!0),this.parse(t)}var f=l.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(d);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return y},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return w(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<w(t)},f.$g=function(t,e,n){return y.u(t)?this[e]:this.set(n,t)},f.year=function(t){return this.$g(t,"$y",u)},f.month=function(t){return this.$g(t,"$M",o)},f.day=function(t){return this.$g(t,"$W",a)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",i)},f.minute=function(t){return this.$g(t,"$m",n)},f.second=function(t){return this.$g(t,"$s",e)},f.millisecond=function(e){return this.$g(e,"$ms",t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,s){var d=this,c=!!y.u(s)||s,l=y.p(t),f=function(t,e){var n=y.w(d.$u?Date.UTC(d.$y,e,t):new Date(d.$y,e,t),d);return c?n:n.endOf(a)},h=function(t,e){return y.w(d.toDate()[t].apply(d.toDate(),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),d)},v=this.$W,m=this.$M,g=this.$D,p="set"+(this.$u?"UTC":"");switch(l){case u:return c?f(1,0):f(31,11);case o:return c?f(1,m):f(0,m+1);case r:var w=this.$locale().weekStart||0,b=(v<w?v+7:v)-w;return f(c?g-b:g+(6-b),m);case a:case"date":return h(p+"Hours",0);case i:return h(p+"Minutes",1);case n:return h(p+"Seconds",2);case e:return h(p+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(r,s){var d,c=y.p(r),l="set"+(this.$u?"UTC":""),f=(d={},d[a]=l+"Date",d.date=l+"Date",d[o]=l+"Month",d[u]=l+"FullYear",d[i]=l+"Hours",d[n]=l+"Minutes",d[e]=l+"Seconds",d[t]=l+"Milliseconds",d)[c],h=c===a?this.$D+(s-this.$W):s;if(c===o||c===u){var v=this.clone().set("date",1);v.$d[f](h),v.init(),this.$d=v.set("date",Math.min(this.$D,v.daysInMonth())).toDate()}else f&&this.$d[f](h);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[y.p(t)]()},f.add=function(t,s){var d,c=this;t=Number(t);var l=y.p(s),f=function(e){var n=w(c);return y.w(n.date(n.date()+Math.round(e*t)),c)};if(l===o)return this.set(o,this.$M+t);if(l===u)return this.set(u,this.$y+t);if(l===a)return f(1);if(l===r)return f(7);var h=(d={},d[n]=6e4,d[i]=36e5,d[e]=1e3,d)[l]||1,v=this.$d.getTime()+t*h;return y.w(v,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=y.z(this),a=this.$locale(),r=this.$H,o=this.$m,s=this.$M,u=a.weekdays,d=a.months,l=function(t,i,a,r){return t&&(t[i]||t(e,n))||a[i].substr(0,r)},f=function(t){return y.s(r%12||12,t,"0")},h=a.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:y.s(s+1,2,"0"),MMM:l(a.monthsShort,s,d,3),MMMM:d[s]||d(this,n),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:l(a.weekdaysMin,this.$W,u,2),ddd:l(a.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(r),HH:y.s(r,2,"0"),h:f(1),hh:f(2),a:h(r,o,!0),A:h(r,o,!1),m:String(o),mm:y.s(o,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:i};return n.replace(c,(function(t,e){return e||v[t]||i.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,d,c){var l,f=y.p(d),h=w(t),v=6e4*(h.utcOffset()-this.utcOffset()),m=this-h,g=y.m(this,h);return g=(l={},l[u]=g/12,l[o]=g,l[s]=g/3,l[r]=(m-v)/6048e5,l[a]=(m-v)/864e5,l[i]=m/36e5,l[n]=m/6e4,l[e]=m/1e3,l)[f]||m,c?g:y.a(g)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return m[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone();return n.$L=p(t,e,!0),n},f.clone=function(){return y.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},l}();return w.prototype=b.prototype,w.extend=function(t,e){return t(e,b,w),w},w.locale=p,w.isDayjs=g,w.unix=function(t){return w(1e3*t)},w.en=m[v],w.Ls=m,w}))},"7f10":function(t,e,n){"use strict";n.r(e);var i=n("930bf"),a=n("ed9a");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("0f7a");var o=n("2877"),s=Object(o["a"])(a["default"],i["a"],i["b"],!1,null,"5f8405c0",null);e["default"]=s.exports},"930bf":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"route-main"},[n("ul",{staticClass:"route-list"},t._l(t.list,(function(e,i){return n("li",{key:i,staticClass:"route-item",on:{click:function(n){n=t.$handleEvent(n),t.handleClick(e)}}},[n("p",{staticClass:"title"},[t._v(t._s(e.title))]),n("div",{staticClass:"time"},[t._v(t._s(e.pushTime))]),n("span",{staticClass:"right"},[n("uni-icons",{attrs:{type:"forward",size:"24"}})],1)])})),0),t.end&&!t.page.loading?n("p",{staticClass:"end"},[t._v("没有更多")]):t._e(),t.page.loading?n("uni-load-more",{attrs:{status:"loading"}}):t._e()],1)},a=[];n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}))},"98b5":function(t,e,n){var i=n("fc3a");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("447f2a62",i,!0,{sourceMap:!1,shadowMode:!1})},b90c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},ba86:function(t,e,n){"use strict";n.r(e);var i=n("b90c"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},d3ed:function(t,e,n){"use strict";function i(t,e){var n=/[^\\x00-\xff]/g;if(t.replace(n,"mm").length<=e)return t;for(var i=Math.floor(e/2),a=i;a<t.length;a++)if(t.substr(0,a).replace(n,"mm").length>=e)return t.substr(0,a)+"...";return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,n("a481")},ded4:function(t,e,n){var i=n("58a1");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("9bfcd6ce",i,!0,{sourceMap:!1,shadowMode:!1})},ed9a:function(t,e,n){"use strict";n.r(e);var i=n("0d8c"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},fc3a:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".uni-load-more[data-v-053f1968]{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-053f1968]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-053f1968]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>uni-view[data-v-053f1968]{position:absolute}.uni-load-more__img>uni-view uni-view[data-v-053f1968]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-053f1968 1.56s ease infinite;animation:load-data-v-053f1968 1.56s ease infinite}.uni-load-more__img>uni-view uni-view[data-v-053f1968]:first-child{-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>uni-view uni-view[data-v-053f1968]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>uni-view uni-view[data-v-053f1968]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>uni-view uni-view[data-v-053f1968]:nth-child(4){top:11px;left:0}.load1[data-v-053f1968],.load2[data-v-053f1968],.load3[data-v-053f1968]{height:24px;width:24px}.load2[data-v-053f1968]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-053f1968]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-053f1968]:first-child{-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-053f1968]:first-child{-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-053f1968]:first-child{-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-053f1968]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-053f1968]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-053f1968]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-053f1968]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-053f1968]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-053f1968]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-053f1968]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-053f1968]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-053f1968]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-053f1968{0%{opacity:1}to{opacity:.2}}",""])}}]);