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

Loading…
Cancel
Save