diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue index 406339d..f2a978d 100644 --- a/pages/product/addGood/addGood.vue +++ b/pages/product/addGood/addGood.vue @@ -489,12 +489,21 @@ }); }, clk() { - let avatar = this.$refs.avatar; - avatar.fChooseImg(1, { - selWidth: '350upx', - selHeight: '350upx', - inner: true - }); + // let avatar = this.$refs.avatar; + // avatar.fChooseImg(1, { + // selWidth: '350upx', + // selHeight: '350upx', + // inner: true + // }); + this.$util.uploadImageOne({ + url: 'upload/image', + crop: { + width: 2000, + height: 2000, + } + },(res)=> { + this.setFormData.imageList.push(res.data.path); + }); }, doUpload(rsp) { let that = this diff --git a/pages/product/addGood/components/inputGoodsDetils.vue b/pages/product/addGood/components/inputGoodsDetils.vue index c115029..e29b56a 100644 --- a/pages/product/addGood/components/inputGoodsDetils.vue +++ b/pages/product/addGood/components/inputGoodsDetils.vue @@ -32,8 +32,9 @@ -