收藏
回答

map里使用customCallout里,加载很多图片,导到苹果手会自动闪退,其它ios版本也是这样

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug iOS ios17 iphone 13 pro 8.0.43


原码如下:

<view class="map-box">

      <view class="map-con">

            <map class="maplongitude="{{map.lng}}" latitude="{{map.lat}}" show-location="truemarkers="{{markers}}" bindcallouttap="bindcallouttapbindmarkertap="bindmarkertapscale="13">

                  <cover-view slot="callout">

                        <cover-view class="customCalloutsmarker-id="{{fo.id}}" wx:for="{{list_markers}}" wx:for-item="fowx:key="f">

                              <cover-view class="customCallout">

                                    <cover-view class="c-msstyle="text-align:center;">

                                          <cover-image class="c-closesrc="https://www.aaaa.com/Public/Theme/Wxapp/images/Personal/c-close.png"></cover-image>

                                    </cover-view>

                                    <cover-view class="c-ms">

                                          <cover-image class="c-img1src="https://www.aaaa.com/Public/Theme/Wxapp/images/Public/icon-g.pngwx:if="{{fo.trade_1!==null}}"></cover-image>

                                          <cover-image class="c-img1src="https://www.aaaa.com/Public/Theme/Wxapp/images/Public/icon-x.pngwx:if="{{fo.trade_0!==null}}"></cover-image>

                                          <cover-view>{{fo.title}}</cover-view>

                                    </cover-view>

                                    <cover-view style="height:12rpx;"></cover-view>

                                    <cover-view class="c-mswx:if="{{fo.legal_person!==null && fo.legal_person!==''}}">

                                          <cover-image class="c-img2src="{{www+fo.headimg_logo}}" wx:if="{{fo.headimg_logo!==null && fo.headimg_logo!==''}}"></cover-image>

                                          <cover-view style="font-size: 21rpx;">{{fo.legal_person}}</cover-view>

                                    </cover-view>

                              </cover-view>

                        </cover-view>

                  </cover-view>

            </map>

      </view>

</view>

<privacyPopup></privacyPopup>


回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2023-12-06

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2023-12-06
    有用
    回复
登录 后发表内容