摘要: /* * @Descripttion: 自定义指令 * @version: */ export const direcitiveFUc = (app: any) => { /* * @Descripttion: 防抖,单位时间内触发最后一次 * @param [function] func --执行 阅读全文
posted @ 2021-11-14 19:58 七月流火~ 阅读(1983) 评论(1) 推荐(1) 编辑
摘要: /** @format */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ // 观察者 c 阅读全文
posted @ 2021-07-02 21:27 七月流火~ 阅读(153) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios'; import iView from 'iview'; const baseApiObj = { production: 'https://imzt.bndxqc.com/api', experience: 'https://imztty.bndx 阅读全文
posted @ 2021-07-02 21:18 七月流火~ 阅读(500) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="trailer_video_box"> <!-- 宣传片区域 --> <video ref="trailer" class="trailer_box" preload :src="videoUrl"></video> <!-- end --> <!--  阅读全文
posted @ 2020-12-14 10:26 七月流火~ 阅读(6264) 评论(1) 推荐(0) 编辑
摘要: 第一、 在 router 文件夹下 新建个个模块的文件夹,存放对应的路由js文件 如图1: 第二、修改router文件夹下的index.js 如图2 三、在main.js 修改如下代码 图3 阅读全文
posted @ 2020-01-13 17:24 七月流火~ 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 一、建立JSbrideg.js文件 var jsBridge = { isAndroid: null, isIOS: null, callHandlerFunc: function(json_data){ var that = this; var res_data = null; var nv =  阅读全文
posted @ 2019-12-27 09:57 七月流火~ 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 简单说明:当h5端使用vue-infinite-scroll 插件 做滚动加载 如:页面布局 <header></header> <div class='main'> </div> <footer></footer> 中间区域是计算好高度的话,使用vue-infinite-scroll 插件,这个时 阅读全文
posted @ 2019-12-27 09:32 七月流火~ 阅读(1340) 评论(0) 推荐(0) 编辑
摘要: 一、es6 Set去重 function removal(arr) { return Array.from(new Set(arr)) } let arr=[1,2,1,3,4,5,5] removal(arr)//[1, 2, 3, 4] 二、利用 filter function removal( 阅读全文
posted @ 2019-12-26 16:01 七月流火~ 阅读(266) 评论(0) 推荐(1) 编辑