c***@outlook.com
c***@outlook.com
  • 发布:2024-04-26 17:13
  • 更新:2024-04-26 17:33
  • 阅读:47

【报Bug】app端webveiw h5跳转微信; 不能正常返回 页面卡住

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 14.0

HBuilderX类型: 正式

HBuilderX版本号: 4.13

手机系统: Android

手机系统版本号: Android 14

手机厂商: 小米

手机机型: 小米k50

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

代码请查看附件
<template>
<view class="content">
<web-view src="https://mshop.zjcw.cn/etc.html?phoneNum=13260376958"></web-view>
</view>
</template>

<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {

    },  
    methods: {  

    }  
}  

</script>

<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.logo {  
    height: 200rpx;  
    width: 200rpx;  
    margin-top: 200rpx;  
    margin-left: auto;  
    margin-right: auto;  
    margin-bottom: 50rpx;  
}  

.text-area {  
    display: flex;  
    justify-content: center;  
}  

.title {  
    font-size: 36rpx;  
    color: #8f8f94;  
}  

</style>

操作步骤:

运行到手机, 点击下面的客服选择客服2跳转微信;然后点击左上回退;或者左滑后退

预期结果:

点击返回app 页面可以浏览 操作

实际结果:

页面卡住 没有反应;
页面变成了微信的页面 没有返回app 页面 (左滑后退复现)

bug描述:

app端webveiw h5跳转微信; 不能正常返回 页面卡住

2024-04-26 17:13 负责人:无 分享
已邀请:
古佛

古佛

看我文档把https://blog.csdn.net/baisheng77/article/details/138224885?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22138224885%22%2C%22source%22%3A%22baisheng77%22%7D

困难总比办法多

困难总比办法多

本来就不能返回只能操作你h5的页面前进后退,如果需要在h5页面使用uni的跳转能力 得使用他webview的sdk去实现
sdk连接如下https://gitee.com/dcloud/uni-app/raw/dev/dist/uni.webview.1.5.4.js

  • c***@outlook.com (作者)

    相同页面在其它app 里面是好的

    2024-04-26 18:01

要回复问题请先登录注册