wxml代码: <view class="navigator-bar-wrapper"> <view class="navigator-bar-box" style="padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px;"> <view class="back-box" bindtap="onBack"> <image src="https://public-ol.log56.com/base_obs/upload_toolkit/20220702/9650fd8e-aaed-4373-890c-52d98e6a524f.png" class="back-icon"></image> </view> <view class="navigator-title">{{pageTitle}}</view> </view> <view class="seach-box" catchtap="goSeachPage"> <image src="https://public-ol.log56.com/base_obs/upload_toolkit/20220725/88cbed19-39da-4b49-a97f-f23d5f6bdd3a.png" mode="widthFix"></image> <input type="text" placeholder="请输入产品名称" disabled /> </view> </view> js代码: goSeachPage() { wx.navigateTo({ url: `/standardShopPackages/pages/searchProduct/searchProduct?typeId=${this.acceptData.typeId}` }) wx.setStorageSync("shoppingCartData", this.data.shoppingCartData) }
安卓手机navigateTo跳转页面,打开了两个页面华为mate30 微信系统8.0.25下 A页面调用wx.navigateTo打开B页面,B页面同时出现两个。不是必现,复现概率大概1/40。代码如下:
2022-07-29机型:iPhone6 系统:9.3.3 微信版本:7.0.4 有问题的是H5页面,作为公众号在微信中打开。调用微信的wx.previewImage()方法,实现查看放大图片功能 [代码]<[代码][代码]template[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]div[代码] [代码]class[代码][代码]=[代码][代码]"shop-photo"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]ul[代码] [代码]class[代码][代码]=[代码][代码]"photo-box"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]li[代码] [代码]v-for[代码][代码]=[代码][代码]"(item, index) in imgArr"[代码][代码] [代码][代码]:key[代码][代码]=[代码][代码]"index"[代码] [代码]ref[代码][代码]=[代码][代码]"imgW"[代码] [代码]:style[代码][代码]=[代码][代码]"{height:img_h}"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]div[代码] [代码]class[代码][代码]=[代码][代码]"img-bg"[代码] [代码]:style[代码][代码]=[代码][代码]"{background: 'url(' + item.small_img_url + ') no-repeat top center', backgroundSize:'cover'}"[代码] [代码]></[代码][代码]div[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]img[代码] [代码]v-lazy[代码] [代码]=[代码][代码]"item.small_img_url"[代码] [代码]:key[代码][代码]=[代码][代码]"item.small_img_url"[代码] [代码]@[代码][代码]click[代码][代码]=[代码][代码]"lookImg(index,item.img_url)"[代码][代码]/>[代码][代码] [代码][代码]</[代码][代码]li[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]ul[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]div[代码][代码]>[代码][代码]</[代码][代码]template[代码][代码]>[代码][代码]<[代码][代码]script[代码][代码]>[代码][代码] [代码][代码]export default {[代码][代码] [代码][代码]name: 'shopPhoto',[代码][代码] [代码][代码]data () {[代码][代码] [代码][代码]return {[代码][代码] [代码][代码]img_h:"",[代码][代码] [代码][代码]imgArr:JSON.parse(sessionStorage.getItem('img_list')),[代码][代码] [代码][代码]imgApp:[],[代码][代码] [代码][代码]is_error:false,[代码][代码] [代码][代码]wait_text:"正在加载……",[代码][代码] [代码][代码]headData:{[代码][代码] [代码][代码]visible:"1",[代码][代码] [代码][代码]leftVisible:"1",[代码][代码] [代码][代码]headMsg:'商家相册'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]methods:{[代码][代码] [代码][代码]lookImg(index,curr_url){[代码][代码] [代码][代码]this.$shareJs.getWxAuthIfs();[代码][代码] [代码][代码]this.$shareJs.showImg(this.imgApp,curr_url);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]// 整理图片[代码][代码] [代码][代码]getImgApp(){[代码][代码] [代码][代码]for(var i = 0; i<[代码][代码]this.imgArr.length[代码][代码]; i++){[代码][代码] [代码][代码]this.imgApp.push(this.imgArr[i].img_url)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]mounted(){[代码][代码] [代码][代码]this.getImgApp();[代码][代码] [代码][代码]} [代码][代码] [代码][代码]}[代码][代码]</script> [代码] [代码]showImg(imgUrl,curr_url) {[代码] [代码] wx.previewImage({[代码] [代码] current:curr_url, // 当前显示图片的http链接[代码] [代码] urls: imgUrl // 需要预览的图片http链接列表[代码] [代码] });[代码][代码]},[代码]
ios部分手机调用微信wx.previewImage方法后,返回页面标题消失首页附近门店点击进入店铺详情页,再点击详情页头部左边查看门店图片,点击图片放大后,再返回,页面标题消失。ios9.3.3,微信7.0.4必现 [图片] [图片]
2019-07-30