优化diamante

This commit is contained in:
java110 2021-04-08 13:38:45 +08:00
parent 7aa0df1f4e
commit 60bede5b6a
2 changed files with 45 additions and 35 deletions

View File

@ -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>

View File

@ -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;
})
})
}
}
}