This commit is contained in:
wwz
2025-01-14 16:56:07 +08:00
parent a4c26b4801
commit 4c0766d92b
3 changed files with 33 additions and 5 deletions

View File

@@ -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" : ""
} }
} }
] ]

View File

@@ -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
View 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>