product.vue 3.4 KB
<template>
	<view class="product_all">
		<view class="top">
			<image src="../../static/ic-back-false.png" mode=""></image>
			<view class="search">
				<view class="tosear" @click="gosourch">
					<input type="text" value="" placeholder="搜索"
						placeholder-style="text-align: center;font-size: 28rpx; color: rgba(194,194,194,1);" />
					<image src="../../static/icon-search.png" mode=""></image>
				</view>
			</view>
		</view>
		<view class="misslist">
			<custom-waterfalls-flow :value="list">
				<!-- #ifdef MP-WEIXIN -->
				<view class="item" v-for="(item,index) in list" :key="index" slot="slot{{index}}">
					<view class="title">{{item.title}}</view>
					<view class="desc">
						<text>张三</text>
						<view class="money">
							<text>¥</text>6666
						</view>
					</view>
				</view>
				<!-- #endif -->
				<!-- #ifndef MP-WEIXIN -->
				<template v-slot:default="item">
					<view class="item">
						<view class="title">{{item.title}}</view>
						<view class="desc">
							<text>张三</text>
							<view class="money">
								<text>¥</text>6666
							</view>
						</view>
					</view>
				</template>
				<!-- #endif -->
			</custom-waterfalls-flow>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//瀑布
				list: [{
						image: 'https://via.placeholder.com/200x500.png/ff0000',
						title: '我是标题1',
					},
					{
						image: 'https://via.placeholder.com/200x200.png/2878ff',
						title: '我是标题2',
					}, {
						image: 'https://via.placeholder.com/200x200.png/2878ff',
						title: '我是标题2',
					},
					{
						image: 'https://via.placeholder.com/200x200.png/2878ff',
						title: '我是标题2',
					},
					{
						image: 'https://via.placeholder.com/200x200.png/2878ff',
						title: '我是标题2',
					}
				]

			}
		}
	}
</script>

<style lang="scss">
	page {
		background: rgba(246, 246, 246, 1);
	}

	.product_all {
		.top {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			z-index: 99;
			height: 96rpx;
			opacity: 1;
			background: rgba(255, 255, 255, 1);
			padding: 16rpx 32rpx;
			display: flex;
			box-sizing: border-box;
			align-items: center;

			image {
				margin-right: 32rpx;
				width: 48rpx;
				height: 48rpx;
			}

			.search {
				flex: 1;
				display: flex;
				align-items: center;

				.tosear {
					position: relative;
					width: 522rpx;
					height: 64rpx;
					border-radius: 38rpx;
					opacity: 1;

					border: 0 solid rgba(0.5920000076293945, 0.5920000076293945, 0.5920000076293945, 1);
					background: rgba(245, 245, 245, 1);
					padding: 0 32rpx;

					input {
						text-align: center;
						width: 100%;
						height: 100%;
					}

					image {
						position: absolute;
						left: 280rpx;
						top: 50%;
						left: 36%;
						transform: translateY(-50%);
						width: 32rpx;
						height: 32rpx;
					}
				}
			}

		}

		.misslist {
			margin-top: 132rpx;

			.item {
				padding: 24rpx;
				box-sizing: border-box;

				.desc {
					margin-top: 14rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					color: rgba(0, 0, 0, 0.6);
					font-size: 20rpx;
					font-weight: 400;
					font-family: "PingFang SC";

					.money {

						color: rgba(248, 83, 23, 1);
						font-size: 32rpx;
						font-weight: 700;
						font-family: "Montserrat";

						text {
							font-size: 24rpx;
							font-weight: 500;
						}
					}
				}
			}

		}
	}
</style>