chunk-84db831a.b03bf962.js 10 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-84db831a"],{"09c9":function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAfBJREFUWEfFl79OG0EQh39jdLbiPICLXLNjP0eEAgFFgQ5oKKlCOlwh6EBpkkiR0kTp0tBQkIIngIaKBgosefcO7EOyBBJSKsvybXSSba0iE98f+3bbu9vv272Z2VmC5UGW+ZiJgOu6r6KFtdvtYNICpy7AzNsAvgEgItqQUp78T2KqAkKIOhF9juAD6A+l1IdcBIQQe0R0aMCeALxWSl3NXEAIcUhEewbooVAoLDebzcuZx0C1Wv2ita4boA4RLUopryfBo+dZYoCY+TuAjwYoCMNw0ff9mzjwLAIFZv4JYMsA3fZ6vYVWqyXjwtMKzDHzLwCbBkhqrRc8z7tNAk8j4DDzEYA1A3QzWPl9UngigVqtVgrD8BjAqgG60lq/9TyvkwYeW8B13RelUulEa71sgC673e5SEASPaeGxBCqVystyuXxKRPNDEBFd9Pv9d77vR8Um05iYhsz8CcCuQTl3HOd9o9H4k4k8+DiNwJnjOCu5CVj/BdFORUFYLBZ/A1jKPQiHQKtpaKzaXiEyJMaWYgBvlFJ3STNjYhY8M6HVw2hUj8Ydx4NDqRF3J9LuwGh+Zv4KYMcA5taQjJhWW7KhhRBin4gOjJ3Iryk1JOy15UOJfy4m61LKqII+OzIH4biZrV7N4qbfKJeTfjDt9/8CMgzTISg9gbIAAAAASUVORK5CYII="},"1c4e":function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABKtJREFUWEe1l2toXEUUx//n7s2SgEoTaUliq2CNWvWL4qOIaUOIWCrSL0YpWMjj3rO71kVFEaHoulZaFRQlNcmdiZtAFGrXfKkShGITiWALShFaK0F8lmysSGJ95LV7RybMhk2yyWbzmA/LcufM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x8QkR7jaKXhRCH1wJh2jKd91sBXJmZmbmzu7t7Xqs+ryfUATk5OXmGiHYYwx+l02k3kUjox0fRIxaL2alUSgf4tQD+CQQCezs6OnRbPzcWdcXNzc2bbdvuI6JaI3UZgPaElw2cYkgikUhtJpPpB3BVPoi874LGxsZgeXm57o7dbKYA0CB9AAZ839cPk98zmYxfVlZW4fv+dqWUfphsmp6ejvf09IznQi4HsezTLBwO1/u+r6vX3UXsOiyE8BbKLwWxLEBWieu6uwEcIKKHTEDl49EP0qF0Os2JRGIkn0A+iBUB5CpzHGerZVk1Sil9gwYsy9K3aaqysvL7ldSOBRCjRQMUcRRLihqIE0qpL/8HYgn6m2EcRNAAAAAASUVORK5CYII="},"42f8":function(t,a,e){t.exports=e.p+"img/icon-53.0c489d3f.png"},"45b0":function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAALCAIAAAD0nuopAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0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ABpWeKbD1ENwwAAAABJRU5ErkJggg=="},7280:function(t,a,e){"use strict";e.r(a);e("28a5");var s=function(){var t=this,a=t._self._c;return a("div",{staticClass:"wrap",class:{"wrap-no-sort":0===t.tabIndex}},[a("div",{staticClass:"header-wrap",class:{"header-wrap-no-sort":0===t.tabIndex}},[a("div",{staticClass:"search-box"},[a("div",{staticClass:"back",on:{click:function(a){return t.$router.back()}}},[a("img",{attrs:{src:e("09c9")}})]),a("div",{staticClass:"search-bar",on:{click:function(a){return t.$router.push("/search?type=6")}}},[a("img",{staticClass:"search-icon",attrs:{src:e("1c4e")}}),a("input",{staticClass:"search-input",attrs:{type:"search",value:"",placeholder:"请输入搜索关键字",disabled:""}})])]),a("ul",{staticClass:"tab-list"},[a("li",{class:{active:0===t.tabIndex},on:{click:function(a){return t.checkTab(0)}}},[t._v("推荐")]),a("li",{class:{active:1===t.tabIndex},on:{click:function(a){return t.checkTab(1)}}},[t._v("全部")])]),1===t.tabIndex?a("ul",{staticClass:"sub-tab-list"},[a("li",{class:{active:1===t.params.sort_type},on:{click:function(a){return t.checkSortTab(1)}}},[t._v("默认排序")]),a("li",{class:{active:2===t.params.sort_type||3===t.params.sort_type},on:{click:function(a){return t.checkSortTab(3===t.params.sort_type?2:3)}}},[t._v("\n\t\t\t\t时间\n\t\t\t\t"),a("img",{staticClass:"tab-icon",style:{transform:"rotate(".concat(3===t.params.sort_type||1===t.params.sort_type?0:180,"deg)")},attrs:{src:e("45b0")}})])]):t._e()]),a("div",{ref:"wrap",staticClass:"box",class:{"box-no-sort":0===t.tabIndex}},[a("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshLoading,callback:function(a){t.refreshLoading=a},expression:"refreshLoading"}},[a("van-list",{staticStyle:{width:"100%"},attrs:{finished:t.finished,"immediate-check":!1,"finished-text":t.list.length>0?"没有更多了":""},on:{load:t.getList},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},[a("ul",{staticClass:"list"},[t._l(t.list,(function(e,s){return a("li",{key:s,on:{click:function(a){return t.$router.push("/activity-sign-up?activity_id=".concat(e.id))}}},[a("img",{staticClass:"img",attrs:{src:(e.cover||"").split("|")[0]}}),a("div",{staticClass:"item-sidebar"},[a("p",{staticClass:"item-name"},[t._v(t._s(e.title))]),a("p",{staticClass:"item-msg"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.address)+"\n\t\t\t\t\t\t\t\t·\n\t\t\t\t\t\t\t\t"+t._s((e.start_time||"").split(" ")[0])+"\n\t\t\t\t\t\t\t\t-\n\t\t\t\t\t\t\t\t"+t._s((e.end_time||"").split(" ")[0])+"\n\t\t\t\t\t\t\t")]),a("ul",{staticClass:"tag-list"},t._l(e.label_name||(e.label||"").split(","),(function(e,s){return a("li",{key:s},[t._v(t._s(e))])})),0),a("div",{staticClass:"item-between"},[a("span",{staticClass:"price"},[t._v("¥"+t._s(e.price)+"起")]),2===e.status?a("button",{staticClass:"btn",attrs:{type:"button"}},[t._v("已取消")]):1===e.is_apply?a("button",{staticClass:"btn",attrs:{type:"button"}},[t._v("已报名")]):2===e.isEnd?a("button",{staticClass:"btn",attrs:{type:"button"}},[t._v("进行中")]):3===e.isEnd?a("button",{staticClass:"btn",attrs:{type:"button"}},[t._v("已结束")]):a("button",{staticClass:"btn",attrs:{type:"button"}},[t._v("查看详情")])])])])})),0===t.list.length?a("div",{staticClass:"normal-box-small"},[a("img",{attrs:{src:e("e18b")}}),t._v("\n\t\t\t\t\t\t暂无数据\n\t\t\t\t\t")]):t._e()],2)])],1)],1),a("div",{staticClass:"float-box",on:{click:function(a){return t.$router.push("/contact?key=activity")}}},[a("img",{attrs:{src:e("42f8")}})])])},i=[],n=(e("57e7"),e("ac6a"),e("6762"),e("2fdb"),e("2909")),c=(e("6d67"),e("a481"),e("f523")),o={components:{},data:function(){return{status:0,tabIndex:0,params:{title:"",page:1,page_num:10,sort_type:1},list:[],loading:!1,finished:!1,refreshLoading:!1,scroll:0}},mounted:function(){var t=this.$route.query;this.tabIndex=parseInt(t.tabIndex||0),this.getList()},methods:{checkTab:function(t){this.tabIndex!==t&&(0===t?this.toRecommend():1===t&&this.$router.push("/activity?tabIndex=1"))},toRecommend:function(){window.history&&(window.history.length<=1||null===window.history.state)?this.$router.replace("/activity?tabIndex=0"):this.$router.back()},checkSortTab:function(t){this.loading||(this.params.page=1,this.finished=!1,this.params.sort_type=t,this.getList())},onRefresh:function(){this.params.page=1,this.finished=!1,this.getList()},getList:function(){var t=this;this.loading=!0;var a={0:c["a"].getRecommendList,1:c["a"].getActivityList};a[this.tabIndex](this.params).then((function(a){var e=a.data,s=e.list.map((function(a){0===t.tabIndex&&(a["status"]=1);var e=1,s=(new Date).getTime(),i=new Date(a.start_time.replace(/-/g,"/")).getTime(),n=new Date(a.end_time.replace(/-/g,"/")).getTime();return s<i?e=1:s>=i&&s<n?e=2:s>=n&&(e=3),a["isEnd"]=e,a}));t.list=1===t.params.page?s:[].concat(Object(n["a"])(t.list),Object(n["a"])(s)),s.length<t.params.page_num?t.finished=!0:t.params.page++})).finally((function(){t.loading=!1,t.refreshLoading=!1})).catch((function(){return t.finished=!0}))},beforeRouteLeaveFn:function(t,a,e){if(this.scroll=this.$refs["wrap"].scrollTop,a.meta.toPagesKeep.includes(t.path))a.meta.keepAlive=!0;else{var s=this.$vnode,i=s&&s.parent;if(i&&i.componentInstance&&i.componentInstance.cache){var n=null==s.key?node.componentOptions.Ctor.cid+(s.componentOptions.tag?"::".concat(s.componentOptions.tag):""):s.key,c=i.componentInstance.cache,o=i.componentInstance.keys;if(c[n]){if(this.$destroy(),o.length){var r=o.indexOf(n);r>-1&&o.splice(r,1)}c[n]=null}}}e()}},activated:function(){var t=this;console.log(this.scroll),this.$nextTick((function(){t.$refs["wrap"].scrollTop=t.scroll}))},beforeRouteUpdate:function(t,a,e){this.beforeRouteLeaveFn(t,a,e)},beforeRouteLeave:function(t,a,e){this.beforeRouteLeaveFn(t,a,e)}},r=o,l=(e("b56c"),e("2877")),A=Object(l["a"])(r,s,i,!1,null,"013cb76d",null);a["default"]=A.exports},ad64:function(t,a,e){},b56c:function(t,a,e){"use strict";e("ad64")},e18b:function(t,a,e){t.exports=e.p+"img/normal.bfd5e89f.png"}}]);
  2. //# sourceMappingURL=chunk-84db831a.b03bf962.js.map