|
@@ -103,17 +103,12 @@ var render = function () {
|
|
|
var _vm = this
|
|
|
var _h = _vm.$createElement
|
|
|
var _c = _vm._self._c || _h
|
|
|
- var g0 = _vm.listData.length
|
|
|
- if (!_vm._isMounted) {
|
|
|
- _vm.e0 = function ($event) {
|
|
|
- _vm.showResult = true
|
|
|
- }
|
|
|
- }
|
|
|
+ var m0 = __webpack_require__(/*! ../parkActivity/image/dhIcon.png */ 482)
|
|
|
_vm.$mp.data = Object.assign(
|
|
|
{},
|
|
|
{
|
|
|
$root: {
|
|
|
- g0: g0,
|
|
|
+ m0: m0,
|
|
|
},
|
|
|
}
|
|
|
)
|
|
@@ -152,25 +147,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
-var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
|
|
-var _http = __webpack_require__(/*! @/js_sdk/http */ 63);
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
//
|
|
|
//
|
|
|
//
|
|
@@ -221,253 +201,33 @@ var _http = __webpack_require__(/*! @/js_sdk/http */ 63);
|
|
|
//
|
|
|
//
|
|
|
//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// import { editHomeCommunityActivity, listHomeCommunityActivity } from '@/service/api_community'
|
|
|
-// import Base from '@/pages/base/base'
|
|
|
-// import { alert } from 'vant'
|
|
|
-// import { getByCodes } from '@/service/api_data'
|
|
|
-// import auth from '@/service/auth'
|
|
|
var _default = {
|
|
|
data: function data() {
|
|
|
return {
|
|
|
- array: [['发布状态', '活动类型'], ['未发布', '已发布', '已下架']],
|
|
|
- index: [0, 0],
|
|
|
- dc_key: ['release_status', 'activity_type'],
|
|
|
- registrantChange: '',
|
|
|
- listData: [{
|
|
|
- annexUrl: 'https://www.idea-co-sf.com/gardenProduct/image/dynamic1.png',
|
|
|
- "id": "1209890856329281536",
|
|
|
- "communityId": "1121",
|
|
|
- "activityName": "指尖非遗",
|
|
|
- "activityType": "4",
|
|
|
- "registrationStartTime": 1708563600000,
|
|
|
- "registrationEndTime": 1708592400000,
|
|
|
- "activityStartTime": 1708666200000,
|
|
|
- "activityEndTime": 1708669800000,
|
|
|
- "collectorsNumbers": 0,
|
|
|
- "activityQuota": 30,
|
|
|
- "registrationNumbers": 0,
|
|
|
- "releaseTime": 1708502250000,
|
|
|
- "status": "4",
|
|
|
- "releaseStatus": "1",
|
|
|
- "activityPhone": "85412336",
|
|
|
- "createdBy": "35b400f1-16c8-11ec-8ca7-5254002861b9",
|
|
|
- "createdAt": 1708502059000,
|
|
|
- "updatedBy": "35b400f1-16c8-11ec-8ca7-5254002861b9",
|
|
|
- "updatedAt": 1715914023000,
|
|
|
- "signInNumber": 0,
|
|
|
- "isValid": null,
|
|
|
- "integral": null,
|
|
|
- "activityContent": "十八籽手串DIT",
|
|
|
- "activityAddress": "社区活动室",
|
|
|
- "registrationConditions": "辖区居民",
|
|
|
- "activitiesNotice": "朗诗社区",
|
|
|
- "annex": "[{\"msg\":\"Success\",\"code\":200,\"data\":\"1209890848901169152\",\"key\":200,\"name\":\"u=1729880951,1867799883&fm=253&fmt=auto&app=138&f=JPEG.webp\",\"size\":62340,\"url\":\"/server/FileController/download/1209890848901169152\",\"uid\":1708501690627,\"status\":\"success\"}]"
|
|
|
- }],
|
|
|
- columns: [],
|
|
|
- type: '',
|
|
|
- showResult: false,
|
|
|
- search: {
|
|
|
- // createdBy: auth.uid(),
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10
|
|
|
- },
|
|
|
- // 上拉加载
|
|
|
- pageSize: 30,
|
|
|
- pageIndex: 1,
|
|
|
- isDownLoading: false,
|
|
|
- isUpLoading: false,
|
|
|
- upFinished: false,
|
|
|
- offset: 100
|
|
|
+ active: 0,
|
|
|
+ activityList: [{
|
|
|
+ name: '互联网私募如何入门?',
|
|
|
+ typeName: '下架',
|
|
|
+ status: '报名中'
|
|
|
+ }, {
|
|
|
+ name: '公募基金中的大数据挖掘?',
|
|
|
+ typeName: '上架',
|
|
|
+ status: '报名结束'
|
|
|
+ }, {
|
|
|
+ name: '年度小艾杯篮球赛开始啦?',
|
|
|
+ typeName: '下架',
|
|
|
+ status: '活动结束'
|
|
|
+ }, {
|
|
|
+ name: '互联网私募如何入门??',
|
|
|
+ typeName: '下架',
|
|
|
+ status: '未开始'
|
|
|
+ }]
|
|
|
};
|
|
|
},
|
|
|
- // mixins: [Base],
|
|
|
- mounted: function mounted() {
|
|
|
- this.getDictData(this.dc_key);
|
|
|
- },
|
|
|
+ mounted: function mounted() {},
|
|
|
methods: {
|
|
|
- goNavigator: function goNavigator() {},
|
|
|
- bindMultiPickerColumnChange: function bindMultiPickerColumnChange(e) {
|
|
|
- console.log(e);
|
|
|
- this.index[e.detail.column] = e.detail.value;
|
|
|
- switch (e.detail.column) {
|
|
|
- case 0:
|
|
|
- //拖动第1列
|
|
|
- switch (this.index[0]) {
|
|
|
- case 0:
|
|
|
- this.array[1] = ['未发布', '已发布', '已下架'];
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- this.array[1] = ['党建活动', '亲子活动', '年节活动', '文艺活动'];
|
|
|
- break;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
- this.$forceUpdate();
|
|
|
- },
|
|
|
- bindPickerChange: function bindPickerChange(e) {
|
|
|
- // console.log(e.detail.value)
|
|
|
- // console.log(this.array[1][e.detail.value[1]])
|
|
|
- this.type = this.array[1][e.detail.value[1]];
|
|
|
- },
|
|
|
- getData: function getData() {
|
|
|
- var _this = this;
|
|
|
- _this.search.pageNum = _this.pageIndex;
|
|
|
- _this.search.pageSize = _this.pageSize;
|
|
|
- (0, _http.listHomeCommunityActivity)(_this.search).then(function (res) {
|
|
|
- var partList = res.data.rows || [];
|
|
|
- partList.forEach(function (item) {
|
|
|
- if (item.annex && item.annex.length > 2) {
|
|
|
- var annex = _this.$common.castEval(item.annex);
|
|
|
- _this.fileUrlList = annex;
|
|
|
- item.annexUrl = Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_API_URL + annex[0].url.substring(7, annex[0].url.length);
|
|
|
- }
|
|
|
- item.releaseTimeStr = _this.$common.transServDate(item.releaseTime);
|
|
|
- });
|
|
|
- if (partList == null || partList.length == 0) {
|
|
|
- _this.upFinished = true;
|
|
|
- return;
|
|
|
- }
|
|
|
- if (partList.length < _this.pageSize) {
|
|
|
- _this.upFinished = true;
|
|
|
- }
|
|
|
- if (partList.length == res.data.total) {
|
|
|
- _this.upFinished = true;
|
|
|
- }
|
|
|
- if (_this.pageIndex == 1) {
|
|
|
- _this.listData = partList;
|
|
|
- } else {
|
|
|
- _this.listData = [].concat((0, _toConsumableArray2.default)(_this.listData), (0, _toConsumableArray2.default)(partList));
|
|
|
- }
|
|
|
- }).catch(function (error) {}).finally(function () {
|
|
|
- _this.isDownLoading = false;
|
|
|
- _this.isUpLoading = false;
|
|
|
- });
|
|
|
- },
|
|
|
- titleChange: function titleChange() {
|
|
|
- var _this = this;
|
|
|
- _this.listData = [];
|
|
|
- _this.pageIndex = 1;
|
|
|
- _this.isDownLoading = false;
|
|
|
- _this.isUpLoading = false;
|
|
|
- _this.upFinished = false;
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- videoDetails: function videoDetails(val, edit) {
|
|
|
- this.$router.push({
|
|
|
- path: '/admin/activities/add',
|
|
|
- query: {
|
|
|
- id: val.id
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- handleRecruitment: function handleRecruitment(id, status) {
|
|
|
- var _this2 = this;
|
|
|
- var pos = {
|
|
|
- id: id,
|
|
|
- releaseStatus: status
|
|
|
- };
|
|
|
- (0, _http.editHomeCommunityActivity)(pos).then(function (res) {
|
|
|
- _this2.listData = [];
|
|
|
- _this2.getData();
|
|
|
- if (status == '1') {
|
|
|
- alert('发布成功');
|
|
|
- } else {
|
|
|
- alert('下架成功');
|
|
|
- }
|
|
|
- }).catch(function () {
|
|
|
- if (status == '1') {
|
|
|
- alert('发布失败');
|
|
|
- } else {
|
|
|
- alert('下架失败');
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- // 上拉加载
|
|
|
- onDownRefresh: function onDownRefresh() {
|
|
|
- var _this = this;
|
|
|
- _this.pageIndex = 1;
|
|
|
- _this.listData = [];
|
|
|
- _this.upFinished = false;
|
|
|
- _this.getData();
|
|
|
- },
|
|
|
- onLoadList: function onLoadList() {
|
|
|
- var _this = this;
|
|
|
- _this.pageIndex++;
|
|
|
- _this.isUpLoading = true;
|
|
|
- _this.getData();
|
|
|
- },
|
|
|
- getDictData: function getDictData(codes) {
|
|
|
- var _this = this;
|
|
|
- var postData = {
|
|
|
- codes: JSON.stringify(codes)
|
|
|
- };
|
|
|
- // getByCodes(postData).then((res) => {
|
|
|
- // if (res.data) {
|
|
|
- // _this.dc_key.forEach(key => {
|
|
|
- // const dictValue = _this.getDictValue(res.data, key, false)
|
|
|
- // _this.dc_data[key] = dictValue
|
|
|
- // _this.dc_map[key] = _this.$common.transDcMap(dictValue)
|
|
|
- // })
|
|
|
- // const dat = {
|
|
|
- // id: 1,
|
|
|
- // text: '发布状态',
|
|
|
- // children: _this.dc_data.release_status
|
|
|
- // }
|
|
|
- // const dat2 = {
|
|
|
- // id: 2,
|
|
|
- // text: '活动类型',
|
|
|
- // children: _this.dc_data.activity_type
|
|
|
- // }
|
|
|
- // _this.columns = [dat, dat2]
|
|
|
- // _this.getData()
|
|
|
- // }
|
|
|
- // })
|
|
|
- },
|
|
|
-
|
|
|
- // onConfirm: function(val) {
|
|
|
- // this.type = val.text
|
|
|
- // if (val.text == '待核实') {
|
|
|
- // this.seachFrom.status = 1
|
|
|
- // } else {
|
|
|
- // this.seachFrom.status = 0
|
|
|
- // }
|
|
|
- // this.onDownRefresh()
|
|
|
- // this.showResult = false
|
|
|
- // },
|
|
|
- onConfirm: function onConfirm(name, value) {
|
|
|
- var _this3 = this;
|
|
|
- this.listData = [];
|
|
|
- if (value[0] == 0) {
|
|
|
- this.dc_data.release_status.forEach(function (item) {
|
|
|
- if (item.text === name[1]) {
|
|
|
- _this3.search.releaseStatus = item.value;
|
|
|
- }
|
|
|
- });
|
|
|
- this.search.activityType = '';
|
|
|
- } else if (value[0] == 1) {
|
|
|
- this.dc_data.activity_type.forEach(function (item) {
|
|
|
- if (item.text === name[1]) {
|
|
|
- _this3.search.activityType = item.value;
|
|
|
- }
|
|
|
- });
|
|
|
- this.search.releaseStatus = '';
|
|
|
- }
|
|
|
- this.type = name[1];
|
|
|
- this.showResult = false;
|
|
|
- this.getData();
|
|
|
- }
|
|
|
+ newRelease: function newRelease() {},
|
|
|
+ onChange: function onChange() {}
|
|
|
}
|
|
|
};
|
|
|
exports.default = _default;
|
|
@@ -503,5 +263,5 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
-},[[160,"common/runtime","common/vendor"]]]);
|
|
|
+},[[160,"common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);
|
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/subPackages/activityPromulgate/list.js.map
|