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 328898cc
authored
Jul 05, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
记录
1 parent
898261cc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
10 deletions
App.vue
components/HomeFrame/components/RecordList.vue
main.js
mixin/click.js
utils/cache/constantData.js
App.vue
View file @
328898c
...
@@ -14,8 +14,11 @@ export default {
...
@@ -14,8 +14,11 @@ export default {
computed
:
{
computed
:
{
...
mapState
(
"audio"
,
[
"isEnd"
,
"isStart"
]),
...
mapState
(
"audio"
,
[
"isEnd"
,
"isStart"
]),
},
},
onLoad
()
{},
onLoad
()
{
},
onLaunch
:
async
function
()
{
onLaunch
:
async
function
()
{
this
.
setAPPVersion
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
plus
.
screen
.
unlockOrientation
();
//解除锁定屏幕方向
plus
.
screen
.
unlockOrientation
();
//解除锁定屏幕方向
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
...
@@ -24,6 +27,19 @@ export default {
...
@@ -24,6 +27,19 @@ export default {
keepScreenOn
:
true
,
keepScreenOn
:
true
,
});
});
},
},
methods
:
{
setAPPVersion
()
{
let
version
=
plus
.
runtime
.
version
;
let
storageVersion
=
uni
.
$storage
.
get
(
"storageVersion"
)
console
.
log
(
storageVersion
,
version
)
if
(
storageVersion
!=
version
)
{
uni
.
$storage
.
rm
(
'userInfo'
);
uni
.
$storage
.
rm
(
'noSignInUuid'
);
}
uni
.
$storage
.
set
(
"storageVersion"
,
version
)
},
},
onShow
:
async
function
()
{
onShow
:
async
function
()
{
const
systemInfo
=
await
uni
.
$api
.
systemApi
.
getMockData
();
const
systemInfo
=
await
uni
.
$api
.
systemApi
.
getMockData
();
if
(
systemInfo
.
isCheckedUpdate
)
{
if
(
systemInfo
.
isCheckedUpdate
)
{
...
...
components/HomeFrame/components/RecordList.vue
View file @
328898c
...
@@ -195,7 +195,7 @@ export default {
...
@@ -195,7 +195,7 @@ export default {
}
}
}
,
}
,
mounted
()
{
mounted
()
{
this
.
init
()
this
.
init
()
;
this
.
getRecordNum
()
this
.
getRecordNum
()
}
,
}
,
methods
:
{
methods
:
{
...
@@ -229,9 +229,9 @@ export default {
...
@@ -229,9 +229,9 @@ export default {
}
}
const
{
shopMerchantId
,
sceneType
,
phone
}
=
uni
.
$storage
.
get
(
"userInfo"
);
const
{
shopMerchantId
,
sceneType
,
phone
}
=
uni
.
$storage
.
get
(
"userInfo"
);
let
recordFailList
=
recordFailListAll
.
filter
(
i
=>
{
let
recordFailList
=
recordFailListAll
.
filter
(
i
=>
{
console
.
log
(
i
.
bussinessType
,
sceneType
)
return
i
.
merchantId
==
shopMerchantId
&&
i
.
bussinessType
==
(
sceneType
==
0
?
1
:
2
)
&&
i
.
loginPhone
==
phone
return
i
.
merchantId
==
shopMerchantId
&&
i
.
bussinessType
==
(
sceneType
==
0
?
1
:
2
)
&&
i
.
loginPhone
==
phone
}
)
}
)
console
.
log
(
recordFailList
);
this
.
recordFailList
=
recordFailList
.
reverse
();
this
.
recordFailList
=
recordFailList
.
reverse
();
}
,
}
,
getRecordFail
()
{
getRecordFail
()
{
...
...
main.js
View file @
328898c
...
@@ -49,7 +49,7 @@ import { index } from "./env";
...
@@ -49,7 +49,7 @@ import { index } from "./env";
// }
// }
Vue
.
prototype
.
$permision
=
permision
;
Vue
.
prototype
.
$permision
=
permision
;
import
sentryInit
from
"@/utils/sentryConfig/sentryInit"
;
import
sentryInit
from
"@/utils/sentryConfig/sentryInit"
;
if
(
index
==
5
)
{
if
(
index
==
3
)
{
const
sentry
=
sentryInit
();
const
sentry
=
sentryInit
();
Vue
.
prototype
.
$sendSentry
=
function
(
e
)
{
Vue
.
prototype
.
$sendSentry
=
function
(
e
)
{
sentry
.
captureException
(
e
);
sentry
.
captureException
(
e
);
...
...
mixin/click.js
View file @
328898c
...
@@ -21,7 +21,7 @@ export default {
...
@@ -21,7 +21,7 @@ export default {
voicePath
:
""
,
voicePath
:
""
,
timer
:
null
,
timer
:
null
,
times
:
0
,
times
:
0
,
timeout
:
240
,
timeout
:
3
,
reaction
:
1
,
reaction
:
1
,
};
};
},
},
...
@@ -214,6 +214,7 @@ export default {
...
@@ -214,6 +214,7 @@ export default {
return
;
return
;
}
}
if
(
this
.
audioInfo
.
audioStatus
==
"abnormal"
)
{
if
(
this
.
audioInfo
.
audioStatus
==
"abnormal"
)
{
this
.
setAudioInfo
({
audioStatus
:
"end"
});
this
.
handleSave
();
this
.
handleSave
();
return
;
return
;
}
}
...
@@ -222,7 +223,6 @@ export default {
...
@@ -222,7 +223,6 @@ export default {
}
}
let
finish_timer
=
null
;
let
finish_timer
=
null
;
this
.
setAudioInfo
({
audioStatus
:
"end"
});
//直接退出
//直接退出
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
,
mask
:
true
,
...
@@ -249,9 +249,6 @@ export default {
...
@@ -249,9 +249,6 @@ export default {
// console.log(this.times);
// console.log(this.times);
this
.
times
++
;
this
.
times
++
;
if
(
this
.
times
>=
this
.
timeout
)
{
if
(
this
.
times
>=
this
.
timeout
)
{
this
.
$refs
.
tipBox
?.
open
();
}
if
(
this
.
times
>=
this
.
timeout
)
{
//关闭录音
//关闭录音
this
.
closeAudio
();
this
.
closeAudio
();
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
...
...
utils/cache/constantData.js
View file @
328898c
...
@@ -19,7 +19,8 @@ export const STORAGE_OBJECTkEY = {
...
@@ -19,7 +19,8 @@ export const STORAGE_OBJECTkEY = {
employeeList
:
"employeeList"
,
employeeList
:
"employeeList"
,
recordList
:
"recordList"
,
recordList
:
"recordList"
,
recordSuccessList
:
"recordSuccessList"
,
recordSuccessList
:
"recordSuccessList"
,
historyList
:
"historyList"
historyList
:
"historyList"
,
storageVersion
:
"storageVersion"
,
};
};
// export const IMG_VERSION = async () => {
// export const IMG_VERSION = async () => {
...
...
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