mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-08-06 02:47:25 +08:00
fix: 优化订单详情和购物车列表组件的交互与样式
- 在订单详情中添加复制订单编号的提示,避免空值复制 - 更新购物车列表中的样式,确保价格和数量显示更为美观 - 调整促销信息的展示逻辑,提升用户体验
This commit is contained in:
@@ -145,7 +145,9 @@
|
||||
<view class="title">订单编号:</view>
|
||||
<view class="value order-sn-value">
|
||||
<text class="order-sn-text">{{ order.sn }}</text>
|
||||
<u-tag class="copy" text="复制" type="info" mode="plain" size="mini" @click="onCopy(order.sn)" />
|
||||
<view class="copy" @click.stop="onCopy(order.sn)">
|
||||
<u-tag text="复制" type="info" plain size="mini" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-info-view">
|
||||
@@ -395,7 +397,11 @@ function gotoGoodsDetail(sku: any) {
|
||||
}
|
||||
|
||||
function onCopy(orderSnText: string) {
|
||||
setClipboard(orderSnText)
|
||||
if (!orderSnText) {
|
||||
uni.showToast({ title: '暂无订单编号', icon: 'none' })
|
||||
return
|
||||
}
|
||||
setClipboard(String(orderSnText))
|
||||
}
|
||||
|
||||
function onAfterSales(orderSnText: string, sku: any) {
|
||||
|
||||
Reference in New Issue
Block a user