摘要: beforeRouteEnter(to, from, next) { // 添加背景色 document.querySelector('body').setAttribute('style', 'background-color:#f9f9f9') next() }, beforeRouteLeave(to, from, next) { // 去除背景色 ... 阅读全文
posted @ 2019-01-23 14:17 这个男人 阅读(6548) 评论(1) 推荐(0) 编辑
摘要: 微信公众号配置网页授权域名:填写网址域名 微信开发者平台配置url: 访问url:http://www.baidu.com/pay/ment 支付授权目录:http://www.baidu.com/pay/ 访问url:http://www.baidu.com/pay 支付授权目录:http://w 阅读全文
posted @ 2019-01-23 14:13 这个男人 阅读(2225) 评论(0) 推荐(0) 编辑
摘要: parseInt(timeRanges.end(timeRanges.length - 1) * 100 / audio.duration * 100) / 100) 阅读全文
posted @ 2019-01-23 12:25 这个男人 阅读(4570) 评论(0) 推荐(0) 编辑
摘要: focusIn() { // ios键盘弹出底部留白问题 const body = document.querySelector('.phone-bind') // input所在的容器 body.scrollTop = body.scrollHeight },blurIn() { // ios键盘弹出底部留白问题 window.scroll(0, 0)}, 阅读全文
posted @ 2019-01-23 12:20 这个男人 阅读(2224) 评论(0) 推荐(0) 编辑
摘要: postcss.config.js const autoprefixer = require('autoprefixer') const pxtorem = require('postcss-pxtorem') module.exports = ({ file }) => { let rootValue // vant 37.5 https://github.com/youzan/... 阅读全文
posted @ 2019-01-23 12:15 这个男人 阅读(6511) 评论(0) 推荐(0) 编辑
摘要: // 微信验证 export function requireConfig() { let url = window.location.href systemApi.wxoption({ url: url }).then(res => { if (res.code === 200) { wx.config({ debug: false, ... 阅读全文
posted @ 2019-01-23 12:11 这个男人 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 借助上传Upload 上传组件的 http-request 覆盖默认的上传行为,可以自定义上传的实现 阅读全文
posted @ 2019-01-23 11:56 这个男人 阅读(1943) 评论(0) 推荐(0) 编辑