添加设置密保、密保改密、版本提示 更新版本v2.2.0 版本号android 10 ios 11
diff --git a/pages/sub_medical/cashFlow.vue b/pages/sub_medical/cashFlow.vue
index 6f5091b..c1030de 100644
--- a/pages/sub_medical/cashFlow.vue
+++ b/pages/sub_medical/cashFlow.vue
@@ -9,7 +9,7 @@
<view v-if="leftOright">
<scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
<view class="cashFlow-ul">
- <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" 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">
<u-image src="./images/pay.png" width="80" height="80"></u-image>
@@ -33,7 +33,7 @@
<view v-if="!leftOright">
<scroll-view scroll-y :enable-back-to-top="true" @scrolltolower="" class="scrollView">
<view class="cashFlow-ul">
- <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" 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">
<u-image src="./images/pay.png" width="80" height="80"></u-image>
@@ -47,7 +47,7 @@
<view class="cashFlow-ul-item-right">
<text>¥{{v.mergingsubtotal}}</text>
</view>
- <view class="cashFlow-ul-item-status" v-if="!v.notifyStatus">通知医院</view>
+ <view class="cashFlow-ul-item-nstatus" v-if="!v.notifyStatus">通知医院</view>
</view>
</view>
</scroll-view>
@@ -60,64 +60,72 @@
data() {
return {
leftOright: true,
- unpay_list:[],
- hospitalcode:'',
- payed_list:[]
+ unpay_list: [],
+ hospitalcode: '',
+ payed_list: []
}
},
- onLoad(options){
+ onLoad(options) {
let hospitalcode = options.hospitalcode
this.hospitalcode = hospitalcode
// this.get_unpay_list(hospitalcode)
},
methods: {
- get_unpay_list(code){
+ get_unpay_list(code) {
let that = this
let param = {
- hospitalcode : code
+ hospitalcode: code
}
- that.$u.post('/medicalapi/unpayed/list',param).then(res=>{
+ that.$u.post('/medicalapi/unpayed/list', param).then(res => {
that.unpay_list = res.data
})
},
- get_payed_list(code){
+ get_payed_list(code) {
let that = this
let param = {
- hospitalcode : code,
- pageno:1,
- pagesize:100
+ hospitalcode: code,
+ pageno: 1,
+ pagesize: 100
}
- that.$u.post('/medicalapi/payed/list',param).then(res=>{
+ that.$u.post('/medicalapi/payed/list', param).then(res => {
let list = res.data
- list.forEach(item=>{
+ list.forEach(item => {
item.paytime = item.transdate.substr(0, 4) +
- "-" + item.transdate.substr(4, 2) + "-" + item.transdate.substr(6, 2) + " " + item.transtime.substr(0, 2) + ":" +
- item.transtime.substr(2, 2) + ":" + item.transtime.substr(4, 2)
+ "-" + item.transdate.substr(4, 2) + "-" + item.transdate.substr(6, 2) + " " + item.transtime.substr(0, 2) +
+ ":" +
+ item.transtime.substr(2, 2) + ":" + item.transtime.substr(4, 2)
})
that.payed_list = list
})
},
changeTurnoverList(e) {
this.leftOright = e
- if(e){
+ if (e) {
this.get_unpay_list(this.hospitalcode)
- }else{
+ } else {
this.get_payed_list(this.hospitalcode)
}
},
},
- onShow(){
- this.get_unpay_list(this.hospitalcode)
+ onShow() {
+ let e = this.leftOright
+ if (e) {
+ this.get_unpay_list(this.hospitalcode)
+ } else {
+ this.get_payed_list(this.hospitalcode)
+ }
}
}
</script>
<style lang="scss" scoped>
- .scrollView{
+ .scrollView {
height: calc(100vh - 130rpx - 100rpx);
}
+
.cashFlow {
font-family: "PingFang-SC-Medium";
+
&-header {
width: 80%;
display: flex;
@@ -135,18 +143,19 @@
border-top: 2rpx solid #F1F1F1;
border-bottom: 2rpx solid #F1F1F1;
}
+
.left {
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-left: 2rpx solid #F1F1F1;
}
-
+
.right {
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border-right: 2rpx solid #F1F1F1;
}
-
+
.color {
background-color: #3599fb;
color: #ffffff;
@@ -154,9 +163,11 @@
border: 2rpx solid transparent;
}
}
- &-ul{
+
+ &-ul {
padding: 0 20rpx;
- &-item{
+
+ &-item {
background-color: #FFFFFF;
display: flex;
justify-content: space-between;
@@ -165,22 +176,34 @@
border-radius: 10rpx;
margin-bottom: 30rpx;
position: relative;
- &-status{
+
+ &-status {
position: absolute;
bottom: 20rpx;
right: 20rpx;
font-size: 26rpx;
color: #18B566;
}
- &-left{
- display: flex;
+
+ &-nstatus{
+ position: absolute;
+ bottom: 20rpx;
+ right: 20rpx;
+ font-size: 26rpx;
+ color: #FF6F6F;
+ }
+
+ &-left {
+ display: flex;
flex-direction: column;
justify-content: space-between;
width: 75%;
- &-top{
+
+ &-top {
display: flex;
align-items: center;
- text{
+
+ text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -189,24 +212,28 @@
font-weight: bold;
}
}
- &-bottom{
+
+ &-bottom {
margin-top: 20rpx;
- &-bold{
+
+ &-bold {
font-size: 32rpx;
font-weight: bold;
}
- &-normal{
+
+ &-normal {
color: #a1a1a1;
}
}
}
- &-right{
+
+ &-right {
font-size: 40rpx;
color: #FF6F6F;
font-weight: bold;
}
}
}
-
+
}
</style>