基础信息
-
+
-
+
-
+
报名时间不能交叉且报名时间不能大于活动时间
-
+
平台活动时间不能交叉并且活动时间不能小于报名时间
@@ -52,7 +32,7 @@
优惠规则
-
+
@@ -95,14 +75,14 @@ export default {
props: {
activityForm: {
type: Object,
- default: () => {}
+ default: () => { }
},
isEdit: {
type: Number,
default: 0
}
},
- data () {
+ data() {
return {
form: new Form(),
date1: [], // 活动时间
@@ -113,19 +93,19 @@ export default {
},
computed: {
// 其他修改
- unStart () {
+ unStart() {
const t = this.isEdit ? this.activityForm : null
return t && !(t.state === 0)
},
// 时间修改
- applyEnd () {
+ applyEnd() {
const t = this.isEdit ? this.activityForm : null
return t && (t.state === 3 || t.state === 4)
}
},
watch: {
isEdit: {
- handler (nVal, oVal) {
+ handler(nVal, oVal) {
if (nVal) {
this.getDetails()
} else {
@@ -135,21 +115,21 @@ export default {
deep: true
},
activityForm: {
- handler (nVal, oVal) {
+ handler(nVal, oVal) {
if (nVal) {
this.getDetails()
}
}
}
},
- created () {
+ created() {
if (this.isEdit) { // 初始化watch无法监听isEdit,手动获取数据
this.getDetails()
}
},
methods: {
// 查询详情请
- async getDetails () {
+ async getDetails() {
const res = await getSeckillDetail({ seckillId: this.activityForm.seckillId })
if (JSON.stringify(res.data) !== '{}') {
this.form = res.data
@@ -157,9 +137,9 @@ export default {
this.date2 = [res.data.signStartTime, res.data.signEndTime]
}
},
- cancel () { this.$emit('cancel') },
- refersh () { this.$emit('refersh') },
- save () {
+ cancel() { this.$emit('cancel') },
+ refersh() { this.$emit('refersh') },
+ save() {
const params = Object.assign({}, this.form, {
startTime: this.date1[0] || '',
endTime: this.date1[1] || '',
@@ -208,7 +188,7 @@ export default {
}
})
},
- reset () {
+ reset() {
this.form = new Form()
this.date1 = []
this.date2 = []
@@ -220,42 +200,44 @@ export default {
diff --git a/src/views/channel/list/index.vue b/src/views/channel/list/index.vue
index e9a34a8..638b401 100644
--- a/src/views/channel/list/index.vue
+++ b/src/views/channel/list/index.vue
@@ -108,7 +108,6 @@
删除
diff --git a/src/views/common.vue b/src/views/common.vue
index ad3659c..809a5d6 100644
--- a/src/views/common.vue
+++ b/src/views/common.vue
@@ -44,7 +44,7 @@
/>
- 查询
+ {{ $t('common.query') }}
新建商家
diff --git a/src/views/finance/application/index.vue b/src/views/finance/application/index.vue
index 72f7471..81c55e6 100644
--- a/src/views/finance/application/index.vue
+++ b/src/views/finance/application/index.vue
@@ -93,7 +93,7 @@
diff --git a/src/views/order/after/details/index.vue b/src/views/order/after/details/index.vue
index 5bdf9b1..23982ce 100644
--- a/src/views/order/after/details/index.vue
+++ b/src/views/order/after/details/index.vue
@@ -1,21 +1,23 @@