diff --git a/pkg_product/views/experienceCouponOrderDetail.vue b/pkg_product/views/experienceCouponOrderDetail.vue index 4e09cd5..8888ece 100644 --- a/pkg_product/views/experienceCouponOrderDetail.vue +++ b/pkg_product/views/experienceCouponOrderDetail.vue @@ -67,7 +67,10 @@ 订单号: - {{ orderInfo.orderId || '' }} + + {{ orderInfo.orderId || '' }} + + 订单类型: @@ -259,6 +262,20 @@ export default { }) } }) + }, + copyOrderId() { + if (!this.orderInfo.orderId) { + return + } + uni.setClipboardData({ + data: this.orderInfo.orderId, + success: () => { + uni.showToast({ + title: '已复制订单号', + icon: 'none' + }) + } + }) } } } @@ -522,6 +539,15 @@ export default { flex: 1; } +.info-row .value.with-copy { + display: flex; + align-items: center; +} + +.info-row .value.with-copy .copy-icon { + margin-left: 16rpx; +} + .notice-section { background: #fff; border-radius: 16rpx;