|
@@ -11,8 +11,6 @@
|
|
|
v-model="attributes.enable"
|
|
v-model="attributes.enable"
|
|
|
active-color="#13ce66"
|
|
active-color="#13ce66"
|
|
|
inactive-color="#ff4949"
|
|
inactive-color="#ff4949"
|
|
|
- :active-value="1"
|
|
|
|
|
- :inactive-value="0"
|
|
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<span class="c-grid-form__label required">开机时间</span>
|
|
<span class="c-grid-form__label required">开机时间</span>
|
|
@@ -52,7 +50,7 @@
|
|
|
:max="1000"
|
|
:max="1000"
|
|
|
step-strictly
|
|
step-strictly
|
|
|
/>
|
|
/>
|
|
|
- <span class="c-grid-form__label required">价格(分)</span>
|
|
|
|
|
|
|
+ <span class="c-grid-form__label required">单价(分)</span>
|
|
|
<el-input-number
|
|
<el-input-number
|
|
|
v-model="attributes.price"
|
|
v-model="attributes.price"
|
|
|
class="c-grid-form__info c-grid-form__option"
|
|
class="c-grid-form__info c-grid-form__option"
|
|
@@ -85,7 +83,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
price () {
|
|
price () {
|
|
|
const price = this.attributes.price || 0
|
|
const price = this.attributes.price || 0
|
|
|
- return `${(price / 100).toFixed(2)}元`
|
|
|
|
|
|
|
+ return `5秒 x ${this.attributes.minCount}次 = ${(price / 100).toFixed(2)}元`
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -95,7 +93,7 @@ export default {
|
|
|
getAdAttributes(id).then(({ data }) => {
|
|
getAdAttributes(id).then(({ data }) => {
|
|
|
this.isAdd = !data
|
|
this.isAdd = !data
|
|
|
this.attributes = {
|
|
this.attributes = {
|
|
|
- enable: 0,
|
|
|
|
|
|
|
+ enable: false,
|
|
|
openTime: '07:00', // 开机时间
|
|
openTime: '07:00', // 开机时间
|
|
|
closeTime: '22:00', // 关机时间
|
|
closeTime: '22:00', // 关机时间
|
|
|
minDuration: 5, // 最小投放广告时长(单位秒)
|
|
minDuration: 5, // 最小投放广告时长(单位秒)
|
|
@@ -103,6 +101,7 @@ export default {
|
|
|
price: 1000, // 单位分
|
|
price: 1000, // 单位分
|
|
|
...data
|
|
...data
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(this.attributes)
|
|
|
this.$refs.configDialog.show()
|
|
this.$refs.configDialog.show()
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
this.$closeLoading(loading)
|
|
this.$closeLoading(loading)
|