Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c59c622e
authored
Jun 04, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
日志
1 parent
cfdfffaf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
mixin/click.js
pages/boutique/case.vue
pages/boutique/preview.vue
mixin/click.js
View file @
c59c622
...
@@ -156,6 +156,11 @@ export default {
...
@@ -156,6 +156,11 @@ export default {
const
result
=
await
this
.
checkUploadFile
(
res
.
tempFilePath
);
const
result
=
await
this
.
checkUploadFile
(
res
.
tempFilePath
);
if
(
result
instanceof
Error
)
{
if
(
result
instanceof
Error
)
{
console
.
error
(
"上传失败:"
,
result
);
console
.
error
(
"上传失败:"
,
result
);
const
{
customerName
,
phoneNumber
,
salesUuid
,
carModel
,
staffName
}
=
this
.
$store
.
state
.
user
.
customerInfo
;
this
.
$sendSentry
(
`上传文件失败:手机号-
${
phoneNumber
}
姓名-
${
customerName
}
销售-
${
staffName
}
车型-
${
carModel
}
销售-
${
salesUuid
}
`
);
return
;
return
;
}
}
const
storageFile
=
[...
this
.
audioList
,
result
];
const
storageFile
=
[...
this
.
audioList
,
result
];
...
@@ -175,8 +180,6 @@ export default {
...
@@ -175,8 +180,6 @@ export default {
// 上传成功
// 上传成功
return
result
;
return
result
;
}
catch
(
error
)
{
}
catch
(
error
)
{
// 上传失败
console
.
error
(
"上传失败,尝试重试:"
,
error
);
attempt
++
;
attempt
++
;
// 等待一段时间后重试
// 等待一段时间后重试
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
3000
));
// 3秒后重试
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
3000
));
// 3秒后重试
...
...
pages/boutique/case.vue
View file @
c59c622
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
top
:
0
;
top
:
0
;
width
:
100vw
;
width
:
100vw
;
height
:
100vh
;
height
:
100vh
;
background-image
:
linear-gradient
(
180deg
,
#f
2f6ff
0%
,
#f7f9
ff
100%
);
background-image
:
linear-gradient
(
180deg
,
#f
1f5ff
0%
,
#f3f6
ff
100%
);
overflow
:
hidden
;
overflow
:
hidden
;
.bg
{
.bg
{
width
:
100%
;
width
:
100%
;
...
@@ -172,14 +172,16 @@ export default {
...
@@ -172,14 +172,16 @@ export default {
width
:
404
rpx
;
width
:
404
rpx
;
height
:
544
rpx
;
height
:
544
rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0
8
rpx
24
rpx
0
#4673ff1
a
;
border-radius
:
48
rpx
;
border-radius
:
48
rpx
;
box-shadow
:
0
8
rpx
24
rpx
0
#4673ff1
a
;
.item-autio
{
.item-autio
{
height
:
404
rpx
;
height
:
404
rpx
;
position
:
relative
;
position
:
relative
;
.cover-box
{
.cover-box
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
border-radius
:
48
rpx
48
rpx
0
48
rpx
;
}
}
.play-box
{
.play-box
{
width
:
48
rpx
;
width
:
48
rpx
;
...
@@ -194,6 +196,7 @@ export default {
...
@@ -194,6 +196,7 @@ export default {
padding
:
28
rpx
32
rpx
;
padding
:
28
rpx
32
rpx
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#333333
;
color
:
#333333
;
border-radius
:
48
rpx
;
}
}
}
}
}
}
...
...
pages/boutique/preview.vue
View file @
c59c622
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
width
:
100vw
;
width
:
100vw
;
height
:
100vh
;
height
:
100vh
;
background
:
#000
;
background
:
#000
;
padding
:
10
0
rpx
0
rpx
;
padding
:
6
0
rpx
0
rpx
;
z-index
:
100
;
z-index
:
100
;
.nav-bar
{
.nav-bar
{
width
:
100%
;
width
:
100%
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment