zhaoyun 1 天之前
父節點
當前提交
0429086d6f

+ 11 - 1
mer_plat_admin/src/components/FromList/index.vue

@@ -52,7 +52,7 @@
                 />
               </div>
             </div>
-			<div v-if="configData.isHighLight" class="info-item">
+					<div v-if="configData.isHighLight" class="info-item">
 							  <span class="text-14px">是否高亮</span>
 							  <div class="input-box">
 							    <el-switch
@@ -65,6 +65,16 @@
 							    />
 							 </div>
 		     </div>
+				  <div v-if="configData.color" class="info-item">
+				    <span class="text-14px">{{ configData.color }}</span>
+				    <div class="input-box">
+				      <el-input
+				        size="small"
+				        v-model="item.color"
+				        :placeholder="configData.colorPlaceWords"
+				      ></el-input>
+				    </div>
+				  </div>
             <!-- 添加链接-->
             <div v-if="item.linkList && item.linkList.length">
               <div class="acea-row">

+ 7 - 3
mer_plat_admin/src/views/systemSetting/pcConfig/defaultPcConfig.js

@@ -243,11 +243,13 @@ export const menuDefault = () => {
     isShowLinkUrlChose: false, //选择地址选项
     isShowImageUrl: true, //图片地址
 	//isShowImageUrl: true, //图片地址
-	isHighLight: true, //图片地址
+	  isHighLight: true, //图片地址
     isShowMoreLinkUrl: false, //多条链接
+		color: '字体颜色',
     // modelMaxLength: 10,
     maxLength: 10,
     placeWords: '请输入名称(最多6个字)',
+	colorPlaceWords: '设置字体颜色',
     linkPlaceWords: '支持输入内部链接/外部链接',
     title: '名称',
     defaultList: {
@@ -257,7 +259,8 @@ export const menuDefault = () => {
       id: 0,
       sort: 0,
       name: '',
-	  isHighLight: false
+	  isHighLight: false,
+	  color: ''
     },
     list: [
       {
@@ -267,7 +270,8 @@ export const menuDefault = () => {
         id: 0,
         sort: 0,
         name: '',
-		isHighLight: false
+		isHighLight: false,
+		color: ''
       },
     ],
   };