diff --git a/god-ui/src/views/godTemplateInfo/templateInfoSet/index.vue b/god-ui/src/views/godTemplateInfo/templateInfoSet/index.vue index 6eba3427..730e162b 100644 --- a/god-ui/src/views/godTemplateInfo/templateInfoSet/index.vue +++ b/god-ui/src/views/godTemplateInfo/templateInfoSet/index.vue @@ -227,7 +227,7 @@ - + { + if(item.reserveTwo){ + if(item.reserveTwo === '1'){ + item.reserveThree = (item.price * 0.68).toFixed(2) + } + if(item.reserveTwo === '2'){ + item.reserveThree = (item.price * 0.88).toFixed(2) + } + }else { + item.reserveThree = 0.00 + } + }) }) }, // 取消按钮 @@ -525,6 +536,11 @@ export default { this.form = response.data this.open = true this.title = 'Vlog价格配置' + if(this.form.reserveTwo){ + this.changeA(this.form.reserveTwo); + }else { + this.form.reserveThree = 0.00 + } }) }, /** 提交按钮 */ @@ -558,6 +574,14 @@ export default { }).catch(() => { }) }, + changeA(res){ + if(res === '1'){ + this.form.reserveThree = (this.form.price * 0.68).toFixed(2) + } + if(res === '2'){ + this.form.reserveThree = (this.form.price * 0.88).toFixed(2) + } + }, /** 导出按钮操作 */ handleExport() { this.download('godTemplateInfo/templateInfo/export', {