소스 검색

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

peter 7 달 전
부모
커밋
c2750a7ffb
2개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/shop/shop-manage/site/au.vue
  2. 6 0
      src/views/shop/shop-manage/site/edit.vue

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

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

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

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