uni-app
不吖 不吖
这个作者很懒,什么都没留下…
展开
-
uniapp自定义组件无法覆盖头部导航栏以及底部tabBar问题
<template> <view class="mask" v-show="showPopup" @click="showMask"> <view class="popup_box" @click.stop="noClose"> <view class="init_box"> <view class="init"> <view class="title">实名认证</view> &l.原创 2022-03-08 15:30:14 · 4123 阅读 · 1 评论 -
uniapp组件引入不显示问题
import formIdCard from './idcard/idcard.vue';import formCamera from './Camera/Camera.vue';import formInput from './formInput/formInput.vue';import formSelect from './formSelect/formSelect.vue';import formDate from './formDate/formDate.vue';import for.原创 2022-02-22 10:25:29 · 7762 阅读 · 0 评论 -
uni-app时间戳
const happenTime = (num) => { // 时间戳转换成 “yyyy-MM-dd hh:mm:ss”格式 let date = new Date(num); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 //年 let year = date.getFullYear(); // 月 let month = date.getMonth() + 1; month = month < 10 ? ('0' + month) : month; /.原创 2022-02-15 11:10:07 · 2482 阅读 · 0 评论 -
uni-app节流
/** *节流:接收time:number *@return boolean */let num = 0;let timing = nullconst throttle = (time) => { return new Promise((resolve) => { clearInterval(timing) let Time = new Date(); let timestemp = Time.getTime() + time; num++ timing =.原创 2022-02-15 11:08:36 · 696 阅读 · 0 评论 -
uni-app防抖封装
/***防抖:接收time:number*@return boolean*/let arr = [];const antiShake = (time) => { return new Promise((resolve) => { const timestamp = +new Date(); arr.push(timestamp) arr = arr.filter((v) => { return +v + time > timestamp });.原创 2022-02-15 10:56:12 · 469 阅读 · 0 评论 -
uni设置动态导航
uni.setNavigationBarTitle({ title: '新导航栏'});uni.setNavigationBarColor({ frontColor: '#000000', //前景颜色值 backgroundColor: '#F0AD4E', //背景颜色值,有效值为十六进制颜色 animation: { //动画效果 duration: 400, timingFunc: 'easeIn' }})...原创 2022-02-15 10:51:42 · 306 阅读 · 0 评论