不要把这些方法放在setTimeout里调用,比如包裹防抖函数等
wx.getUserProfile不能和wx.login一起使用?mac 模拟器1.05.2102010 基础库2.16.0 调用wx.login获取code后,再调用wx.getUserProfile,可能会失败,触发fail函数,error msg: ''getUserProfile:fail can only be invoked by user TAP gesture"。 如果不能同时使用,那如何校验用户信息的准确性或者解密encryptedData呢?
2021-08-12你好,这个问题解决了么?
scroll-view 使用自定义下拉刷新, 出现抖动闪烁?<scroll-view refresher-triggered="{{loading}}" refresher-threshold="100" refresher-enabled="{{true}}" style="height: 100%;" scroll-y bindscrolltolower="onReachBottom" bindrefresherrefresh="PullDownRefresh"> <div v-if="schemeList.length === 0" class="scheme_null"> <div class="null"> <img lazy-load :src="nullIcon" alt="" class="nullIcon"/> <div>这里暂时还没有内容</div> <div>去其他地方看看吧</div> </div> </div> <div class="scheme"> <div class="scheme_left" > <div class="demo" v-for="(item,index) in schemeList" :key="index" v-if="index%2 === 0" @click="particulars(item)"> <img lazy-load :src="item.cover_img" mode="widthFix" alt="" class="cover_bulk" v-if="item.plan_type === 1"/> <img lazy-load :src="item.cover_img" mode="widthFix" alt="" class="cover_img" v-if="item.plan_type === 2"/> <img lazy-load :src="videoIcon" alt="" v-if="item.top_img_video_type === 2" class="video_icon"/> <div class="stylist"> <div class="left"> <img lazy-load :src.sync="item.designer.icon" alt="" class="stylist_icon"/> <div class="overFlow">{{item.designer.name}}</div> </div> <div class="right"> <img lazy-load :src.sync="item.is_project_like === 0 ? not_collect : collect" alt="" class="collect_icon" :class="{'collect':item.is_project_like === 1}"/> <div>{{item.project_like_number}}</div> </div> </div> <div class="project_name">{{item.project_name}}</div> <div class="address" v-if="item.plan_type === 1"> <div>{{item.room}}</div>室·<div>{{item.proportion}}</div>m²·<div class="overflow">{{item.province}}{{item.city}}</div> </div> </div> </div> <div class="scheme_right" > <div class="demo" v-for="(item,index) in schemeList" :key="index" v-if="index%2 === 1" @click="particulars(item)"> <img lazy-load :src="item.cover_img" mode="widthFix" alt="" class="cover_bulk" v-if="item.plan_type === 1"/> <img lazy-load :src="item.cover_img" mode="widthFix" alt="" class="cover_img" v-if="item.plan_type === 2"/> <img lazy-load :src="videoIcon" alt="" v-if="item.top_img_video_type === 2" class="video_icon"/> <div class="stylist"> <div class="left"> <img lazy-load :src.sync="item.designer.icon" alt="" class="stylist_icon"/> <div class="overFlow">{{item.designer.name}}</div> </div> <div class="right"> <img lazy-load :src.sync="item.is_project_like === 0 ? not_collect : collect" alt="" class="collect_icon" :class="{'collect':item.is_project_like === 1}"/> <div>{{item.project_like_number}}</div> </div> </div> <div class="project_name">{{item.project_name}}</div> <div class="address" v-if="item.plan_type === 1"> <div>{{item.room}}</div>室·<div>{{item.proportion}}</div>m²·<div class="overflow">{{item.province}}{{item.city}}</div> </div> </div> </div> </div> </scroll-view>
2021-08-09