Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
32134905
Commit
32134905
authored
Apr 10, 2023
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频删除按钮位置
parent
282955e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
components/form.vue
+10
-6
pages/my/index.vue
+8
-5
No files found.
components/form.vue
View file @
32134905
...
@@ -64,14 +64,14 @@
...
@@ -64,14 +64,14 @@
<view
class=
"d-flex j-sb a-center form-item-height-only"
>
<view
class=
"d-flex j-sb a-center form-item-height-only"
>
<view
class=
"form-item-name"
>
上传视频
</view>
<view
class=
"form-item-name"
>
上传视频
</view>
</view>
</view>
<view
class=
""
>
<view>
<view
v-if=
"formInfo.videoList.length"
>
<view
class=
"video-box
"
>
<view
class=
"video-box"
style=
""
v-if=
"formInfo.videoList.length
"
>
<video
id=
"myVideo"
:src=
"formInfo.videoList[0].url"
<video
id=
"myVideo"
:src=
"formInfo.videoList[0].url"
@
error=
"videoErrorCallback"
:danmu-list=
"danmuList"
enable-danmu
controls
@
error=
"videoErrorCallback"
:danmu-list=
"danmuList"
enable-danmu
controls
:show-fullscreen-btn=
'false'
></video>
:show-fullscreen-btn=
'false'
></video>
</view>
<view
@
click=
"delVideoList"
>
<view
class=
"position-icon"
@
click=
"delVideoList"
>
<u-icon
name=
"close-circle-fill"
color=
"#D9001B"
size=
"32"
></u-icon>
<u-icon
name=
"close-circle-fill"
color=
"#D9001B"
size=
"32"
></u-icon>
</view>
</view>
...
@@ -374,6 +374,8 @@
...
@@ -374,6 +374,8 @@
.video-box
{
.video-box
{
width
:
373
rpx
;
width
:
373
rpx
;
height
:
210
rpx
;
height
:
210
rpx
;
position
:
relative
;
video{
video{
width
:
100%
;
width
:
100%
;
height
:
100%
height
:
100%
...
@@ -381,7 +383,9 @@
...
@@ -381,7 +383,9 @@
}
}
.position-icon
{
.position-icon
{
position
:
absolute
;
top
:
-10
rpx
;
right
:
-10
rpx
;
}
}
...
...
pages/my/index.vue
View file @
32134905
...
@@ -148,16 +148,18 @@ export default {
...
@@ -148,16 +148,18 @@ export default {
onChooseavatar
(
e
)
{
onChooseavatar
(
e
)
{
console
.
log
(
e
,
'1211'
);
console
.
log
(
e
,
'1211'
);
// return;
// return;
let
self
=
this
;
let
that
=
this
;
const
{
avatarUrl
}
=
e
.
detail
;
const
{
avatarUrl
}
=
e
.
detail
;
th
is
.
fdsa
=
avatarUrl
;
th
at
.
fdsa
=
avatarUrl
;
wx
.
getFileSystemManager
().
readFile
({
wx
.
getFileSystemManager
().
readFile
({
filePath
:
avatarUrl
,
//选择图片返回的相对路径
filePath
:
avatarUrl
,
//选择图片返回的相对路径
// encoding: 'base64', //编码格式
// encoding: 'base64', //编码格式
success
:
res
=>
{
success
:
res
=>
{
//成功的回调
//成功的回调
console
.
log
(
res
);
console
.
log
(
res
,
'返回值,'
);
console
.
log
(
res
.
data
);
console
.
log
(
res
.
data
,
'的撒胡'
);
// that.$set(that.userParams,'headImgUrl',res.data)
// userUpdatePOST({
// userUpdatePOST({
// headImgUrl: res.data
// headImgUrl: res.data
// }).then(res => {
// }).then(res => {
...
@@ -183,7 +185,8 @@ export default {
...
@@ -183,7 +185,8 @@ export default {
this
.
updateUser
()
this
.
updateUser
()
},
},
async
updateUser
(){
async
updateUser
(){
const
back_data
=
await
updateUserMsg
(
this
.
userParams
)
let
that
=
this
const
back_data
=
await
updateUserMsg
(
that
.
userParams
)
console
.
log
(
back_data
)
console
.
log
(
back_data
)
const
{
code
}
=
back_data
const
{
code
}
=
back_data
if
(
code
===
200
){
if
(
code
===
200
){
...
...
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