根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引
project.config.json 的 setting 中配置字段
"checkSiteMap": false,
https://www.cnblogs.com/pansidong/p/11328358.html
Now you can provide attr "wx:key" for a "wx:for" to improve performance
在wx:for后面添加wx:key="key" 可消除警告。
https://www.cnblogs.com/shibaolong/p/9829564.html
微信小程序动态修改页面标题setNavigationBarTitle
wx.setNavigationBarTitle({
title: '趣味表情'
})
https://blog.csdn.net/a419419/article/details/78872947
小程序 -- 获取当前的IP地址的方法
var that = this;
wx.request({
url: 'http://ip-api.com/json',
success: function (e) {
console.log("返回数据===>",e.data);
that.setData({
motto: e.data,
})
}
});
https://blog.csdn.net/qq_34802511/article/details/90439808
环境搭建
https://blog.csdn.net/cungudafa/article/details/86608130
swiper 超出上下滚动
把每一个swiper-item里边包一个scroll-view
scroll-view {
height: 100%;
overflow-y: scroll;
}
https://blog.csdn.net/qq_31257299/article/details/79423367
禁止选项卡左右滑动
<view class="swiper-tab">
<view class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab">全部</view>
<view class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">提现中</view>
<view class="swiper-tab-item {{currentTab==2?'active':''}}" data-current="2" bindtap="clickTab">已提现</view>
<view class="swiper-tab-item {{currentTab==3?'active':''}}" data-current="3" bindtap="clickTab">已提现</view>
</view>
<!-- 内容转换区 开始 -->
<swiper class='swiper-box' current="{{currentTab}}" duration="300" bindchange="swiperTab">
<swiper-item catchtouchmove="stopTouchMove"><view>全部</view></swiper-item>
<swiper-item catchtouchmove="stopTouchMove"><view>提现中</view></swiper-item>
<swiper-item catchtouchmove="stopTouchMove"><view>已提现</view></swiper-item>
<swiper-item catchtouchmove="stopTouchMove"><view>已提现</view></swiper-item>
</swiper>
//禁止选项卡的左右滑动
stopTouchMove: function () {
return false;
},
网友评论