刘秀芳 3 dní pred
rodič
commit
0b03441085

+ 4 - 1
src/components/pageComponents/FarmInfoCard.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="farm-info-card" :class="{ 'has-footer': showFooter }" @click="handleClick">
         <div class="item-content">
-            <div class="item-left">
+            <div class="item-left" :class="{'no-action': data.noAction}">
             <!-- <div class="item-left" :style="{ width: data.maxWidth ? 'calc(100% - 80px)' : 'auto' }"> -->
                 <img class="map-img" src="@/assets/img/home/farm.png" alt="地图" />
                 <div class="item-info">
@@ -129,6 +129,9 @@ const handleRemind = () => {
             align-items: center;
             gap: 8px;
             width: calc(100% - 80px);
+            &.no-action {
+                width: 100%;
+            }
         }
         .item-info {
             width: 100%;

+ 2 - 1
src/views/old_mini/user/index.vue

@@ -31,9 +31,10 @@
                         :data="{
                             ...ele,
                             farmName: ele.name,
-                            userType: ele.userType || '托管客户',
+                            userType: ele.userType || '--',
                             variety: ele.speciesName,
                             address: ele.address,
+                            noAction: true,
                             maxWidth: '100%',
                             customRight: 'tag-right',
                         }"