huangxw 2 týždňov pred
rodič
commit
9ff038fe30
1 zmenil súbory, kde vykonal 14 pridanie a 7 odobranie
  1. 14 7
      src/tools/select-gap-info/index.vue

+ 14 - 7
src/tools/select-gap-info/index.vue

@@ -2,12 +2,13 @@
     <z-paging ref="paging" safe-area-inset-bottom v-model="list" @query="query">
         <template #top>
             <ut-navbar leftText="请选择GAP基地获评信息" :fixed="false"></ut-navbar>
-            <view class="pd-20">
-                <ut-search margin="0" height="68rpx" fontSize="26rpx" placeholder="搜基地名称、品种、基地地址" :border="false" v-model="form.keyword" @search="onRefresh"></ut-search>
+            <view ref="baseRef" class="pd-24" id="base12345">
+                <view class="startline-title mb-6">请选择GAP基地获评信息</view>
+                <view class="f-s-26 c-#999">未通过审核及待审核的GAP获评信息将不会在此展示</view>
             </view>
         </template>
         <view class="base-content pd-20">
-            <view :class="{ active: item.id === checkedId }" v-for="(item, index) in list" :key="item.id" @click="clickItem(item)" class="b-radius bg-#fff pd-20 p-rtv">
+            <view :class="{ active: item.id === checkedId }" v-for="(item, index) in list" :key="item.id" @click="clickItem(item)" class="b-radius bg-#fff pd-20 p-rtv select-item-card mb-20">
                 <view class="c-#333 f-s-34 f-w-5 pb-5">{{ item?.gapBaseName }}</view>
                 <view class="c-#999 f-s-24 pb-20">{{ item?.ratedDate }}获评</view>
                 <view class="d-flex pb-5">
@@ -22,7 +23,7 @@
                 </view>
                 <view class="pb-20">
                     <text class="c-#666 f-s-28">基地地址:</text>
-                    <text class="c-#333 f-s-28 f-w-5">{{ item?.address }}</text>
+                    <text class="c-#333 f-s-28 f-w-5">{{ item?.adcdName || '' }}{{ item?.address || '' }}</text>
                 </view>
                 <view v-if="+item?.res == 2" class="pl-5 pr-5 pt-20 pb-20 border-top-#f7f7f7 c-#FC333F">
                     <text class="f-s-28">审核不通过原因:</text>
@@ -31,8 +32,14 @@
                 <image v-if="+item?.res == 2" class="w-145" src="/static/images/plant/resFailed.png" style="position: absolute; top: 0; right: 0" mode="widthFix" />
                 <image v-if="+item?.res == 0" class="w-100" src="/static/images/plant/resPendingReview.png" style="position: absolute; top: 0; right: 0" mode="widthFix" />
                 <image v-if="+item?.res == 1" class="w-90" src="/static/images/plant/resEffective.png" style="position: absolute; top: 0; right: 0" mode="widthFix" />
+
             </view>
         </view>
+        <template #bottom>
+            <view class="pd-20 d-flex">
+                <up-button type="primary">确认选择</up-button>
+            </view>
+        </template>
     </z-paging>
 </template>
 <script setup lang="ts">
@@ -57,8 +64,6 @@ const query = async (pageNum: number, pageSize: number) => {
 const checkedId = ref(null);
 const clickItem = (item: any) => {
     checkedId.value = item.id;
-    uni.$emit('selectGapInfo', item);
-    uni.navigateBack();
 };
 const onRefresh = () => {
     try {
@@ -74,9 +79,11 @@ onLoad((options: any) => {
 </script>
 <style lang="scss" scoped>
 .select-item-card {
+    border: 1rpx solid #fff;
     border-radius: 16rpx;
     &.active {
-        border-color: #4456fb;
+        border-color: $u-primary;
+        background-color: #EBF6EE;
     }
 }
 </style>