随笔分类 - uni-app
摘要:let pages = getCurrentPages(); // 当前页面 let beforePage = pages[pages.length - 2]; // 上一页 uni.navigateBack({ success: function() { /* beforePage.onLoad(
阅读全文
摘要:"pages": [ //pages数组中第一项表示应用启动页, { "path": "pages/main/main", "style": { "navigationBarTitleText": "沉浸式透明导航栏", "navigationStyle": "custom", // 取消本页面的导
阅读全文
摘要:uni.navigateTo({ url: '/pages/details?obj='+ encodeURIComponent(JSON.stringify(item)) }); 接收: onLoad(option) { this.item=JSON.parse(decodeURIComponent
阅读全文
摘要:uni.downloadFile({ url: item.url, success: (res) => { if (res.statusCode 200) { uni.openDocument({ filePath: res.tempFilePath, // 如果文件名包含中文,建议使用escape
阅读全文
摘要: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
阅读全文
摘要:使用 tki-qrcode组件 生成二维码(https://www.npmjs.com/package/tki-qrcode) 1、引入 tki-qrcode 下载组件后引入 import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue'
阅读全文
摘要:view: <!-- 悬浮框 --> <view class="v-fixed-title1"> <view class="v-fixed-ic"> <uni-icons size="6" class="v-fixed-icon" type="chatbubble" color="#ffffff">
阅读全文