Răsfoiți Sursa

fix(frontend): 报告详情行距优化、富维度商品封面图URL修复、智维度功能区间距调整

liaoxg 1 lună în urmă
părinte
comite
973097a9a7

+ 2 - 0
cfc-frontend/pages/health/report-detail.vue

@@ -1705,6 +1705,8 @@ export default {
 .tongue-summary-text {
   font-size: 26rpx;
   color: #333;
+  line-height: 1.6;
+}
 .tip-banner,
 .parsing-banner,
 .confidence-card {

+ 5 - 1
cfc-frontend/pages/wealth/index.vue

@@ -40,7 +40,7 @@
         <scroll-view scroll-x class="product-scroll" show-scrollbar="false">
           <view class="product-list">
             <view class="product-card" v-for="(item, idx) in guestProducts" :key="idx" @click="goProductDetail(item.id)">
-              <image class="product-img" :src="item.image || '/static/default-product.png'" mode="aspectFill" />
+              <image class="product-img" :src="getImageUrl(item.coverImage || item.image) || '/static/default-product.png'" mode="aspectFill" />
               <text class="product-name">{{ item.name }}</text>
               <text class="product-price">¥{{ item.price || 0 }}</text>
             </view>
@@ -203,6 +203,7 @@ import {
   productList
 } from '../../utils/api.js'
 import nav from '../../utils/nav.js'
+import config from '../../config.js'
 
 export default {
   components: { TabTransition, PageBanner, WealthEnergyRing, WealthSubScores, BodyWealthAlert, FamilyMemberStrip, DimensionIntroCard },
@@ -479,6 +480,9 @@ export default {
     goProductDetail(id) {
       uni.navigateTo({ url: '/pages/shop/detail/detail?id=' + id })
     },
+    getImageUrl: function(path) {
+      return config.API_BASE_URL + path
+    },
     onServiceClick(action) {
       if (this[action]) {
         this[action]()

+ 1 - 3
cfc-frontend/pages/wisdom-detail/index.vue

@@ -406,9 +406,7 @@ export default {
 }
 
 .func-section {
-  margin: -40rpx 20rpx 0;
-  position: relative;
-  z-index: 2;
+  margin: 20rpx 20rpx 0;
 }
 
 .func-grid {