mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-24 05:46:09 +08:00
Merge remote-tracking branch 'origin/master' into xinghong-dev
This commit is contained in:
commit
c2736ed3cf
@ -12,26 +12,60 @@
|
||||
|
||||
<script>
|
||||
const qrCode = require('@/lib/weapp-qrcode.js')
|
||||
import {
|
||||
getRoomOweFees,
|
||||
toPayOweFee
|
||||
} from '../../api/fee/fee.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
communityId:'',
|
||||
roomId:'',
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
new qrCode('oweFeeQrcode', {
|
||||
text: options.url,
|
||||
width: 150,
|
||||
height: 150,
|
||||
colorDark: "#333333",
|
||||
colorLight: "#FFFFFF",
|
||||
correctLevel: qrCode.CorrectLevel.H
|
||||
})
|
||||
this.roomId = options.roomId;
|
||||
this.communityId = options.communityId;
|
||||
this._payOweFee();
|
||||
|
||||
},
|
||||
methods: {
|
||||
_closePayModal: function() {
|
||||
this.context.navigateBack();
|
||||
},
|
||||
//roomId: this.roomInfo.roomId,
|
||||
// communityId: this.java110Context.getCurrentCommunity().communityId
|
||||
_payOweFee: function() {
|
||||
let _that = this;
|
||||
let _data = {
|
||||
roomId: this.roomId,
|
||||
communityId: this.communityId
|
||||
}
|
||||
|
||||
toPayOweFee(this, _data)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
|
||||
let _data = res.data;
|
||||
|
||||
if (_data.code != 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: _data.msg
|
||||
});
|
||||
return;
|
||||
}
|
||||
new qrCode('oweFeeQrcode', {
|
||||
text: _data.codeUrl,
|
||||
width: 150,
|
||||
height: 150,
|
||||
colorDark: "#333333",
|
||||
colorLight: "#FFFFFF",
|
||||
correctLevel: qrCode.CorrectLevel.H
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -195,32 +195,12 @@
|
||||
this._loadRoomInfo();
|
||||
},
|
||||
|
||||
_payOweFee: function() {
|
||||
let _that = this;
|
||||
let _data = {
|
||||
roomId: this.roomInfo.roomId,
|
||||
communityId: this.java110Context.getCurrentCommunity().communityId
|
||||
}
|
||||
|
||||
toPayOweFee(this, _data)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
|
||||
let _data = res.data;
|
||||
|
||||
if (_data.code != 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: _data.msg
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.context.navigateTo({
|
||||
url:"/pages/payFeeByQrCode/payFeeByQrCode?url="+_data.codeUrl
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
_payOweFee:function(){
|
||||
this.context.navigateTo({
|
||||
url:"/pages/payFeeByQrCode/payFeeByQrCode?communityId="
|
||||
+this.java110Context.getCurrentCommunity().communityId
|
||||
+"&roomId="+this.roomInfo.roomId
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user