Commit d7acddc2 by 王志慧

commit

1 parent b274f9e2
...@@ -42,5 +42,14 @@ const getMerchantList = params => { ...@@ -42,5 +42,14 @@ const getMerchantList = params => {
sign: true sign: true
}) })
} }
// const pictureUpload = params => {
export default { uploadImgApi, uploadVideoApi,getMerchantList } // params.method = 'glsx.accounts.biz.common.pictureUpload'
// return http_common({
// url: '/router?method=glsx.accounts.biz.common.pictureUpload',
// method: 'POST',
// data: params,
// sign: true,
// noSignAttr: ['file']
// })
// }
export default { uploadImgApi, uploadVideoApi,getMerchantList,pictureUpload }
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
const arrBase64 = imgFile.split(',') const arrBase64 = imgFile.split(',')
const splitStr = file.name.split('.') const splitStr = file.name.split('.')
const fileUrl = splitStr[splitStr.length - 1] + '@' + arrBase64[1] const fileUrl = splitStr[splitStr.length - 1] + '@' + arrBase64[1]
this.$apis.common.uploadImgApi({ file: fileUrl, compress: this.picOptions.compress || 0 }).then(res => { this.$apis.common.pictureUpload({ file: fileUrl, compress: this.picOptions.compress || 0 }).then(res => {
if (res) { if (res) {
this.$notify({ this.$notify({
title: '提示', title: '提示',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!