jiangchengfeiyi-xiaochengxu/pages/Shopping-cart/productmain/productmain.vue

297 lines
6.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="flex-col page">
<view class="flex-col">
<view class="flex-col justify-start items-end text-wrapper"><text class="font text">编辑</text></view>
<view class="flex-col section">
<view class="flex-row justify-between self-stretch group">
<text class="font text_2">商品类</text>
<text class="font">服务类</text>
</view>
<view class="self-start section_2"></view>
</view>
<view class="flex-col list">
<view class="flex-col mt-10 list-item section_3" v-for="(item, index) in items" :key="index">
<view class="flex-row">
<image
class="self-start image_4"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=a2def3a82a38998ae0686f132a02f94f.png"
/>
<image
class="image image_2"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=ece79e7a9c745b4953d1f268e0c2096c.png"
/>
<view class="flex-col self-start group_2">
<view class="flex-row group_3">
<text class="font_2">非遗绒花</text>
<text class="ml-4 font_2">材料包</text>
</view>
<view class="flex-col section_4">
<text class="self-start font_3 text_3">已选种类紫色</text>
<image
class="shrink-0 self-end image_3"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=ca9cf42222294d2fd1264864434d6576.png"
/>
</view>
</view>
</view>
<view class="mt-10 flex-row justify-end items-center group_4">
<view class="flex-row items-center">
<text class="font_4 text_4">138.</text>
<image
class="shrink-0 image_7"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=b394eb4b1d40284e55eab0b7e3ef2da3.png"
/>
<text class="font_5 text_5">00</text>
</view>
<view class="flex-row ml-79">
<image
class="image_5"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=9d8478d42d790ba0ecf60a8cb7cf8f23.png"
/>
<view class="ml-2 flex-col justify-start items-center text-wrapper_2">
<text class="font_6 text_6">1</text>
</view>
<image
class="ml-2 image_6"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=c0868803ec8c20a8c962be98aa974c4e.png"
/>
</view>
</view>
</view>
</view>
</view>
<view class="flex-row justify-between items-center section_6 mt-243">
<view class="flex-row items-center">
<image
class="shrink-0 image_9"
src="https://ide.code.fun/api/image?token=6711ccc71511d900114adddf&name=3f81d5886d1e216ce7cc53687e0c5499.png"
/>
<text class="ml-10 font text_7">全选</text>
</view>
<view class="flex-col justify-start items-center text-wrapper_3"><text class="text_8">删除</text></view>
</view>
</view>
</template>
<script setup>
import {
ref
} from 'vue'
const items = ref([null, null, null, null, null, null, null])
// const products = ref([
// {
// "product_name" : "非遗绒花",
// "product_type" : "材料包",
// "selected_style" : "紫色",
// "product_num" : 1,
// "product_price" : 138,
// "product_img" : product_img,
// "pull_img" : pull_img,
// "select_img" : select_img,
// "rmb_img" : rmb_img,
// "min_img" : min_img,
// "add_img" : add_img
// }
// ])
</script>
<style lang="scss" scoped>
.ml-79 {
margin-left: 148.13rpx;
}
.mt-243 {
margin-top: 455.63rpx;
}
.page {
background-color: #f8e8c1;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
height: 100%;
}
.text-wrapper {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 26.25rpx 0;
background-color: #f5f5dc;
}
.section {
position: fixed;
top: 75rpx;
right: 0;
left: 0;
padding: 0 121.88rpx;
background-color: #fffef8;
}
.group {
padding: 18.75rpx 3.75rpx 18.75rpx 11.25rpx;
}
.section_2 {
background-color: #fb8b05;
width: 112.5rpx;
height: 5.63rpx;
}
.list {
margin-top: 134rpx;
margin-bottom: 125rpx;
padding: 18.75rpx 13.13rpx 0;
}
.list-item {
padding: 33.75rpx 18.75rpx;
background-color: #fffef8;
border-radius: 18.75rpx;
}
.list-item:first-child {
margin-top: 0;
}
.section_3 {
margin-right: 5.63rpx;
}
.image_4 {
margin-top: 86.25rpx;
width: 31.88rpx;
height: 31.88rpx;
}
.image {
border-radius: 9.38rpx;
width: 146.25rpx;
height: 144.38rpx;
}
.image_2 {
margin-left: 48.75rpx;
}
.group_2 {
margin-left: 30rpx;
}
.group_3 {
padding-bottom: 15rpx;
}
.font_2 {
font-size: 26.25rpx;
font-family: Open Sans;
line-height: 24.43rpx;
color: #323232;
}
.section_4 {
padding: 11.25rpx 15rpx 24.38rpx;
background-color: #f5f5dc;
border-radius: 9.38rpx;
}
.font_3 {
font-size: 22.5rpx;
font-family: Open Sans;
line-height: 19.29rpx;
color: #818181;
}
.text_3 {
line-height: 20.79rpx;
}
.image_3 {
margin-right: 7.5rpx;
margin-top: -7.5rpx;
width: 22.5rpx;
height: 22.5rpx;
}
.group_4 {
padding: 0 5.63rpx;
}
.font_4 {
font-size: 33.75rpx;
font-family: Open Sans;
line-height: 24.43rpx;
font-weight: 600;
color: #fb8b05;
}
.text_4 {
margin-left: 26.25rpx;
line-height: 24.88rpx;
}
.image_7 {
margin-left: -90rpx;
width: 30rpx;
height: 26.25rpx;
}
.font_5 {
font-size: 26.25rpx;
font-family: Open Sans;
line-height: 19.29rpx;
font-weight: 600;
color: #fb8b05;
}
.text_5 {
margin-left: 60rpx;
}
.image_5 {
border-radius: 9.38rpx 0rpx 0rpx 9.38rpx;
width: 45rpx;
height: 45rpx;
}
.text-wrapper_2 {
padding: 15rpx 0;
background-color: #f5f5dc;
width: 58.13rpx;
height: 45rpx;
}
.font_6 {
font-size: 26.25rpx;
font-family: Open Sans;
line-height: 19.29rpx;
color: #323232;
}
.text_6 {
line-height: 18.73rpx;
}
.image_6 {
border-radius: 0rpx 9.38rpx 9.38rpx 0rpx;
width: 45rpx;
height: 45rpx;
}
.image_9 {
width: 37.5rpx;
height: 37.5rpx;
}
.section_6 {
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 18.75rpx;
background-color: #fffef8;
}
.font {
font-size: 30rpx;
font-family: Open Sans;
line-height: 27.69rpx;
color: #323232;
}
.text_2 {
line-height: 27.6rpx;
}
.text {
margin-right: 30rpx;
line-height: 27.79rpx;
}
.text_7 {
line-height: 27.64rpx;
}
.text-wrapper_3 {
margin-right: 3.75rpx;
padding: 22.5rpx 0;
background-color: #ffd45a;
border-radius: 75rpx;
width: 219.38rpx;
height: 76.88rpx;
}
.text_8 {
color: #ffffff;
font-size: 33.75rpx;
font-family: Open Sans;
line-height: 30.97rpx;
}
@import url(../../../common/css/global.css);
</style>