From 1c63eef6545739e3e828849b33fd400f4ccf2ef1 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Mon, 13 May 2024 18:19:17 +0800 Subject: [PATCH] 11 --- package1/AI/AIPicture.vue | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/package1/AI/AIPicture.vue b/package1/AI/AIPicture.vue index 5809f68..04710f7 100644 --- a/package1/AI/AIPicture.vue +++ b/package1/AI/AIPicture.vue @@ -99,13 +99,17 @@ 货号: - + + + - + 商品名: - + + + @@ -163,7 +167,8 @@ price:"", productCount:"", color:"", - size:"" + size:"", + keyBoardHeight:0 } }, onShow() { @@ -257,8 +262,8 @@ productSn:this.productSn, productName:this.productName, price:this.price, - productCount:this.productCount, - color:this.color, + productCount:this.productCount == '' ? '均码' : this.productCount, + color:this.color == '' ? '均色' : this.color, size:this.size } @@ -333,7 +338,7 @@ that.upLoadFile(res1.tempFiles[0].tempFilePath) } }) - },600) + },1000) } }) }else if(type == 'xuan'){ @@ -349,13 +354,13 @@ this.$refs.popup.close() uni.hideLoading(); }, - upLoadFile(path){ + async upLoadFile(path){ let that = this; uni.showLoading({ title: '加载中...' }) let hiver_token = uni.getStorageSync("hiver_token") - uni.uploadFile({ + await uni.uploadFile({ url: 'https://dev.xenjoyou.com/hiver/upload/file', filePath: path, name: 'file', @@ -401,7 +406,7 @@ }) } }); - setTimeout(res=>{ + await setTimeout(res=>{ uni.hideLoading(); },500) }, @@ -417,6 +422,10 @@ } }) }, + getKeyBoardHeight(e){ + console.log(e) + this.keyBoardHeight = e.detail.height + }, delSonImage(index,indexs) { let that = this;