|
|
@@ -1,15 +1,89 @@
|
|
|
<template>
|
|
|
- <z-paging ref="paging" v-model="list" @onRefresh="onRefresh">
|
|
|
- <template #top>
|
|
|
- <up-navbar title="种植端首页" @leftClick="navigateBackOrHome()" :fixed="false"></up-navbar>
|
|
|
+ <z-paging ref="paging" v-model="list" @onRefresh="onRefresh" bgColor="#f7f7f7">
|
|
|
+ <up-navbar :fixed="false" bgColor="rgba(0,0,0,0)">
|
|
|
+ <template #left>
|
|
|
+ <view class="d-flex a-c" :style="{ width: `${bubble.left - 30}px` }">
|
|
|
+ <image class="home_icon mr-20" src="https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images/common/home.png" mode="widthFix" />
|
|
|
+ <text class="f-s-42 c-333 f-w-5 mr-40">中药材种植全链条追溯</text>
|
|
|
+ <view class="flex1"></view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </up-navbar>
|
|
|
+ <view class="h-500 w-100%" style="background: linear-gradient(to left, #d2f7d5, #eafad8); position: absolute; top: 0; left: 0; z-index: -1"></view>
|
|
|
+ <template>
|
|
|
+ <view class="user-page-header pd-10 d-flex a-c mg-14 p-rtv">
|
|
|
+ <view class="user-page-header-avatar mr-20 p-rtv">
|
|
|
+ <up-avatar size="116rpx" :src="avatar || 'https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images/common/avatar.png'"></up-avatar>
|
|
|
+ </view>
|
|
|
+ <view class="flex1 ov-hd mr-40">
|
|
|
+ <view class="p-rtv d-flex a-c mb-6">
|
|
|
+ <view class="flex1 ov-hd f-s-32 c-333 d-flex a-ed">
|
|
|
+ <text class="mr-12 up-line-1 f-w-5">{{ name }}</text>
|
|
|
+ <text class="c-999 f-s-24">{{ setCipByNum(phone, 3, 4) || '-' }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="f-s-22 mr-10 b-radius pt-4 pb-4 pl-10 pr-10 c-primary" style="width: max-content; background-color: #b7e8bc">
|
|
|
+ {{ cpyname }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <template>
|
|
|
+ <view class="p-rtv">
|
|
|
+ <view class="pd-10 mg-14">
|
|
|
+ <view class="b-radius pd-4" style="border: 1rpx solid #fff; background: linear-gradient(90deg, #c1f3c5 0%, rgba(193, 243, 197, 0.5) 20%, rgba(255, 255, 255, 0.5) 35%, rgba(255, 255, 255, 0.5) 50%, rgba(232, 255, 234, 0.5) 100%, #e8ffea 100%), linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.3) 80%, transparent 100%)">
|
|
|
+ <view class="b-radius pd-10" style="border: 1rpx solid #baedbf">
|
|
|
+ <view class="d-flex pr-15 mb-15">
|
|
|
+ <view></view>
|
|
|
+ <view>单位主营物种</view>
|
|
|
+ <view class="flex1"></view>
|
|
|
+ <view class="f-s-22 c-primary">去修改{{ '>' }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="c-#333 f-s-24 d-flex pl-30 pr-15 pb-15">
|
|
|
+ <view class="ov-hd tx-ov w-s-no">三七、天麻、徐长卿、白及、徐长卿、白及、三七、天麻、徐长卿、白及、徐长卿、白及</view>
|
|
|
+ <view class="flex1 w-s-no">等120个物种</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="b-radius pd-16 bg-#f7f7f7" style="border: 1rpx solid #fff; margin-top: -40rpx">
|
|
|
+ <view class="d-flex a-c">
|
|
|
+ <view class="c-333 f-s-32 f-w-5">基地与地块管理</view>
|
|
|
+ <view class="flex1"></view>
|
|
|
+ <view class="c-primary f-s-22">GAP基地获评信息管理></view>
|
|
|
+ </view>
|
|
|
+ <view class="d-flex a-c pt-20">
|
|
|
+ <view class="w-200">
|
|
|
+ <ut-action-sheet v-model="form.type" :tabs="[{ label: '全部', value: '' }]" @change="onRefresh" title="选择原料类型">
|
|
|
+ <view class="d-flex search-select-item a-c">
|
|
|
+ <view class="flex1 ov-hd f-s-28 c-333 text-center f-w-5">{{ '全部' }}</view>
|
|
|
+ <up-icon size="20rpx" color="#2A6D52" name="arrow-down-fill" class="mr-10"></up-icon>
|
|
|
+ </view>
|
|
|
+ </ut-action-sheet>
|
|
|
+ </view>
|
|
|
+ <view class="h-86 pl-20 pr-20">
|
|
|
+ <ut-search ref="searchRef" v-model="form.keywords" @search="changeSeach" margin="0" :border="false" :placeholder="form.placeholder" bgColor="#fff" height="86rpx" borderRadius="10rpx"></ut-search>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <template #empty>
|
|
|
+ <ut-empty class="mg-at">尚未添加绘制种养殖基地信息~</ut-empty>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
- <view class="c-primary">种植端首页</view>
|
|
|
</z-paging>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
import { useClientRequest } from '@/utils/request';
|
|
|
+import { setCipByNum } from '@/utils/public';
|
|
|
const list = ref([]);
|
|
|
const paging = ref();
|
|
|
+const bubble = ref(uni.getMenuButtonBoundingClientRect());
|
|
|
+const avatar = ref();
|
|
|
+const name = ref('神奇大侠');
|
|
|
+const phone = ref('17708862791');
|
|
|
+const cpyname = ref('智慧溯源有限公司');
|
|
|
+const form = ref({ type: '', placeholder: '搜基地名称、编号、地址、负责人' });
|
|
|
const onRefresh = () => {
|
|
|
paging.value.reload();
|
|
|
};
|
|
|
@@ -18,5 +92,15 @@ setTimeout(() => {
|
|
|
}, 2000);
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-@import '@/assets/styles/theme.scss';
|
|
|
+// @import '@/assets/styles/theme.scss';
|
|
|
+.search-select-item {
|
|
|
+ height: 86rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-left: 6rpx;
|
|
|
+ padding-right: 20rpx;
|
|
|
+ padding-top: 14rpx;
|
|
|
+ padding-bottom: 14rpx;
|
|
|
+}
|
|
|
</style>
|