小程序
小游戏
企业微信
微信支付
扫描小程序码分享
使用map地图很多个自定义气泡的时候会卡住
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<cover-view class="content youhuijuan" v-if='item.type==6' :class="[item.type==6?'active': '']">
<cover-view class="bgwrap">
<cover-image src="../static/image/youhuijuan.png" class="leftImage"></cover-image>
<cover-view class="rightTitle">
<cover-view class="topText">
满50-10
</cover-view>
<cover-view class="bottomText">
{{item.businessName.length>5 ? item.businessName.substring(0,4)+'...':item.businessName}}
<cover-view class="lingquTitle yilingqu">
已领取
</block>
</map>
正常 加载几百个后就 很卡了
<cover-view slot="callout">
<block v-for='(item,key) in covers' :key='key'>
<cover-view class="customCallout" :marker-id="item.id">
<cover-view class="content putong" :class="[item.type==1?'active': '']">
{{item.businessName}}
<cover-view class="content jingdian" v-if='item.type==2' :class="[item.type==2?'active': '']">
<cover-image :src="item.pictureUrls[0].pictureUrl+'?x-image-process=image/resize,m_lfit,h_40,w_40'" class="leftImage"></cover-image>
<cover-view class="rightTitle" :class="[item.businessName.length>5?'zhehang': '']">
<cover-view class="topwrap">
<cover-image src="../static/image/jingdian.png" class="bgImage"></cover-image>
<cover-view class="topTitle">
景点TOP{{item.type}}
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
<cover-view class="content youhuijuan" v-if='item.type==6' :class="[item.type==6?'active': '']">
<cover-view class="bgwrap">
<cover-image src="../static/image/youhuijuan.png" class="leftImage"></cover-image>
<cover-view class="rightTitle">
<cover-view class="topText">
满50-10
</cover-view>
<cover-view class="bottomText">
{{item.businessName.length>5 ? item.businessName.substring(0,4)+'...':item.businessName}}
</cover-view>
</cover-view>
<cover-view class="lingquTitle yilingqu">
已领取
</cover-view>
</cover-view>
</cover-view>
</cover-view>
</block>
</cover-view>
</map>
正常 加载几百个后就 很卡了
<cover-view slot="callout">
<block v-for='(item,key) in covers' :key='key'>
<cover-view class="customCallout" :marker-id="item.id">
<cover-view class="content putong" :class="[item.type==1?'active': '']">
{{item.businessName}}
</cover-view>
<cover-view class="content jingdian" v-if='item.type==2' :class="[item.type==2?'active': '']">
<cover-view class="bgwrap">
<cover-image :src="item.pictureUrls[0].pictureUrl+'?x-image-process=image/resize,m_lfit,h_40,w_40'" class="leftImage"></cover-image>
<cover-view class="rightTitle" :class="[item.businessName.length>5?'zhehang': '']">
{{item.businessName}}
</cover-view>
</cover-view>
<cover-view class="topwrap">
<cover-image src="../static/image/jingdian.png" class="bgImage"></cover-image>
<cover-view class="topTitle">
景点TOP{{item.type}}
</cover-view>
</cover-view>
</cover-view>