Explorar el Código

扫码退款问题

shish hace 2 meses
padre
commit
d0bca4fe94

+ 3 - 1
ghsApp/src/admin/order/scanPayDetail.vue

@@ -111,7 +111,9 @@ export default {
 .tip {
 	margin-top: 20upx;
 	padding: 16upx;
-	font-size: 24upx;
+	text-align: center;
+	font-size: 30upx;
+	font-weight: bold;
 	border-radius: 8upx;
 }
 .online-tip {

+ 5 - 2
ghsApp/src/admin/order/scanPayRefund.vue

@@ -10,7 +10,7 @@
 	<view class="card">
 		<view class="form-label">退款金额</view>
 		<view class="input-wrap">
-			<input class="input" type="digit" v-model="refundMoney" placeholder="请输入退款金额" />
+			<input class="input" type="digit" v-model="refundMoney" placeholder="请输入退款金额" @focus="onRefundMoneyFocus" />
 			<text class="unit">元</text>
 		</view>
 		<view class="form-label">备注</view>
@@ -46,6 +46,9 @@ export default {
 		this.loadDetail();
 	},
 	methods: {
+		onRefundMoneyFocus() {
+			this.refundMoney = '';
+		},
 		loadDetail() {
 			if (!this.id) return;
 			getScanPayDetail({ id: this.id }).then(res => {
@@ -81,7 +84,7 @@ export default {
 				if (res.code == 1) {
 					this.$msg('退款成功');
 					setTimeout(() => {
-						this.$util.pageTo({ url: '/admin/order/scanPayDetail', query: { id: this.id }, type: 2 });
+						uni.navigateBack({ delta: 1 });
 					}, 500);
 				}
 			});

+ 3 - 1
hdApp/src/admin/order/scanPayDetail.vue

@@ -111,7 +111,9 @@ export default {
 .tip {
 	margin-top: 20upx;
 	padding: 16upx;
-	font-size: 24upx;
+	font-size: 30upx;
+	text-align: center;
+	font-weight: bold;
 	border-radius: 8upx;
 }
 .online-tip {

+ 9 - 4
hdApp/src/admin/order/scanPayRefund.vue

@@ -10,7 +10,7 @@
 	<view class="card">
 		<view class="form-label">退款金额</view>
 		<view class="input-wrap">
-			<input class="input" type="digit" v-model="refundMoney" placeholder="请输入退款金额" />
+			<input class="input" type="digit" v-model="refundMoney" placeholder="请输入退款金额" @focus="onRefundMoneyFocus" />
 			<text class="unit">元</text>
 		</view>
 		<view class="form-label">备注</view>
@@ -46,6 +46,9 @@ export default {
 		this.loadDetail();
 	},
 	methods: {
+		onRefundMoneyFocus() {
+			this.refundMoney = '';
+		},
 		loadDetail() {
 			if (!this.id) return;
 			getScanPayDetail({ id: this.id }).then(res => {
@@ -81,7 +84,7 @@ export default {
 				if (res.code == 1) {
 					this.$msg('退款成功');
 					setTimeout(() => {
-						this.$util.pageTo({ url: '/admin/order/scanPayDetail', query: { id: this.id }, type: 2 });
+						uni.navigateBack({ delta: 1 });
 					}, 500);
 				}
 			});
@@ -113,8 +116,10 @@ export default {
 .tip {
 	display: block;
 	margin-top: 16upx;
-	padding: 16upx 0;
-	font-size: 28upx;
+	padding: 16upx;
+	font-size: 30upx;
+	text-align: center;
+	font-weight: bold;
 	border-radius: 8upx;
 }
 .online-tip {