Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
2735422a
Commit
2735422a
authored
May 14, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在线客服增加
parent
9e8f642e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
29 deletions
+106
-29
center.vue
pages/indexs/center/center.vue
+20
-13
enterpriseWechat - 副本.vue
...ustomerService/enterpriseWechat/enterpriseWechat - 副本.vue
+32
-0
enterpriseWechat.vue
.../my/customerService/enterpriseWechat/enterpriseWechat.vue
+52
-14
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+1
-1
scenicSingleOrder.vue
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
+1
-1
No files found.
pages/indexs/center/center.vue
View file @
2735422a
...
@@ -110,14 +110,15 @@
...
@@ -110,14 +110,15 @@
常用信息
常用信息
</view>
</view>
</view>
</view>
<view
class=
"middle3-list"
@
click=
"go
MyServe
()"
>
<view
class=
"middle3-list"
@
click=
"go
TravelList
()"
>
<view>
<view>
<image
src=
"@/static/img/my/center/
customer
.png"
></image>
<image
src=
"@/static/img/my/center/
schedule
.png"
></image>
</view>
</view>
<view>
<view>
我的客服
行程单
</view>
</view>
</view>
</view>
<view
class=
"middle3-list"
@
click=
"goCodeResult()"
>
<view
class=
"middle3-list"
@
click=
"goCodeResult()"
>
<view>
<view>
<image
src=
"@/static/img/my/center/code.png"
></image>
<image
src=
"@/static/img/my/center/code.png"
></image>
...
@@ -142,12 +143,12 @@
...
@@ -142,12 +143,12 @@
购物车
购物车
</view>
</view>
</view>
-->
</view>
-->
<view
class=
"middle3-list"
@
click=
"
goTravelList
()"
>
<view
class=
"middle3-list"
@
click=
"
online
()"
>
<view>
<view>
<image
src=
"@/static/img/my/center/
schedule
.png"
></image>
<image
src=
"@/static/img/my/center/
customer
.png"
></image>
</view>
</view>
<view>
<view>
行程单
在线客服
</view>
</view>
</view>
</view>
<view
class=
"middle3-list"
@
click=
"goTravelNotes()"
>
<view
class=
"middle3-list"
@
click=
"goTravelNotes()"
>
...
@@ -158,9 +159,14 @@
...
@@ -158,9 +159,14 @@
我的行记
我的行记
</view>
</view>
</view>
</view>
<!--
<view
class=
"middle3-list"
>
<view
class=
"middle3-list"
@
click=
"goMyServe()"
>
<button
@
click=
"xxx()"
>
客服
</button>
<view>
</view>
-->
<image
src=
"@/static/img/my/center/customer.png"
></image>
</view>
<view>
咨询电话
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -175,12 +181,13 @@ export default {
...
@@ -175,12 +181,13 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
xxx
(){
//---在线客服
online
(){
wx
.
openCustomerServiceChat
({
wx
.
openCustomerServiceChat
({
extInfo
:
{
url
:
'https://work.weixin.qq.com/kfid/kfcbaf30d15641d16b0'
},
extInfo
:
{
url
:
'https://work.weixin.qq.com/kfid/kfcbaf30d15641d16b0'
},
//客服链接
corpId
:
'ww2e9053ddd733ff39'
,
corpId
:
'ww2e9053ddd733ff39'
,
//企业Id
success
(
res
)
{
success
(
res
)
{
console
.
log
(
222
)
}
}
})
})
},
},
...
...
pages/my/customerService/enterpriseWechat/enterpriseWechat - 副本.vue
0 → 100644
View file @
2735422a
<
template
>
<view>
<web-view
:src=
"outUrl"
></web-view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
outUrl
:
''
,
//跳出地址
}
},
onLoad
(
option
)
{
let
companyId
=
this
.
$commonjs
.
getCompanyId
(
option
)
let
pdOpenid
=
uni
.
getStorageSync
(
'openid'
)
||
''
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
'token'
)
||
''
let
pdCreateUserId
=
uni
.
getStorageSync
(
'createUserId'
)
||
''
let
pdUserId
=
uni
.
getStorageSync
(
'userId'
)
||
''
let
baseUrl
=
this
.
$wxurl
+
'enterpriseWechat?companyId='
this
.
outUrl
=
baseUrl
+
companyId
+
'&pdOpenid='
+
pdOpenid
+
'&pdToken='
+
pdToken
+
'&pdCreateUserId='
+
pdCreateUserId
+
'&pdUserId='
+
pdUserId
},
methods
:
{
}
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
pages/my/customerService/enterpriseWechat/enterpriseWechat.vue
View file @
2735422a
<!-- 客服 -->
<
template
>
<
template
>
<view>
<view
class=
"wrap"
>
<web-view
:src=
"outUrl"
></web-view>
<view
class=
"title"
>
咨询电话
</view>
<view
class=
"list"
v-for=
"(item, index) in scenicList"
:key=
"index"
@
click=
"makePhone(item.phone)"
>
<text>
{{
item
.
name
}}
:
</text>
<text>
{{
item
.
phone
}}
</text>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -8,24 +17,53 @@
...
@@ -8,24 +17,53 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
outUrl
:
''
,
//跳出地址
scenicList
:[
//景区列表
{
name
:
'长江索道'
,
phone
:
'023-68816888'
},
{
name
:
'皇冠大扶梯'
,
phone
:
'023-68485623'
},
{
name
:
'云端之眼.高空观景台'
,
phone
:
'023-60339688'
},
{
name
:
'两江夜游'
,
phone
:
'13883372702'
},
{
name
:
'礼嘉时光缆车(渝北区)'
,
phone
:
'023-67687141'
},
{
name
:
'清明上河图'
,
phone
:
'17783002411'
},
{
name
:
'重庆湖广会馆'
,
phone
:
'023-63914697'
},
{
name
:
'重庆抗战遗址博物馆'
,
phone
:
'023-62462447'
},
{
name
:
'重庆杜莎夫人蜡像馆'
,
phone
:
'023-63492828'
},
{
name
:
'红岩文旅'
,
phone
:
'023-81037996'
},
{
name
:
'胖丁旅行'
,
phone
:
'4000720368'
},
]
}
}
},
},
onLoad
(
option
)
{
onLoad
()
{
let
companyId
=
this
.
$commonjs
.
getCompanyId
(
option
)
let
pdOpenid
=
uni
.
getStorageSync
(
'openid'
)
||
''
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
'token'
)
||
''
let
pdCreateUserId
=
uni
.
getStorageSync
(
'createUserId'
)
||
''
let
pdUserId
=
uni
.
getStorageSync
(
'userId'
)
||
''
let
baseUrl
=
this
.
$wxurl
+
'enterpriseWechat?companyId='
this
.
outUrl
=
baseUrl
+
companyId
+
'&pdOpenid='
+
pdOpenid
+
'&pdToken='
+
pdToken
+
'&pdCreateUserId='
+
pdCreateUserId
+
'&pdUserId='
+
pdUserId
},
},
methods
:
{
methods
:
{
//---拨打电话
makePhone
(
phoneNumber
)
{
uni
.
makePhoneCall
({
phoneNumber
})
}
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
lang=
"scss"
>
.wrap
{
height
:
100%
;
background
:
#ffffff
;
}
.title
{
text-align
:
center
;
font-size
:
32rpx
;
font-weight
:
bold
;
padding
:
30rpx
;
border-bottom
:
1px
solid
#e6e6e6
;
}
.list
{
height
:
100rpx
;
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
0
24rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
</
style
>
</
style
>
\ No newline at end of file
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
2735422a
...
@@ -1144,7 +1144,7 @@ export default {
...
@@ -1144,7 +1144,7 @@ export default {
return
return
}
}
if
(
!
this
.
sortStatus
)
{
if
(
!
this
.
sortStatus
)
{
//获取排号是否上下架失败时,点击无效
//防止排号上下架接口调用失败时,游客下单之后,未上传站点信息给后端
uni
.
showToast
({
uni
.
showToast
({
title
:
'获取排号信息失败,请尝试退出并重新进入小程序'
,
title
:
'获取排号信息失败,请尝试退出并重新进入小程序'
,
icon
:
'none'
icon
:
'none'
...
...
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
View file @
2735422a
...
@@ -1205,7 +1205,7 @@ export default {
...
@@ -1205,7 +1205,7 @@ export default {
return
return
}
}
if
(
!
this
.
sortStatus
)
{
if
(
!
this
.
sortStatus
)
{
//
获取排号是否上下架失败时,点击无效
//
防止排号上下架接口调用失败时,游客下单之后,未上传站点信息给后端
uni
.
showToast
({
uni
.
showToast
({
title
:
'获取排号信息失败,请尝试退出并重新进入小程序'
,
title
:
'获取排号信息失败,请尝试退出并重新进入小程序'
,
icon
:
'none'
icon
:
'none'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment