- 博客(7)
- 收藏
- 关注
原创 uniapp引入iconfont图标踩过的坑
在iconfont下载图标后引入到项目,这里要注意的是路径上要加上https: 不然无法显示参考: https://www.cnblogs.com/ghc520/p/12006389.html刚开始用的是unicode方式,然后发现这样写无效,他会直接输出字符而不是图标<view class="iconfont">{{icon}}</view>export default { data() { return { icon:'',}
2021-07-14 13:58:52
674
原创 uni-app 页面间传参
//1.//传值recharge(index){ uni.navigateTo({ url: '../cust/addInsideManage?list='+ encodeURIComponent(JSON.stringify(this.carList[index])) })},//取值onLoad(options){ var data = JSON.parse(options.list); // 字符串转对象 }//2.缓存 //存 (1)参数名(2)参数值uni.setSt
2021-06-30 11:59:41
672
原创 uni-app上拉加载事件
import uniLoadMore from "@/components/uni-load-more/uni-load-more.vue"export default { components: { uniLoadMore, }, data() { return { status: 'more', currentPage:1, totalPages :0, statusTypes: [{ value: 'more', te
2021-06-30 11:51:10
1130
原创 uni-app调用上一个页面的方法
调用上一个页面的方法setTimeout(()=>{ uni.navigateBack({ delta:1 }) const pages = getCurrentPages(); //获取页面栈 const beforePage = pages[pages.length - 2]; //前一个页面 beforePage.$vm.getResearchList(); //前一个页面方法},1500)...
2021-06-30 11:45:30
780
1
原创 FormData表单对象及其使用
5. FormData作用:1.模拟HTML表单,相当于将HTML表单映射成表单对象,自动将表单对象中的数据拼接成请求参数格式2.异步上传二进制文件<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="view
2021-06-27 22:55:41
265
原创 uni-app 点击小眼睛显示/隐藏密码
<template> <view> <form> <view class="cu-form-group margin-lg "> <input placeholder="请确认新密码" type="text" :password="showPassword" v-model="newPwds" name="input"></input> <text :class="[!showPassword ?'cu
2021-06-09 09:42:43
1880
转载 Reset.css
Reset.csshtml, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl...
2021-05-30 17:17:29
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人