随笔分类 -  uniapp

摘要:uni.chooseImage({ count: 9, // 从相册选择 sourceType: ['album'], success: (res) => { this.fileList = res.tempFiles //res.tempFilePaths是返回的图片数组file 循环调用获取图片 阅读全文
posted @ 2024-05-21 15:18 罗砂 阅读(254) 评论(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 罗砂 阅读(72) 评论(0) 推荐(0) 编辑
摘要:第一步:在项目文件的根目录上添加一个components文件夹 我这里.配置的是全局的颜色 第二步:在需要用的组件上使用 注意:1.在使用全局组件的时候是不需要引入的直接以标签的形式使用; 2.components文件夹的名字是固定的 阅读全文
posted @ 2022-11-16 14:04 罗砂 阅读(665) 评论(0) 推荐(0) 编辑
摘要:pages.json 文件里所有代码: { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path" : "pages/home/home", "style" : { "navigat 阅读全文
posted @ 2022-11-16 13:33 罗砂 阅读(492) 评论(0) 推荐(0) 编辑
摘要:第一种: 通过<navigator>标签 里的url进行跳转 <template> <view class=""> <text>跳转到排行榜</text> <navigator url="../Ranking_list/Ranking_list">排行榜</navigator> </view> </ 阅读全文
posted @ 2022-11-16 10:39 罗砂 阅读(73) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示