602 lines
11 KiB
Vue
602 lines
11 KiB
Vue
<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 products" :key="index" >
|
|
<view class="flex-row">
|
|
<image
|
|
class="self-start image_4"
|
|
:src="item.select_img"
|
|
/>
|
|
<image
|
|
class="image image_2" @click="jump_product"
|
|
:src="item.product_img"
|
|
/>
|
|
<view class="flex-col self-start group_2">
|
|
<view class="flex-row group_3" @click="jump_product">
|
|
<text class="font_2">{{ item.product_name }}</text>
|
|
<text class="ml-4 font_2">【{{ item.product_type }}】</text>
|
|
</view>
|
|
<view class="flex-col section_4">
|
|
<text class="self-start font_3 text_3">已选种类:{{ item.selected_style }}</text>
|
|
<image
|
|
class="shrink-0 self-end image_3"
|
|
:src="item.pull_img"
|
|
/>
|
|
</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">{{ item.product_price }}</text>
|
|
<image
|
|
class="shrink-0 image_7"
|
|
:src="rmb"
|
|
/>
|
|
<text class="font_5 text_5">.00</text>
|
|
</view>
|
|
<view class="flex-row ml-79">
|
|
<image
|
|
class="image_5"
|
|
:src="short"
|
|
/>
|
|
<view class="ml-2 flex-col justify-start items-center text-wrapper_2">
|
|
<text class="font_6 text_6">{{ item.product_num }}</text>
|
|
</view>
|
|
<image
|
|
class="ml-2 image_6"
|
|
:src="add"
|
|
/>
|
|
</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="choose"
|
|
/>
|
|
<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'
|
|
import product_img from '@/pages/Shopping-cart/productmain/img/productimg.png';
|
|
import add from '@/pages/Shopping-cart/productmain/img/add.png';
|
|
import choose from '@/pages/Shopping-cart/productmain/img/choose.png';
|
|
import choosed from '@/pages/Shopping-cart/productmain/img/choosed.png';
|
|
import pull from '@/pages/Shopping-cart/productmain/img/pull.png';
|
|
import rmb from '@/pages/Shopping-cart/productmain/img/rmb.png';
|
|
import short from '@/pages/Shopping-cart/productmain/img/short.png';
|
|
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,
|
|
"select_img" : choose,
|
|
"rmb_img" : rmb,
|
|
"min_img" : short,
|
|
"add_img" : add
|
|
},
|
|
{
|
|
"product_name" : "非遗绒花",
|
|
"product_type" : "材料包",
|
|
"selected_style" : "紫色",
|
|
"product_num" : 1,
|
|
"product_price" : 138,
|
|
"product_img" : product_img,
|
|
"pull_img" : pull,
|
|
"select_img" : choose,
|
|
"rmb_img" : rmb,
|
|
"min_img" : short,
|
|
"add_img" : add
|
|
},
|
|
{
|
|
"product_name" : "非遗绒花",
|
|
"product_type" : "材料包",
|
|
"selected_style" : "紫色",
|
|
"product_num" : 1,
|
|
"product_price" : 138,
|
|
"product_img" : product_img,
|
|
"pull_img" : pull,
|
|
"select_img" : choose,
|
|
"rmb_img" : rmb,
|
|
"min_img" : short,
|
|
"add_img" : add
|
|
},
|
|
{
|
|
"product_name" : "非遗绒花",
|
|
"product_type" : "材料包",
|
|
"selected_style" : "紫色",
|
|
"product_num" : 1,
|
|
"product_price" : 138,
|
|
"product_img" : product_img,
|
|
"pull_img" : pull,
|
|
"select_img" : choose,
|
|
"rmb_img" : rmb,
|
|
"min_img" : short,
|
|
"add_img" : add
|
|
},
|
|
{
|
|
"product_name" : "非遗绒花",
|
|
"product_type" : "材料包",
|
|
"selected_style" : "紫色",
|
|
"product_num" : 1,
|
|
"product_price" : 138,
|
|
"product_img" : product_img,
|
|
"pull_img" : pull,
|
|
"select_img" : choose,
|
|
"rmb_img" : rmb,
|
|
"min_img" : short,
|
|
"add_img" : add
|
|
},
|
|
{
|
|
"product_name" : "非遗绒花",
|
|
"product_type" : "材料包",
|
|
"selected_style" : "紫色",
|
|
"product_num" : 1,
|
|
"product_price" : 138,
|
|
"product_img" : product_img,
|
|
"pull_img" : pull,
|
|
"select_img" : choose,
|
|
"rmb_img" : rmb,
|
|
"min_img" : short,
|
|
"add_img" : add
|
|
}
|
|
])
|
|
const jump_product =()=>{
|
|
uni.navigateTo({
|
|
url:'../../../pages/store-home/ProductDetails/ProductDetails'
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.ml-79 {
|
|
margin-left: 148.13rpx;
|
|
}
|
|
|
|
.mt-243 {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.page {
|
|
background-color: #f8e8c1;
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.text-wrapper {
|
|
padding: 26.25rpx 0;
|
|
background-color: #f5f5dc;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.section {
|
|
padding: 0 121.88rpx;
|
|
background-color: #fffef8;
|
|
position: fixed;
|
|
top: 70rpx;
|
|
width: 100%;
|
|
}
|
|
|
|
.group {
|
|
padding: 18.75rpx 3.75rpx 18.75rpx 11.25rpx;
|
|
}
|
|
|
|
.section_2 {
|
|
background-color: #fb8b05;
|
|
width: 112.5rpx;
|
|
height: 5.63rpx;
|
|
}
|
|
|
|
.list {
|
|
// background-color: ;
|
|
padding: 9.35rpx 18.75rpx 9.35rpx 18.75rpx ;
|
|
padding-bottom: 200rpx;
|
|
}
|
|
|
|
.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 {
|
|
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;
|
|
}
|
|
.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> |