调整样式
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
flex-shrink: 0;
|
||||
|
||||
&__btn {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
border-radius: 50%;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
|
||||
@@ -115,8 +115,8 @@
|
||||
}
|
||||
|
||||
&__img {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 8rpx;
|
||||
background: #f2f3f5;
|
||||
flex-shrink: 0;
|
||||
@@ -149,6 +149,14 @@
|
||||
|
||||
&__amount {
|
||||
font-size: 28rpx;
|
||||
color: #ee0a24;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
&__price {
|
||||
font-size: 24rpx;
|
||||
color: #323233;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
|
||||
@@ -161,13 +161,17 @@ export default function BillDetailPage() {
|
||||
/>
|
||||
)}
|
||||
<View className='bill-goods__main'>
|
||||
<Text className='bill-goods__name'>{item.product_name}</Text>
|
||||
<Text className='bill-goods__spec'>
|
||||
{formatSpec(item.product_spec, item.unit)}{' ¥'}{item.price}
|
||||
</Text>
|
||||
<View className='bill-goods__name'>{item.product_name}</View>
|
||||
<View className='bill-goods__spec'>
|
||||
{formatSpec(item.product_spec, item.unit)}
|
||||
</View>
|
||||
<View className='bill-goods__spec'>
|
||||
单价:{formatRetailPrice(item.price, item.spec)} {item.price_unit}
|
||||
</View>
|
||||
</View>
|
||||
<View className='bill-goods__side'>
|
||||
<Text className='bill-goods__amount'>¥{item.price} × {item.quantity}</Text>
|
||||
<Text className='bill-goods__price'>¥{item.price} × {item.quantity}</Text>
|
||||
<View className='bill-goods__amount'>¥{item.amount}</View>
|
||||
</View>
|
||||
</View>
|
||||
))}
|
||||
|
||||
@@ -59,8 +59,8 @@
|
||||
}
|
||||
|
||||
&__image {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
border-radius: 12rpx;
|
||||
background: #f2f3f5;
|
||||
flex-shrink: 0;
|
||||
@@ -108,7 +108,6 @@
|
||||
}
|
||||
|
||||
&__spec {
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
color: #969799;
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ export default function CartPage() {
|
||||
</View>
|
||||
<Text className='cart-item__spec'>
|
||||
{formatSpec(item.spec, item.unit)}{' '}
|
||||
单价:{formatRetailPrice(item.price, item.spec)} {item.price_unit}
|
||||
<View>单价:{formatRetailPrice(item.price, item.spec)} {item.price_unit}</View>
|
||||
</Text>
|
||||
<View className='cart-item__bottom'>
|
||||
<Text className='cart-item__price'>¥{item.price}</Text>
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
}
|
||||
|
||||
&__bottom {
|
||||
margin-top: 16rpx;
|
||||
margin-top: 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -320,8 +320,8 @@
|
||||
}
|
||||
|
||||
&__add {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #ee0a24, #ff6034);
|
||||
display: flex;
|
||||
|
||||
@@ -318,9 +318,11 @@ export default function IndexPage() {
|
||||
<Text className='product-card__name'>{product.name}</Text>
|
||||
<View className='product-card__spec'>
|
||||
{formatSpec(product.spec, product.unit)}{' '}
|
||||
{product.price !== null && <>
|
||||
单价:{formatRetailPrice(product.price, product.spec)} {product.price_unit}
|
||||
</>}
|
||||
<View>
|
||||
{product.price !== null && <>
|
||||
单价:{formatRetailPrice(product.price, product.spec)} {product.price_unit}
|
||||
</>}
|
||||
</View>
|
||||
</View>
|
||||
<View className='product-card__bottom'>
|
||||
{product.price !== null ? (
|
||||
|
||||
@@ -111,8 +111,8 @@
|
||||
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
|
||||
|
||||
&__image {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
border-radius: 12rpx;
|
||||
background: #f2f3f5;
|
||||
flex-shrink: 0;
|
||||
@@ -136,7 +136,6 @@
|
||||
}
|
||||
|
||||
&__spec {
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
color: #969799;
|
||||
}
|
||||
@@ -161,8 +160,8 @@
|
||||
}
|
||||
|
||||
&__add {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
border-radius: 50%;
|
||||
background: #ee0a24;
|
||||
display: flex;
|
||||
|
||||
@@ -291,9 +291,11 @@ export default function ProductPage() {
|
||||
<Text className='product-item__name'>{product.name}</Text>
|
||||
<Text className='product-item__spec'>
|
||||
{formatSpec(product.spec, product.unit)}{' '}
|
||||
{product.price !== null && <>
|
||||
单价:{formatRetailPrice(product.price, product.spec)} {product.price_unit}
|
||||
</>}
|
||||
<View>
|
||||
{product.price !== null && <>
|
||||
单价:{formatRetailPrice(product.price, product.spec)} {product.price_unit}
|
||||
</>}
|
||||
</View>
|
||||
</Text>
|
||||
<View className='product-item__bottom'>
|
||||
{product.price !== null ? (
|
||||
|
||||
@@ -74,6 +74,8 @@ export interface BillItem {
|
||||
amount: string
|
||||
/** 商品首图 URL(无图为空字符串) */
|
||||
image: string
|
||||
price_unit: string
|
||||
spec: string
|
||||
}
|
||||
|
||||
/** 账单关联订单 */
|
||||
|
||||
@@ -10,8 +10,8 @@ const LOGIN_PATH = '/pages/login/index'
|
||||
/** 默认请求超时(ms) */
|
||||
const DEFAULT_TIMEOUT = 15000
|
||||
/** 接口根地址(uploadFile 等原生请求同样使用) */
|
||||
// export const BASE_URL = "http://localhost:8000/index.php"
|
||||
export const BASE_URL = "https://purchase.henanklkj.com/index.php"
|
||||
export const BASE_URL = "http://localhost:8000"
|
||||
// export const BASE_URL = "https://purchase.henanklkj.com/index.php"
|
||||
|
||||
/**
|
||||
* HTTP 状态码 → 错误提示映射
|
||||
|
||||
Reference in New Issue
Block a user