Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
6 years ago
Commit
203bb6cbf90ab626357a4dcf5d8e541f5a9f4bb6
1 parent
9b1c4abb
fix image url
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
apps/store/license/form/actions.js
apps/store/license/form/actions.js
View file @
203bb6c
import
*
as
Types
from
'./types'
;
function
getUploadImgAbsoluteUrl
(
url
,
bucket
=
'goodsimg'
)
{
if
(
!
url
)
{
return
null
;
}
let
urlArr
=
url
.
split
(
'/'
),
stag
=
urlArr
[
urlArr
.
length
-
1
].
substr
(
0
,
2
),
domain
=
`
static
.
yhbimg
.
com
/
$
{
bucket
}
`
;
url
=
domain
+
url
;
if
(
stag
===
'01'
)
{
return
`
//img11.${url}`;
}
else
if
(
stag
===
'03'
)
{
return
`
//flv01.${url}`;
}
else
{
return
`
//img12.${url}`;
}
}
function
_url
({
name
})
{
return
`
//img01.yohoboys.com/${name}`
;
return
getUploadImgAbsoluteUrl
(
name
)
;
}
function
_handleData
(
data
)
{
...
...
Please
register
or
login
to post a comment