lilei 2 years ago
parent
commit
4713c5bcb8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pages/sales/bill.vue

+ 5 - 1
pages/sales/bill.vue

@@ -52,7 +52,7 @@
 						折让:
 						<text>¥{{ backDiscountVal||0 }}</text>
 					</view>
-					<view class="costBtn" @click="costShow = true">打折</view>
+					<view class="costBtn" @click="openCostShow">打折</view>
 				</view>
 			</view>
 			<view class="f-btns">
@@ -374,6 +374,10 @@ export default {
 				url
 			});
 		},
+		openCostShow(){
+			this.costShow = true
+			this.discountVal = this.backDiscountVal||''
+		},
 		handleDisCount() {
 			if (this.discountVal*1 > this.chooseTotalPayPrice*1) {
 				uni.showToast({