|
@@ -24,7 +24,7 @@
|
|
|
<view class="tel flex">
|
|
<view class="tel flex">
|
|
|
<label>缴费类型:</label>
|
|
<label>缴费类型:</label>
|
|
|
<radio-group @change="payChange">
|
|
<radio-group @change="payChange">
|
|
|
- <radio value="1" :checked="payInfo.type!=2" style="margin-right: 30rpx;transform: scale(0.85);" >金额</radio>
|
|
|
|
|
|
|
+ <radio value="1" :checked="payInfo.type!=2" style="margin-right: 30rpx;transform: scale(0.85);" >全额</radio>
|
|
|
<radio value="2" :checked="payInfo.type==2" style="transform: scale(0.85);" :disabled="payInfo.status==1 || payInfo.status==3">空置</radio>
|
|
<radio value="2" :checked="payInfo.type==2" style="transform: scale(0.85);" :disabled="payInfo.status==1 || payInfo.status==3">空置</radio>
|
|
|
</radio-group>
|
|
</radio-group>
|
|
|
</view>
|
|
</view>
|
|
@@ -68,6 +68,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="popup-footer">
|
|
<view class="popup-footer">
|
|
|
|
|
+ <button class="popup-cancel" @click="cancelInvocie">取消</button>
|
|
|
<button class="popup-submit" @click="submitInvocie">提交</button>
|
|
<button class="popup-submit" @click="submitInvocie">提交</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -152,16 +153,28 @@ export default {
|
|
|
if (v == 2)
|
|
if (v == 2)
|
|
|
{
|
|
{
|
|
|
let value = this.payInfo.part_fee - this.payInfo.reduction;
|
|
let value = this.payInfo.part_fee - this.payInfo.reduction;
|
|
|
|
|
+ value = Math.round(value * 100) / 100;
|
|
|
this.payInfo.real_fee = value;
|
|
this.payInfo.real_fee = value;
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
let value = this.payInfo.total_fee - this.payInfo.reduction;
|
|
let value = this.payInfo.total_fee - this.payInfo.reduction;
|
|
|
|
|
+ value = Math.round(value * 100) / 100;
|
|
|
this.payInfo.real_fee = value;
|
|
this.payInfo.real_fee = value;
|
|
|
}
|
|
}
|
|
|
this.payInfo.type = e.detail.value;
|
|
this.payInfo.type = e.detail.value;
|
|
|
},
|
|
},
|
|
|
paySubmit(){
|
|
paySubmit(){
|
|
|
|
|
+ if (this.payInfo.before > 0){
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: "您有历史供暖订单未完成缴费,请先完成后再次尝试",
|
|
|
|
|
+ icon: "none",
|
|
|
|
|
+ duration: 2500,
|
|
|
|
|
+ });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let type = this.payInfo.type;
|
|
let type = this.payInfo.type;
|
|
|
if (this.payInfo.status == 2)
|
|
if (this.payInfo.status == 2)
|
|
@@ -236,6 +249,9 @@ export default {
|
|
|
this.closePopup();
|
|
this.closePopup();
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ cancelInvocie(){
|
|
|
|
|
+ this.$refs.popup.close();
|
|
|
|
|
+ },
|
|
|
openPopup() {
|
|
openPopup() {
|
|
|
this.$refs.popup.open('center');
|
|
this.$refs.popup.open('center');
|
|
|
},
|
|
},
|