You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
13 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/activity/index.vue?0774","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/activity/index.vue?37a3","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/activity/index.vue?025a","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/activity/index.vue?a89a","uni-app:///pages/activity/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/activity/index.vue?c33e","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/activity/index.vue?c573"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,gG;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0Cv1B,oF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFA;AACA,mB,eAGA,EACA,IADA,kBACA,CACA,SACA,SADA,EAEA,gBAFA,GAIA,CANA,EAQA,cARA,EASA,SATA,EAWA;;mIAGA,mCAdA,EAgBA;;2KAGA,8BAnBA,EAqBA;;8MAGA,2BACA,uBACA,CA1BA,EA4BA;;sQAGA,4BA/BA,EAiCA;;uSAGA,gCApCA,EAsCA;;4UAGA,kDAzCA,EA2CA;;mYAGA,0CA9CA,EAgDA;;kbAGA,kDAnDA,EAoDA,WACA,eADA,6BACA,kBACA;AACA,2BADA;AAEA,UAFA,CAEA;AACA;AACA;AACA;AACA;AACA,WAHA;AAIA;AACA,+CADA;;AAGA,SARA,MAQA;AACA;AACA,+BADA;AAEA,wBAFA;;AAIA;AACA,OAjBA;AAkBA,KApBA;;AAsBA,YAtBA,oBAsBA,CAtBA,EAsBA;AACA;AACA;AACA,sCADA;;AAGA,KA3BA;;AA6BA,YA7BA,oBA6BA,CA7BA,EA6BA;AACA;AACA;AACA,iBADA;;AAGA;AACA,KAnCA,EApDA,E;;;;;;;;;;;;;AC5CA;AAAA;AAAA;AAAA;AAAgrC,CAAgB,gmCAAG,EAAC,C;;;;;;;;;;;ACApsC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/activity/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/activity/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=6362e18b&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/activity/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=6362e18b&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n<!--pages/activity/index.wxml-->\n<view class=\"activity-page\">\n <view class=\"tab-box\">\n <view class=\"tab-box acea-row row-around\" style=\"position:fixed;\">\n <view :class=\"'tab-item ' + (active == 0 ? 'tab-item-active' : '')\" data-i=\"0\" @tap=\"tabClick\">报名中</view>\n <view :class=\"'tab-item ' + (active == 10 ? 'tab-item-active' : '')\" data-i=\"10\" @tap=\"tabClick\">已完成</view>\n </view>\n </view>\n <view class=\"activity-list-box\">\n <view v-for=\"(item, index) in activityList\" :key=\"index\" class=\"activity-item acea-row row-between\" @tap=\"toDetail\" :data-id=\"item.id\"> \n <view class=\"activity-img\">\n <view class=\"img-box\">\n <!-- <image src=\"{{item.images}}\" mode=\"widthFix\"></image> -->\n <image :src=\"item.images\" mode=\"widthFix\"></image>\n </view>\n </view>\n <view class=\"activity-info-box\">\n <view class=\"activity-info-title acea-row\">\n <view class=\"line2\"><text class=\"sm-card\">{{item.cateName}}</text>{{item.name}}</view>\n </view>\n <view class=\"activity-info-time acea-row row-middle\">\n <text>{{item.activityStartTime}}</text>\n <text class=\"address line1\">{{item.address}}</text>\n </view>\n <view class=\"signUp-box acea-row row-between\">\n <text>已报名人数:{{item.users.length}}</text>\n <view class=\"status-box\" v-if=\"item.status == 0\">筹备中</view>\n <view class=\"status-box\" v-if=\"item.status == 1\">报名中</view>\n <view class=\"status-box\" v-if=\"item.status == 2\">待举办</view>\n <view class=\"status-box\" v-if=\"item.status == 3\">已结束</view>\n </view>\n </view>\n </view>\n </view>\n <view class=\"under-line\">—已显示全部活动—</view>\n</view>\n</template>\n\n<script>\n// pages/activity/index.js\nconst app = getApp();\nimport util from '../../utils/util';\n\nexport default {\n data() {\n return {\n active: 0,\n activityList: []\n };\n },\n\n components: {},\n props: {},\n\n /**\n * 生命周期函数--监听页面加载\n */\n onLoad: function (options) {},\n\n /**\n * 生命周期函数--监听页面初次渲染完成\n */\n onReady: function () {},\n\n /**\n * 生命周期函数--监听页面显示\n */\n onShow: function () {\n this.getActivityList();\n },\n\n /**\n * 生命周期函数--监听页面隐藏\n */\n onHide: function () {},\n\n /**\n * 生命周期函数--监听页面卸载\n */\n onUnload: function () {},\n\n /**\n * 页面相关事件处理函数--监听用户下拉动作\n */\n onPullDownRefresh: function () {},\n\n /**\n * 页面上拉触底事件的处理函数\n */\n onReachBottom: function () {},\n\n /**\n * 用户点击右上角分享\n */\n onShareAppMessage: function () {},\n methods: {\n getActivityList() {\n app.http('POST', 'activity/activityList', {\n status: this.active\n }).then(res => {\n if (res.data.success) {\n res.data.data.content.forEach(item => {\n item.activityStartTime = util.getWeek(item.activityStartTime);\n item.activityEndTime = util.getWeek(item.activityEndTime);\n });\n this.setData({\n activityList: res.data.data.content\n });\n } else {\n uni.showToast({\n title: res.data.msg,\n icon: 'none'\n });\n }\n });\n },\n\n toDetail(e) {\n let id = e.currentTarget.dataset.id;\n uni.navigateTo({\n url: './detail/index?id=' + id\n });\n },\n\n tabClick(e) {\n var i = Number(e.currentTarget.dataset.i);\n this.setData({\n active: i\n });\n this.getActivityList();\n }\n\n }\n};\n</script>\n<style>\n/* pages/activity/index.wxss */\npage{\n height: 100%;\n}\n.activity-page{\n background: #f2f2f2;\n min-height: 100%;\n padding-top: 150rpx;\n}\n.tab-box{\n width: 100%; \n height: 82rpx;\n background: #fff;\n margin-bottom: 50rpx;\n}\n.tab-item{\n height: 100%;\n line-height: 82rpx;\n font-size: 34rpx;\n color: #A5A5A5;\n padding-bottom: 12rpx;\n box-sizing: border-box;\n font-weight: 600;\n position: relative;\n}\n.tab-item::after{\n display: block;\n content: '';\n width: 100%;\n height: 6rpx;\n background: #EBB672;\n position: absolute;\n bottom: 0;\n left: 0;\n opacity: 0;\n transform:scaleX(0);\n transition: all .2s ease,opacity .15s ease;\n}\n.tab-item-active{\n color: #333;\n}\n.tab-item-active::after{\n opacity: 1;\n transform: scaleX(1);\n}\n\n.activity-item{\n margin-bottom: 24rpx;\n background: #fff;\n padding: 16rpx 32rpx;\n}\n.address{\n width:70%; \n display:inline-block;\n margin-left:10rpx;\n}\n\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513134775\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}