提交 c2112e93 authored 作者: 刘旭's avatar 刘旭

哟花样式

上级 11aa2a17
<template> <template>
<view class="item-container"> <view class="item-container">
<u-image <u-image width="176rpx" height="176rpx" :src="src?.split('http').length > 1 ? src : baseUrl + src"></u-image>
width="176rpx"
height="176rpx"
:src="src?.split('http').length > 1 ? src : baseUrl + src"
></u-image>
<view class="content"> <view class="content">
<view class="title"> <view class="title">
<text>{{ name }}</text> <text>{{ name }}</text>
...@@ -17,10 +13,8 @@ ...@@ -17,10 +13,8 @@
</text> --> </text> -->
</view> </view>
</view> </view>
<view <view v-if="isCollection"
v-if="isCollection" style="width: 59%; height: 100%; display: flex; justify-content: flex-end; align-items: flex-end;">
style="width: 59%; height: 100%; display: flex; justify-content: flex-end; align-items: flex-end;"
>
<u-button size="mini" style="margin: 0;" @tap="tapCollection">删除</u-button> <u-button size="mini" style="margin: 0;" @tap="tapCollection">删除</u-button>
</view> </view>
</view> </view>
...@@ -76,26 +70,30 @@ let tapCollection = () => { ...@@ -76,26 +70,30 @@ let tapCollection = () => {
.item-container { .item-container {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
height: 208rpx;
padding: 16rpx 32rpx; padding: 16rpx 32rpx;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: flex-start;
background-color: #fff; background-color: #fff;
.content { .content {
flex: 1;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin-left: 20rpx; margin-left: 20rpx;
.title { .title {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.price { .price {
.new-price { .new-price {
font-size: 32rpx; font-size: 32rpx;
} }
.old-price { .old-price {
margin-left: 10rpx; margin-left: 10rpx;
color: #969799; color: #969799;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
:src="item.picUrl?.split('http').length > 1 ? item.picUrl : baseUrl + item.picUrl" class="img"> :src="item.picUrl?.split('http').length > 1 ? item.picUrl : baseUrl + item.picUrl" class="img">
</u-image> </u-image>
<view class="right"> <view class="right">
<view class="name">{{ item.goodsName }}</view> <view class="name">{{ item.productName ? item.productName : item.goodsName }}</view>
<view class="tag"> <view class="tag">
<block v-for="(item1, index1) in item.specifications?.length" :key="index1"> <block v-for="(item1, index1) in item.specifications?.length" :key="index1">
<u-tag :text="item?.specifications[index1]" type="info" size="mini" <u-tag :text="item?.specifications[index1]" type="info" size="mini"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
: baseUrl + item.picUrl : baseUrl + item.picUrl
" class="img"></u-image> " class="img"></u-image>
<view class="right"> <view class="right">
<view class="name">{{ item.goodsName }}</view> <view class="name">{{ item.productName ? item.productName : item.goodsName }}</view>
<view class="tag"> <view class="tag">
<block v-for="(item1, index1) in item.specifications.length" :key="index1"> <block v-for="(item1, index1) in item.specifications.length" :key="index1">
<u-tag :text="item.specifications[index1]" type="info" size="mini" <u-tag :text="item.specifications[index1]" type="info" size="mini"
......
...@@ -814,7 +814,7 @@ let handleEditProductLineData = (editData: any, dataArr?: any[]) => { ...@@ -814,7 +814,7 @@ let handleEditProductLineData = (editData: any, dataArr?: any[]) => {
editData.cartList.forEach((cart: any) => { editData.cartList.forEach((cart: any) => {
cart.map((item: any) => { cart.map((item: any) => {
if (JSON.stringify(item) !== '{}') { if (JSON.stringify(item) !== '{}') {
item['name'] = item.productName ? item.productName : item.goodsName; item['name'] = item.goodsName;
item['show'] = false; item['show'] = false;
item['url'] = item.picUrl; item['url'] = item.picUrl;
item['status'] = 1; item['status'] = 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论