![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mpvue
FarmanKKK
有时候忙会断更,也有可能是去github了,附上github地址:https://github.com/Masterkkk
展开
-
mpvue项目的自定义数字键盘
这段时间一直在做小程序项目(基于mpvue)抽空做个笔记自定义的数字键盘鉴于使用系统自带输入键盘会造成挤压页面等问题,同时也不能满足设计需求,因此自己去写了个键盘组件。效果如下:页面代码<template> <div class="key-board" v-show="showKeyBoard"> <div class="title" @ta...原创 2019-06-17 14:31:02 · 637 阅读 · 0 评论 -
小程序tab切换列表页(基于mpvue)
tab切换列表效果:实现想法:头部tab使用div,fixed固定头部;下面内容使用的是swiper和swiper-item实现左右切换功能;接着在swiper-item中使用scroll-view实现列表的滚动(设置y轴滚动),滚动加载借助scroll-view的scrolltolower方法;tab切换逻辑:设置一个参数接收当前tab的标识(tabIndex);这个t...原创 2019-06-17 15:36:59 · 2913 阅读 · 1 评论