diff --git a/public/index.html b/public/index.html index 6de0ffff..127b1763 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,8 @@ + + diff --git a/src/views/modules/heart/actbanner.vue b/src/views/modules/heart/actbanner.vue new file mode 100644 index 00000000..b566fdda --- /dev/null +++ b/src/views/modules/heart/actbanner.vue @@ -0,0 +1,131 @@ + + + diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue index ab7d4371..13fc76e4 100644 --- a/src/views/modules/heart/actinfo-add-or-update.vue +++ b/src/views/modules/heart/actinfo-add-or-update.vue @@ -1,139 +1,299 @@ + +
+ + + + + + +
只能上传jpg/png文件,且不超过500kb
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ 默认活动开始(不可编辑时间)至活动结束一小时后,可修改时间范围,必须早于开始时间,晚于结束时间 +
+
+
+
+ + + +   + 地图选择 + + + + + +   + 地图选择 +
+ 打卡地点,默认活动地点,可以修改打卡地点(如集合地点,集体出发等) +
+
+
+ + +
+ +  米以内 +
+
+ 默认已打卡地点200米以内,可修改范围,在范围内打卡签到有效 +
+
+
+ + + + + + + + + + + + + + + + + +  积分 + + + + + +  积分 + + + + +
+ +
+ + + {{ $t('upload.button') }} + +
+
+
+ + + + + + + + + + +
只能上传jpg/png文件,且不超过500kb
+
+
+
+ + + {{$t("confirm")}} + {{ $t('cancel') }} + + +
+ +
+
+ + + + + \ No newline at end of file diff --git a/src/views/modules/heart/actinfo-cancel.vue b/src/views/modules/heart/actinfo-cancel.vue new file mode 100644 index 00000000..b543f191 --- /dev/null +++ b/src/views/modules/heart/actinfo-cancel.vue @@ -0,0 +1,82 @@ + + + diff --git a/src/views/modules/heart/actinfo-detail-view.vue b/src/views/modules/heart/actinfo-detail-view.vue new file mode 100644 index 00000000..e7733c58 --- /dev/null +++ b/src/views/modules/heart/actinfo-detail-view.vue @@ -0,0 +1,239 @@ + + + diff --git a/src/views/modules/heart/actinfo-list.vue b/src/views/modules/heart/actinfo-list.vue new file mode 100644 index 00000000..8b77c242 --- /dev/null +++ b/src/views/modules/heart/actinfo-list.vue @@ -0,0 +1,169 @@ + + + diff --git a/src/views/modules/heart/actinfo.vue b/src/views/modules/heart/actinfo.vue index 40d6dfa4..6081a4ff 100644 --- a/src/views/modules/heart/actinfo.vue +++ b/src/views/modules/heart/actinfo.vue @@ -1,98 +1,33 @@ - + + diff --git a/src/views/modules/heart/actuserrelation-add-or-update.vue b/src/views/modules/heart/actuserrelation-add-or-update.vue index e31af196..5b9f491b 100644 --- a/src/views/modules/heart/actuserrelation-add-or-update.vue +++ b/src/views/modules/heart/actuserrelation-add-or-update.vue @@ -1,67 +1,26 @@ @@ -74,87 +33,24 @@ export default { visible: false, dataForm: { id: '', - actId: '', - userId: '', - nickname: '', - faceImg: '', - partyFlag: '', - realName: '', - sex: '', - age: '', - mobile: '', - identityNo: '', - status: '', - failureReason: '', - auditTime: '', - signupTime: '', - revision: '', - createdBy: '', - createdTime: '', - updatedBy: '', - updatedTime: '' + status: "1", + failureReason: '' + } } }, + mounted () { + this.dataForm.id = this.$route.query.id + this.init() + }, computed: { dataRule () { return { - actId: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - userId: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - nickname: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - faceImg: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - partyFlag: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - realName: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - sex: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - age: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - mobile: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - identityNo: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - status: [ + status: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], failureReason: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - auditTime: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - signupTime: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - revision: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - createdBy: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - createdTime: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - updatedBy: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - updatedTime: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } ] } } @@ -164,30 +60,18 @@ export default { this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } + // if (this.dataForm.id) { + // this.getInfo() + // } }) }, - // 获取信息 - getInfo () { - this.$http.get(`/heart/actuserrelation/${this.dataForm.id}`).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.data - } - }).catch(() => {}) - }, // 表单提交 dataFormSubmitHandle: debounce(function () { this.$refs['dataForm'].validate((valid) => { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/heart/actuserrelation/', this.dataForm).then(({ data: res }) => { + this.$http[ 'post']('/heart/actuserrelation/audit', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } diff --git a/src/views/modules/heart/actuserrelation-detail.vue b/src/views/modules/heart/actuserrelation-detail.vue new file mode 100644 index 00000000..f799aaa9 --- /dev/null +++ b/src/views/modules/heart/actuserrelation-detail.vue @@ -0,0 +1,116 @@ + + + diff --git a/src/views/modules/heart/actuserrelation.vue b/src/views/modules/heart/actuserrelation.vue index c77034d3..64cf1ed8 100644 --- a/src/views/modules/heart/actuserrelation.vue +++ b/src/views/modules/heart/actuserrelation.vue @@ -3,33 +3,44 @@
- - - - {{ $t('query') }} - - - {{ $t('add') }} - - - {{ $t('deleteBatch') }} + 返回 +
+ + + + + + + + + + + +
+
+ 注册时间   +   + + {{ $t('query') }} + +
- + - + - + @@ -44,6 +55,7 @@ +
@@ -51,23 +63,77 @@ diff --git a/src/views/modules/heart/address-check.vue b/src/views/modules/heart/address-check.vue new file mode 100644 index 00000000..15f31d2b --- /dev/null +++ b/src/views/modules/heart/address-check.vue @@ -0,0 +1,52 @@ + + diff --git a/src/views/modules/heart/map-select.vue b/src/views/modules/heart/map-select.vue new file mode 100644 index 00000000..3ac226a7 --- /dev/null +++ b/src/views/modules/heart/map-select.vue @@ -0,0 +1,236 @@ + + +