- 博客(42)
- 资源 (2)
- 收藏
- 关注
原创 记录在使用uview-plus过程中u-tabs 字体变大后下面的滑块位置不对
【代码】记录在使用uview-plus过程中u-tabs 字体变大后下面的滑块位置不对。
2024-03-19 14:08:04
861
原创 react+ts 引入antd组件时提示 “XXX”不能用作 JSX 组件。
react+ts 引入antd组件时提示 “XXX”不能用作 JSX 组件。
2024-01-19 10:55:23
1252
原创 如何解决vue3.0+typescript项目提示找不到模块“./App.vue
如何解决vue3.0+typescript项目提示找不到模块“./App.vue
2023-08-29 10:55:25
1043
原创 记录一下在React里面(监听键盘按下事件)键盘右下角的-完成-按钮
【代码】记录一下在React里面(监听键盘按下事件)键盘右下角的-完成-按钮。
2023-03-29 09:21:52
216
原创 记录一下 element-plus 中使用 el-carousel 跑马灯 遇到的默认第一张图不显示问题
记录一下 element-plus 中使用 el-carousel 跑马灯 遇到的默认第一张图不显示问题
2021-12-17 11:31:58
3089
6
原创 uniapp + uview 多图上传
<view class="upload-img"> <u-form-item label-width="150"> <u-upload ref="iupload" :style="{opacity: evaluationData.length > 6 ? 0 : ''}" width="150" height="150" :file-list="multipleImgs" :action="httpUrl
2021-09-16 17:28:05
601
原创 UNI-APP 解决 点击input框外发送按钮,键盘不收回
<view class="send" :class="isVoice?'hidden':''" @touchend.prevent="sendText"> <!-- @touchend.prevent 取消键盘自动收回--> <view class="btn">发送</view> </view>
2021-09-09 11:53:27
1643
原创 html2canvas合成图片 前端跨域问题 uniapp
问题描述 前端图片跨域---->修改源码: img.src = src + ‘?t=’ + new Date().getTime();前端—> 封装一个html2canvas组件<template> <view class="html2canvas" :prop="domId" :change:prop="html2canvas.create"> <slot></slot> </view></template
2021-08-17 10:46:16
1358
5
原创 前端使用crypto.js进行加密(DES模式)
下载crypto-jsyarn add crypto-jsconst CryptoJS = require("crypto-js");/* @Description: 和后台对接使用的加密解密方式 @author:popup @param: {type} secretKey 参数和后台保持一致 @return: {type} @createTime: 2021-6-30 10:32:13 ?F10: AM? */const secretKey = '*****';// 加密ex
2021-07-02 10:29:57
1463
原创 本地项目上传到gitee
这样就完成了版本的一次初始化。$ git init $ git remote add origin https://gitee.com/用户个性地址/HelloGitee.git$ git pull origin master修改/添加文件,否则与原文件相比就没有变动。$ git add .$ git commit -m "第一次提交"$ git push origin master在新建仓库时,如果在码云平台仓库上已经存在 readme 或其他文件,在提交时可能会存在冲突,这时用户需
2021-06-09 14:26:09
98
原创 uniapp跳转 外部网页 h5和app端
aboutLearnMore() { // 跳转外部链接h5 // #ifdef H5 window.location.href = 'http://www.baidu.com'; // #endif // #ifdef APP-PLUS plus.runtime.openURL('http://www.baidu.com') //不需要拼接 // plus.runtime.openURL(`http://${jumpUrl}`)//需要拼接 ...
2021-05-27 19:39:20
6786
11
原创 uniapp 点击两次底部tabbar 回到顶部
tabClick: false, // true 表示是两次点击中的第一次点了 tabBar(写在data里面)onTabItemTap(e) { if (e.index==0&&this.tabClick) { // 200ms 内再次点击 // 这里就是模拟的双击事件,可以写类似数据刷新相关处理 this.toTop(); } this.tabClick = true setTimeout(() => { this.tabClick
2021-05-27 19:17:10
1253
原创 uniapp微信公众号支付----微信小程序支付
// 微信支付 https://uniapp.dcloud.io/api/plugins/payment toResult(val) { let _this = this // #ifdef MP-WEIXIN let data = { userId: _this.userInfo.id, id: _this.sendData.id, payType: val, type: 0 } // #endif /...
2021-05-21 09:26:13
392
原创 正则验证手机号11位
checkPhone(value) { let myreg=/^[1][3,4,5,6,7,8,9][0-9]{9}$/; if (!myreg.test(value)) { return false; console.log("false") } else { return true; console.log("true") } },```javascript在这里插入代码片
2021-05-21 09:19:28
953
原创 uniapp实现多图上传
<template> <view class="four-img-flex"> <view class="upload-img"> <view class="viewimg" v-for="(item,index) in thumbnailUrls" :key="index"> <view class="delete-picture" @click="delcloudImg(index)" style="width: 40r
2021-05-17 11:45:38
786
原创 uview多图上传
<u-form-item label="上传图片" label-width="150"> <u-upload ref="uUploadMultiple" :file-list="multipleImgs" :action="action" accept="image" :max-size="2 * 1024 * 1024" @oversize="oversize" :sizeType="sizeType" @on-remove="deleteImgs" :.
2021-04-18 03:00:41
1768
7
原创 vue3、ts使用ant-design-vue
yarn add ant-design-vue@nextimport { createApp } from "vue";import App from "./App.vue";import Antd from 'ant-design-vue';import 'ant-design-vue/dist/antd.css';import router from "./router";import store from "./store";createApp(App) .use(store)
2020-12-29 13:37:28
1195
原创 vue 图片固定在一个区域内鼠标放大缩小,拖拽
<template> <div class="mapbox" id="mapbox" :style="'width:' + width + ';height:' + height" > <table class="imgbox" id="imgbox" @mousedown="holdDown" @mouseup="holdUp" :style="'top: ' + imgtop
2020-12-16 17:01:13
1878
原创 Element UI Select 组件的 value-key 属性,让绑定值可以为一个对象
<el-form-item class="selectClass"> <el-select v-model="sendParams.areaId" placeholder="选择区域" value-key="orgNo" //重点 :popper-append-to-body="false" @change="selectChangeRegion" &
2020-12-16 11:45:38
1158
原创 vue监听本页面的后退
mounted () {if (window.history && window.history.pushState) {// 向历史记录中插入了当前页history.pushState(null, null, document.URL);window.addEventListener(‘popstate’, this.goBack, false);}},destroyed () {window.removeEventListener(‘popstate’, this.goB
2020-12-14 16:25:53
1078
原创 关于axios post请求参数拼接
post 拼接参数修改headers 添加 ‘Content-Type’:‘application/x-www-form-urlencoded’axios({method: ‘post’,url: ‘/user’,data: {firstName: ‘123’,lastName: ‘234’},headers:{‘Content-Type’:‘application/x-www-form-urlencoded’}});...
2020-12-14 15:27:16
2040
原创 elementui 修改下拉框样式
无法修改选择下拉框的主要原因是,选择下拉的标签并没有插入到body标签中,打开控制台你可以看到这个标签和script标签处于同一层级,所以,解决的办法就是: 给<el-select>标签添加一个属性 :popper-append-to-body="false"...
2020-11-24 12:15:11
1814
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人