Commit 2735422a authored by 潘永坪's avatar 潘永坪

在线客服增加

parent 9e8f642e
...@@ -110,14 +110,15 @@ ...@@ -110,14 +110,15 @@
常用信息 常用信息
</view> </view>
</view> </view>
<view class="middle3-list" @click="goMyServe()"> <view class="middle3-list" @click="goTravelList()">
<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)
} }
}) })
}, },
......
<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
<!-- 客服 -->
<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
...@@ -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'
......
...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment