修改
This commit is contained in:
parent
2ead27f329
commit
0a540064ff
@ -31,7 +31,7 @@
|
||||
已过期
|
||||
</view>
|
||||
</view>
|
||||
<view class="rollup" v-if="couponlist.length>0">
|
||||
<view class="rollup" v-if="couponlist">
|
||||
<view class="item" v-for="(item,index) in couponlist" :key="index"
|
||||
:style="item.useStatus!='NOT_USED'?'height:180rpx':''">
|
||||
<view class="top" :style="item.useStatus!='NOT_USED'?'background: #EFECEC;color: #4B4B4B;':''">
|
||||
@ -67,7 +67,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="noorder" v-if="couponlist.length==0">
|
||||
<view class="noorder" v-else>
|
||||
<u-empty mode="coupon" icon-size='220'></u-empty>
|
||||
</view>
|
||||
</view>
|
||||
@ -83,7 +83,7 @@
|
||||
return {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
couponlist: [],
|
||||
couponlist: null,
|
||||
total: 0,
|
||||
couponstatus: '', //状态
|
||||
patientId: null,
|
||||
@ -107,7 +107,9 @@
|
||||
methods: {
|
||||
getlist() {
|
||||
selectCoupon(this.pageNum, this.pageSize, this.patientId, this.couponstatus).then(res => {
|
||||
this.couponlist = res.rows
|
||||
if (res.rows.length > 0) {
|
||||
this.couponlist = res.rows
|
||||
}
|
||||
this.total = res.total
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user