<template>
	<view class="flex-row relative page" >
	  <view class="flex-row items-center section pos_8">
	    <text class="text">商品</text>
	    <view class="flex-row items-center section_2 ml-15">
	      <image
	        class="image"
	        src="https://ide.code.fun/api/image?token=671134c30a3d780012a6a0cb&name=9be8d37ecdad5a4ae97f3017b8b13575.png"
	      />
	      <input class="text-wrapper ml-3" placeholder="请输入内容" />
	    </view>
	  </view>
	  <view class="flex-col justify-start items-center image-wrapper pos_1">
	    <image
	      class="shrink-0 image_2"
	      src="https://ide.code.fun/api/image?token=671134c30a3d780012a6a0cb&name=c19b431d73c59a746bd217b8a353ca67.png"
	    />
	  </view>
	  <view class="flex-col justify-start section_3 pos_9">
	    <view class="flex-col group">
	      <view class="flex-col items-center list-item mt-5" v-for="(item, index) in items" :key="index">
	        <image
	          class="image_3"
	          src="https://ide.code.fun/api/image?token=671134c30a3d780012a6a0cb&name=4b46c006ee9f8388c51d11f8b462c8f5.png"
	        />
	        <text class="font_4 mt-3">材料包</text>
	      </view>
	    </view>
	  </view>
	  <view class="flex-col justify-start section_4 pos_4">
	    <view class="flex-col items-start section_5">
	      <text class="font_2">材料包</text>
	      <text class="font_3 text_3 mt-6">提供材料自行DIY</text>
	    </view>
	  </view>
	  <view class="flex-col pos_5">
		<scroll-view scroll-y class="scrollable-content">
	    <view class="flex-row section_9 list-item_2 mt-5" v-for="(item, index) in items_1" :key="index">
	      <image
	        class="self-center image_4"
	        src="https://ide.code.fun/api/image?token=671134c30a3d780012a6a0cb&name=682a9a6efb91272ba3486d226ba35cca.png"
	      />
	      <view class="flex-col items-start self-center group_3">
	        <text class="font_2 text_5">琉璃发体验包</text>
	        <text class="font_3 mt-13">非遗材料包，匠心独运</text>
	        <text class="font mt-13">￥750</text>
	      </view>
	      <image
	        class="self-start image_5"
	        src="https://ide.code.fun/api/image?token=671134c30a3d780012a6a0cb&name=36a97f4b57f481cce8fb5a8fdc202943.png"
	      />
	    </view>
		</scroll-view>
	  </view>
	</view>
</template>

<script setup>
	import {ref} from 'vue'
	const items = ref([null, null, null, null, null])
	const items_1 = ref([null, null, null, null, null, null, null, null])
	
	const jump = () => {
		console.log(3333)
		uni.navigateTo({
			url: '../test/test'
		})
	}
</script>

<style lang="scss" scoped>
	.scrollable-content{
		height: 56vh; /* 100px 是头部和底部的高度之和 */
	}
	.ml-15 {
	  margin-left: 28.13rpx;
	}
	.ml-3 {
	  margin-left: 5.63rpx;
	}
	.mt-3 {
	  margin-top: 5.63rpx;
	}
	.mt-13 {
	  margin-top: 24.38rpx;
	}
	.mt-5 {
	  margin-top: 9.38rpx;
	}
	.page {
	  background-color: #f5f5dc;
	  // height: 1413.75rpx;
	  width: 100%;
	  overflow-y: auto;
	  overflow-x: hidden;
	  height: 100vh;
	  overflow: hidden;
	}
	.section {
	  padding: 22.5rpx 39.28rpx 16.88rpx;
	  background-color: #f7de98;
	}
	.pos_8 {
	  position: absolute;
	  left: 0;
	  right: 0;
	  top: 0;
	}
	.text {
	  color: #c1651a;
	  font-size: 37.5rpx;
	  font-family: STFangsong;
	  line-height: 36.19rpx;
	}
	.section_2 {
	  padding: 5.63rpx 15rpx 8.44rpx;
	  background-color: #ffffff;
	  border-radius: 28.13rpx;
	  height: 63.75rpx;
	  width: 500.69rpx;
	}
	.image {
	  width: 50.63rpx;
	  height: 50.63rpx;
	}
	.text-wrapper {
	  margin-right: 17.42rpx;
	}
	.font {
	  font-size: 26.25rpx;
	  font-family: STFangsong;
	  line-height: 18rpx;
	  color: #ff0000;
	}
	.image-wrapper {
	  background-color: #ffffff;
	  border-radius: 28.13rpx;
	  overflow: hidden;
	  border: solid 9.38rpx #ffffff;
	}
	.pos_1 {
	  position: absolute;
	  left: 22.5rpx;
	  right: 24.38rpx;
	  top: 118.13rpx;
	}
	.image_2 {
	  width: 91.25vw;
	  height: 37.5vw;
	}
	.section_3 {
	  padding: 8.44rpx 5.63rpx 750rpx;
	  background-color: #f7de98;
	  width: 151.88rpx;
	}
	.pos_9 {
	  position: absolute;
	  left: 0;
	  top: 440.63rpx;
	}
	.group {
	  margin: auto;
	  width: 137.81rpx;
	}
	.list-item {
	  padding: 11.25rpx 0 9.94rpx;
	  background-color: #fffef8;
	  border-radius: 9.38rpx;
	}
	.list-item:first-child {
	  margin-top: 0;
	}
	.image_3 {
	  border-radius: 0rpx 9.38rpx 9.38rpx 0rpx;
	  width: 48.75rpx;
	  height: 48.75rpx;
	}
	.font_4 {
	  font-size: 30rpx;
	  font-family: STFangsong;
	  line-height: 28.26rpx;
	  color: #c1651a;
	}
	.section_4 {
	  padding-bottom: 879.38rpx;
	  background-color: #f8e8c1;
	  border-radius: 0rpx 18.75rpx 0rpx 0rpx;
	  width: 600.13rpx;
	}
	.pos_4 {
	  position: absolute;
	  right: 0;
	  top: 440.63rpx;
	}
	.section_5 {
	  padding: 18.06rpx 16.24rpx 14.94rpx;
	  background-color: #fffef8;
	  border-radius: 0rpx 18.75rpx 0rpx 0rpx;
	  width: 598.13rpx;
	}
	.font_2 {
	  font-size: 30rpx;
	  font-family: STFangsong;
	  line-height: 28.26rpx;
	  color: #000000;
	}
	.font_3 {
	  font-size: 22.5rpx;
	  font-family: STFangsong;
	  line-height: 21.56rpx;
	  color: #727272;
	}
	.text_3 {
	  line-height: 21.15rpx;
	}
	.pos_5 {
	  position: absolute;
	  right: 15rpx;
	  top: 543.75rpx;
	}
	.section_9 {
	  padding: 20.63rpx 22.88rpx 22.5rpx;
	  background-color: #fffef8;
	  border-radius: 9.38rpx;
	  right: 13.13rpx;
	}
	.list-item_2:first-child {
	  margin-top: 0;
	}
	.image_4 {
	  border-radius: 9.38rpx;
	  width: 131.25rpx;
	  height: 131.25rpx;
	}
	.group_3 {
	  margin-left: 24.84rpx;
	}
	.text_5 {
	  line-height: 28.65rpx;
	}
	.image_5 {
	  margin: 75rpx 5.63rpx 0 107.96rpx;
	  border-radius: 9.38rpx;
	  width: 56.25rpx;
	  height: 56.25rpx;
	}

	@import url(../../../common/css/global.css);
</style>