Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
963fd314
Commit
963fd314
authored
Jul 09, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d1ec5a21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
makeAd.vue
src/pages/activity/makeAd.vue
+10
-2
erpindex.js
src/utils/erpindex.js
+15
-0
No files found.
src/pages/activity/makeAd.vue
View file @
963fd314
...
...
@@ -1317,8 +1317,16 @@
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
)
{
this
.
currentNode
.
src
=
this
.
domainManager
().
mallUrl
+
res
.
data
.
data
;
this
.
$forceUpdate
()
console
.
log
(
this
.
domainManager
().
mallUrl
,
res
.
data
.
data
)
let
getBlob
=
this
.
getAnyFileBlob
(
this
.
domainManager
().
mallUrl
+
res
.
data
.
data
)
let
that
=
this
getBlob
.
then
(
blob
=>
{
that
.
blobToDataURL
(
blob
,
function
(
e
)
{
that
.
currentNode
.
src
=
e
;
that
.
$forceUpdate
()
})
});
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
src/utils/erpindex.js
View file @
963fd314
...
...
@@ -594,6 +594,21 @@ export default {
});
return
getBlob
},
Vue
.
prototype
.
getAnyFileBlob
=
function
(
url
)
{
let
getBlob
=
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
resolve
(
xhr
.
response
);
}
};
xhr
.
send
();
});
return
getBlob
},
//Blob文件上传
Vue
.
prototype
.
uploadSelfBlob
=
function
(
path
,
files
,
successCall
)
{
let
that
=
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment