UNPKG

vaneditor

Version:

``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```

1 lines 12.5 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-hotActivity-list"],{"0032":function(t,i,a){var e=a("fa7d");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("6aaa1ecd",e,!0,{sourceMap:!1,shadowMode:!1})},"06ac":function(t,i,a){"use strict";var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"uni-load-more"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[a("v-uni-view",{staticClass:"load1"},[a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load2"},[a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load3"},[a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}}),a("v-uni-view",{style:{background:t.color}})],1)],1),a("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)},n=[];a.d(i,"a",(function(){return e})),a.d(i,"b",(function(){return n}))},"09c2":function(t,i,a){"use strict";a.r(i);var e=a("06ac"),n=a("ba86");for(var o in n)"default"!==o&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("264f");var s=a("2877"),r=Object(s["a"])(n["default"],e["a"],e["b"],!1,null,"053f1968",null);i["default"]=r.exports},"264f":function(t,i,a){"use strict";var e=a("98b5"),n=a.n(e);n.a},"414b":function(t,i,a){"use strict";var e=a("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("8e6e"),a("ac6a"),a("456d");var n=e(a("bd86")),o=e(a("09c2"));function s(t,i){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),a.push.apply(a,e)}return a}function r(t){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?s(a,!0).forEach((function(i){(0,n.default)(t,i,a[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(a).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(a,i))}))}return t}var d={data:function(){return{hotActivityList:[],page:{pageSize:10,currentPage:1,count:0,loading:!1,finished:!1},titList:[{title:"进行中",code:"1"},{title:"即将开始",code:"0"},{title:"已结束",code:"2"}],activeLine:"1",state:"1"}},components:{uniLoadMore:o.default},onLoad:function(){this.queryData()},onPullDownRefresh:function(){this.hotActivityList=[],this.page.currentPage=1,this.queryData("refresh")},onReachBottom:function(){this.hotActivityList.length<this.page.count&&this.queryData()},methods:{active:function(t){this.state=t.code,this.hotActivityList=[],this.page.currentPage=1,this.queryData("",t.code),this.activeLine=t.code},handleClick:function(t){uni.navigateTo({url:"/pages/hotActivity/detail?id=".concat(t.id)})},queryData:function(t){var i=this;this.page.loading=!0,this.$ajax({method:"post",url:"/weChat/cms/activity/queryPage",data:r({},this.page,{state:this.state})}).then((function(a){i.hotActivityList.push.apply(i.hotActivityList,a.data),i.page.count=a.count,i.page.loading=!1,i.hotActivityList.length>=i.page.count&&(i.page.finished=!0),i.page.currentPage+=1,"refresh"===t&&uni.stopPullDownRefresh()}))}}};i.default=d},4247:function(t,i,a){"use strict";var e=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"hotActivityList"},[e("v-uni-view",{staticClass:"tabs"},[t._l(t.titList,(function(i,a){return e("v-uni-view",{key:a,class:["tab",{active:t.state===i.code},{disbale:t.page.loading}],on:{click:function(a){a=t.$handleEvent(a),t.active(i)}}},[t._v(t._s(i.title))])})),e("v-uni-view",{staticClass:"line",attrs:{"data-type":t.activeLine}})],2),e("ul",{staticClass:"listInfo"},t._l(t.hotActivityList,(function(i,n){return e("li",{key:n,staticClass:"main",on:{click:function(a){a=t.$handleEvent(a),t.handleClick(i)}}},[e("v-uni-view",{staticClass:"img",style:{"background-image":"url("+t.$getImg(i.coverImages)+")"}},[e("v-uni-view",{staticClass:"local"},[e("v-uni-image",{attrs:{src:a("e3f8")}}),e("span",[t._v(t._s(i.place))])],1)],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"introduction"},[t._v(t._s(i.name))]),e("v-uni-view",{staticClass:"time"},[t._v("活动时间 : "+t._s(i.queryStartTime)+"至"+t._s(i.queryEndTime))])],1)],1)})),0),t.page.finished&&!t.page.loading?e("p",{staticClass:"end"},[t._v("没有更多")]):t._e(),t.page.loading?e("uni-load-more",{attrs:{status:"loading"}}):t._e(),e("scroll-top")],1)},n=[];a.d(i,"a",(function(){return e})),a.d(i,"b",(function(){return n}))},"4cc9":function(t,i,a){"use strict";var e=a("0032"),n=a.n(e);n.a},"98b5":function(t,i,a){var e=a("fc3a");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("447f2a62",e,!0,{sourceMap:!1,shadowMode:!1})},b90c:function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={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{}}};i.default=e},ba86:function(t,i,a){"use strict";a.r(i);var e=a("b90c"),n=a.n(e);for(var o in e)"default"!==o&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},d2bb:function(t,i,a){"use strict";a.r(i);var e=a("414b"),n=a.n(e);for(var o in e)"default"!==o&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},e3f8:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAbCAYAAAEL2J9OAAAAAXNSR0IArs4c6QAAAfdJREFUSA2VVLFKA0EQTQKJjY2WKdRCsbHQwk4kigh2QYJY5AP8AsHOdBbmB6wUVGz0G/IBYqVgFLUIpBIFFSMinu/t7VzmNreXODCZt++9mb3dXJLJIIIgaLIS3NkaZAWwmoB6I5jWY34EZLICxDfU2w0pB9shLVkEyhyxCQijnMEQjtM3kO/IPMn4LqGtbJ4BjhrXqCYEdFyyIQ7WcIJqA3cVkdLqEjyEL/aMGeqm49jBeh75oXk+5asilvRWig94cN7AtzYk4OuI090OXo1MAmDY1ibhvRXmsTQxD8MJkt9cE1npMYPcR/oiZxqgVnwO4cUoa1ZeMi+bl66jIq+FIfUzgagp5224v3Z0caMLM8XYREyYFRH4S0085Vf4BHFCDJ6a40TzoqtuFx5FzVC2XNWufyOTAAitBHNB9Fh1jNWYqBcwDlvzpeYTMYzFRMElYVxHPtjJaeUeYtntj9YQ62ndfbTwF81pMBaQj30aBpH5xHkOPPO4P8HPREewgBySWlKYf+PY/4tyldxhsoanpHwavvFXwHc2KVaSSMv5tBaPvKa3cHAH613kgk1icr4IN4Ja9Tn+wS/HToTGKaTvstPmtiGOxIbpBcSLtG5Hq+teL0bTIvLHadZLvhnT3gE+AU3neorFBz7/QDyGTCJfkM/I8X5Nf/GVuNEJgQh1AAAAAElFTkSuQmCC"},ed65:function(t,i,a){"use strict";a.r(i);var e=a("4247"),n=a("d2bb");for(var o in n)"default"!==o&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("4cc9");var s=a("2877"),r=Object(s["a"])(n["default"],e["a"],e["b"],!1,null,"6e2ae105",null);i["default"]=r.exports},fa7d:function(t,i,a){i=t.exports=a("2350")(!1),i.push([t.i,'.hotActivityList .tabs[data-v-6e2ae105]{background:#fff;position:relative;width:%?750?%;margin:0 auto %?3?%;border-bottom:%?1?% solid #eaeaea}.hotActivityList .tabs .tab[data-v-6e2ae105]{font-size:%?30?%;display:inline-block;width:33.33333333%;text-align:center;line-height:%?86?%;color:#333;transition:all .3s}.hotActivityList .tabs .active[data-v-6e2ae105]{color:#ff740b}.hotActivityList .tabs .disbale[data-v-6e2ae105]{pointer-events:none}.hotActivityList .tabs .line[data-v-6e2ae105]{height:%?6?%;width:13.33333333%;box-sizing:border-box;background-color:#ff740b;position:absolute;left:%?0?%;bottom:%?0?%;z-index:1;transition:all .3s}.hotActivityList .tabs .line[data-type="1"][data-v-6e2ae105]{left:10%}.hotActivityList .tabs .line[data-type="0"][data-v-6e2ae105]{left:43%}.hotActivityList .tabs .line[data-type="2"][data-v-6e2ae105]{left:76.5%}.hotActivityList .listInfo[data-v-6e2ae105]{background:#fff;padding:%?31?% %?30?% %?10?%}.hotActivityList .listInfo .main[data-v-6e2ae105]{margin-bottom:%?31?%;border-radius:%?6?%;box-shadow:0 %?-2?% %?40?% %?4?% #eee}.hotActivityList .listInfo .main .img[data-v-6e2ae105]{border-radius:%?6?% %?6?% 0 0;width:%?690?%;height:%?388?%;overflow:hidden;background-repeat:no-repeat!important;background-size:cover!important;background-position:50%!important;position:relative}.hotActivityList .listInfo .main .img .local[data-v-6e2ae105]{position:absolute;width:100%;height:%?80?%;line-height:%?80?%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.5));bottom:0;color:#fff;font-size:%?26?%}.hotActivityList .listInfo .main .img .local uni-image[data-v-6e2ae105]{float:left;margin:0 %?16?% 0 %?26?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:%?20?%;height:%?27?%}.hotActivityList .listInfo .main .img .local span[data-v-6e2ae105]{float:left}.hotActivityList .listInfo .main .content[data-v-6e2ae105]{height:%?149?%;padding:%?30?% %?30?% %?40?%;box-sizing:border-box}.hotActivityList .listInfo .main .content .introduction[data-v-6e2ae105]{line-height:%?36?%;font-size:%?34?%;margin-bottom:%?15?%;color:#333;font-weight:700}.hotActivityList .listInfo .main .content .time[data-v-6e2ae105]{color:#888;font-size:%?28?%}.hotActivityList .listInfo .main[data-v-6e2ae105]:last-child{border-bottom:0}.end[data-v-6e2ae105]{text-align:center;font-size:%?28?%;padding:%?20?% 0 %?40?%;background:#fff}',""])},fc3a:function(t,i,a){i=t.exports=a("2350")(!1),i.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}}",""])}}]);