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 48c56546
authored
Jun 07, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
98ac4745
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
266 deletions
assets/css/sprite.scss
env.js
mixin/click.js
assets/css/sprite.scss
View file @
48c5654
.sprite-icon
{
.sprite-icon
{
background-image
:
url(@/assets/images/sprite.png)
;
background-size
:
1085rpx
971rpx
;}
background-image
:
url(@/assets/images/sprite.png)
;
.icon-aito
{
width
:
320rpx
;
height
:
36rpx
;
background-position
:
0rpx
-749rpx
;}
background-size
:
1085rpx
971rpx
;
.icon-arrow-right
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-65rpx
;}
}
.icon-back
{
width
:
128rpx
;
height
:
50rpx
;
background-position
:
-957rpx
0rpx
;}
.icon-aito
{
.icon-change-account
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-112rpx
;}
width
:
320rpx
;
.icon-customer-1
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
0rpx
0rpx
;}
height
:
36rpx
;
.icon-customer-2
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
-415rpx
0rpx
;}
background-position
:
0rpx
-749rpx
;
.icon-customer-detail
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1044rpx
-445rpx
;}
}
.icon-face-error-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-830rpx
-635rpx
;}
.icon-arrow-right
{
.icon-face-error
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-800rpx
;}
width
:
32rpx
;
.icon-face-success-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-111rpx
-800rpx
;}
height
:
32rpx
;
.icon-face-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-222rpx
-800rpx
;}
background-position
:
-1052rpx
-65rpx
;
.icon-feedback
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-160rpx
;}
}
.icon-first-nav
{
width
:
464rpx
;
height
:
176rpx
;
background-position
:
0rpx
-415rpx
;}
.icon-back
{
.icon-home-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-65rpx
;}
width
:
128rpx
;
.icon-home
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-160rpx
;}
height
:
50rpx
;
.icon-icon-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-207rpx
;}
background-position
:
-957rpx
0rpx
;
.icon-icon-avatar
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
0rpx
;}
}
.icon-icon-female
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-255rpx
;}
.icon-change-account
{
.icon-icon-handshake
{
width
:
72rpx
;
height
:
72rpx
;
background-position
:
-957rpx
-445rpx
;}
width
:
32rpx
;
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-302rpx
;}
height
:
32rpx
;
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-350rpx
;}
background-position
:
-1052rpx
-112rpx
;
.icon-icon-upload
{
width
:
128rpx
;
height
:
128rpx
;
background-position
:
-654rpx
-415rpx
;}
}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-397rpx
;}
.icon-customer-1
{
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-690rpx
;}
width
:
400rpx
;
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-765rpx
;}
height
:
400rpx
;
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-957rpx
-840rpx
;}
background-position
:
0rpx
0rpx
;
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1004rpx
-840rpx
;}
}
.icon-logo
{
width
:
160rpx
;
height
:
160rpx
;
background-position
:
-479rpx
-415rpx
;}
.icon-customer-2
{
.icon-new-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1051rpx
-840rpx
;}
width
:
400rpx
;
.icon-new-avatar
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-333rpx
-800rpx
;}
height
:
400rpx
;
.icon-new-feedback
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-957rpx
-532rpx
;}
background-position
:
-415rpx
0rpx
;
.icon-new-home-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-127rpx
;}
}
.icon-new-home
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-254rpx
;}
.icon-customer-detail
{
.icon-new-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-381rpx
;}
width
:
40rpx
;
.icon-new-record
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-508rpx
;}
height
:
40rpx
;
.icon-new-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-957rpx
-611rpx
;}
background-position
:
-1044rpx
-445rpx
;
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-495rpx
-606rpx
;}
}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-630rpx
-606rpx
;}
.icon-face-error-active
{
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-444rpx
-800rpx
;}
width
:
96rpx
;
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-1036rpx
-532rpx
;}
height
:
96rpx
;
.icon-record-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-255rpx
;}
background-position
:
-830rpx
-635rpx
;
.icon-record
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-350rpx
;}
}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-830rpx
-746rpx
;}
.icon-face-error
{
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-555rpx
-800rpx
;}
width
:
96rpx
;
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-666rpx
-800rpx
;}
height
:
96rpx
;
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1036rpx
-611rpx
;}
background-position
:
0rpx
-800rpx
;
.icon-second-nav
{
width
:
480rpx
;
height
:
128rpx
;
background-position
:
0rpx
-606rpx
;}
}
.icon-settings
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-877rpx
-746rpx
;}
.icon-face-success-active
{
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-777rpx
-800rpx
;}
width
:
96rpx
;
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-957rpx
-690rpx
;}
height
:
96rpx
;
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-957rpx
-765rpx
;}
background-position
:
-111rpx
-800rpx
;
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
0rpx
-911rpx
;}
}
.icon-face-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-222rpx
-800rpx
;
}
.icon-feedback
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-160rpx
;
}
.icon-first-nav
{
width
:
464rpx
;
height
:
176rpx
;
background-position
:
0rpx
-415rpx
;
}
.icon-home-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-65rpx
;
}
.icon-home
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-160rpx
;
}
.icon-icon-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-207rpx
;
}
.icon-icon-avatar
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
0rpx
;
}
.icon-icon-female
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-255rpx
;
}
.icon-icon-handshake
{
width
:
72rpx
;
height
:
72rpx
;
background-position
:
-957rpx
-445rpx
;
}
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-302rpx
;
}
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-350rpx
;
}
.icon-icon-upload
{
width
:
128rpx
;
height
:
128rpx
;
background-position
:
-654rpx
-415rpx
;
}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-397rpx
;
}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-690rpx
;
}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-765rpx
;
}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-957rpx
-840rpx
;
}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1004rpx
-840rpx
;
}
.icon-logo
{
width
:
160rpx
;
height
:
160rpx
;
background-position
:
-479rpx
-415rpx
;
}
.icon-new-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1051rpx
-840rpx
;
}
.icon-new-avatar
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-333rpx
-800rpx
;
}
.icon-new-feedback
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-957rpx
-532rpx
;
}
.icon-new-home-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-127rpx
;
}
.icon-new-home
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-254rpx
;
}
.icon-new-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-381rpx
;
}
.icon-new-record
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-508rpx
;
}
.icon-new-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-957rpx
-611rpx
;
}
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-495rpx
-606rpx
;
}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-630rpx
-606rpx
;
}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-444rpx
-800rpx
;
}
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-1036rpx
-532rpx
;
}
.icon-record-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-255rpx
;
}
.icon-record
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-350rpx
;
}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-830rpx
-746rpx
;
}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-555rpx
-800rpx
;
}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-666rpx
-800rpx
;
}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1036rpx
-611rpx
;
}
.icon-second-nav
{
width
:
480rpx
;
height
:
128rpx
;
background-position
:
0rpx
-606rpx
;
}
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-777rpx
-800rpx
;
}
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-957rpx
-690rpx
;
}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-957rpx
-765rpx
;
}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
0rpx
-911rpx
;
}
.icon-settings
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-877rpx
-746rpx
;
}
\ No newline at end of file
\ No newline at end of file
env.js
View file @
48c5654
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
1
;
const
index
=
2
;
/**
/**
*
*
0本地
0本地
...
...
mixin/click.js
View file @
48c5654
...
@@ -153,6 +153,14 @@ export default {
...
@@ -153,6 +153,14 @@ export default {
numberOfChannels
:
1
,
numberOfChannels
:
1
,
});
});
}
}
// const isContinue = this.hasErrorFile();
// if (isContinue) {
// this.handleErrorFile(res.tempFilePath);
// if (this.isEnd) {
// this.saveRecord();
// }
// return;
// }
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
);
...
@@ -161,7 +169,11 @@ export default {
...
@@ -161,7 +169,11 @@ export default {
this
.
$sendSentry
(
this
.
$sendSentry
(
`上传文件失败:手机号-
${
phoneNumber
}
姓名-
${
customerName
}
销售-
${
staffName
}
车型-
${
carModel
}
销售-
${
salesUuid
}
`
`上传文件失败:手机号-
${
phoneNumber
}
姓名-
${
customerName
}
销售-
${
staffName
}
车型-
${
carModel
}
销售-
${
salesUuid
}
`
);
);
return
;
// this.handleErrorFile(res.tempFilePath, "error");
// return;
}
else
{
// this.handleErrorFile(result, "success");
}
}
const
storageFile
=
[...
this
.
audioList
,
result
];
const
storageFile
=
[...
this
.
audioList
,
result
];
uni
.
$storage
.
set
(
"storageFile"
,
storageFile
);
uni
.
$storage
.
set
(
"storageFile"
,
storageFile
);
...
@@ -171,6 +183,31 @@ export default {
...
@@ -171,6 +183,31 @@ export default {
this
.
uploadVoice
(
storageFile
);
this
.
uploadVoice
(
storageFile
);
});
});
},
},
/**保存记录*/
saveRecord
()
{
const
fileList
=
JSON
.
parse
(
uni
.
$storage
.
get
(
"errorFile"
)
||
"[]"
);
let
recordList
=
JSON
.
parse
(
uni
.
$storage
.
get
(
"recordList"
)
||
"[]"
);
recordList
=
[
...
recordList
,
{
fileList
,
},
];
uni
.
$storage
.
set
(
"recordList"
,
JSON
.
stringify
(
recordList
));
},
/**是否存在错误文件*/
hasErrorFile
()
{
const
fileList
=
JSON
.
parse
(
uni
.
$storage
.
get
(
"errorFile"
)
||
"[]"
);
const
errorFileList
=
fileList
.
filter
((
item
)
=>
item
.
status
==
"error"
);
return
errorFileList
.
length
>
0
;
},
/**处理失败的文件*/
handleErrorFile
(
file
,
status
)
{
const
errorFileList
=
JSON
.
parse
(
uni
.
$storage
.
get
(
"errorFile"
)
||
"[]"
);
const
errorFile
=
[...
errorFileList
,
{
file
,
status
}];
uni
.
$storage
.
set
(
"errorFile"
,
JSON
.
stringify
(
errorFile
));
},
handleRerord
()
{},
async
checkUploadFile
(
tempFilePath
)
{
async
checkUploadFile
(
tempFilePath
)
{
let
attempt
=
0
;
let
attempt
=
0
;
while
(
attempt
<
3
)
{
while
(
attempt
<
3
)
{
...
...
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