vaneditor
Version:
``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```
1 lines • 13.2 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-tralvelInfo-list"],{"35f3":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"travel"},[n("v-uni-view",{staticClass:"search-box"},[n("div",{staticClass:"searchPosition"},[n("search",{attrs:{name:t.form.title,isFixed:!1,placeholder:"搜索"},on:{search:function(e){e=t.$handleEvent(e),t.querySearchData(e)},nameInput:function(e){e=t.$handleEvent(e),t.nameInput(e)}}})],1)]),t.isImg?t._e():n("ul",{staticClass:"tralvelInfo"},t._l(t.tralvelList,(function(e){return n("li",{key:e.advisoryDetailsCode,on:{click:function(n){n=t.$handleEvent(n),t.jump(e.advisoryDetailsCode)}}},[n("v-uni-image",{staticClass:"rIcon",attrs:{src:"/static/tralvelInfo/rIcon.png"}}),n("p",[t._v(t._s(e.title))]),n("p",{staticClass:"codeName"},t._l(e.advisoryDetailsLabelsDtos,(function(e){return n("span",{key:e.advisoryLabelId},[t._v("#"+t._s(e.advisoryLabelName))])})),0),n("span",{staticClass:"time"},[t._v(t._s(t.dateFormat(e.createTime)))])],1)})),0),t.isImg?n("ul",{staticClass:"picList"},t._l(t.tralvelList,(function(e){return n("li",{key:e.advisoryDetailsCode,on:{click:function(n){n=t.$handleEvent(n),t.jump(e.advisoryDetailsCode)}}},[n("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.$getImg(e.coverPlanUrl),expression:"$getImg(item.coverPlanUrl)",arg:"background-image"}],staticClass:"pic"}),n("div",{staticClass:"text"},[n("div",{staticClass:"title"},[t._v(t._s(e.title))]),n("p",{staticClass:"codeName"},t._l(e.advisoryDetailsLabelsDtos,(function(e){return n("span",{key:e.advisoryLabelId},[t._v("#"+t._s(e.advisoryLabelName))])})),0),n("span",{staticClass:"time"},[t._v(t._s(t.dateFormat(e.createTime)))])]),n("div",{staticClass:"clear"})])})),0):t._e(),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(),n("scroll-top")],1)},i=[];n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i}))},"3af3":function(t,e,n){var a=n("dcd5");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("6a7434c0",a,!0,{sourceMap:!1,shadowMode:!1})},"44fa":function(t,e,n){"use strict";n.r(e);var a=n("35f3"),i=n("66b1");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("8aad");var s=n("2877"),o=Object(s["a"])(i["default"],a["a"],a["b"],!1,null,"7af30a4b",null);e["default"]=o.exports},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",a="hour",i="day",r="week",s="month",o="quarter",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|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,d=function(t,e,n){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(n)+t},f={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),a=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+d(a,2,"0")+":"+d(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(n,s),i=e-a<0,r=t.clone().add(n+(i?-1:1),s);return Number(-(n+(e-a)/(i?a-r:r-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:u,w:r,d:i,h:a,m:n,s:e,ms:t,Q:o}[c]||String(c||"").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",p={};p[v]=h;var g=function(t){return t instanceof b},m=function(t,e,n){var a;if(!t)return v;if("string"==typeof t)p[t]&&(a=t),e&&(p[t]=e,a=t);else{var i=t.name;p[i]=t,a=i}return n||(v=a),a},$=function(t,e,n){if(g(t))return t.clone();var a=e?"string"==typeof e?{format:e,pl:n}:e:{};return a.date=t,new b(a)},y=f;y.l=m,y.i=g,y.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var b=function(){function d(t){this.$L=this.$L||m(t.locale,null,!0),this.parse(t)}var f=d.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 a=e.match(c);if(a)return n?new Date(Date.UTC(a[1],a[2]-1,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)):new Date(a[1],a[2]-1,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[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=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return $(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<$(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",s)},f.day=function(t){return this.$g(t,"$W",i)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",a)},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,o){var c=this,l=!!y.u(o)||o,d=y.p(t),f=function(t,e){var n=y.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?n:n.endOf(i)},h=function(t,e){return y.w(c.toDate()[t].apply(c.toDate(),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},v=this.$W,p=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case u:return l?f(1,0):f(31,11);case s:return l?f(1,p):f(0,p+1);case r:var $=this.$locale().weekStart||0,b=(v<$?v+7:v)-$;return f(l?g-b:g+(6-b),p);case i:case"date":return h(m+"Hours",0);case a:return h(m+"Minutes",1);case n:return h(m+"Seconds",2);case e:return h(m+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(r,o){var c,l=y.p(r),d="set"+(this.$u?"UTC":""),f=(c={},c[i]=d+"Date",c.date=d+"Date",c[s]=d+"Month",c[u]=d+"FullYear",c[a]=d+"Hours",c[n]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[l],h=l===i?this.$D+(o-this.$W):o;if(l===s||l===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,o){var c,l=this;t=Number(t);var d=y.p(o),f=function(e){var n=$(l);return y.w(n.date(n.date()+Math.round(e*t)),l)};if(d===s)return this.set(s,this.$M+t);if(d===u)return this.set(u,this.$y+t);if(d===i)return f(1);if(d===r)return f(7);var h=(c={},c[n]=6e4,c[a]=36e5,c[e]=1e3,c)[d]||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",a=y.z(this),i=this.$locale(),r=this.$H,s=this.$m,o=this.$M,u=i.weekdays,c=i.months,d=function(t,a,i,r){return t&&(t[a]||t(e,n))||i[a].substr(0,r)},f=function(t){return y.s(r%12||12,t,"0")},h=i.meridiem||function(t,e,n){var a=t<12?"AM":"PM";return n?a.toLowerCase():a},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:y.s(o+1,2,"0"),MMM:d(i.monthsShort,o,c,3),MMMM:c[o]||c(this,n),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,u,2),ddd:d(i.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,s,!0),A:h(r,s,!1),m:String(s),mm:y.s(s,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:a};return n.replace(l,(function(t,e){return e||v[t]||a.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,c,l){var d,f=y.p(c),h=$(t),v=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,g=y.m(this,h);return g=(d={},d[u]=g/12,d[s]=g,d[o]=g/3,d[r]=(p-v)/6048e5,d[i]=(p-v)/864e5,d[a]=p/36e5,d[n]=p/6e4,d[e]=p/1e3,d)[f]||p,l?g:y.a(g)},f.daysInMonth=function(){return this.endOf(s).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone();return n.$L=m(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()},d}();return $.prototype=b.prototype,$.extend=function(t,e){return t(e,b,$),$},$.locale=m,$.isDayjs=g,$.unix=function(t){return $(1e3*t)},$.en=p[v],$.Ls=p,$}))},"66b1":function(t,e,n){"use strict";n.r(e);var a=n("dcfc"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},"8aad":function(t,e,n){"use strict";var a=n("3af3"),i=n.n(a);i.a},dcd5:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".travel[data-v-7af30a4b]{background:#fff}.tralvelInfo[data-v-7af30a4b]{width:%?688?%;margin:0 %?30?%}.tralvelInfo li[data-v-7af30a4b]{padding:%?20?% %?72?% %?20?% 0;font-size:%?30?%;border-bottom:1px #eaeaea solid;line-height:%?44?%;position:relative}.tralvelInfo li .rIcon[data-v-7af30a4b]{width:%?12?%;height:%?22?%;position:absolute;right:%?20?%;top:%?50?%}.tralvelInfo li .codeName[data-v-7af30a4b]{color:#ff740b;font-size:%?26?%;margin-top:%?10?%}.tralvelInfo li .time[data-v-7af30a4b]{color:#aaa;font-size:%?24?%}.end[data-v-7af30a4b]{text-align:center;font-size:%?28?%;padding-bottom:%?40?%}.codeName[data-v-7af30a4b]{color:#ff740b;font-size:%?26?%;margin-top:%?10?%;height:%?44?%;overflow:hidden}.codeName>span[data-v-7af30a4b]{font-size:%?26?%;margin-right:%?5?%;display:inline-block}.time[data-v-7af30a4b]{color:#aaa;font-size:%?24?%}.picList[data-v-7af30a4b]{overflow:hidden;padding-top:%?40?%}.picList li[data-v-7af30a4b]{width:%?600?%;height:%?240?%;margin:%?90?% %?30?%;line-height:%?44?%;box-shadow:0 %?20?% %?40?% 0 rgba(0,0,0,.1);border-radius:%?10?%;padding:%?14?% %?44?%;position:relative}.picList li .text[data-v-7af30a4b]{width:%?372?%;float:right}.picList li .text .title[data-v-7af30a4b]{color:#333;font-size:%?30?%;font-weight:700;height:%?135?%;line-height:%?42?%;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.picList li .clear[data-v-7af30a4b]{clear:both}.picList li .pic[data-v-7af30a4b]{width:%?218?%;height:%?283?%;position:absolute;bottom:%?20?%;background-size:auto %?283?%;background-repeat:no-repeat;background-position:50%;border-radius:%?10?%}.picList li:nth-child(2n-1) .pic[data-v-7af30a4b]{left:%?20?%}.picList li:nth-child(2n) .text[data-v-7af30a4b]{float:left}.picList li:nth-child(2n) .pic[data-v-7af30a4b]{right:%?20?%}",""])},dcfc:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("8e6e"),n("ac6a"),n("456d");var i=a(n("bd86")),r=a(n("5a0c")),s=a(n("09c2")),o=a(n("1427"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(n,!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={data:function(){return{page:{pageSize:10,currentPage:1,count:0,name:"",loading:!1},form:{title:""},end:!1,isImg:!0,tralvelList:[]}},components:{uniLoadMore:s.default,search:o.default},onLoad:function(){this.queryData(),this.$wxShare()},onPullDownRefresh:function(){this.tralvelList=[],this.page.currentPage=1,this.queryData("refresh")},onReachBottom:function(){this.tralvelList.length<this.page.count&&this.queryData()},methods:{nameInput:function(t){this.form.title=t.target.value||""},querySearchData:function(){this.page.currentPage=1,this.tralvelList=[],this.queryData()},queryData:function(t){var e=this;this.page.loading=!0,this.$ajax({method:"post",url:"/weChat/cms/advisory/queryModuleByStoreTenantId",data:{storeTenantId:this.$store.state.tenantId}}).then((function(n){8200==n.errCode?e.$ajax({method:"post",url:"/weChat/cms/advisory/queryAdvisoryDetailsPage",data:c({},e.page,{},e.form,{advisoryCode:n.advisoryCode||"12121"})}).then((function(n){e.page.loading=!1,e.page.count=n.count,e.tralvelList.push.apply(e.tralvelList,n.data),e.tralvelList.length>=e.page.count&&(e.end=!0),e.page.currentPage+=1,"refresh"===t&&uni.stopPullDownRefresh(),e.page.loading=!1})):(uni.showToast({title:n.message,icon:"none"}),e.page.loading=!1)}))},jump:function(t){uni.navigateTo({url:"/pages/tralvelInfo/detail?id="+t})},dateFormat:function(t){return(0,r.default)(t).format("YYYY/MM/DD")}}};e.default=l}}]);