Ver código fonte

🤢 按要求修改文字

快乐的梦鱼 1 mês atrás
pai
commit
d26bdc977e

+ 3 - 0
src/pages/article/common/CommonListPage.vue

@@ -74,6 +74,7 @@
           :classNames="getItemClass(i)"
           :image="getImage(item)"
           :titleBox="item.titleBox"
+          :titlePrefix="item.titlePrefix"
           :title="item.title"
           :desc="item.desc"
           :tags="item.bottomTags"
@@ -85,6 +86,7 @@
           class="w-100"
           titleColor="title-text"
           :titleBox="item.titleBox"
+          :titlePrefix="item.titlePrefix"
           :classNames="getItemClass(i)"
           :image="getImage(item)"
           :title="item.title"
@@ -101,6 +103,7 @@
           :image="getImage(item)"
           titleColor="title-text"
           :title="item.title"
+          :titlePrefix="item.titlePrefix"
           :titleBox="item.titleBox"
           :tags="item.bottomTags || item.keywords"
           :desc="item.desc"

+ 1 - 1
src/pages/inhert/old/list.vue

@@ -35,7 +35,7 @@ async function loadData(
     })
   , page, pageSize));
   res.list.forEach((p) => {
-    //p.desc = `字号名称: ${p.fontName || ''}`;
+    p.titlePrefix = `字号名称: ${p.fontName || ''}`;
     p.bottomTags = p.brandType;
   })
   return res;

+ 6 - 1
src/pages/parts/Box2LineImageRightShadow.vue

@@ -25,6 +25,7 @@
         mode="aspectFit"
       />
       <view class="d-flex flex-col ml-3 flex-one width-500">
+        <text v-if="titlePrefix" :class="'size-ss color-primary text-lines-3'">{{ titlePrefix }}</text>
         <view class="d-flex flex-row">
           <text :class="[
             'color-primary size-base',
@@ -49,7 +50,11 @@ defineProps({
   desc: String,
   right: String,
   image: String,
-
+  titlePrefix: {
+    type: String,
+    default: '',
+  },
+  
   titleBox: {
     type: Boolean,
     default: false,

+ 5 - 0
src/pages/parts/Box2LineLargeImageUserShadow.vue

@@ -33,6 +33,7 @@
       <image class="width-60 mr-2" :src="userHead" mode="widthFix" />
       <text class="size-s">{{ userName }}</text>
     </view>
+    <text v-if="titlePrefix" :class="'size-ss color-primary text-lines-3'">{{ titlePrefix }}</text>
     <view class="d-flex flex-row align-center">
       <text 
         :class="[
@@ -89,6 +90,10 @@ defineProps({
   title: {
     type: String,
   },
+  titlePrefix: {
+    type: String,
+    default: '',
+  },
   titleColor: {
     type: String,
     default: 'primary',