客服
This commit is contained in:
15
pages.json
15
pages.json
@@ -11,7 +11,7 @@
|
|||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},{
|
}, {
|
||||||
"path": "pages/task/index",
|
"path": "pages/task/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务",
|
||||||
@@ -103,6 +103,12 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/me/webview",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "客服"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/me/userinfo",
|
"path": "pages/me/userinfo",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -827,10 +833,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "yaoqing/realName",
|
"path": "yaoqing/realName",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
"navigationBarTitleText": ""
|
||||||
"navigationBarTitleText" : ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -303,6 +303,7 @@
|
|||||||
import ttMsg from '../../components/ttMsg/ttMsg.vue'
|
import ttMsg from '../../components/ttMsg/ttMsg.vue'
|
||||||
import httpsRequest from '../../common/httpRequest.js'
|
import httpsRequest from '../../common/httpRequest.js'
|
||||||
import otherXuanfu from '@/components/other-xuafu.vue'
|
import otherXuanfu from '@/components/other-xuafu.vue'
|
||||||
|
import {init} from '@/common/init.js'
|
||||||
import {
|
import {
|
||||||
returnIsSafari
|
returnIsSafari
|
||||||
} from '@/utils/app.js'
|
} from '@/utils/app.js'
|
||||||
@@ -359,6 +360,7 @@
|
|||||||
this.wwrqx(1212, 5)
|
this.wwrqx(1212, 5)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
init()
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
const isIOS = /iOS/.test(systemInfo.platform);
|
const isIOS = /iOS/.test(systemInfo.platform);
|
||||||
if (!isIOS) {
|
if (!isIOS) {
|
||||||
@@ -748,6 +750,10 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/me/setting/kefu'
|
url: '/me/setting/kefu'
|
||||||
})
|
})
|
||||||
|
} else if (kefu == 4) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/me/webview'
|
||||||
|
})
|
||||||
} else if (kefu === 3) {
|
} else if (kefu === 3) {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: kefuPhone //仅为示例
|
phoneNumber: kefuPhone //仅为示例
|
||||||
|
|||||||
17
pages/me/webview.vue
Normal file
17
pages/me/webview.vue
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<web-view :src="url"></web-view>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
url: 'https://chatbot.aliyuncs.com/intl/index.htm?from=pfW5XoA9gt&locale=zh-CN',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
async onLoad(options) {
|
||||||
|
this.url = uni.getStorageSync('kefuPhone');
|
||||||
|
console.log(options)
|
||||||
|
// this.url = options.url
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user