iOS 适配
This commit is contained in:
11
main.js
11
main.js
@@ -34,8 +34,6 @@ Vue.use(httpApi, app)
|
||||
|
||||
app.$mount()
|
||||
|
||||
console.log(uni);
|
||||
|
||||
// #ifdef APP
|
||||
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
@@ -44,15 +42,10 @@ let isIos = sysInfo.platform == 'ios'
|
||||
if (isIos) {
|
||||
const originNavigateTo = uni.navigateTo
|
||||
|
||||
uni.navigateTo = (params) => {
|
||||
|
||||
console.log("自定义 navigate 。。。。。。。。。。");
|
||||
|
||||
uni.navigateTo = (params) => {
|
||||
let jsonParam = JSON.parse(JSON.stringify(params))
|
||||
|
||||
|
||||
|
||||
if (isIos && jsonParam.url.includes('/me/detail/detail')) {
|
||||
console.log('iOS 跳转视频也');
|
||||
jsonParam.url = jsonParam.url.replace('/me/detail/detail', '/me/detail/detailIOS')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user