Commit f0e1ad2c authored by 李硕's avatar 李硕

导出奖品信息的奖池字段和奖品字段,以及保存时的防连点

parent 54f9315e
...@@ -52,9 +52,9 @@ Component({ ...@@ -52,9 +52,9 @@ Component({
{ title: '发奖时间', prop: 'createTime' }, { title: '发奖时间', prop: 'createTime' },
{ title: '填地址时间', prop: 'receiveTime' }, { title: '填地址时间', prop: 'receiveTime' },
{ title: '用户昵称', prop: 'userNick' }, { title: '用户昵称', prop: 'userNick' },
{ title: '奖池类型', prop: 'awardsType' }, { title: '奖池类型', prop: 'prizeDataType' },
{ title: '奖品类型', prop: 'type' }, { title: '奖品类型', prop: 'type' },
{ title: '奖品名', prop: 'name' }, { title: '奖品名', prop: 'prizeName' },
{ title: '收货人', prop: 'receiveName' }, { title: '收货人', prop: 'receiveName' },
{ title: '联系方式', prop: 'phone' }, { title: '联系方式', prop: 'phone' },
/* 注:需要在接口里将 省+市+区+详细 拼写起来*/ /* 注:需要在接口里将 省+市+区+详细 拼写起来*/
......
...@@ -89,7 +89,8 @@ Component({ ...@@ -89,7 +89,8 @@ Component({
isEnd: false, isEnd: false,
isStart: false, isStart: false,
originalStartTime: '', originalStartTime: '',
formState: formatValidator(descriptor) formState: formatValidator(descriptor),
isPostParams: true
}, },
didMount() { didMount() {
const { id } = this.$page.$router.params const { id } = this.$page.$router.params
...@@ -170,12 +171,19 @@ Component({ ...@@ -170,12 +171,19 @@ Component({
const params = this.formatActivityParams(this.data) const params = this.formatActivityParams(this.data)
console.log(params, 'params') console.log(params, 'params')
const { success, message } = await saveActivityInfo(params) if (this.data.isPostParams) {
this.setData({
if(success) { isPostParams: false
this.backList() })
} else { const { success, message } = await saveActivityInfo(params);
this.showFailToast(message) if (success) {
this.backList();
this.setData({
isPostParams: true
})
} else {
this.showFailToast(message);
}
} }
}, },
showFailToast(text) { showFailToast(text) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment