Переглянути джерело

change: 站点设置增加主导航字体颜色配置

peter 7 місяців тому
батько
коміт
c2750a7ffb

+ 1 - 0
src/views/shop/shop-manage/site/au.vue

@@ -242,6 +242,7 @@ export default {
         aboutus: '',
         aboutus: '',
         terms: '',
         terms: '',
         theme_color: '',
         theme_color: '',
+        font_color: '',
       }
       }
       // }
       // }
     },
     },

+ 6 - 0
src/views/shop/shop-manage/site/edit.vue

@@ -30,6 +30,9 @@
       <el-form-item label="主题色">
       <el-form-item label="主题色">
         <el-color-picker v-model="formData.theme_color"></el-color-picker>
         <el-color-picker v-model="formData.theme_color"></el-color-picker>
       </el-form-item>
       </el-form-item>
+      <el-form-item label="字体色">
+        <el-color-picker v-model="formData.font_color"></el-color-picker>
+      </el-form-item>
       <el-form-item>
       <el-form-item>
         <template #label>
         <template #label>
           <span style="color: #f56c6c">*</span>&nbsp;网址
           <span style="color: #f56c6c">*</span>&nbsp;网址
@@ -271,6 +274,9 @@ export default {
       if (!temp.theme_color) {
       if (!temp.theme_color) {
         temp.theme_color = '#fff'
         temp.theme_color = '#fff'
       }
       }
+      if (!temp.theme_font_colorcolor) {
+        temp.font_color = '#222'
+      }
       this.formData = temp
       this.formData = temp
       this.loading = false
       this.loading = false
     },
     },