diff --git a/packages/park/monthlyPaymentOrder/index.css b/packages/park/monthlyPaymentOrder/index.css index 111782e9..dd0dd1ec 100644 --- a/packages/park/monthlyPaymentOrder/index.css +++ b/packages/park/monthlyPaymentOrder/index.css @@ -62,6 +62,11 @@ page{ background: linear-gradient(to right, #ffe7e7, #ffffff); } +.copy-icon { + width: 30rpx; + height: 30rpx; +} + .order-number { font-size: 26rpx; color: #333; diff --git a/packages/park/monthlyPaymentOrder/index.vue b/packages/park/monthlyPaymentOrder/index.vue index 89216dde..92a9111e 100644 --- a/packages/park/monthlyPaymentOrder/index.vue +++ b/packages/park/monthlyPaymentOrder/index.vue @@ -12,6 +12,8 @@ 订单编号:{{ order.order_sn }} + + 取消订单 去支付 @@ -104,6 +106,24 @@ export default { } }, methods: { + //订单编号复制 + copyOrderNo(order_sn) { + uni.setClipboardData({ + data: order_sn, + success: () => { + uni.showToast({ + title: '复制成功', + icon: 'success' + }); + }, + fail: () => { + uni.showToast({ + title: '复制失败', + icon: 'none' + }); + } + }); + }, selectTab(index, item) { this.selectedTab = index; this.getOrderList() @@ -114,7 +134,7 @@ export default { }, // 去支付 goToPayment(order) { - NavgateTo('../parkOrderDetail/index'); + NavgateTo('../parkOrderDetail/index?item=' + JSON.stringify(order)); }, // 获取订单列表 getOrderList() {