[new feature] sku组件增加图片上传功能 (#612)

* [new feature] sku组件增加图片上传功能
This commit is contained in:
wny
2018-02-07 11:29:07 +08:00
committed by GitHub
parent 30e42284e9
commit 7b89e11701
11 changed files with 361 additions and 41 deletions
+11
View File
@@ -113,10 +113,12 @@ export default {
},
vanSkuMessages: {
fill: 'Please fill',
upload: 'Please upload',
number: 'Please fill in the correct number format message',
email: 'Please fill in the correct email message',
idcard: 'Please fill in the correct ID number message',
overlimit: 'not more than 200 words',
onePic: 'only one picture',
placeholder: {
'id_no': 'Idcard Number',
text: 'Text',
@@ -127,6 +129,15 @@ export default {
textarea: 'Text'
}
},
vanSkuImgUploader: {
or: 'Or',
uploading: 'Uploading...',
rephoto: 'Take Again',
photo: 'Take',
reselect: 'Reselect',
select: 'Select Photo',
maxSize: maxSize => `The upload limit is up to ${maxSize}MBplease try to compress the photo`
},
vanSkuStepper: {
title: 'Quantity',
remain: count => `Remain ${count} items`,
+11
View File
@@ -117,10 +117,12 @@ export default {
},
vanSkuMessages: {
fill: '请填写',
upload: '请上传',
number: '请填写正确的数字格式留言',
email: '请填写正确的邮箱',
'id_no': '请填写正确的身份证号码',
overlimit: '写的太多了,不要超过200字',
onePic: '仅限一张',
placeholder: {
'id_no': '输入18位身份证号码',
text: '输入文本',
@@ -131,6 +133,15 @@ export default {
textarea: '点击填写段落文本'
}
},
vanSkuImgUploader: {
or: '或',
uploading: '正在上传...',
rephoto: '重拍',
photo: '拍照',
reselect: '重新选择照片',
select: '选择照片',
maxSize: maxSize => `最大可上传图片为${maxSize}MB,请尝试压缩图片尺寸`
},
vanSkuStepper: {
title: '购买数量',
remain: count => `剩余${count}`,