摘要: vue文件中 1 <!--开启摄像头的弹窗--> 2 <div class="info2" @click="onTake"> 3 <el-image :src="url" style="width: 100%; height: 100%"></el-image> 4 </div> 5 6 <!--开 阅读全文
posted @ 2021-07-30 15:18 浪魔 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: a.html 引入jQuery.js 1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <title>健康生活</title> 7 <meta name="viewport" 8 content="w 阅读全文
posted @ 2021-07-30 11:53 浪魔 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装barcode npm install jsbarcode --save 第二步:在使用barcode的页面引入 import JsBarcode from 'jsbarcode' 第三步:添加二维码容器, img/svg/canvas 三个选一即可 <svg id="barcode"> 阅读全文
posted @ 2021-07-30 10:10 浪魔 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: GIT命令 一、移除之前的远程库 git remote rm origin 二、添加远程库 git remote add origin https://gitee.com/XXX/XXXXXXX.git 三、push到分支中 git push -u origin master 一、创建版本库 (1) 阅读全文
posted @ 2021-03-18 09:44 浪魔 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 一、elementUI设置el-date-picker中的picker-options的可用时间段 sTimeOptions: { //控制可选时间范围 disabledDate(time) { let curData = (new Date()).getTime() let day = 13 * 阅读全文
posted @ 2021-02-02 15:55 浪魔 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 一》 首先配置一下axios的responseType文件格式为blob // 下载文件处理文件流的配置 let axios2 = axios.create({ responseType: "blob", }); 二》 生成Excel表 其中data是请求返回的文件流 1 // 生成Excel // 阅读全文
posted @ 2021-01-13 16:15 浪魔 阅读(1789) 评论(0) 推荐(0) 编辑
摘要: 小程序的分类布局,左树和右侧的类别 wxml布局 1 <view class='typeContent'> 2 <scroll-view scroll-y class='oneTypeBox'> 3 <view class='{{oneLevelIndex == index ? " current" 阅读全文
posted @ 2020-11-11 10:34 浪魔 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 处理下载接口返回的文件流数据 3 * @param {*} res http请求返回数据 4 */ 5 function download(res) { 6 // 错误处理 7 if (res.data.type == "application/json") { 8 let re 阅读全文
posted @ 2020-10-13 18:58 浪魔 阅读(3760) 评论(0) 推荐(0) 编辑
摘要: 1 import { 2 validatenull 3 } from '@/util/validate'; 4 import website from '@/config/website' 5 6 const keyName = website.key + '-'; 7 /** 8 * 存储loca 阅读全文
posted @ 2020-10-08 14:26 浪魔 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 将数组转化成树结构 array to tree 3 * @param {*} array 数据源 4 * @param {*} options 字段名配置项 5 */ 6 function arrayToTree( 7 array = [], 8 options = { id: 阅读全文
posted @ 2020-10-08 09:34 浪魔 阅读(406) 评论(0) 推荐(1) 编辑