From a6999b0c6ebff9b616b487c105d2299f3182f6eb Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 Sep 2023 02:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/fee/fee.js | 18 ++ .../vc-upload-async/vc-upload-async.vue | 9 +- constant/url.js | 3 + pages.json | 9 + pages/fee/createFee.vue | 217 ++++++++++++++++++ pages/fee/roomPayFee.vue | 9 +- 6 files changed, 257 insertions(+), 8 deletions(-) create mode 100644 pages/fee/createFee.vue diff --git a/api/fee/fee.js b/api/fee/fee.js index fcf2b2d..910036c 100644 --- a/api/fee/fee.js +++ b/api/fee/fee.js @@ -125,3 +125,21 @@ export function listFeeDetail(_that,_data){ }); } +export function saveRoomCreateFee(_that,_data){ + return new Promise(function(reslove,reject){ + _that.context.post({ + url: url.saveRoomCreateFee, + data:_data, + success: function(res) { + reslove(res.data); + }, + fail: function(e) { + wx.showToast({ + title: "服务器异常了", + icon: 'none', + duration: 2000 + }) + } + }) + }); +} diff --git a/components/vc-upload-async/vc-upload-async.vue b/components/vc-upload-async/vc-upload-async.vue index 8dbdd57..ceebf29 100644 --- a/components/vc-upload-async/vc-upload-async.vue +++ b/components/vc-upload-async/vc-upload-async.vue @@ -88,12 +88,7 @@ methods: { _initImageList: function(_imageLists) { this.sendImgList = _imageLists; - if (this.sendImgList.length > 0) { - uni.showLoading({ - title: "图片加载中...", - mask: true - }) - } + this.sendImgList.forEach((item, index) => { if (item.indexOf('base64,') > -1) { this.imgList.push(_photo); @@ -117,7 +112,7 @@ }); } }) - uni.hideLoading(); + console.log(this.imgList); }, // 向父组件传递base64数据 diff --git a/constant/url.js b/constant/url.js index c076f51..c7f25bf 100644 --- a/constant/url.js +++ b/constant/url.js @@ -215,6 +215,9 @@ export default { //todo 费用 listOweFeeCallable: baseUrl+"app/oweFeeCallable.listOweFeeCallable", writeOweFeeCallable: baseUrl+"app/oweFeeCallable.writeOweFeeCallable", + saveRoomCreateFee: baseUrl+"app/fee.saveRoomCreateFee", + + diff --git a/pages.json b/pages.json index 978b6c2..04c6423 100644 --- a/pages.json +++ b/pages.json @@ -795,6 +795,15 @@ } } + ,{ + "path" : "pages/fee/createFee", + "style" : + { + "navigationBarTitleText": "创建费用", + "enablePullDownRefresh": false + } + + } ], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/pages/fee/createFee.vue b/pages/fee/createFee.vue new file mode 100644 index 0000000..3e88a77 --- /dev/null +++ b/pages/fee/createFee.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/pages/fee/roomPayFee.vue b/pages/fee/roomPayFee.vue index 65386d0..1212e8e 100644 --- a/pages/fee/roomPayFee.vue +++ b/pages/fee/roomPayFee.vue @@ -6,7 +6,9 @@ - + + + @@ -160,6 +162,11 @@ }); return; } + }, + _createFee:function(){ + uni.navigateTo({ + url:'/pages/fee/createFee?payerObjId='+this.roomInfo.roomId+"&payerObjName="+this.roomInfo.roomName + }) } } }