摘要: <wxs module="formatTime"> var formatTimeCoupon = function(times){ var date = getDate((times*1000)); var year = date.getFullYear() var month = date.get 阅读全文
posted @ 2020-08-10 10:27 一只螺 阅读(2021) 评论(0) 推荐(0) 编辑
摘要: const elequery = wx.createSelectorQuery().in(this);elequery.selectAll('.goods-info').boundingClientRect((res)=>{ console.log(res)}).exec(); goods-info 阅读全文
posted @ 2020-07-30 15:27 一只螺 阅读(728) 评论(0) 推荐(0) 编辑
摘要: div::after{ content: "";display: block;position: absolute;top: 50%;right: 50rpx;margin-top: -8rpx;width: 14rpx;height: 14rpx;border-width: 2rpx 2rpx 0 阅读全文
posted @ 2020-07-16 18:15 一只螺 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 父组件 var info = { message: "Hello Son!" }; //现有模板的数值 let templatelistvalue //发送跨域信息 function sendInfo(){ var sonIframe= document.getElementById("ifra2" 阅读全文
posted @ 2020-07-08 15:25 一只螺 阅读(1444) 评论(1) 推荐(1) 编辑
摘要: 1、方法一 /** * 设置粘贴板数据 * @param {String} text 要设置的字符串 * 如果未设置参数,则清空数据 */ function setClipboardText(text){ try{ var os = plus.os.name; text = text||''; if 阅读全文
posted @ 2020-07-06 14:06 一只螺 阅读(10821) 评论(0) 推荐(0) 编辑
摘要: 使用 页面生命周期 onReachBottom ,滚动条滚动到底部的时候就会触发 , 还可以设置 滚动条跟 底部 之间 触发函数的距离 详情:https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%9 阅读全文
posted @ 2020-07-01 17:59 一只螺 阅读(2951) 评论(0) 推荐(0) 编辑
摘要: 获取滚动轴距离页面顶部距离:onPageScroll生命周期函数 设置滚动轴距离页面顶部的距离uni.pageScrollTo()方法 uni.pageScrollTo({ scrollTop: 0, //距离页面顶部的距离 duration: 300 }); 阅读全文
posted @ 2020-06-22 14:13 一只螺 阅读(6026) 评论(0) 推荐(1) 编辑
摘要: uni.downloadFile({ url: 'https://ehcumh.oss-cn-hongkong.aliyuncs.com/met/logo2.png', success: (res) => { console.log('练市图片路径') console.log(res.tempFil 阅读全文
posted @ 2020-05-28 16:03 一只螺 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: <view class="viewRadius"><view></view></view> .viewRadius{ border: 10px solid #FFFFFF; border-left: 10px solid transparent; border-top: 10px solid tra 阅读全文
posted @ 2020-04-23 17:15 一只螺 阅读(726) 评论(0) 推荐(0) 编辑
摘要: 尝试将样式设置到 App.vue 中 阅读全文
posted @ 2020-04-23 17:10 一只螺 阅读(5197) 评论(0) 推荐(0) 编辑