From 68d975c737a051975cbb9b7c5bada7f37ae9e722 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期五, 01 九月 2023 09:11:57 +0800
Subject: [PATCH] Merge branch 'dev' of ssh://139.186.142.91:29418/productDev/dmMes into dev

---
 minipro_standard/pages_adjust/components/Material.vue |  131 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 131 insertions(+), 0 deletions(-)

diff --git a/minipro_standard/pages_adjust/components/Material.vue b/minipro_standard/pages_adjust/components/Material.vue
new file mode 100644
index 0000000..0685993
--- /dev/null
+++ b/minipro_standard/pages_adjust/components/Material.vue
@@ -0,0 +1,131 @@
+<template>
+	<u-popup :show="show" mode="bottom" :closeable="true" :round="10" @open="open" @close="close">
+		<view class="title">
+			<text>閫夋嫨鐗╂枡</text>
+		</view>
+		<view class="content">
+			<view class="content_search">
+				<u-search :showAction="false" placeholder="鎼滅储鐗╂枡鍚嶇О" v-model="keyword"></u-search>
+			</view>
+			<div class="content_total">鍏眥{total}}鏉℃暟鎹�</div>
+			<view class="content_list">
+				<u-list @scrolltolower="scrolltolower">
+					<u-list-item v-for="(item, index) in indexList" :key="index">
+						<div class="content_list_item" @click="getVal(item)">
+							<div class="content_list_item_name">
+								<span>{{item.name}}</span>
+							</div>
+						</div>
+					</u-list-item>
+				</u-list>
+			</view>
+		</view>
+	</u-popup>
+</template>
+
+<script>
+	export default {
+		props: {
+			show: Boolean
+		},
+		data() {
+			return {
+				keyword: '',
+				total: 0,
+				indexList: []
+			};
+		},
+		methods: {
+			getVal(item) {
+				this.$emit('value', item)
+			},
+			open() {
+				this.indexList = []
+				this.loadmore()
+			},
+			scrolltolower() {
+				this.loadmore()
+			},
+			loadmore() {
+				for (let i = 0; i < 20; i++) {
+					this.indexList.push({
+						id: i,
+						name: `浠撳簱${i}`
+					})
+				}
+			},
+			close() {
+				this.$emit('close')
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.title {
+        width: 100%;
+		height: 85rpx;
+		line-height: 85rpx;
+		text-align: center;
+		text {
+			font-size: 30rpx;
+			font-family: PingFangSC-Medium, PingFang SC;
+			font-weight: 500;
+			color: #222222;
+		}
+    }
+	.content {
+		width: 100%;
+		.content_search {
+			width: 100%;
+			padding: 0 30rpx 30rpx 30rpx;
+			background: white;
+			position: sticky;
+			top: 85rpx;
+			z-index: 9;
+			box-sizing: border-box;
+		}
+		.content_total {
+			padding: 24rpx 30rpx;
+			background: #F7F7F7;
+			font-size: 24rpx;
+			font-weight: 400;
+			color: #666666;
+		}
+		.content_list {
+			width: 100%;
+			height: 800rpx;
+			display: flex;
+			flex-direction: column;
+			.content_list_item {
+				padding: 30rpx;
+				display: flex;
+				border-bottom: 1rpx solid #ececec;
+				.serious {
+					color: $nav-stateColor4 !important;
+				}
+				.success {
+					color: $nav-stateColor2 !important;
+				}
+				.warning {
+					color: $nav-stateColor5 !important;
+				}
+				.content_list_item_status {
+					font-size: 28rpx;
+					margin-right: 10rpx;
+				}
+				.content_list_item_name {
+					width: 100%;
+					display: flex;
+					align-items: center;
+					span {
+						font-size: 30rpx;
+						font-family: PingFangSC-Regular, PingFang SC;
+						font-weight: 400;
+						color: #222222;
+					}
+				}
+			}
+		}
+	}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3