Browse Source

修改广告位尺寸回显bug

Jing 2 months ago
parent
commit
026bc88aa3
3 changed files with 16 additions and 20 deletions
  1. 2 2
      src/router/index.js
  2. 2 6
      src/views/advertise/adPlaceList.vue
  3. 12 12
      src/views/tabbar/tabbar.vue

+ 2 - 2
src/router/index.js

@@ -601,7 +601,7 @@ export const constantRoutes = [
         path: '',
         component: () => import('@/views/tabbar/tabbar.vue'),
         meta: {
-          title: '底部导航栏',
+          title: '单页',
           hidden: true,
           breadcrumb: true
         }
@@ -617,7 +617,7 @@ export const constantRoutes = [
         path: '',
         component: () => import('@/views/tabbar/tabbarDetail.vue'),
         meta: {
-          title: '导航详情',
+          title: '单页详情',
           hidden: true,
           breadcrumb: true
         }

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

@@ -422,13 +422,9 @@ export default {
             this.ruleForm.adPhoto = val.thumb //广告示例图
             this.ruleForm.price = val.price //价格
             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 //广告尺寸
 
-            if (val.ad_size_id == 1) {
-                this.ruleForm.adSize = '1200x90'  //广告位大小
-            } else if (val.ad_size_id == 2) {
-                this.ruleForm.adSize = '420x560'  //广告位大小
-            }
             if (val.typeid == 2) {
                 this.ruleForm.adType = '2' //广告类型
             }

+ 12 - 12
src/views/tabbar/tabbar.vue

@@ -1,5 +1,5 @@
 <template>
-    <!-- 底部导航 -->
+    <!-- 单页 -->
     <div>
         <!-- 头部搜索框部分 -->
         <div class="title">
@@ -19,8 +19,8 @@
                 </el-col>
                 <el-col :span="6" class="left">
                     <div class="searchBox">
-                        <div class="searchTitle">底部导航名称</div>
-                        <el-input v-model="tabbarName" class="input" placeholder="请输入底部导航名称"></el-input>
+                        <div class="searchTitle">单页名称</div>
+                        <el-input v-model="tabbarName" class="input" placeholder="请输入单页名称"></el-input>
                     </div>
                 </el-col>
                 <el-col :span="8" class="right">
@@ -34,7 +34,7 @@
         <!--表格内容 start------------------------------------------------------------>
         <div class="layerBox">
             <tableTitle :name="tableDivTitle" />
-            <button class="btn" @click="addWebsite">添加底部导航</button>
+            <button class="btn" @click="addWebsite">添加单页</button>
             <el-row>
                 <template>
                     <el-table class="my-table" :data="tableData" style="width: 100%">
@@ -42,7 +42,7 @@
                         </el-table-column>
                         <el-table-column prop="website_name" label="网站" width="">
                         </el-table-column>
-                        <el-table-column prop="name" label="底部导航名称" width="">
+                        <el-table-column prop="name" label="单页名称" width="">
                         </el-table-column>
                         <el-table-column prop="created_at" label="添加时间" width="">
                         </el-table-column>
@@ -98,8 +98,8 @@
                             </el-option>
                         </el-select>
                     </el-form-item>
-                    <el-form-item label="底部导航名称:" prop="tabbarName">
-                        <el-input v-model="ruleForm.tabbarName" placeholder="请输入底部导航名称"></el-input>
+                    <el-form-item label="单页名称:" prop="tabbarName">
+                        <el-input v-model="ruleForm.tabbarName" placeholder="请输入单页名称"></el-input>
                     </el-form-item>
                     <el-form-item label="页面类型:" prop="pageType">
                         <el-radio v-model="ruleForm.pageType" label="1" :disabled="this.disabled">特殊列表页</el-radio>
@@ -136,7 +136,7 @@ export default {
             }
         }
         return {
-            tableDivTitle: "底部导航列表",  //列表标题
+            tableDivTitle: "单页列表",  //列表标题
             dialogTableVisible: false,      //编辑弹框
             dialogName: '编辑', //编辑弹窗名称
             disabled: false, //禁用
@@ -169,13 +169,13 @@ export default {
             // 搜索框相关
             webSiteName_name: '', //网站名称
             webSiteName_id: '', //网站名称id
-            tabbarName: '', //底部导航名称
+            tabbarName: '', //单页名称
             website_id: "", //网站id
 
 
             ruleForm: {
                 webName: '', //网站名称
-                tabbarName: '', //底部导航名称
+                tabbarName: '', //单页名称
                 pageType: '', //页面类型
             },
             rules: {
@@ -347,7 +347,7 @@ export default {
             //数据回显
             this.website_id = val.website_id
             this.ruleForm.webName = val.website_name //网站名称
-            this.ruleForm.tabbarName = val.name //底部导航名称
+            this.ruleForm.tabbarName = val.name //单页名称
             if (val.type == 0) {
                 this.ruleForm.pageType = '0' //页面类型
             } else if (val.type == 1) {
@@ -376,7 +376,7 @@ export default {
 
             //添加时清空回显回来的数据
             this.ruleForm.webName = '' //关联网站名称
-            this.ruleForm.tabbarName = '' //底部导航名称
+            this.ruleForm.tabbarName = '' //单页名称
             this.ruleForm.pageType = '' //页面类型
         },