摘要: 效果 第一步:在app.json里面获取设备信息 wx.getSystemInfo({ success: res => { //设备信息 console.log("设备信息",res) let modelmes = res.model; if (modelmes.search('iPhone X') 阅读全文
posted @ 2020-03-20 19:14 怂的一批的蜗牛 阅读(2237) 评论(0) 推荐(0) 编辑
摘要: <view class="df yuding" style="padding:24rpx 0;"> <view class="fs26">预计到店</view> <picker mode="multiSelector" bindchange="bindMultiPickerChange" bindc 阅读全文
posted @ 2020-03-20 18:58 怂的一批的蜗牛 阅读(9295) 评论(0) 推荐(1) 编辑
摘要: 当你给button已经清除过默认样式了,还是有问题 可能是微信小程序的基础样式已经升级到v2版本了,在app.json中可以查阅到: "style": "v2", //基础样式升级 "sitemapLocation": "sitemap.json" 把"style": "v2", 删除就可以了! 阅读全文
posted @ 2020-03-20 18:50 怂的一批的蜗牛 阅读(2144) 评论(0) 推荐(0) 编辑
摘要: change事件返回detail中包含一个source字段,表示导致变更的原因,可能值如下: 1.autoplay 自动播放导致swiper变化; 2.touch 用户划动引起swiper变化; 3. 其他原因将用空字符串表示 <view class="banner mgb24"> <swiper 阅读全文
posted @ 2020-03-14 10:51 怂的一批的蜗牛 阅读(1767) 评论(0) 推荐(0) 编辑
摘要: page({ data:{ endTime:'2020-3-11 17:00:30' }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var that = this that.countDown() }, // 倒计时 countDow 阅读全文
posted @ 2020-03-11 11:31 怂的一批的蜗牛 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: 这个入住的日历困扰了我很久,网上搜出来的日历又不是想要的,最后找到这个,动手整理了一下。有问题请指出来。好了直接看代码吧 <view class="content"> <!-- 头部 --> <view class="header"> <view class="in-and-out"> <block 阅读全文
posted @ 2020-03-11 10:31 怂的一批的蜗牛 阅读(3585) 评论(0) 推荐(1) 编辑
摘要: 看着原博文https://www.cnblogs.com/sese/p/9761713.html简单的练习。 1.在app.json中 window配置navigationStyle 2.计算相关值 1. 整个导航栏的高度; 2. 胶囊按钮与顶部的距离; 3. 胶囊按钮与右侧的距离。 小程序可以通过 阅读全文
posted @ 2019-09-29 18:37 怂的一批的蜗牛 阅读(4503) 评论(0) 推荐(2) 编辑