摘要: import { CSSProperties, useEffect, useState } from 'react'; import * as echarts from 'echarts'; import Chart from '@/pages/components/Charts'; import 阅读全文
posted @ 2022-07-16 16:34 惠鹏曦 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 首先npm 引入 import AMapLoader from "@amap/amap-jsapi-loader"; 在生命周期里加载实例 data(){ return { amap:{}, // 存放高德地图实例对象 mapObj: {}, // 存放当前绘画出的地图对象 } } mounted( 阅读全文
posted @ 2021-03-15 18:30 惠鹏曦 阅读(5116) 评论(0) 推荐(1) 编辑
摘要: 这里需要去下载echart 4.2.0-rc.1版本 https://lib.baomitu.com/echarts/4.2.0-rc.1/echarts.min.js 兼容手机端缩放与点击事件 先去http://datav.aliyun.com/tools/atlas/#&lat=22.89016 阅读全文
posted @ 2021-01-13 15:34 惠鹏曦 阅读(3048) 评论(1) 推荐(1) 编辑
摘要: 请参考:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#%E9%99%84%E5%BD%951-JS-SDK%E4%BD%BF%E7%94%A8%E6%9D%83%E9%99%90%E7%AD%BE%E 阅读全文
posted @ 2020-02-15 20:40 惠鹏曦 阅读(27848) 评论(1) 推荐(0) 编辑
摘要: // 自动生成一个margin padding的css函数 使用ml-20 代表margin-leftt: 20px $directions:('t': 'top', 'b': 'bottom', 'l': 'left', 'r': 'right'); $dimensions:('p': 'padd 阅读全文
posted @ 2024-06-05 15:21 惠鹏曦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 文档地址:https://cloud.tencent.com/document/product/1323/78886 正式环境: 电子签小程序 Appid:wxa023b292fd19d41d。 电子签小程序原始 ID:gh_da88f6188665。 // 正式服app调用的id 电子签小程序合同 阅读全文
posted @ 2023-06-19 16:29 惠鹏曦 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 使用vue做后台管理系统,需求是所有的菜单打开之后,下次点击的时候的使用缓存,这里很简单的做法就是用来包裹住;但是一级菜单和二级菜单都没有问题,三级菜单就会出现无法缓存的问题,网上找资料说是vue中keep-alive本身存在的缺陷,需要在路由守卫中将matched属性做一下优化,具体如下 // 处 阅读全文
posted @ 2023-05-09 19:44 惠鹏曦 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 报错内容 对修饰器的实验支持功能在将来的版本中可能更改。在 “tsconfig” 或 “jsconfig” 中设置 “experimentalDecorators” 选项以删除此警告 解决办法 方法一:设置VSCode选项 管理==>设置==>搜索experimentalDecorators==>打 阅读全文
posted @ 2023-04-19 09:13 惠鹏曦 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 功能为右侧描点导航,点击后内容滚动到指定位置,监听滚动条,右边描点导航高亮 效果图: 组件封装 PointTags <template> <div class="point-wrap"> <el-tabs tab-position="right" v-model="activeTag" size=" 阅读全文
posted @ 2023-02-01 17:54 惠鹏曦 阅读(501) 评论(0) 推荐(0) 编辑
摘要: // 获取近半年时间getNowdate(time = 6) { let date = new Date() let year = date.getFullYear() let month = date.getMonth() let sdate = date.getDate() let olddat 阅读全文
posted @ 2023-01-04 18:06 惠鹏曦 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 1.限制手机号只能输入数字 <Form.Item label="手机号码" name="mobile" colon={false} style={{ marginLeft: '30px' }} rules={[ { required: true, message: '*请输入手机号码', }, { 阅读全文
posted @ 2022-08-02 11:19 惠鹏曦 阅读(865) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://ahooks.js.org/zh-CN/ 以下总结一些个人认为非常实用的hook: 持续更新中: 1. useRequest 请求 import {useRequest } from 'ahooks'; const getSome = async () => {}; con 阅读全文
posted @ 2022-07-29 16:16 惠鹏曦 阅读(3106) 评论(0) 推荐(0) 编辑
摘要: <!--纵向轮播--> <template> <div class="swiper-box"> <swiper :direction="'vertical'" :slidesPerView="3.9" :mousewheel="true" :modules="modules" :centeredSl 阅读全文
posted @ 2022-06-10 16:07 惠鹏曦 阅读(1452) 评论(2) 推荐(1) 编辑