ios部分手机调用微信wx.previewImage方法后,返回页面标题消失
首页附近门店点击进入店铺详情页,再点击详情页头部左边查看门店图片,点击图片放大后,再返回,页面标题消失。ios9.3.3,微信7.0.4必现
首页附近门店点击进入店铺详情页,再点击详情页头部左边查看门店图片,点击图片放大后,再返回,页面标题消失。ios9.3.3,微信7.0.4必现
机型: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链接列表 });}, |
你好,麻烦提供出现问题的具体机型,能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)