随笔分类 -  uni-app

摘要:let pages = getCurrentPages(); // 当前页面 let beforePage = pages[pages.length - 2]; // 上一页 uni.navigateBack({ success: function() { /* beforePage.onLoad( 阅读全文
posted @ 2021-12-31 09:31 凉面好好吃 阅读(440) 评论(0) 推荐(0) 编辑
摘要:"pages": [ //pages数组中第一项表示应用启动页, { "path": "pages/main/main", "style": { "navigationBarTitleText": "沉浸式透明导航栏", "navigationStyle": "custom", // 取消本页面的导 阅读全文
posted @ 2021-12-27 09:29 凉面好好吃 阅读(1725) 评论(0) 推荐(0) 编辑
摘要:uni.navigateTo({ url: '/pages/details?obj='+ encodeURIComponent(JSON.stringify(item)) }); 接收: onLoad(option) { this.item=JSON.parse(decodeURIComponent 阅读全文
posted @ 2021-01-26 11:29 凉面好好吃 阅读(7067) 评论(0) 推荐(0) 编辑
摘要:uni.downloadFile({ url: item.url, success: (res) => { if (res.statusCode 200) { uni.openDocument({ filePath: res.tempFilePath, // 如果文件名包含中文,建议使用escape 阅读全文
posted @ 2021-01-25 11:31 凉面好好吃 阅读(1550) 评论(0) 推荐(0) 编辑
摘要:1、view 代码 <view class="v-main-scan"> <uni-icons @click="scanCode" class="v-main-icon-scan" type="scan" color="#3079b5" size="150"></uni-icons> <text c 阅读全文
posted @ 2021-01-14 11:29 凉面好好吃 阅读(2343) 评论(0) 推荐(0) 编辑
摘要:使用 tki-qrcode组件 生成二维码(https://www.npmjs.com/package/tki-qrcode) 1、引入 tki-qrcode 下载组件后引入 import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue' 阅读全文
posted @ 2021-01-14 11:20 凉面好好吃 阅读(3846) 评论(0) 推荐(0) 编辑
摘要:view: <!-- 悬浮框 --> <view class="v-fixed-title1"> <view class="v-fixed-ic"> <uni-icons size="6" class="v-fixed-icon" type="chatbubble" color="#ffffff"> 阅读全文
posted @ 2020-12-28 09:39 凉面好好吃 阅读(1030) 评论(0) 推荐(0) 编辑

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