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 87758d7d
authored
Apr 10, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除上传文件
1 parent
72efc9e7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
16 deletions
App.vue
env.js
mixin/click.js
utils/ossUploadFile/uploadFile.js
App.vue
View file @
87758d7
<
script
>
<
script
>
import
{
mapState
}
from
"vuex"
;
export
default
{
export
default
{
computed
:
{
...
mapState
(
"audio"
,
[
"isEnd"
,
"isStart"
]),
},
onLaunch
:
function
()
{
onLaunch
:
function
()
{
plus
.
screen
.
lockOrientation
(
'landscape-primary'
)
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
uni
.
setKeepScreenOn
({
uni
.
setKeepScreenOn
({
keepScreenOn
:
true
,
keepScreenOn
:
true
,
});
});
},
},
onShow
:
function
()
{},
onShow
:
function
()
{
onHide
:
function
()
{},
console
.
log
(
"app显示"
);
},
onHide
:
function
()
{
// if (this.isStart && !this.isEnd) {
// console.log("录音");
// const recorderManager = uni.getRecorderManager();
// recorderManager.stop();
// recorderManager.start({
// duration: 10000,
// });
// }
},
};
};
</
script
>
</
script
>
...
...
env.js
View file @
87758d7
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"preRelease"
];
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"preRelease"
];
const
index
=
1
;
const
index
=
2
;
/**
/**
*
*
0本地
0本地
...
...
mixin/click.js
View file @
87758d7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 1
1:19:26
* @LastEditTime: 2024-04-10 1
6:15:05
* @FilePath: \gl_tape\mixin\click.js
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -36,6 +36,19 @@ export default {
...
@@ -36,6 +36,19 @@ export default {
]),
]),
...
mapState
([
"user.customerInfo"
]),
...
mapState
([
"user.customerInfo"
]),
},
},
created
()
{
console
.
log
(
"created"
);
},
onHide
()
{
console
.
log
(
"隐藏"
);
// recorderManager.stop();
// recorderManager.start({
// duration: 10000,
// });
},
onShow
()
{
console
.
log
(
"显示"
);
},
methods
:
{
methods
:
{
...
mapMutations
(
"audio"
,
[
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
,
"setReceptionStatus"
,
...
@@ -87,9 +100,10 @@ export default {
...
@@ -87,9 +100,10 @@ export default {
};
};
this
.
setBooks
([]);
this
.
setBooks
([]);
console
.
log
(
params
);
console
.
log
(
params
);
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
).
then
((
res
)
=>
{
if
(
customerName
&&
phoneNumber
&&
salesUuid
&&
carModel
)
console
.
log
(
res
);
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
).
then
((
res
)
=>
{
});
console
.
log
(
res
);
});
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
this
.
endReasonType
=
0
;
this
.
endReasonType
=
0
;
this
.
setReceptionStatus
(
1
);
this
.
setReceptionStatus
(
1
);
...
@@ -106,7 +120,7 @@ export default {
...
@@ -106,7 +120,7 @@ export default {
});
});
recorderManager
.
onStop
(
async
(
res
)
=>
{
recorderManager
.
onStop
(
async
(
res
)
=>
{
if
(
!
this
.
isEnd
)
{
if
(
!
this
.
isEnd
)
{
recorderManager
.
start
({
uni
.
getRecorderManager
()
.
start
({
duration
:
600000
,
duration
:
600000
,
});
});
}
}
...
...
utils/ossUploadFile/uploadFile.js
View file @
87758d7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:51
* @Date: 2024-04-07 17:09:51
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 1
2:58:3
9
* @LastEditTime: 2024-04-10 1
5:08:5
9
* @FilePath: \gl_tape\utils\ossUploadFile\uploadFile.js
* @FilePath: \gl_tape\utils\ossUploadFile\uploadFile.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -56,12 +56,12 @@ const uploadFile = function (filePath) {
...
@@ -56,12 +56,12 @@ const uploadFile = function (filePath) {
if
(
res
.
statusCode
!=
200
)
{
if
(
res
.
statusCode
!=
200
)
{
reject
(
new
Error
(
"上传错误:"
+
JSON
.
stringify
(
res
)));
reject
(
new
Error
(
"上传错误:"
+
JSON
.
stringify
(
res
)));
}
}
//
uni.removeSavedFile({
uni
.
removeSavedFile
({
//
filePath,
filePath
,
//
complete: function (res) {
complete
:
function
(
res
)
{
//
console.log(res);
console
.
log
(
res
);
// }
},
//
});
});
resolve
(
aliyunServerURL
+
aliyunFileKey
);
resolve
(
aliyunServerURL
+
aliyunFileKey
);
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
...
...
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