Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
7c320df1
Commit
7c320df1
authored
Sep 02, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
587059de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
videoUpload.vue
pages/kotra/billboard/plugin/videoUpload.vue
+8
-4
No files found.
pages/kotra/billboard/plugin/videoUpload.vue
View file @
7c320df1
...
@@ -36,7 +36,8 @@
...
@@ -36,7 +36,8 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
[
"CompData"
,
'index'
],
props
:
[
"CompData"
,
'index'
],
...
@@ -74,7 +75,8 @@
...
@@ -74,7 +75,8 @@
uni
.
chooseVideo
({
uni
.
chooseVideo
({
count
:
1
,
count
:
1
,
sourceType
:
[
'camera'
,
'album'
],
sourceType
:
[
'camera'
,
'album'
],
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
res
)
that
.
upFile
(
res
.
tempFilePath
,
1
)
that
.
upFile
(
res
.
tempFilePath
,
1
)
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'上传中...'
title
:
'上传中...'
...
@@ -90,8 +92,10 @@
...
@@ -90,8 +92,10 @@
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
.
MallBaseId
:
.
MallBaseId
:
1
;
1
;
let
action
=
this
.
host2
+
'/api/File/UploadTencent?MallBaseId='
+
MallBaseId
// let action = this.host2 + '/api/File/UploadTencent?MallBaseId=' + MallBaseId
// let action = 'http://192.168.20.214:8120/Upload/UploadBlob'
var
newPath
=
"/EduSystem/Test/Upload/"
;
let
action
=
"http://192.168.20.214:8120/Upload/UploadBase64?filePath="
+
newPath
let
that
=
this
let
that
=
this
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
action
,
url
:
action
,
...
...
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