更新羽声语音h5
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
|
||||
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg || $config.PRIMARY_BGURL}')`}">
|
||||
<!-- <headerHeight /> -->
|
||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'帮助与反馈'" :emitBack="true" @backEvent="back">
|
||||
</navBar>
|
||||
@@ -118,7 +118,7 @@
|
||||
methods: {
|
||||
async getHelpList() {
|
||||
http.get('/api/Help/help_type', {
|
||||
token: uni.getStorageSync('token') ?? ''
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
@@ -145,7 +145,7 @@
|
||||
},
|
||||
async getProblemList(id) {
|
||||
http.get('/api/Help/help_list', {
|
||||
token: uni.getStorageSync('token') ?? '',
|
||||
token: uni.getStorageSync('token') || '',
|
||||
type: id,
|
||||
page: this.page,
|
||||
page_limit: this.limit
|
||||
@@ -179,20 +179,23 @@
|
||||
});
|
||||
} else {
|
||||
// 在线客服
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
// console.log(platform, '打印设备参数')
|
||||
if (platform === 'ios') {
|
||||
console.log('调用iOS原生方法')
|
||||
// 通过 messageHandlers 调用 iOS 原生方法
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'customerService'
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
console.log('调用Android原生方法')
|
||||
// 调用 Android 原生方法
|
||||
window.Android.customerService();
|
||||
uni.navigateTo({
|
||||
url: `/pages/feedback/customerService?h=${this.statusBarHeight}`
|
||||
});
|
||||
// const platform = uni.getSystemInfoSync().platform;
|
||||
// // console.log(platform, '打印设备参数')
|
||||
// if (platform === 'ios') {
|
||||
// console.log('调用iOS原生方法')
|
||||
// // 通过 messageHandlers 调用 iOS 原生方法
|
||||
// window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
// 'action': 'customerService'
|
||||
// });
|
||||
// } else if (platform === 'android') {
|
||||
// console.log('调用Android原生方法')
|
||||
// // 调用 Android 原生方法
|
||||
// window.Android.customerService();
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
},
|
||||
back() {
|
||||
|
||||
Reference in New Issue
Block a user