1 line
6.5 KiB
JavaScript
1 line
6.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-registrate_list-index"],{"01b6":function(t,i,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("c223");var e=n(a("9b1b")),o=a("672a"),s=a("aa10"),c=a("e44d"),l=a("8f59"),r={data:function(){return{domain:s.HTTP_REQUEST_URL,loading:!1,listData:[],count:0,pageData:{page:1,limit:3}}},computed:(0,e.default)({},(0,l.mapGetters)(["isLogin","uid","viewColor"])),onLoad:function(){this.getListData()},methods:{getListData:function(){var t=this;this.loading=!0,uni.showLoading({title:"数据加载中"}),(0,o.getRechargeList)(this.pageData).then((function(i){t.count=i.data.count,t.listData=t.listData.concat(i.data.list),uni.hideLoading(),t.loading=!1}))},formatDate:function(t){var i=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return a=a<10?"0"+a:a,n=n<10?"0"+n:n,i+"-"+a+"-"+n},goDetail:function(t){this.isLogin?uni.navigateTo({url:"/pages/activity/registrate_activity/index?id=".concat(t.activity_id,"&spid=").concat(this.uid)}):(0,c.toLogin)()}},onReachBottom:function(){this.count==this.listData.length?uni.showToast({title:"没有更多啦",icon:"none",duration:1e3}):(this.pageData.page+=1,this.getListData())}};i.default=r},"2f2a":function(t,i,a){var n=a("d9b8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var e=a("967d").default;e("30163bc4",n,!0,{sourceMap:!1,shadowMode:!1})},"8c2e":function(t,i,a){"use strict";var n=a("2f2a"),e=a.n(n);e.a},be08:function(t,i,a){"use strict";a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return e})),a.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{style:t.viewColor},[t.listData.length?a("v-uni-view",{staticClass:"application-list"},t._l(t.listData,(function(i){return a("v-uni-view",{key:i.activity_id,staticClass:"card-list",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goDetail(i)}}},[a("v-uni-view",{staticClass:"card-top",style:"background-image: url("+i.pic+")"}),a("v-uni-view",{staticClass:"card-bottom"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(i.activity_name))]),a("v-uni-view",{staticClass:"bottom acea-row"},[a("v-uni-view",[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[t._v("已报名人数:")]),a("v-uni-view",{staticClass:"count"},[t._v(t._s(i.total)+"人")])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[t._v("报名截止时间:")]),a("v-uni-view",{staticClass:"count"},[t._v(t._s(t.formatDate(new Date(i.end_time))))])],1)],1),i.total==i.count&&0!=i.count?a("v-uni-view",{staticClass:"go-sign disabled"},[t._v("已报满")]):a("v-uni-view",{staticClass:"go-sign",class:{disabled:1!=i.time_status}},[t._v(t._s(-1==i.time_status?"已结束":0==i.time_status?"未开始":"去报名"))])],1)],1)],1)})),1):t._e(),t.listData.length||t.loading?t._e():a("v-uni-view",{staticClass:"no-shop"},[a("v-uni-view",{staticClass:"pictrue",staticStyle:{margin:"0 auto"}},[a("v-uni-image",{attrs:{src:t.domain+"/static/images/noCart.png"}}),a("v-uni-text",[t._v("暂无数据!")])],1)],1)],1)},e=[]},d9b8:function(t,i,a){var n=a("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.application-list[data-v-5fc61382]{background-color:#f5f5f5;padding:%?30?%}.application-list .card-list[data-v-5fc61382]{width:100%;background-color:#fff;margin-bottom:%?30?%;border-radius:%?16?%}.application-list .card-list .card-top[data-v-5fc61382]{background-size:100%;background-repeat:no-repeat;width:%?690?%;height:%?322?%;border-radius:%?16?% %?16?% 0 0}.application-list .card-list .card-bottom[data-v-5fc61382]{padding:%?30?%}.application-list .card-list .card-bottom .title[data-v-5fc61382]{font-size:%?30?%;color:#333;font-weight:700}.application-list .card-list .card-bottom .bottom[data-v-5fc61382]{margin-top:%?30?%;align-items:flex-end;justify-content:space-between}.application-list .card-list .card-bottom .bottom .item[data-v-5fc61382]{display:flex;align-items:center;color:#999}.application-list .card-list .card-bottom .bottom .item[data-v-5fc61382]:last-child{margin-top:%?20?%}.application-list .card-list .card-bottom .bottom .item[data-v-5fc61382]::before{content:"";width:%?6?%;height:%?6?%;background:#fa0;border-radius:100%;margin-right:%?10?%}.application-list .card-list .card-bottom .bottom .item .count[data-v-5fc61382]{color:#666}.application-list .card-list .card-bottom .bottom .item .count uni-text[data-v-5fc61382]{color:var(--view-theme);display:inline-block;margin-left:%?6?%}.application-list .card-list .card-bottom .bottom .go-sign[data-v-5fc61382]{font-size:%?26?%;color:#fff;width:%?140?%;height:%?56?%;display:flex;align-items:center;justify-content:center;border-radius:%?30?%;background:var(--view-theme)}.application-list .card-list .card-bottom .bottom .go-sign.disabled[data-v-5fc61382]{background:#bbb}.no-shop[data-v-5fc61382]{width:100%;background-color:#fff;height:100vh}.no-shop .pictrue[data-v-5fc61382]{display:flex;flex-direction:column;align-items:center;color:#999}.no-shop .pictrue uni-image[data-v-5fc61382]{width:%?414?%;height:%?380?%}',""]),t.exports=i},de8b:function(t,i,a){"use strict";a.r(i);var n=a("be08"),e=a("e8ea");for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(o);a("8c2e");var s=a("828b"),c=Object(s["a"])(e["default"],n["b"],n["c"],!1,null,"5fc61382",null,!1,n["a"],void 0);i["default"]=c.exports},e8ea:function(t,i,a){"use strict";a.r(i);var n=a("01b6"),e=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(o);i["default"]=e.a}}]); |