自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 数组扁平化实现

数组扁平化

2022-09-23 14:09:20 133 1

原创 uniapp支付宝登录获取用户信息

<button open-type="getAuthorize" @GetAuthorize="onGetAuthorize"@Error="onAuthError"scope='userInfo'> 会员基础信息授权 </button>本来用的上面的 试了很多次 不行 注意大小写 是下面的写法<button open-type="getAuthorize" @getAuthorize="onGetAuthorize" @e

2021-04-19 10:27:52 1743 2

原创 2021-02-01

import {md5} from './md5.js'// wx.setStorageSync('istoken', true);let baseUrl = 'https://'const request=({ url = '', data = '', type = 'json', callback = '', ...other} = {})=>{ // wx.showLoading({ // title: '请求中...', // }) // console.log(u

2021-02-01 13:52:42 114

原创 echarts日历热力图 显示本月数据

echarts日历热力图 显示本月数据 option: { grid: { left:15, right: 15, bottom:10, top:20, containLabel: true }, xAxis: { type: 'category', boundaryGap: false, data: ['周一', '周二', '周三', '周四', '周五', '周六', '周.

2020-11-16 09:57:45 1581 1

原创 echarts环形图 百分比图

var e=80option={ grid: { top: 0, bottom: 0, left: 0, right: 0 }, title: [{ text: e +'%', x: '50%', y: '37%', textAlign: 'center', textStyle: { fontSize.

2020-11-16 09:53:10 3660

原创 echarts地区热力图

```javascript option: { grid: { left: 0, top: 0, bottom: 0, right: 0, containLabel: true }, visualMap: { min: 0, max: 1, left: 'right', top: 'bottom', text: ['高', '低'], // 文本,..

2020-11-16 09:48:10 975

原创 百度地图logo去掉

/deep/.allmap-container .amap-logo { right: 0 !important; left: auto !important; display: none !important;}

2020-11-16 09:41:21 124

原创 echarts图例修改

设计给的设计图是这样的 图例前面是个圆环 但是echarts所给的修改icon的图形当中并没有圆环需要圆环的path路径 那么怎么拿到圆环的path路径呢抖机灵1.打开阿里字体图标库2.找到圆环图标3.下载svg图标 用记事本打开4.得到如下 复制path那部分 修改为icon:'path://M512.51579095 181.32500348C330.11905658 181.32500348 182.29194989 329.15081744 182.29194989 511.54.

2020-10-15 15:15:50 640

原创 uniapp引入百度地图示例

效果设计图 3d 自定义样式 标记点粘贴即可用1.新建一个map.jsexport function mymap(ak) { return new Promise(function(resolve, reject) { window.init = function() { resolve(mymap) } var script = document.createElement('script') script.type = 'text/javasc

2020-10-14 15:39:51 15482 16

原创 uniapp使用外部字体

uniapp使用外部字体1.准备字体ttf文件2.样式文件引入@font-face { font-family: 'youshe'; src: url('~@/static/youshe.ttf'); }3.使用.des { font-family: 'youshe'; font-size: 7.69rpx; font-weight: 400; }

2020-10-14 15:22:11 1584

原创 uniapp到达底部加载更多

<template> <app-layout :haveBackground="false"> <app-switch-tab v-if="loadtab" @tabEvent="clickTab" :isborderBottom="false" :bgColor="bgColor" :currentIndex="currentIndex" :list="arr " ></a

2020-08-03 16:42:18 1136

原创 小程序打包 分包超过限制

小程序使用moment打包后一直上传不了 因为它不够轻量级换成miment就好了import miment from 'miment' Vue.filter('datefmt',function(input,fmtstring){ return miment(input).format(fmtstring) })

2020-08-03 16:39:05 277

原创 前端字体圆滑一点

font-family: Arial, “Microsoft YaHei”;

2020-05-09 10:03:45 751

原创 height:calc()写法是什么意思

min-height:calc( 100vh - 64px )calc计算 本身的100% 减去64px

2020-05-08 16:46:48 2723

原创 上下固定高 中间滚动

.header{background-color: #f55d54;width: 100%;height: 50px;display: -webkit-box;-webkit-box-pack: center;-webkit-box-align: center;position: fixed;left: 0;top: 0;z-index: 99;}.footer{widt...

2020-05-07 13:57:05 118

原创 vue页面不渲染 强制刷新办法

that.$forceUpdate()vue强制刷新

2020-04-30 10:31:44 455

原创 小程序拨打电话

wx.makePhoneCall({phoneNumber: this.data.phone})

2020-04-24 10:15:25 90

原创 下划线驼峰互换

// 下划线转换驼峰function toHump(name) {return name.replace(/_(\w)/g, function(all, letter){return letter.toUpperCase();});}// 驼峰转换下划线function toLine(name) {return name.replace(/([A-Z])/g,"_$1").toLo...

2020-03-23 10:05:25 131

原创 HTTP协议头字段详解大全

HTTP协议头字段详解大全1、Accept表示客户端期望服务器返回的媒体格式。客户端期望的资源类型服务器可能没有,所以客户端会期望多种类型,并且设置优先级,服务器根据优先级寻找相应的资源返回给客户端。1 # 注意:先逗号分割类型,再分号分割属性2 Accept: audio/*; q=0.2, audio/basic表示audio/basic类型的资源优先,如果没有,就随便其它什么格式的...

2020-03-20 16:42:09 1258

原创 居中方式

方案一:div绝对定位水平垂直居中【margin:auto实现绝对定位元素的居中】(需要有width和height)兼容性:,IE7及之前版本不支持div{width: 200px;height: 200px;background: green;position:absolute;left:0;top: 0;bottom: 0;right: 0;margin: auto;...

2020-03-20 16:25:49 61

原创 vant中vant-cell遍历

放在vant-cell直接遍历 vant-group或者div都会套一层动西导致边框有问题边框是用伪类写的

2020-03-11 09:19:30 1641

原创 base64转word文档并且下载

shows(item){              console.log(item)            if (item...

2020-03-11 09:14:41 2496 1

原创 vant中vant-cell表格中放图片 图片问字对不齐问题

vant中vant-cell表格中放图片 图片文字对不齐问题html<van-cell v-for="(vanItem,vanIndex) in item" v-if="(vanItem.isLabModel && labInfo) || !vanItem.isLabModel" :key="vanI...

2020-03-11 09:11:48 2930

原创 微信小程序中下拉框加请求数据

html代码<v`<van-dropdown-menu class="van-hairline--bottom"> <van-dropdown-item value="{{ value1 }}" options="{{ third_cat_option }}" bind:change="changeThirdCat"/> <van-d...

2020-03-07 23:59:55 1352

原创 js基础

数据类型检测1. 基本数据类型console.log(typeof undefined);//=> undefinedconsole.log(typeof 'a');//=> string console.log(typeof 1);//=> number console.log(typeof true);//=> boolean console.log(typ...

2019-11-16 16:31:53 50

原创 数据类型检测1

// 数据类型检测 // 1. 基本数据类型 console.log(typeof undefined);//=> undefinedconsole.log(typeof 'a');//=> string console.log(typeof 1);//=> number console.log(typeof true);//=> boolean consol...

2019-11-16 15:12:55 87

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除