上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 169 下一页
摘要: 一,代码: <template> <view> <button @click="scanCode">扫码</button> <text>扫码类型:{{scanType}}</text> <text>扫码内容:{{result}}</text> </view> </template> <script> 阅读全文
posted @ 2023-02-19 20:05 刘宏缔的架构森林 阅读(546) 评论(0) 推荐(0)
摘要: 一,代码: <template> <view> <input class="btn" style="background: #ffff00;" type="text" v-model="content"/> <button class="btn" @click="setClipboard">复制到剪 阅读全文
posted @ 2023-02-19 19:18 刘宏缔的架构森林 阅读(730) 评论(0) 推荐(0)
摘要: 一,代码: <template> <view> <button @click="call">拨打电话</button> </view> </template> <script> export default { data() { return { } }, methods: { call(){ un 阅读全文
posted @ 2023-02-19 18:08 刘宏缔的架构森林 阅读(373) 评论(0) 推荐(0)
摘要: 一,基础配置 打开项目的manifest.json文件 主要是要有appid和应用名称 应用版本名称和版号也需要 说明:appid是根据应用名称从在开发者中心中创建的应用列表获取, 如果没有创建,点击重新获取会自动创建一个应用同时生成appid 如图: 说明:刘宏缔的架构森林是一个专注架构的博客, 阅读全文
posted @ 2023-02-19 13:18 刘宏缔的架构森林 阅读(5988) 评论(1) 推荐(0)
摘要: 一,android手机连接电脑,此处是一台三星note8机器 在手机下拉菜单中,选中usb的信息, 此处要选择: usb网络共享 2,此处要允许usb调试(忘记截图了,从网上借用一张) 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com原文: ht 阅读全文
posted @ 2023-02-19 10:02 刘宏缔的架构森林 阅读(331) 评论(0) 推荐(0)
摘要: 一,创建css样式文件 1,目录如下: 2,common.css代码: .tipStyle{ margin-top: 40rpx; font-size: 40rpx; color:#9013FE; text-align: center; } @font-face { font-family: my- 阅读全文
posted @ 2023-02-18 22:25 刘宏缔的架构森林 阅读(519) 评论(0) 推荐(0)
摘要: 一,代码: <template> <view style=""> <view style="margin-top:30rpx; width:710rpx;margin-left: 20rpx; text-align: center;font-size: 50rpx;"> <!--#ifdef H5- 阅读全文
posted @ 2023-02-18 21:52 刘宏缔的架构森林 阅读(641) 评论(0) 推荐(0)
摘要: 一,复制字体文件到static目录下,如图: 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com原文: https://blog.imgtouch.com/index.php/2023/06/04/uniapp-nvue-he-vue-jun-yi 阅读全文
posted @ 2023-02-17 16:35 刘宏缔的架构森林 阅读(365) 评论(0) 推荐(0)
摘要: 一,页面跳转与参数传递 //跳转到详情页 goItem:function(id,title) { uni.navigateTo({ url: '../item/item?id='+id+'&title='+title }); }, 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https:// 阅读全文
posted @ 2023-02-16 18:15 刘宏缔的架构森林 阅读(769) 评论(0) 推荐(0)
摘要: 一,目录结构: 在项目下创建common目录,然后创建util.js文件 功能说明:因为代码中的url要兼容h5的开发模式(需要配置解决跨域)和app的直接访问, 演示的函数功能即返回两种情况下均可用的url 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtou 阅读全文
posted @ 2023-02-16 17:47 刘宏缔的架构森林 阅读(1326) 评论(0) 推荐(0)
上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 169 下一页