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,
"navigationStyle": "custom"
}
},{
}, {
"path": "pages/task/index",
"style": {
"navigationBarTitleText": "任务",
@@ -103,6 +103,12 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/me/webview",
"style": {
"navigationBarTitleText": "客服"
}
},
{
"path": "pages/me/userinfo",
"style": {
@@ -827,10 +833,9 @@
}
},
{
"path" : "yaoqing/realName",
"style" :
{
"navigationBarTitleText" : ""
"path": "yaoqing/realName",
"style": {
"navigationBarTitleText": ""
}
}
]

View File

@@ -303,6 +303,7 @@
import ttMsg from '../../components/ttMsg/ttMsg.vue'
import httpsRequest from '../../common/httpRequest.js'
import otherXuanfu from '@/components/other-xuafu.vue'
import {init} from '@/common/init.js'
import {
returnIsSafari
} from '@/utils/app.js'
@@ -359,6 +360,7 @@
this.wwrqx(1212, 5)
},
onShow() {
init()
const systemInfo = uni.getSystemInfoSync();
const isIOS = /iOS/.test(systemInfo.platform);
if (!isIOS) {
@@ -748,6 +750,10 @@
uni.navigateTo({
url: '/me/setting/kefu'
})
} else if (kefu == 4) {
uni.navigateTo({
url: '/pages/me/webview'
})
} else if (kefu === 3) {
uni.makePhoneCall({
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>