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 e833fa1b
authored
Apr 18, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提示
1 parent
a1c0dca7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
55 deletions
App.vue
mixin/click.js
pages/home/home.vue
App.vue
View file @
e833fa1
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18
09:57:40
* @LastEditTime: 2024-04-18
17:52:07
* @FilePath: \gl_tape\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -14,7 +14,7 @@ export default {
computed
:
{
...
mapState
(
"audio"
,
[
"isEnd"
,
"isStart"
]),
},
onLaunch
:
function
()
{
onLaunch
:
async
function
()
{
setTimeout
(()
=>
{
plus
.
screen
.
unlockOrientation
();
//解除锁定屏幕方向
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
...
...
@@ -24,11 +24,6 @@ export default {
});
},
onShow
:
async
function
()
{
const
systemInfo
=
await
uni
.
$api
.
systemApi
.
getMockData
();
console
.
log
(
systemInfo
.
isCheckedUpdate
,
"systemInfo.isCheckedUpdate"
);
if
(
systemInfo
.
isCheckedUpdate
)
{
checkUpdate
();
}
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
||
{};
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
uni
.
$storage
.
rm
(
"userInfo"
);
...
...
@@ -37,11 +32,25 @@ export default {
url
:
"/pages/common/login"
,
});
}
// let version = '1.0.1'
let
version
=
plus
.
runtime
.
version
;
uni
.
$api
.
commonApi
.
getAPPVersion
().
then
((
res
)
=>
{
if
(
res
!=
version
&&
!
systemInfo
.
isCheckedUpdate
)
this
.
$store
.
dispatch
(
"openUpdateModal"
);
});
const
systemInfo
=
await
uni
.
$api
.
systemApi
.
getMockData
();
if
(
systemInfo
.
isCheckedUpdate
)
{
checkUpdate
();
}
switch
(
uni
.
getSystemInfoSync
().
platform
)
{
case
"android"
:
this
.
$permision
.
requestAndroidPermission
(
"android.permission.RECORD_AUDIO"
);
this
.
$permision
.
requestAndroidPermission
(
"android.permission.CAMERA"
);
break
;
case
"ios"
:
this
.
$permision
.
judgeIosPermission
(
"record"
);
this
.
$permision
.
judgeIosPermission
(
"camera"
);
break
;
}
let
version
=
plus
.
runtime
.
version
;
uni
.
$api
.
commonApi
.
getAPPVersion
().
then
((
res
)
=>
{
if
(
res
!=
version
&&
!
systemInfo
.
isCheckedUpdate
)
this
.
$store
.
dispatch
(
"openUpdateModal"
);
});
},
onHide
:
function
()
{
const
recorderManager
=
uni
.
getRecorderManager
();
...
...
mixin/click.js
View file @
e833fa1
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-1
6 18:48:06
* @LastEditTime: 2024-04-1
8 17:29:04
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -84,42 +84,42 @@ export default {
async
uploadVoice
(
tempFilePath
)
{
try
{
const
{
shopMerchantId
,
phone
}
=
uni
.
$storage
.
get
(
"userInfo"
),
{
customerName
,
phoneNumber
,
salesUuid
,
carModel
}
=
this
.
$store
.
state
.
user
.
customerInfo
,
receptionCustomerPaySourceList
=
this
.
booksList
.
map
((
item
)
=>
{
return
{
id
:
item
.
id
,
sourceType
:
item
.
id
,
sourceUrl
:
item
.
imgUrl
,
{
customerName
,
phoneNumber
,
salesUuid
,
carModel
}
=
this
.
$store
.
state
.
user
.
customerInfo
,
receptionCustomerPaySourceList
=
this
.
booksList
.
map
((
item
)
=>
{
return
{
id
:
item
.
id
,
sourceType
:
item
.
id
,
sourceUrl
:
item
.
imgUrl
,
};
}),
params
=
{
carModel
,
endReasonType
:
this
.
endReasonType
,
//原因 1.异常 0.正常
customerName
,
phoneNumber
,
loginPhone
:
phone
,
salesUuid
,
receptionStatus
:
this
.
receptionStatus
,
//接待结果 1.成交 0.战败
recordUrlList
:
tempFilePath
,
receptionStartTime
:
this
.
receptionStartTime
,
receptionEndTime
:
this
.
receptionEndTime
,
receptionCustomerPaySourceList
,
//1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId
:
shopMerchantId
,
};
}),
params
=
{
carModel
,
endReasonType
:
this
.
endReasonType
,
//原因 1.异常 0.正常
customerName
,
phoneNumber
,
loginPhone
:
phone
,
salesUuid
,
receptionStatus
:
this
.
receptionStatus
,
//接待结果 1.成交 0.战败
recordUrlList
:
tempFilePath
,
receptionStartTime
:
this
.
receptionStartTime
,
receptionEndTime
:
this
.
receptionEndTime
,
receptionCustomerPaySourceList
,
//1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId
:
shopMerchantId
,
};
console
.
log
(
customerName
,
phoneNumber
,
salesUuid
,
carModel
)
if
(
customerName
&&
phoneNumber
&&
salesUuid
&&
carModel
)
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
params
);
});
this
.
setBooks
([]);
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
this
.
setReceptionStatus
(
1
);
this
.
setReasonType
(
0
);
uni
.
$storage
.
set
(
"storageFile"
,
""
);
console
.
log
(
customerName
,
phoneNumber
,
salesUuid
,
carModel
);
if
(
customerName
&&
phoneNumber
&&
salesUuid
&&
carModel
)
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
params
);
});
this
.
setBooks
([]);
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
this
.
setReceptionStatus
(
1
);
this
.
setReasonType
(
0
);
uni
.
$storage
.
set
(
"storageFile"
,
""
);
}
catch
(
error
)
{
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
console
.
log
(
error
)
console
.
log
(
error
)
;
}
},
//开始录音
...
...
@@ -128,6 +128,7 @@ export default {
this
.
setAudioStart
(
true
);
this
.
setAudioList
([]);
this
.
setAudioEnd
(
false
);
this
.
initTime
();
recorderManager
.
start
({
duration
:
600000
,
});
...
...
pages/home/home.vue
View file @
e833fa1
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-1
6 18:31:54
* @LastEditTime: 2024-04-1
8 17:08:12
-->
<
template
>
<view
class=
"container"
@
click=
"handleTouchStart()"
>
...
...
@@ -86,14 +86,6 @@
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
></MessageBox>
<MessageBox
ref=
"tipBox"
@
cancel=
"tipCancel"
@
confirm=
"tipConfirm"
content=
"系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText=
"否"
confirmBtnText=
"是"
></MessageBox>
</view>
</view>
<view
:class=
"['detail', { show: id }]"
>
...
...
@@ -107,6 +99,14 @@
/>
</view>
<MessageBox
ref=
"tipBox"
@
cancel=
"tipCancel"
@
confirm=
"tipConfirm"
content=
"系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText=
"否"
confirmBtnText=
"是"
></MessageBox>
<MessageBox
:popupW=
"704"
ref=
"finish"
content=
"当前操作视为强制退出接待,若需正常流程完成接待请点击“完成接待”"
...
...
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