Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
3a290578
提交
3a290578
编写于
11月 02, 2021
作者:
shuang.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品介绍视频非必填
上级
743a2310
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
4 行增加
和
11 行删除
+4
-11
create-good.vue
src/views/goods/create-good.vue
+4
-11
未找到文件。
src/views/goods/create-good.vue
浏览文件 @
3a290578
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<i
class=
"el-icon-delete"
></i>
<i
class=
"el-icon-delete"
></i>
</div>
</div>
</div>
</div>
<img
class=
"bg-img"
src=
"../../assets/image/
video
.png"
v-if=
"fileGoodsList.length
<10
"
/>
<img
class=
"bg-img"
src=
"../../assets/image/
small
.png"
v-if=
"fileGoodsList.length
<10
"
/>
<div
class=
"limit-text"
>
<div
class=
"limit-text"
>
<!--
<p>
限制大小: 200kb
</p>
-->
<!--
<p>
限制大小: 200kb
</p>
-->
<p>
建议尺寸:750*420
</p>
<p>
建议尺寸:750*420
</p>
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<!--
<p
class=
"upload-message"
v-if=
"uploadImgMessage1"
>
请上传商品头图
</p>
-->
<!--
<p
class=
"upload-message"
v-if=
"uploadImgMessage1"
>
请上传商品头图
</p>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品介绍视频"
class=
"
required-label
label-video"
>
<el-form-item
label=
"商品介绍视频"
class=
"label-video"
>
<el-upload
<el-upload
accept=
".mp4"
accept=
".mp4"
:on-remove=
"handleRemoveVideo"
:on-remove=
"handleRemoveVideo"
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<video
id=
"introVideoLecture"
:src=
"videoModel.videoFullPath"
controls
preload
style=
"width: 100%;"
v-if=
"videoList.length == 1"
>
<video
id=
"introVideoLecture"
:src=
"videoModel.videoFullPath"
controls
preload
style=
"width: 100%;"
v-if=
"videoList.length == 1"
>
视频
视频
</video>
</video>
<img
class=
"bg-img"
src=
"../../assets/image/
small
.png"
v-if=
"videoList.length
<1
"
/>
<img
class=
"bg-img"
src=
"../../assets/image/
video
.png"
v-if=
"videoList.length
<1
"
/>
<div
class=
"limit-text"
v-if=
"videoList.length
<1
"
>
<div
class=
"limit-text"
v-if=
"videoList.length
<1
"
>
<p>
建议大小:20M以内
</p>
<p>
建议大小:20M以内
</p>
<p>
仅支持MP4格式
</p>
<p>
仅支持MP4格式
</p>
...
@@ -108,7 +108,6 @@
...
@@ -108,7 +108,6 @@
<el-progress
:text-inside=
"true"
:stroke-width=
"16"
:percentage=
"uploadProgress"
status=
"success"
class=
"video-progress"
<el-progress
:text-inside=
"true"
:stroke-width=
"16"
:percentage=
"uploadProgress"
status=
"success"
class=
"video-progress"
v-show=
"uploadProgress>0&&uploadProgress
<100
"
>
v-show=
"uploadProgress>0&&uploadProgress
<100
"
>
</el-progress>
</el-progress>
<p
class=
"upload-message"
v-if=
"!isgoodsVideo"
>
请上传商品介绍视频
</p>
<el-button
class=
"dl-video"
icon=
"el-icon-delete"
circle
@
click=
"deleteVideo"
v-if=
"videoList.length == 1"
></el-button>
<el-button
class=
"dl-video"
icon=
"el-icon-delete"
circle
@
click=
"deleteVideo"
v-if=
"videoList.length == 1"
></el-button>
</el-form-item>
</el-form-item>
...
@@ -1045,7 +1044,6 @@
...
@@ -1045,7 +1044,6 @@
},
},
sumFile
:
0
,
sumFile
:
0
,
uploadProgress
:
0
,
// 上传视频进度条
uploadProgress
:
0
,
// 上传视频进度条
isgoodsVideo
:
true
}
}
},
},
created
()
{
created
()
{
...
@@ -1495,11 +1493,7 @@
...
@@ -1495,11 +1493,7 @@
this
.
formData
.
specificationImages
=
this
.
fileIntrList
;
this
.
formData
.
specificationImages
=
this
.
fileIntrList
;
this
.
formData
.
buyLimitDtoList
=
this
.
buyLimitDtoList
;
this
.
formData
.
buyLimitDtoList
=
this
.
buyLimitDtoList
;
this
.
isgoodsImages
=
this
.
formData
.
goodsImages
.
length
==
0
?
false
:
true
;
this
.
isgoodsImages
=
this
.
formData
.
goodsImages
.
length
==
0
?
false
:
true
;
console
.
log
(
this
.
formData
.
goodsDescription
)
if
(
this
.
videoList
.
length
==
0
)
{
this
.
isgoodsVideo
=
false
;
return
;
};
// 如果是【药品】类型的商品
// 如果是【药品】类型的商品
if
(
this
.
isMedic
){
if
(
this
.
isMedic
){
if
(
!
this
.
isgoodsImages
){
if
(
!
this
.
isgoodsImages
){
...
@@ -1961,7 +1955,6 @@
...
@@ -1961,7 +1955,6 @@
}
}
self
.
$message
.
info
(
'开始上传'
);
self
.
$message
.
info
(
'开始上传'
);
self
.
isgoodsVideo
=
true
;
self
.
videoModel
.
videoPath
=
createFilePath
(
file
,
file
.
name
)
self
.
videoModel
.
videoPath
=
createFilePath
(
file
,
file
.
name
)
// let videoPath = createFilePath(file,file.name)
// let videoPath = createFilePath(file,file.name)
doUpload
(
self
,
file
,
self
.
videoModel
.
videoPath
,
null
,
null
).
then
(
function
(
result
)
{
doUpload
(
self
,
file
,
self
.
videoModel
.
videoPath
,
null
,
null
).
then
(
function
(
result
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录