|
@@ -121,6 +121,11 @@
|
|
<el-input v-model="ruleForm.adDesc" type="textarea" :rows="2" placeholder="请输入广告位介绍"
|
|
<el-input v-model="ruleForm.adDesc" type="textarea" :rows="2" placeholder="请输入广告位介绍"
|
|
resize="none">
|
|
resize="none">
|
|
</el-input>
|
|
</el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="广告位链接:" prop="ad_url">
|
|
|
|
+ <el-input v-model="ruleForm.ad_url" placeholder="请输入广告位链接"
|
|
|
|
+ resize="none">
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="广告示例图:" prop="adPhoto" :label-width="formLabelWidth"
|
|
<el-form-item label="广告示例图:" prop="adPhoto" :label-width="formLabelWidth"
|
|
:class="['custom-form-item']" class="custom-align-right">
|
|
:class="['custom-form-item']" class="custom-align-right">
|
|
@@ -250,6 +255,8 @@ export default {
|
|
ad_size_id: 1, //广告位大小
|
|
ad_size_id: 1, //广告位大小
|
|
price: '', //价格
|
|
price: '', //价格
|
|
status: '', //状态
|
|
status: '', //状态
|
|
|
|
+ ad_url: '', //广告位url
|
|
|
|
+
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
webName: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
webName: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
@@ -439,6 +446,7 @@ export default {
|
|
this.ruleForm.status = val.status //状态
|
|
this.ruleForm.status = val.status //状态
|
|
this.ad_size_id=val.ad_size_id //广告尺寸
|
|
this.ad_size_id=val.ad_size_id //广告尺寸
|
|
this.ruleForm.adSize=val.width+'x'+val.height //广告尺寸
|
|
this.ruleForm.adSize=val.width+'x'+val.height //广告尺寸
|
|
|
|
+ this.ruleForm.ad_url=val.ad_url //广告位链接
|
|
|
|
|
|
if (val.typeid == 2) {
|
|
if (val.typeid == 2) {
|
|
this.ruleForm.adType = '2' //广告类型
|
|
this.ruleForm.adType = '2' //广告类型
|
|
@@ -478,6 +486,7 @@ export default {
|
|
this.ruleForm.price = '' //价格
|
|
this.ruleForm.price = '' //价格
|
|
this.ruleForm.status = '' //状态
|
|
this.ruleForm.status = '' //状态
|
|
this.logoUrl = ''
|
|
this.logoUrl = ''
|
|
|
|
+ this.ruleForm.ad_url = '' //广告位链接
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -510,6 +519,8 @@ export default {
|
|
ad_size_id: this.ruleForm.adSize,
|
|
ad_size_id: this.ruleForm.adSize,
|
|
status: this.ruleForm.status,
|
|
status: this.ruleForm.status,
|
|
introduce: this.ruleForm.adDesc,
|
|
introduce: this.ruleForm.adDesc,
|
|
|
|
+ // ad_url: this.ruleForm.ad_url,
|
|
|
|
+
|
|
}).then(data => {
|
|
}).then(data => {
|
|
console.log(data);
|
|
console.log(data);
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
@@ -562,9 +573,10 @@ export default {
|
|
ad_size_id: Number(this.ruleForm.ad_size_id),
|
|
ad_size_id: Number(this.ruleForm.ad_size_id),
|
|
status: Number(this.ruleForm.status),
|
|
status: Number(this.ruleForm.status),
|
|
introduce: this.ruleForm.adDesc,
|
|
introduce: this.ruleForm.adDesc,
|
|
- id: this.activeid
|
|
|
|
|
|
+ id: this.activeid,
|
|
|
|
+ ad_url: this.ruleForm.ad_url,
|
|
}).then(data => {
|
|
}).then(data => {
|
|
- console.log(data);
|
|
|
|
|
|
+ console.log('编辑广告位',this.ruleForm);
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '编辑成功',
|
|
message: '编辑成功',
|