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 836d4e1a
authored
Apr 10, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.1
2 parents
6459c9fa
3a5638a7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
16 deletions
App.vue
env.js
mixin/click.js
pages.json
pages/detail/detail.vue
utils/ossUploadFile/uploadFile.js
App.vue
View file @
836d4e1
<
script
>
<
script
>
import
{
mapState
}
from
"vuex"
;
export
default
{
export
default
{
computed
:
{
...
mapState
(
"audio"
,
[
"isEnd"
,
"isStart"
]),
},
onLaunch
:
function
()
{
onLaunch
:
function
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
plus
.
screen
.
unlockOrientation
();
//解除锁定屏幕方向
plus
.
screen
.
unlockOrientation
();
//解除锁定屏幕方向
plus
.
screen
.
lockOrientation
(
'landscape-primary'
);
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
},
300
)
},
300
)
;
uni
.
setKeepScreenOn
({
uni
.
setKeepScreenOn
({
keepScreenOn
:
true
,
keepScreenOn
:
true
,
});
});
},
},
onShow
:
function
()
{
},
onShow
:
function
()
{},
onHide
:
function
()
{
},
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 @
836d4e1
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 @
836d4e1
...
@@ -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,6 +100,7 @@ export default {
...
@@ -87,6 +100,7 @@ export default {
};
};
this
.
setBooks
([]);
this
.
setBooks
([]);
console
.
log
(
params
);
console
.
log
(
params
);
if
(
customerName
&&
phoneNumber
&&
salesUuid
&&
carModel
)
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
).
then
((
res
)
=>
{
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
});
});
...
@@ -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
,
});
});
}
}
...
...
pages.json
View file @
836d4e1
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
"path"
:
"pages/detail/detail"
,
"path"
:
"pages/detail/detail"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"onReachBottonDistance"
:
50
"onReachBottonDistance"
:
50
,
"disableSwipeBack"
:
true
}
}
},
},
{
{
...
...
pages/detail/detail.vue
View file @
836d4e1
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
drawStatus
:
false
,
drawStatus
:
false
,
finishVisible
:
false
,
finishVisible
:
false
,
defaulePen
:
require
(
'../../assets/images/media/pen.png'
),
defaulePen
:
require
(
'../../assets/images/media/pen.png'
),
activePen
:
require
(
'../../assets/images/media/pen-active.png'
)
activePen
:
require
(
'../../assets/images/media/pen-active.png'
)
,
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -111,6 +111,16 @@ export default {
...
@@ -111,6 +111,16 @@ export default {
this
.
id
=
options
.
id
;
this
.
id
=
options
.
id
;
this
.
getFindSoureDetail
(
options
.
id
);
this
.
getFindSoureDetail
(
options
.
id
);
},
},
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
if
(
this
.
type
!=
"preview"
)
this
.
$refs
.
finish
.
open
()
return
true
;
}
// 其他情况允许正常返回
return
false
;
},
async
onReachBottom
()
{
async
onReachBottom
()
{
this
.
$refs
.
history
.
getQuotationList
();
this
.
$refs
.
history
.
getQuotationList
();
},
},
...
...
utils/ossUploadFile/uploadFile.js
View file @
836d4e1
...
@@ -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