mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 19:06:46 +08:00
fix: 修复苹果返回导航异常
This commit is contained in:
@@ -46,6 +46,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
toBack(){
|
toBack(){
|
||||||
|
// 如果定义的有 go 事件,优先处理这个
|
||||||
|
if( this.$listeners['go'] ) {
|
||||||
|
this.$emit('go')
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.backUrl!=''){
|
if(this.backUrl!=''){
|
||||||
if(this.backUrl == '/pages/my/index'){
|
if(this.backUrl == '/pages/my/index'){
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
@@ -67,7 +72,6 @@
|
|||||||
}else{
|
}else{
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--新的课程学习页面,没有中间的详细页面了,课程点过来就是这个,用户未报名就直接报名-->
|
<!--新的课程学习页面,没有中间的详细页面了,课程点过来就是这个,用户未报名就直接报名-->
|
||||||
<view>
|
<view>
|
||||||
<page-title :showBack="true" :sticky="true">视频详情</page-title>
|
<page-title :showBack="true" :sticky="true" @go="goBack">视频详情</page-title>
|
||||||
<watermark></watermark>
|
<watermark></watermark>
|
||||||
<u-toast ref="messager"></u-toast>
|
<u-toast ref="messager"></u-toast>
|
||||||
<!-- <page-title :showBack="true"></page-title> -->
|
<!-- <page-title :showBack="true"></page-title> -->
|
||||||
@@ -1823,7 +1823,10 @@
|
|||||||
},
|
},
|
||||||
showMore(){
|
showMore(){
|
||||||
this.articleMore=false;
|
this.articleMore=false;
|
||||||
}
|
},
|
||||||
|
goBack(){
|
||||||
|
history.go(-1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user