mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化diamante
This commit is contained in:
parent
7aa0df1f4e
commit
60bede5b6a
@ -15,23 +15,53 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
communityId:'',
|
||||
roomId:'',
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
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: options.url,
|
||||
text: _data.codeUrl,
|
||||
width: 150,
|
||||
height: 150,
|
||||
colorDark: "#333333",
|
||||
colorLight: "#FFFFFF",
|
||||
correctLevel: qrCode.CorrectLevel.H
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
_closePayModal: function() {
|
||||
this.context.navigateBack();
|
||||
},
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</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;
|
||||
}
|
||||
_payOweFee:function(){
|
||||
this.context.navigateTo({
|
||||
url:"/pages/payFeeByQrCode/payFeeByQrCode?url="+_data.codeUrl
|
||||
url:"/pages/payFeeByQrCode/payFeeByQrCode?communityId=",
|
||||
+this.java110Context.getCurrentCommunity().communityId
|
||||
+"&roomId="+this.roomInfo.roomId;
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user