🌈 style(typos): 修复eslint的报错❌

This commit is contained in:
xuan
2022-12-05 11:56:40 +08:00
parent d49314aa5b
commit 9dd7e9db18
10 changed files with 87 additions and 83 deletions
+10 -10
View File
@@ -22,7 +22,7 @@ export default () => {
const res = await GetSign(params)
if (res.success) {
resolve(res.data)
}
}
else {
reject({
code: res.code || '9999',
@@ -38,10 +38,10 @@ export default () => {
if (RegExp(`.?(${imgType.join('|')})$`, 'i').test(name.toLowerCase())) {
return 'image'
}
}
else if (RegExp(`.(${videoType.join('|')})$`, 'i').test(name.toLowerCase())) {
return 'video'
}
}
else {
return false
}
@@ -96,7 +96,7 @@ export default () => {
Taro.showLoading({
title: '上传中...',
})
}
}
else {
Taro.hideLoading()
}
@@ -113,10 +113,10 @@ export default () => {
})
}
// product 产品相关,图片、纹理图等 全平台
// after-sale 售后(申请退货、退款)相关的、图片、视频 全平台
// mall 电子商城相关的 全平台
// logistics 物流(发货、提货)相关的、图片、视频 全平台
// product 产品相关,图片、纹理图等 全平台
// after-sale 售后(申请退货、退款)相关的、图片、视频 全平台
// mall 电子商城相关的 全平台
// logistics 物流(发货、提货)相关的、图片、视频 全平台
type cdn_upload_type_Param = 'product' | 'after-sale' | 'mall' | 'logistics'
/**
* 上传手机图片
@@ -139,13 +139,13 @@ export default () => {
list.push(data)
}
resolve(list)
}
}
else {
// 兼容以前上传一张的情况
const data = await uploadCDNImg(res.tempFiles[0], cdn_upload_type, cdn_upload_type)
resolve(data)
}
}
}
catch (res) {
reject(res)
}