摘要: 1、安装依赖 npm install v-scale-screen 或 yarn add v-scale-screen 2、vue 引入 vue2中使用插件导入,vue3以组件导入 vue2 中引入 // main.js import Vue from 'vue' import VScaleScre 阅读全文
posted @ 2024-06-14 09:28 罗砂 阅读(376) 评论(0) 推荐(0) 编辑
摘要: uni.chooseImage({ count: 9, // 从相册选择 sourceType: ['album'], success: (res) => { this.fileList = res.tempFiles //res.tempFilePaths是返回的图片数组file 循环调用获取图片 阅读全文
posted @ 2024-05-21 15:18 罗砂 阅读(124) 评论(0) 推荐(0) 编辑
摘要: uniapp 周选择范围时间 css 使用 点击查看下载css库 css自定义的样式: /* 亮高 */ .box-blue { background-color: #409EFF; color: white; border-radius: 10rpx; } /* 中间连接 背景颜色 */ .bg-light-blue { wi 阅读全文
posted @ 2024-05-10 14:41 罗砂 阅读(66) 评论(0) 推荐(0) 编辑
摘要: v-for 为什么要加 key: 1. vue中列表循环需加:key="唯一标识" 唯一标识尽量是item里面id等,因为vue组件高度复用增加Key可以标识组件的唯一性,为了更好地区别各个组件 key的作用主要是为了高效的更新虚拟DOM 2.标签名一样,key一样这时候就会就地复用,如果标签名不一 阅读全文
posted @ 2024-01-03 14:09 罗砂 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 直接给代码自己理解 html部分: <el-button type="primary" @click="recibo(scope.row)">确认收货</el-button> <div> <el-dialog title="付款码" :visible.sync="moneyShow" width=" 阅读全文
posted @ 2023-06-08 17:49 罗砂 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 下面使用的是若依框架中的axios请求 api:通用 import request from '@/utils/request' export function guideCome(data){ return request( { url: '/sys/client/export', method: 阅读全文
posted @ 2023-04-27 19:36 罗砂 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 难点: 这些固定的文字渲染 首先创建一个数组数组里装的是需要的四个文字 <el-steps :active="stepsData.identifying" align-center> <el-step v-for="(item, index) in stepsData.convertRecords" 阅读全文
posted @ 2023-04-22 10:29 罗砂 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 目录结构 pages :存放页面 类似于src/views components :存放组件 类似于src/components static :存放静态页 类似于src/assets store :vuex状态树 类似于src/store nuxt.config.js :全局配置文件 类似于vue 阅读全文
posted @ 2023-03-30 13:07 罗砂 阅读(125) 评论(0) 推荐(0) 编辑
摘要: $nextTick 作用 :等Dom更新完以后再执行 // 等Dom更新完以后再执行 this.$nextTick(() => { var obj = new WxLogin({ id: "weixin", appid: "wx40d53ce23ac9781f",//appid固定写死 scope: 阅读全文
posted @ 2023-03-20 10:48 罗砂 阅读(64) 评论(0) 推荐(0) 编辑
摘要: var item = new Date(1659424247000).toLocaleString(); 阅读全文
posted @ 2023-03-10 10:54 罗砂 阅读(15) 评论(0) 推荐(0) 编辑