wangfukang 3 years ago
parent
commit
1c63eef654
  1. 29
      package1/AI/AIPicture.vue

29
package1/AI/AIPicture.vue

@ -99,13 +99,17 @@
<text style="display:inline-block;width:100rpx;font-size:22rpx;"> <text style="display:inline-block;width:100rpx;font-size:22rpx;">
货号: 货号:
</text> </text>
<input v-model="productSn" type="text" placeholder="请输入货号" style="display: flex;height: 80rpx;width: 200rpx;line-height: 80rpx;padding-left: 20rpx;border: 1px solid #eee;"> <view style="width: 200rpx;">
<uni-easyinput v-model="productSn" type="text" cursorSpacing="20" placeholder="请输入货号" style="width:200rpx;display: flex;height: 80rpx;width: 200rpx;line-height: 80rpx;padding-left: 20rpx;border: 1px solid #eee;"></uni-easyinput>
</view>
</view> </view>
<view style="padding-left: 20rpx;display: flex;height: 80rpx;width: 50%;line-height: 80rpx;margin-top: 20rpx;float: left;"> <view :style="{'bottom': keyBoardHeight+'px'}" style="padding-left: 20rpx;display: flex;height: 80rpx;width: 50%;line-height: 80rpx;margin-top: 20rpx;float: left;">
<text style="display:inline-block;width:100rpx;font-size:22rpx;"> <text style="display:inline-block;width:100rpx;font-size:22rpx;">
商品名: 商品名:
</text> </text>
<input v-model="productName" type="text" placeholder="请输入名称" style="display: flex;height: 80rpx;width: 200rpx;line-height: 80rpx;padding-left: 20rpx;border: 1px solid #eee;"> <view style="width: 200rpx;">
<uni-easyinput v-model="productName" cursorSpacing="20" @keyboardheightchange="getKeyBoardHeight" type="text" placeholder="请输入名称" style="width:200rpx;display: flex;height: 80rpx;width: 200rpx;line-height: 80rpx;padding-left: 20rpx;border: 1px solid #eee;"></uni-easyinput>
</view>
</view> </view>
<view style="padding-left: 40rpx;display: flex;height: 80rpx;width: 50%;line-height: 80rpx;margin-top: 20rpx;float: left;"> <view style="padding-left: 40rpx;display: flex;height: 80rpx;width: 50%;line-height: 80rpx;margin-top: 20rpx;float: left;">
<text style="display:inline-block;width:100rpx;font-size:22rpx;"> <text style="display:inline-block;width:100rpx;font-size:22rpx;">
@ -163,7 +167,8 @@
price:"", price:"",
productCount:"", productCount:"",
color:"", color:"",
size:"" size:"",
keyBoardHeight:0
} }
}, },
onShow() { onShow() {
@ -257,8 +262,8 @@
productSn:this.productSn, productSn:this.productSn,
productName:this.productName, productName:this.productName,
price:this.price, price:this.price,
productCount:this.productCount, productCount:this.productCount == '' ? '均码' : this.productCount,
color:this.color, color:this.color == '' ? '均色' : this.color,
size:this.size size:this.size
} }
@ -333,7 +338,7 @@
that.upLoadFile(res1.tempFiles[0].tempFilePath) that.upLoadFile(res1.tempFiles[0].tempFilePath)
} }
}) })
},600) },1000)
} }
}) })
}else if(type == 'xuan'){ }else if(type == 'xuan'){
@ -349,13 +354,13 @@
this.$refs.popup.close() this.$refs.popup.close()
uni.hideLoading(); uni.hideLoading();
}, },
upLoadFile(path){ async upLoadFile(path){
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: '加载中...' title: '加载中...'
}) })
let hiver_token = uni.getStorageSync("hiver_token") let hiver_token = uni.getStorageSync("hiver_token")
uni.uploadFile({ await uni.uploadFile({
url: 'https://dev.xenjoyou.com/hiver/upload/file', url: 'https://dev.xenjoyou.com/hiver/upload/file',
filePath: path, filePath: path,
name: 'file', name: 'file',
@ -401,7 +406,7 @@
}) })
} }
}); });
setTimeout(res=>{ await setTimeout(res=>{
uni.hideLoading(); uni.hideLoading();
},500) },500)
}, },
@ -417,6 +422,10 @@
} }
}) })
}, },
getKeyBoardHeight(e){
console.log(e)
this.keyBoardHeight = e.detail.height
},
delSonImage(index,indexs) { delSonImage(index,indexs) {
let that = this; let that = this;

Loading…
Cancel
Save