Commit f0e1ad2c authored by 李硕's avatar 李硕

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

parent 54f9315e
......@@ -52,9 +52,9 @@ Component({
{ title: '发奖时间', prop: 'createTime' },
{ title: '填地址时间', prop: 'receiveTime' },
{ title: '用户昵称', prop: 'userNick' },
{ title: '奖池类型', prop: 'awardsType' },
{ title: '奖池类型', prop: 'prizeDataType' },
{ title: '奖品类型', prop: 'type' },
{ title: '奖品名', prop: 'name' },
{ title: '奖品名', prop: 'prizeName' },
{ title: '收货人', prop: 'receiveName' },
{ title: '联系方式', prop: 'phone' },
/* 注:需要在接口里将 省+市+区+详细 拼写起来*/
......
......@@ -89,7 +89,8 @@ Component({
isEnd: false,
isStart: false,
originalStartTime: '',
formState: formatValidator(descriptor)
formState: formatValidator(descriptor),
isPostParams: true
},
didMount() {
const { id } = this.$page.$router.params
......@@ -170,12 +171,19 @@ Component({
const params = this.formatActivityParams(this.data)
console.log(params, 'params')
const { success, message } = await saveActivityInfo(params)
if(success) {
this.backList()
} else {
this.showFailToast(message)
if (this.data.isPostParams) {
this.setData({
isPostParams: false
})
const { success, message } = await saveActivityInfo(params);
if (success) {
this.backList();
this.setData({
isPostParams: true
})
} else {
this.showFailToast(message);
}
}
},
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