|
@@ -1,16 +1,21 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <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>
|
|
|
|
|
|
|
+ <z-paging ref="paging" v-model="list" @onRefresh="onRefresh" bgColor="#f7f7f7" @scroll="onPageScroll">
|
|
|
|
|
+ <template #top>
|
|
|
|
|
+ <up-navbar :fixed="true" :bgColor="navBarBgColor">
|
|
|
|
|
+ <template #left>
|
|
|
|
|
+ <view class="d-flex a-c pb-5" id="topup-navbar" :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 w-s-no">中药材种植全链条追溯</text>
|
|
|
|
|
+ <view class="flex1"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </up-navbar>
|
|
|
|
|
+ </template>
|
|
|
<view class="h-500 w-100%" style="background: linear-gradient(to left, #d2f7d5, #eafad8); position: absolute; top: 0; left: 0; z-index: -1"></view>
|
|
<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>
|
|
<template>
|
|
|
|
|
+ <up-navbar :fixed="false" bgColor="transparent">
|
|
|
|
|
+ <template #left><view class="pd-10"></view></template>
|
|
|
|
|
+ </up-navbar>
|
|
|
<view class="user-page-header pd-10 d-flex a-c mg-14 p-rtv">
|
|
<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">
|
|
<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>
|
|
<up-avatar size="116rpx" :src="avatar || 'https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images/common/avatar.png'"></up-avatar>
|
|
@@ -47,14 +52,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="b-radius pd-16 bg-#f7f7f7" style="border: 1rpx solid #fff; border-bottom-color: transparent; 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="">
|
|
|
|
|
- <view class="d-flex a-c pt-20 mb-20">
|
|
|
|
|
|
|
+ <view class="b-radius pd-16 pt-0 bg-#f7f7f7" style="border: 1rpx solid #fff; border-bottom-color: transparent; margin-top: -40rpx">
|
|
|
|
|
+ <up-sticky :offset-top="stickyTop">
|
|
|
|
|
+ <view class="d-flex a-c bg-#f7f7f7 pt-16">
|
|
|
|
|
+ <view class="c-333 f-s-32 f-w-5">基地与地块管理</view>
|
|
|
|
|
+ <view class="flex1"></view>
|
|
|
|
|
+ <view @click="$u.route({ url: '/plant/base/gap-base-info/index' })" class="c-primary f-s-22">GAP基地获评信息管理{{ '>' }}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="d-flex a-c pt-20 pb-20 bg-#f7f7f7">
|
|
|
<view class="min-w-170 flex1">
|
|
<view class="min-w-170 flex1">
|
|
|
<ut-action-sheet v-model="form.type" :tabs="[{ label: '全部', value: '' }]" @change="onRefresh" title="选择原料类型">
|
|
<ut-action-sheet v-model="form.type" :tabs="[{ label: '全部', value: '' }]" @change="onRefresh" title="选择原料类型">
|
|
|
<view class="d-flex search-select-item a-c">
|
|
<view class="d-flex search-select-item a-c">
|
|
@@ -67,8 +72,10 @@
|
|
|
<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>
|
|
<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>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </up-sticky>
|
|
|
|
|
+ <view class="">
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="b-radius bg-#fff pd-20 mb-20">
|
|
|
|
|
|
|
+ <view v-for="item in 10" :key="item" class="b-radius bg-#fff pd-20 mb-20">
|
|
|
<view class="c-333 f-s-34 pd-5 f-w-5">德钦县拖顶乡洛沙村各加尼拉基地</view>
|
|
<view class="c-333 f-s-34 pd-5 f-w-5">德钦县拖顶乡洛沙村各加尼拉基地</view>
|
|
|
<view class="c-ccc f-s-24 pd-5 pt-0">DQTDLSC00156768951001</view>
|
|
<view class="c-ccc f-s-24 pd-5 pt-0">DQTDLSC00156768951001</view>
|
|
|
<view class="d-flex a-c">
|
|
<view class="d-flex a-c">
|
|
@@ -113,6 +120,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { useClientRequest } from '@/utils/request';
|
|
import { useClientRequest } from '@/utils/request';
|
|
|
import { setCipByNum } from '@/utils/public';
|
|
import { setCipByNum } from '@/utils/public';
|
|
|
|
|
+const instance = getCurrentInstance();
|
|
|
const list = ref([]);
|
|
const list = ref([]);
|
|
|
const paging = ref();
|
|
const paging = ref();
|
|
|
const bubble = ref(uni.getMenuButtonBoundingClientRect());
|
|
const bubble = ref(uni.getMenuButtonBoundingClientRect());
|
|
@@ -122,12 +130,34 @@ const phone = ref('17708862791');
|
|
|
const cpyname = ref('智慧溯源有限公司');
|
|
const cpyname = ref('智慧溯源有限公司');
|
|
|
const form = ref({ type: '', placeholder: '搜基地名称、编号、地址、负责人', keywords: '' });
|
|
const form = ref({ type: '', placeholder: '搜基地名称、编号、地址、负责人', keywords: '' });
|
|
|
const speciesArray = ref(['']);
|
|
const speciesArray = ref(['']);
|
|
|
|
|
+const navBarBgColor = ref('transparent');
|
|
|
|
|
+const stickyTop = ref(0);
|
|
|
const changeSeach = () => {
|
|
const changeSeach = () => {
|
|
|
paging.value.reload();
|
|
paging.value.reload();
|
|
|
};
|
|
};
|
|
|
const onRefresh = () => {
|
|
const onRefresh = () => {
|
|
|
paging.value.reload();
|
|
paging.value.reload();
|
|
|
};
|
|
};
|
|
|
|
|
+const onPageScroll = (e) => {
|
|
|
|
|
+ const { scrollTop } = e.detail;
|
|
|
|
|
+ if (scrollTop > 20) {
|
|
|
|
|
+ navBarBgColor.value = '#eafad8';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ navBarBgColor.value = 'transparent';
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ const query = uni.createSelectorQuery().in(instance.proxy);
|
|
|
|
|
+ query
|
|
|
|
|
+ .select('#topup-navbar')
|
|
|
|
|
+ .boundingClientRect((data) => {
|
|
|
|
|
+ stickyTop.value = data.top + data.height;
|
|
|
|
|
+ console.log(data.top + data.height);
|
|
|
|
|
+ console.log('得到布局位置信息' + JSON.stringify(data));
|
|
|
|
|
+ console.log('节点离页面顶部的距离为' + data.top);
|
|
|
|
|
+ })
|
|
|
|
|
+ .exec();
|
|
|
|
|
+});
|
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
|
// useClientRequest.get('/time');
|
|
// useClientRequest.get('/time');
|
|
|
// }, 2000);
|
|
// }, 2000);
|