|
@@ -91,6 +91,7 @@
|
|
|
<script>
|
|
|
//#ifdef APP-PLUS
|
|
|
let speak = uni.requireNativePlugin("SpeechPlug");
|
|
|
+ let ALog = uni.requireNativePlugin("AndroidLog")
|
|
|
//#endif
|
|
|
export default {
|
|
|
data() {
|
|
@@ -109,6 +110,10 @@
|
|
|
vehicleType:0,
|
|
|
payStatus:null,
|
|
|
showPayway:false,
|
|
|
+ payParams:{
|
|
|
+ orderList:[],
|
|
|
+ code:''
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -162,18 +167,59 @@
|
|
|
payThis(){
|
|
|
this.showOrderDetails = false;
|
|
|
this.showPayway = true;
|
|
|
+ this.payParams.orderList.push(this.leaveDetail.orderId);
|
|
|
},
|
|
|
payAll(){
|
|
|
this.showOrderDetails = false;
|
|
|
this.showPayway = true;
|
|
|
+ this.payParams.orderList.push(this.leaveDetail.orderId);
|
|
|
+ this.leaveDetail.oweList.forEach(item=>{
|
|
|
+ this.payParams.orderList.push(item.orderId);
|
|
|
+ });
|
|
|
},
|
|
|
closePayway(){
|
|
|
this.showPayway = false;
|
|
|
},
|
|
|
scanPay(){
|
|
|
-
|
|
|
+ console.log('this.payParams',this.payParams);
|
|
|
+ ALog('开始扫描');
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ ALog('开始扫描111');
|
|
|
+ //#endif
|
|
|
+ uni.scanCode({
|
|
|
+ onlyFromCamera: true,
|
|
|
+ success: function (res) {
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ plus.nativeUI.toast(res.result);
|
|
|
+ ALog('条码类型:' + res.scanType);
|
|
|
+ //#endif
|
|
|
+
|
|
|
+ console.log('条码类型:' + res.scanType);
|
|
|
+ console.log('条码内容:' + res.result);
|
|
|
+ },
|
|
|
+ fail:function(err){
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ ALog('条码类型:err' + err);
|
|
|
+ //#endif
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$u.api.gzbankSwept()
|
|
|
+ .then(res=>{
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: res.msg,
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ console.log('gzbankSwept',res)
|
|
|
+ }).catch(err=>{
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: err.msg,
|
|
|
+ type: 'error',
|
|
|
+ });
|
|
|
+ console.log('gzbankSwept ',err)
|
|
|
+ });
|
|
|
},
|
|
|
qrPay(){
|
|
|
+ console.log('this.payParams',this.payParams);
|
|
|
|
|
|
},
|
|
|
confirmOut(){
|