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 fd89fed0
authored
Jan 14, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 合并
1 parent
f2474c3b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
93 additions
and
58 deletions
components/HomeFrame/components/CustomerFile.vue
components/HomeFrame/components/CustomerInfo.vue
components/HomeFrame/components/RecordList.vue
components/HomeFrame/components/SettingBox.vue
components/HomeFrame/components/saveRecord.vue
components/HomeFrame/index.vue
pages/boutique/index.vue
pages/equity/detail/components/informationEntry.vue
pages/equity/index.vue
components/HomeFrame/components/CustomerFile.vue
View file @
fd89fed
...
@@ -374,7 +374,6 @@ export default {
...
@@ -374,7 +374,6 @@ export default {
this
.
total
=
total
this
.
total
=
total
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
error
)
this
.
flag
=
true
this
.
flag
=
true
}
}
}
,
}
,
...
@@ -465,7 +464,6 @@ export default {
...
@@ -465,7 +464,6 @@ export default {
title
:
error
,
title
:
error
,
icon
:
'none'
icon
:
'none'
}
)
}
)
console
.
log
(
error
)
}
}
}
,
}
,
jumpDetail
(
id
)
{
jumpDetail
(
id
)
{
...
@@ -513,7 +511,6 @@ export default {
...
@@ -513,7 +511,6 @@ export default {
this
.
total
=
total
this
.
total
=
total
this
.
$forceUpdate
()
this
.
$forceUpdate
()
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
flag
=
true
this
.
flag
=
true
}
}
...
...
components/HomeFrame/components/CustomerInfo.vue
View file @
fd89fed
...
@@ -255,7 +255,6 @@ export default {
...
@@ -255,7 +255,6 @@ export default {
res
.
customerTagName
=
res
.
customerTagName
.
replace
(
/,/g
,
'|'
)
res
.
customerTagName
=
res
.
customerTagName
.
replace
(
/,/g
,
'|'
)
res
.
arrivalDate
=
dayjs
(
res
.
arrivalDate
).
format
(
"YYYY-MM-DD"
)
res
.
arrivalDate
=
dayjs
(
res
.
arrivalDate
).
format
(
"YYYY-MM-DD"
)
this
.
customerInfo
=
res
this
.
customerInfo
=
res
console
.
log
(
res
)
},
},
back
()
{
back
()
{
this
.
backClass
=
'backClass'
this
.
backClass
=
'backClass'
...
...
components/HomeFrame/components/RecordList.vue
View file @
fd89fed
This diff is collapsed.
Click to expand it.
components/HomeFrame/components/SettingBox.vue
View file @
fd89fed
...
@@ -118,7 +118,6 @@ export default {
...
@@ -118,7 +118,6 @@ export default {
message
message
}
=
await
uni
.
$api
.
userApi
.
logout
(),
}
=
await
uni
.
$api
.
userApi
.
logout
(),
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
console
.
log
(
code
)
if
(
code
==
0
)
{
if
(
code
==
0
)
{
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"sessionId"
);
uni
.
$storage
.
rm
(
"sessionId"
);
...
@@ -131,7 +130,6 @@ export default {
...
@@ -131,7 +130,6 @@ export default {
},
500
)
},
500
)
}
else
throw
message
}
else
throw
message
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
uni
.
showToast
({
title
:
error
,
title
:
error
,
...
...
components/HomeFrame/components/saveRecord.vue
View file @
fd89fed
...
@@ -115,7 +115,6 @@ export default {
...
@@ -115,7 +115,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
customerInfo
=
utils
.
deepClone
(
this
.
customerInfoVal
)
this
.
customerInfo
=
utils
.
deepClone
(
this
.
customerInfoVal
)
console
.
log
(
this
.
customerInfo
)
const
i
=
this
.
receptionList
.
findIndex
(
e
=>
e
.
value
===
this
.
customerInfo
.
receptionStatus
)
const
i
=
this
.
receptionList
.
findIndex
(
e
=>
e
.
value
===
this
.
customerInfo
.
receptionStatus
)
this
.
$set
(
this
.
customerInfo
,
'receptionStatus'
,
i
==
-
1
?
''
:
this
.
receptionList
[
i
].
label
)
this
.
$set
(
this
.
customerInfo
,
'receptionStatus'
,
i
==
-
1
?
''
:
this
.
receptionList
[
i
].
label
)
},
},
...
@@ -157,7 +156,6 @@ export default {
...
@@ -157,7 +156,6 @@ export default {
},
},
handleSelect
(
item
,
popkey
)
{
handleSelect
(
item
,
popkey
)
{
this
.
$refs
[
popkey
].
close
()
this
.
$refs
[
popkey
].
close
()
console
.
log
(
item
,
popkey
)
if
(
popkey
==
'employeeBoxVisible'
)
{
if
(
popkey
==
'employeeBoxVisible'
)
{
this
.
customerInfo
.
salesUuid
=
item
.
uuid
this
.
customerInfo
.
salesUuid
=
item
.
uuid
this
.
customerInfo
.
salesName
=
item
.
staffName
this
.
customerInfo
.
salesName
=
item
.
staffName
...
...
components/HomeFrame/index.vue
View file @
fd89fed
<
template
>
<
template
>
<view
class=
"container"
@
click=
"handleTouchStart"
>
<view
class=
"container"
@
click=
"handleTouchStart"
>
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"$emit('changeTab', $event)"
@
stopAudio=
"stopAudio"
/>
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"$emit('changeTab', $event)"
@
stopAudio=
"stopAudio"
/>
<view
class=
"right-side"
>
<view
class=
"right-side"
>
<template
v-if=
"tabIndex == 0"
>
<template
v-if=
"tabIndex == 0"
>
<view
class=
"right-content"
>
<view
class=
"right-content"
>
<view
class=
"start"
@
click=
"$emit('start')"
>
<view
<image
class=
"start-btn"
src=
"../../assets/images/home/start.gif"
alt=
"开始接待"
/>
class=
"start"
<image
class=
"start-border"
src=
"../../assets/images/home/start-border.png"
/>
@
click=
"$emit('start')"
>
<image
class=
"start-btn"
src=
"../../assets/images/home/start.gif"
alt=
"开始接待"
/>
<image
class=
"start-border"
src=
"../../assets/images/home/start-border.png"
/>
</view>
</view>
<view
class=
"module-list"
>
<view
class=
"module-list"
>
<slot
name=
"module"
/>
<slot
name=
"module"
/>
...
@@ -15,9 +34,16 @@
...
@@ -15,9 +34,16 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<component
:is=
"componentName"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
<component
:is=
"componentName"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
</
template
>
</
template
>
<view
class=
"store-addr"
v-if=
"footerBox"
>
<view
class=
"store-addr"
v-if=
"footerBox"
>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
</view>
</view>
...
@@ -26,17 +52,41 @@
...
@@ -26,17 +52,41 @@
<view
:class=
"['detail', { show: id }]"
>
<view
:class=
"['detail', { show: id }]"
>
<slot
name=
"detail"
/>
<slot
name=
"detail"
/>
</view>
</view>
<view
class=
"point-page"
v-if=
"!showHome"
>
<view
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
class=
"point-page"
v-if=
"!showHome"
>
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
<MessageBox
ref=
"previewRef"
@
confirm=
"$emit('preview')"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"$emit('previewCancel')"
@
close=
"$emit('previewClose')"
></MessageBox>
<MessageBox
ref=
"previewRef"
@
confirm=
"$emit('preview')"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"$emit('previewCancel')"
@
close=
"$emit('previewClose')"
></MessageBox>
<!-- 停留弹框 -->
<!-- 停留弹框 -->
<
MessageBox
ref=
"tipBox"
@
cancel=
"tipCancel"
@
confirm=
"tipConfirm"
content=
"系统检测到您在当前页面停留较久,是否仍在客户接待中?"
cancelBtnText=
"否"
confirmBtnText=
"是"
></MessageBox
>
<
!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> --
>
<!-- 退出弹框 -->
<!-- 退出弹框 -->
<MessageBox
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
<MessageBox
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
<view
class=
"footer"
>
<view
class=
"footer"
>
<view
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
<view
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
<
template
v-if=
"finishDoneText"
>
<
template
v-if=
"finishDoneText"
>
{{
finishDoneText
}}
{{
finishDoneText
}}
</
template
>
</
template
>
...
@@ -45,7 +95,10 @@
...
@@ -45,7 +95,10 @@
<text>
(推荐)
</text>
<text>
(推荐)
</text>
</
template
>
</
template
>
</view>
</view>
<view
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
<view
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
仍要退出
仍要退出
<text>
(不推荐)
</text>
<text>
(不推荐)
</text>
</view>
</view>
...
@@ -54,13 +107,20 @@
...
@@ -54,13 +107,20 @@
<!-- 升级弹框 -->
<!-- 升级弹框 -->
<update-box
/>
<update-box
/>
<slot
name=
"content"
/>
<slot
name=
"content"
/>
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
RecordList
from
'./components/RecordList.vue'
import
RecordList
from
'./components/RecordList.vue'
import
myClick
from
'@/mixin/click'
// import myClick from '@/mixin/click'
import
uploader
from
'@/mixin/uploader.js'
import
timeout
from
'@/mixin/timeout'
import
recorder
from
'@/mixin/record/recorder'
import
uploader
from
'@/mixin/record/uploader.js'
import
versionCheck
from
'@/mixin/versionCheck.js'
import
CustomerFile
from
'./components/CustomerFile.vue'
import
CustomerFile
from
'./components/CustomerFile.vue'
import
LeftSide
from
'./components/LeftSide.vue'
import
LeftSide
from
'./components/LeftSide.vue'
import
Point
from
'./components/Point.vue'
import
Point
from
'./components/Point.vue'
...
@@ -73,7 +133,7 @@ import Calendar from './components/Income/Calendar.vue'
...
@@ -73,7 +133,7 @@ import Calendar from './components/Income/Calendar.vue'
import
Promotion
from
'./components/Income/Promotion.vue'
import
Promotion
from
'./components/Income/Promotion.vue'
import
History
from
'./components/Income/History.vue'
import
History
from
'./components/Income/History.vue'
export
default
{
export
default
{
mixins
:
[
myClick
,
uploader
],
mixins
:
[
recorder
,
uploader
,
timeout
,
versionCheck
],
components
:
{
RecordList
,
CustomerFile
,
LeftSide
,
Point
,
dayPoint
,
rulePoint
,
Course
,
Ranking
,
LevelPoint
,
Calendar
,
Promotion
,
History
},
components
:
{
RecordList
,
CustomerFile
,
LeftSide
,
Point
,
dayPoint
,
rulePoint
,
Course
,
Ranking
,
LevelPoint
,
Calendar
,
Promotion
,
History
},
props
:
{
props
:
{
id
:
[
String
,
Number
],
id
:
[
String
,
Number
],
...
@@ -83,7 +143,7 @@ export default {
...
@@ -83,7 +143,7 @@ export default {
default
:
'当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
default
:
'当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
}
}
},
},
data
()
{
data
()
{
return
{
return
{
transfer
:
''
,
transfer
:
''
,
footerBox
:
true
,
footerBox
:
true
,
...
@@ -93,24 +153,25 @@ export default {
...
@@ -93,24 +153,25 @@ export default {
tabIndex
:
0
tabIndex
:
0
}
}
},
},
mounted
()
{
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
checkVersion
()
},
},
provide
()
{
provide
()
{
return
{
return
{
showPage
:
this
.
handleShowPage
,
showPage
:
this
.
handleShowPage
,
hideFooter
:
this
.
handleFooter
hideFooter
:
this
.
handleFooter
}
}
},
},
computed
:
{
computed
:
{
previewRef
()
{
previewRef
()
{
return
this
.
$refs
.
previewRef
return
this
.
$refs
.
previewRef
},
},
finishRef
()
{
finishRef
()
{
return
this
.
$refs
.
finish
return
this
.
$refs
.
finish
},
},
componentName
()
{
componentName
()
{
const
len
=
this
.
$refs
.
leftBox
.
tabs
.
length
const
len
=
this
.
$refs
.
leftBox
.
tabs
.
length
if
(
this
.
tabIndex
==
0
)
return
'HomeSlot'
if
(
this
.
tabIndex
==
0
)
return
'HomeSlot'
else
if
(
this
.
tabIndex
==
1
)
return
'RecordList'
else
if
(
this
.
tabIndex
==
1
)
return
'RecordList'
...
@@ -119,20 +180,17 @@ export default {
...
@@ -119,20 +180,17 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleFooter
(
val
)
{
handleFooter
(
val
)
{
console
.
log
(
val
,
88
)
this
.
footerBox
=
val
this
.
footerBox
=
val
},
},
backHome
()
{
backHome
()
{
this
.
showHome
=
true
this
.
showHome
=
true
},
},
jump
()
{
jump
()
{
console
.
log
(
888
)
this
.
showHome
=
true
this
.
showHome
=
true
this
.
$emit
(
'start'
)
this
.
$emit
(
'start'
)
},
},
handleShowPage
(
name
,
transfer
)
{
handleShowPage
(
name
,
transfer
)
{
console
.
log
(
transfer
,
'transfer'
)
this
.
transfer
=
transfer
this
.
transfer
=
transfer
this
.
showHome
=
false
this
.
showHome
=
false
this
.
pointComponentName
=
name
this
.
pointComponentName
=
name
...
...
pages/boutique/index.vue
View file @
fd89fed
...
@@ -345,16 +345,8 @@ export default {
...
@@ -345,16 +345,8 @@ export default {
this
.
recording
=
false
this
.
recording
=
false
},
},
async
start
(
before
=
true
)
{
async
start
(
before
=
true
)
{
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
const
isPermision
=
this
.
$refs
.
home
.
isPermission
()
"android.permission.RECORD_AUDIO"
if
(
!
isPermision
)
return
false
);
if
(
result
!==
1
)
{
uni
.
showToast
({
title
:
"为了记录语音通话,请打开录音权限"
,
icon
:
"none"
,
});
return
false
}
if
(
before
)
this
.
clearHistory
();
if
(
before
)
this
.
clearHistory
();
this
.
$refs
.
home
.
startAudio
();
this
.
$refs
.
home
.
startAudio
();
this
.
recording
=
true
this
.
recording
=
true
...
...
pages/equity/detail/components/informationEntry.vue
View file @
fd89fed
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
<
script
>
<
script
>
import
{
uploadFile
}
from
"@/utils/ossUploadFile/uploadFile.js"
;
import
{
uploadFile
}
from
"@/utils/ossUploadFile/uploadFile.js"
;
import
utils
from
"@/utils/utils"
;
import
utils
from
"@/utils/utils"
;
import
permision
from
'@/js_sdk/wa-permission/permission.js'
const
INFO_LIST
=
[
const
INFO_LIST
=
[
{
{
id
:
1
,
id
:
1
,
...
@@ -121,7 +122,7 @@ export default {
...
@@ -121,7 +122,7 @@ export default {
...
mapMutations
(
"audio"
,
[
"setBooks"
]),
...
mapMutations
(
"audio"
,
[
"setBooks"
]),
// 上传图
// 上传图
async
choose
(
index
)
{
async
choose
(
index
)
{
const
result
=
await
this
.
$
permision
.
requestAndroidPermission
(
const
result
=
await
permision
.
requestAndroidPermission
(
"android.permission.CAMERA"
"android.permission.CAMERA"
);
);
if
(
result
!==
1
)
{
if
(
result
!==
1
)
{
...
...
pages/equity/index.vue
View file @
fd89fed
...
@@ -254,14 +254,6 @@ export default {
...
@@ -254,14 +254,6 @@ export default {
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
})
})
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
if
(
result
!==
1
)
{
uni
.
showToast
({
title
:
'为了记录语音通话,请打开录音权限'
,
icon
:
'none'
})
return
}
this
.
getSoure
()
this
.
getSoure
()
this
.
clearHistory
()
this
.
clearHistory
()
this
.
$refs
.
home
.
startAudio
()
this
.
$refs
.
home
.
startAudio
()
...
...
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