vaneditor
Version:
``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```
1 lines • 9.4 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-notice-detail"],{"3c16":function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=i(n("3b8d")),s=i(n("2825")),a=i(n("5a0c")),u={data:function(){return{routeId:"",noUse:!0,isOpen:!1,id:"",headerDateList:{salePrice:"",childPrice:"",date:""},detail:{photoImages:"",detail:"",name:""}}},components:{uParse:s.default},onLoad:function(t){this.id=t.id,this.init()},methods:{init:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.queryDetail();case 2:e=t.sent,e.data.createTime=(0,a.default)(e.data.createTime).format("YYYY年MM月DD日 HH:mm"),this.detail=e.data,this.loading=!1;case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),queryDetail:function(){return this.$ajax({method:"post",url:"/weChat/cms/notice/queryDetail",data:{id:this.id}})}}};e.default=u},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",r="day",s="week",a="month",u="quarter",o="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,d=/\[([^\]]+)]|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,f=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},h={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+f(i,2,"0")+":"+f(r,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,a),r=e-i<0,s=t.clone().add(n+(r?-1:1),a);return Number(-(n+(e-i)/(r?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:a,y:o,w:s,d:r,h:i,m:n,s:e,ms:t,Q:u}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},l={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("_")},$="en",m={};m[$]=l;var g=function(t){return t instanceof y},p=function(t,e,n){var i;if(!t)return $;if("string"==typeof t)m[t]&&(i=t),e&&(m[t]=e,i=t);else{var r=t.name;m[r]=t,i=r}return n||($=i),i},v=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 y(i)},M=h;M.l=p,M.i=g,M.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var y=function(){function f(t){this.$L=this.$L||p(t.locale,null,!0),this.parse(t)}var h=f.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.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(c);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()},h.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()},h.$utils=function(){return M},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return v(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<v(t)},h.$g=function(t,e,n){return M.u(t)?this[e]:this.set(n,t)},h.year=function(t){return this.$g(t,"$y",o)},h.month=function(t){return this.$g(t,"$M",a)},h.day=function(t){return this.$g(t,"$W",r)},h.date=function(t){return this.$g(t,"$D","date")},h.hour=function(t){return this.$g(t,"$H",i)},h.minute=function(t){return this.$g(t,"$m",n)},h.second=function(t){return this.$g(t,"$s",e)},h.millisecond=function(e){return this.$g(e,"$ms",t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,u){var c=this,d=!!M.u(u)||u,f=M.p(t),h=function(t,e){var n=M.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return d?n:n.endOf(r)},l=function(t,e){return M.w(c.toDate()[t].apply(c.toDate(),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},$=this.$W,m=this.$M,g=this.$D,p="set"+(this.$u?"UTC":"");switch(f){case o:return d?h(1,0):h(31,11);case a:return d?h(1,m):h(0,m+1);case s:var v=this.$locale().weekStart||0,y=($<v?$+7:$)-v;return h(d?g-y:g+(6-y),m);case r:case"date":return l(p+"Hours",0);case i:return l(p+"Minutes",1);case n:return l(p+"Seconds",2);case e:return l(p+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(s,u){var c,d=M.p(s),f="set"+(this.$u?"UTC":""),h=(c={},c[r]=f+"Date",c.date=f+"Date",c[a]=f+"Month",c[o]=f+"FullYear",c[i]=f+"Hours",c[n]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[d],l=d===r?this.$D+(u-this.$W):u;if(d===a||d===o){var $=this.clone().set("date",1);$.$d[h](l),$.init(),this.$d=$.set("date",Math.min(this.$D,$.daysInMonth())).toDate()}else h&&this.$d[h](l);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[M.p(t)]()},h.add=function(t,u){var c,d=this;t=Number(t);var f=M.p(u),h=function(e){var n=v(d);return M.w(n.date(n.date()+Math.round(e*t)),d)};if(f===a)return this.set(a,this.$M+t);if(f===o)return this.set(o,this.$y+t);if(f===r)return h(1);if(f===s)return h(7);var l=(c={},c[n]=6e4,c[i]=36e5,c[e]=1e3,c)[f]||1,$=this.$d.getTime()+t*l;return M.w($,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=M.z(this),r=this.$locale(),s=this.$H,a=this.$m,u=this.$M,o=r.weekdays,c=r.months,f=function(t,i,r,s){return t&&(t[i]||t(e,n))||r[i].substr(0,s)},h=function(t){return M.s(s%12||12,t,"0")},l=r.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:M.s(u+1,2,"0"),MMM:f(r.monthsShort,u,c,3),MMMM:c[u]||c(this,n),D:this.$D,DD:M.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,o,2),ddd:f(r.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:M.s(s,2,"0"),h:h(1),hh:h(2),a:l(s,a,!0),A:l(s,a,!1),m:String(a),mm:M.s(a,2,"0"),s:String(this.$s),ss:M.s(this.$s,2,"0"),SSS:M.s(this.$ms,3,"0"),Z:i};return n.replace(d,(function(t,e){return e||$[t]||i.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,c,d){var f,h=M.p(c),l=v(t),$=6e4*(l.utcOffset()-this.utcOffset()),m=this-l,g=M.m(this,l);return g=(f={},f[o]=g/12,f[a]=g,f[u]=g/3,f[s]=(m-$)/6048e5,f[r]=(m-$)/864e5,f[i]=m/36e5,f[n]=m/6e4,f[e]=m/1e3,f)[h]||m,d?g:M.a(g)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return m[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var n=this.clone();return n.$L=p(t,e,!0),n},h.clone=function(){return M.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}();return v.prototype=y.prototype,v.extend=function(t,e){return t(e,y,v),v},v.locale=p,v.isDayjs=g,v.unix=function(t){return v(1e3*t)},v.en=m[$],v.Ls=m,v}))},"6c50":function(t,e,n){"use strict";n.r(e);var i=n("af23"),r=n("fac39");for(var s in r)"default"!==s&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n("d1e6");var a=n("2877"),u=Object(a["a"])(r["default"],i["a"],i["b"],!1,null,"d631e154",null);e["default"]=u.exports},af23:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notice-content"},[n("p",{staticClass:"notice-name"},[t._v(t._s(t.detail.title))]),n("p",{staticClass:"notice-time"},[t._v(t._s(t.detail.createTime))]),n("div",{staticClass:"segmentation"}),n("u-parse",{staticClass:"notice-main common-prduct-detail",attrs:{content:t.detail.detail}})],1)},r=[];n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},c4b6:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".notice-content[data-v-d631e154]{background-color:#fff;width:%?678?%;padding:%?26?% %?31?% %?10?% %?41?%}.notice-content .notice-name[data-v-d631e154]{font-size:%?36?%;color:#333;font-weight:700;letter-spacing:0;text-align:center;margin-bottom:%?10?%}.notice-content .notice-time[data-v-d631e154]{font-size:%?24?%;color:#666;letter-spacing:0;text-align:center;padding:%?10?% 0 %?28?% 0}.notice-content .segmentation[data-v-d631e154]{border-bottom:1px solid #eaeaea}.notice-content .notice-main[data-v-d631e154]{font-size:%?28?%;color:#666;line-height:%?36?%;letter-spacing:0;text-align:left;padding:%?30?% %?10?% %?5?%;min-height:%?400?%}",""])},d1e6:function(t,e,n){"use strict";var i=n("e4b1"),r=n.n(i);r.a},e4b1:function(t,e,n){var i=n("c4b6");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("4d26cfb5",i,!0,{sourceMap:!1,shadowMode:!1})},fac39:function(t,e,n){"use strict";n.r(e);var i=n("3c16"),r=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a}}]);