Commit 3f56b1840acf773d86be5fc6950d344799b8270a
1 parent
ab1ddf0b
1
Showing
1 changed file
with
33 additions
and
26 deletions
lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue
| ... | ... | @@ -24,7 +24,7 @@ |
| 24 | 24 | <view class="list"> |
| 25 | 25 | <u-checkbox @change="e=>quanxuanitem(e,index)" v-model="item.isshowxz" shape="circle" |
| 26 | 26 | :label-disabled="false" /> |
| 27 | - <view class="list-item"> | |
| 27 | + <view class="list-item" @click="changeisxl(index)" > | |
| 28 | 28 | <view class="list-info"> |
| 29 | 29 | <view class="img"> |
| 30 | 30 | <image v-if="item.itemName == '物业费'" src="@/static/icon/icon11.png" |
| ... | ... | @@ -54,18 +54,18 @@ |
| 54 | 54 | </view> |
| 55 | 55 | </view> |
| 56 | 56 | <view v-if="item.itemDetailsVOList&& item.itemDetailsVOList.length>0 && item.isxl"> |
| 57 | - <view class="list" v-for="(item1,index1) in item.itemDetailsVOList"> | |
| 57 | + <view class="list" v-for="(item1,index1) in item.itemDetailsVOList" > | |
| 58 | 58 | <view style="display: flex;align-items: center;"> |
| 59 | 59 | <u-checkbox v-model="item1.isshowxz" shape="circle" :label-disabled="false" /> |
| 60 | - <view class=""> | |
| 60 | + <view class="" @click="changeitemisshowxz(index,index1)"> | |
| 61 | 61 | <view class="info-item">周期:{{item1.startDate}} - {{item1.endDate}}</view> |
| 62 | 62 | <view class="info-item" style="margin-top: 6rpx;"> |
| 63 | 63 | <text style="margin-right: 20rpx;">数量:{{item1.number}}{{item1.itemUnit}}</text> |
| 64 | - <text>门店号:A5646</text> | |
| 64 | + <text>门店号:{{item1.storeCode}}</text> | |
| 65 | 65 | </view> |
| 66 | 66 | </view> |
| 67 | 67 | </view> |
| 68 | - <view class=""> | |
| 68 | + <view class="" @click="changeitemisshowxz(index,index1)"> | |
| 69 | 69 | <text class="price"><u-icon name="rmb" |
| 70 | 70 | style="font-size: 24rpx;" />¥{{item1.payPrice}}</text> |
| 71 | 71 | </view> |
| ... | ... | @@ -129,25 +129,27 @@ |
| 129 | 129 | show: false, |
| 130 | 130 | joinShow: false, |
| 131 | 131 | value: '', |
| 132 | - list1: [{ | |
| 133 | - value: '0', | |
| 134 | - label: '全部' | |
| 135 | - }, { | |
| 136 | - value: '1', | |
| 137 | - label: '物业费' | |
| 138 | - }, { | |
| 139 | - value: '2', | |
| 140 | - label: '水费' | |
| 141 | - }, { | |
| 142 | - value: '3', | |
| 143 | - label: '卫生费' | |
| 144 | - }, { | |
| 145 | - value: '4', | |
| 146 | - label: '燃气费' | |
| 147 | - }, { | |
| 148 | - value: '5', | |
| 149 | - label: '电费' | |
| 150 | - }], | |
| 132 | + list1: [ | |
| 133 | + // { | |
| 134 | + // value: '0', | |
| 135 | + // label: '全部' | |
| 136 | + // }, { | |
| 137 | + // value: '1', | |
| 138 | + // label: '物业费' | |
| 139 | + // }, { | |
| 140 | + // value: '2', | |
| 141 | + // label: '水费' | |
| 142 | + // }, { | |
| 143 | + // value: '3', | |
| 144 | + // label: '卫生费' | |
| 145 | + // }, { | |
| 146 | + // value: '4', | |
| 147 | + // label: '燃气费' | |
| 148 | + // }, { | |
| 149 | + // value: '5', | |
| 150 | + // label: '电费' | |
| 151 | + // }, | |
| 152 | + ], | |
| 151 | 153 | recordList: [], |
| 152 | 154 | list: [{ |
| 153 | 155 | name: 'H5支付', |
| ... | ... | @@ -174,7 +176,7 @@ |
| 174 | 176 | // num = num + Number(e[n].payPrice) |
| 175 | 177 | // } |
| 176 | 178 | } |
| 177 | - return num | |
| 179 | + return num.toFixed(2) | |
| 178 | 180 | } |
| 179 | 181 | }, |
| 180 | 182 | computed: { |
| ... | ... | @@ -245,7 +247,12 @@ |
| 245 | 247 | |
| 246 | 248 | }, |
| 247 | 249 | methods: { |
| 248 | - | |
| 250 | + changeitemisshowxz(index,index1) { | |
| 251 | + console.error(index,index1) | |
| 252 | + console.error(this.recordList[index].itemDetailsVOList[index1].isshowxz) | |
| 253 | + this.recordList[index].itemDetailsVOList[index1].isshowxz = !this.recordList[index].itemDetailsVOList[index1].isshowxz | |
| 254 | + this.$forceUpdate() | |
| 255 | + }, | |
| 249 | 256 | changeisxl(e) { |
| 250 | 257 | this.recordList[e].isxl = !this.recordList[e].isxl |
| 251 | 258 | }, | ... | ... |