Pārlūkot izejas kodu

完成b端页面-通栏添加编辑页面名称修改、广告默认链接

15313670163 1 dienu atpakaļ
vecāks
revīzija
48bf8df3f2

+ 14 - 2
src/views/advertise/adPlaceList.vue

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

+ 2 - 2
src/views/componentGallery/plate.vue

@@ -12,8 +12,8 @@
                 </el-col>
                 <el-col :span="6" class="left">
                     <div class="searchBox">
-                        <div class="searchTitle">模板风格</div>
-                        <el-select v-model="apiData.template_class_id" clearable placeholder="请选择模板风格" @change="getSkinList">
+                        <div class="searchTitle">所属风格</div>
+                        <el-select v-model="apiData.template_class_id" clearable placeholder="请选择所属风格" @change="getSkinList">
                             <el-option v-for="item in class_options" :key="item.class_id" :label="item.name" :value="item.class_id">
                             </el-option>
                         </el-select>

+ 2 - 2
src/views/componentGallery/plateDetail.vue

@@ -203,11 +203,11 @@ export default {
                 },
                 {
                     value: 6,
-                    label: '特殊列表页',
+                    label: '单页(列表)',
                 },
                 {
                     value: 7,
-                    label: '特殊详情页',
+                    label: '单页(详情)',
                 },
             ],
             typeList: [

+ 11 - 11
src/views/componentGallery/skin.vue

@@ -1,4 +1,4 @@
-<!-- 风格 -->
+<!-- 皮肤 -->
 <template>
     <div>
         <!-- 头部搜索框部分 -->
@@ -256,7 +256,7 @@
                                 <div v-if="hovering && logoUrl_sList" class="delete-button" @click="handleDelete_sList">
                                     <i class="el-icon-delete"></i>
                                 </div>
-                                <h5>特殊列表页</h5>
+                                <h5>单页(列表)</h5>
                             </div>
                             <!--图片上传组件 end ------------------------------------------------------------>
                         </div>
@@ -283,7 +283,7 @@
                                     @click="handleDelete_sDetail">
                                     <i class="el-icon-delete"></i>
                                 </div>
-                                <h5>特殊详情页</h5>
+                                <h5>单页(详情)</h5>
                             </div>
                             <!--图片上传组件 end ------------------------------------------------------------>
                         </div>
@@ -392,20 +392,20 @@ export default {
                 name: '搜索页',
                 value: '5',
             },
-            //特殊列表页图片
+            //单页(列表)图片
             sListImg: '',
             logoUrl_sList: '',
             sList_obj: {
                 url: '',
-                name: '特殊列表页',
+                name: '单页(列表)',
                 value: '6',
             },
-            //特殊详情页图片
+            //单页(详情)图片
             sDetailImg: '',
             logoUrl_sDetail: '',
             sDetail_obj: {
                 url: '',
-                name: '特殊详情页',
+                name: '单页(详情)',
                 value: '7',
             },
             //图片json
@@ -616,11 +616,11 @@ export default {
                     this.logoUrl_search = item.url
                     this.searchImg = item.url
                 }
-                if (item.name == '特殊列表页') {
+                if (item.name == '单页(列表)') {
                     this.logoUrl_sList = item.url
                     this.sListImg = item.url
                 }
-                if (item.name == '特殊详情页') {
+                if (item.name == '单页(详情)') {
                     this.logoUrl_sDetail = item.url
                     this.sDetailImg = item.url
                 }
@@ -690,13 +690,13 @@ export default {
                 this.img_arr.push(this.search_obj)
                 this.page_arr.push(5);
             }
-            //特殊列表页
+            //单页(列表)
             if (this.logoUrl_sList) {
                 this.sList_obj.url = this.sListImg
                 this.img_arr.push(this.sList_obj)
                 this.page_arr.push(6)
             }
-            //特殊详情页
+            //单页(详情)
             if (this.logoUrl_sDetail) {
                 this.sDetail_obj.url = this.sDetailImg
                 this.img_arr.push(this.sDetail_obj)