android添加银行插件
diff --git a/pages/sub_medical/cashFlow.vue b/pages/sub_medical/cashFlow.vue
index c1030de..406018c 100644
--- a/pages/sub_medical/cashFlow.vue
+++ b/pages/sub_medical/cashFlow.vue
@@ -9,6 +9,7 @@
<view v-if="leftOright">
<scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
<view class="cashFlow-ul">
+ <u-empty text="暂无待缴费订单" mode="order" v-if="unpay_list.length==0" margin-top="120"></u-empty>
<view class="cashFlow-ul-item" v-for='(v,i) in unpay_list' :key='i' @click="toPath('/pages/sub_medical/pay?msg=' + JSON.stringify(v)+'&id=unpay')">
<view class="cashFlow-ul-item-left">
<view class="cashFlow-ul-item-left-top">
@@ -33,6 +34,7 @@
<view v-if="!leftOright">
<scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
<view class="cashFlow-ul">
+ <u-empty text="暂无已缴费订单" mode="order" v-if="payed_list.length==0" margin-top="120"></u-empty>
<view class="cashFlow-ul-item" v-for='(v,i) in payed_list' :key='i' @click="toPath('/pages/sub_medical/pay?msg=' + JSON.stringify(v) +'&id=payed')">
<view class="cashFlow-ul-item-left">
<view class="cashFlow-ul-item-left-top">
@@ -67,14 +69,17 @@
},
onLoad(options) {
let hospitalcode = options.hospitalcode
+ let cardno = options.cardno
this.hospitalcode = hospitalcode
- // this.get_unpay_list(hospitalcode)
+ this.cardno = cardno
+ //this.get_unpay_list(hospitalcode,cardno)
},
methods: {
- get_unpay_list(code) {
+ get_unpay_list(code,no) {
let that = this
let param = {
- hospitalcode: code
+ hospitalcode: code,
+ cardno:no?no:''
}
that.$u.post('/medicalapi/unpayed/list', param).then(res => {
that.unpay_list = res.data
@@ -101,19 +106,24 @@
changeTurnoverList(e) {
this.leftOright = e
if (e) {
- this.get_unpay_list(this.hospitalcode)
+ this.get_unpay_list(this.hospitalcode,this.cardno)
} else {
this.get_payed_list(this.hospitalcode)
}
},
},
onShow() {
- let e = this.leftOright
- if (e) {
- this.get_unpay_list(this.hospitalcode)
- } else {
- this.get_payed_list(this.hospitalcode)
- }
+ let list = [{mergingName:'西药',subjectName:'骨科',doctorName:'张三',mergingSubtotal:'0.01',status:'init',medicalDate:'20210315143000',
+ hospitalName:'大理市第一人民医院',hospitalcode:'532901107',billNo:'20210407160526000105'},
+ {mergingName:'感冒药',subjectName:'儿科',doctorName:'李武',mergingSubtotal:'0.01',status:'init',medicalDate:'20210315143000',
+ hospitalName:'大理市第一人民医院',hospitalcode:'530602999',billNo:'20210407160526000106',}]
+ this.unpay_list = list
+ // let e = this.leftOright
+ // if (e) {
+ // this.get_unpay_list(this.hospitalcode)
+ // } else {
+ // this.get_payed_list(this.hospitalcode)
+ // }
}
}
</script>