摘要: // 金额格式化组件 /** * 金额格式化组件 * 接入方法 <money-input v-model=""></money-input> */ Vue.component("money-input", { template: '<input ref="money" :type="type" @i 阅读全文
posted @ 2020-11-25 15:49 云行月翔 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 实现scroll-view自动滚动到最底部 原理: 1.使用scroll-view的scroll-into-view (值应为某子元素id) 2. scroll-view最后加入一个text元素 3. 需要跳转到最底部时,将text的id值改变为一个新值,然后在settimeout中将scroll- 阅读全文
posted @ 2020-07-29 16:52 云行月翔 阅读(5123) 评论(0) 推荐(0) 编辑
摘要: 腾讯云点播开发引入mui.js 导致播放控件点击事件多次触发 <video id="player-container-id" preload="auto" width="640" height="360" x5-video-player-type="h5" x5-video-player-fulls 阅读全文
posted @ 2019-08-05 15:08 云行月翔 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1. 先HmacSha1后Base64 var HmacSha1 = require('crypto-js/hmac-sha1') ;var Base64 = require('crypto-js/enc-base64'); var Authorization = Base64.stringify( 阅读全文
posted @ 2019-04-28 10:26 云行月翔 阅读(4080) 评论(0) 推荐(1) 编辑
摘要: vue filters中 this指向的不是vue实例,但想要获取vue实例中data中的数据,可以采用下面方法。在 beforeCreate中将vue实例赋值给全局变量app0,然后filters中即可通过app0获取data中数据 <!DOCTYPE html><html lang="en">< 阅读全文
posted @ 2019-03-27 18:21 云行月翔 阅读(10366) 评论(0) 推荐(0) 编辑
摘要: 移动端web开发时,input等输入框在安卓和iso中都有问题,分别有:1.iso不能点击其他区域使得输入框失去焦点2.iso输入框失去焦点后,键盘产生的空白部分不消失3.安卓端输入框得到焦点后,输入框不会自动跳转到可视范围以下是我写的一个案例,对这些问题进行解决。使用vue编写<!DOCTYPE 阅读全文
posted @ 2019-02-13 16:38 云行月翔 阅读(645) 评论(1) 推荐(0) 编辑
摘要: <script src="https://d3js.org/d3.v4.min.js"></script><script src="https://cdn.bootcss.com/d3-tip/0.9.1/d3-tip.js"></script> const svg = d3.select('bod 阅读全文
posted @ 2019-01-24 15:31 云行月翔 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: //自行实现以下curry函数和compose //curry function curry(fn) { return function aa (...arg) { if (arg.length >= fn.length) { return fn(...arg); } else { return a 阅读全文
posted @ 2019-01-20 10:45 云行月翔 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: 项目中使用confirm mui.confirm('您还未抽奖,现在去抽奖吗?', function (res) { }) 安卓手机没有问题,但苹果手机中点击“确认”跳转页面后,点击返回,返回的页面无法滚动,也无法点击任何元素。(点击确认按钮曾经出现的位置,发现页面还会跳转,说明确认按钮还在页面中) 阅读全文
posted @ 2019-01-09 16:04 云行月翔 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 项目是vue写的(移动端) <div class="mui-scroll"> <a :href="bannerinfo.activity_url" class="icon play"> 链接点击没反应(点元素的最左边才会跳转) </a> <a :href="'tel:'+item.ac_mobile 阅读全文
posted @ 2019-01-09 14:29 云行月翔 阅读(649) 评论(0) 推荐(0) 编辑