Commit c637269b authored by guoyou's avatar guoyou

节日价格

parent b27e52b7
...@@ -247,8 +247,7 @@ export default { ...@@ -247,8 +247,7 @@ export default {
{ {
serialNumber: '1', serialNumber: '1',
name: '', //奖品名称 name: '', //奖品名称
iconPath: iconPath:'', //奖品图片
'https://xxtest.upyuns.com/image/admin/2019-12-05/37.jpg', //奖品图片
totalStock: '', //奖品数量 totalStock: '', //奖品数量
probability: '', //中奖概率 probability: '', //中奖概率
dayMaxUse: '', //最大次数 dayMaxUse: '', //最大次数
...@@ -339,6 +338,7 @@ export default { ...@@ -339,6 +338,7 @@ export default {
setOnline(val) { setOnline(val) {
this.or = val this.or = val
this.dialogVisible = true this.dialogVisible = true
infoPrize().then(data => { infoPrize().then(data => {
if (val == 1) { if (val == 1) {
if (data.data.onlinePrize != ''){ if (data.data.onlinePrize != ''){
...@@ -369,7 +369,9 @@ export default { ...@@ -369,7 +369,9 @@ export default {
// } // }
}); });
} }
this.table = data.data.localePrize if (data.data.localePrize != '') {
this.table = data.data.localePrize
}
} }
}) })
}, },
......
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
d.getDate().toString().length == 1 d.getDate().toString().length == 1
? '0' + d.getDate() ? '0' + d.getDate()
: d.getDate() : d.getDate()
return year + '-' + month + '-' + date + ' 00:00:00' return year + '-' + month + '-' + date
}, },
closePop() { closePop() {
// this.$refs.ruleForm.resetFields() // this.$refs.ruleForm.resetFields()
...@@ -232,19 +232,19 @@ export default { ...@@ -232,19 +232,19 @@ export default {
if (this.popTitle == '添加节假日') { if (this.popTitle == '添加节假日') {
this.ruleForm.startDate = this.format( this.ruleForm.startDate = this.format(
this.ruleForm.date[0] this.ruleForm.date[0]
) )+' 00:00:00'
this.ruleForm.endDate = this.format( this.ruleForm.endDate = this.format(
this.ruleForm.date[1] this.ruleForm.date[1]
) )+' 23:59:59'
delete this.ruleForm.id delete this.ruleForm.id
this.successApi() this.successApi()
} else { } else {
this.ruleForm.startDate = this.format( this.ruleForm.startDate = this.format(
this.ruleForm.date[0] new Date(this.ruleForm.date[0])
) )+' 00:00:00'
this.ruleForm.endDate = this.format( this.ruleForm.endDate = this.format(
this.ruleForm.date[1] new Date(this.ruleForm.date[1])
) )+' 23:59:59'
!this.activeId !this.activeId
? '' ? ''
: (this.ruleForm.id = this.activeId) : (this.ruleForm.id = this.activeId)
......
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