上一页 1 ··· 127 128 129 130 131 132 133 134 135 ··· 186 下一页
摘要: 一,代码: <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 刘宏缔的架构森林 阅读(676) 评论(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 刘宏缔的架构森林 阅读(406) 评论(0) 推荐(0)
摘要: 一,页面跳转与参数传递 //跳转到详情页 goItem:function(id,title) { uni.navigateTo({ url: '../item/item?id='+id+'&title='+title }); }, 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https:// 阅读全文
posted @ 2023-02-16 18:15 刘宏缔的架构森林 阅读(787) 评论(0) 推荐(0)
摘要: 一,目录结构: 在项目下创建common目录,然后创建util.js文件 功能说明:因为代码中的url要兼容h5的开发模式(需要配置解决跨域)和app的直接访问, 演示的函数功能即返回两种情况下均可用的url 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtou 阅读全文
posted @ 2023-02-16 17:47 刘宏缔的架构森林 阅读(1363) 评论(0) 推荐(0)
摘要: 一,php代码: public function list() { ... header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Conten 阅读全文
posted @ 2023-02-15 10:07 刘宏缔的架构森林 阅读(1345) 评论(0) 推荐(0)
摘要: 一,官网文档地址: https://uniapp.dcloud.net.cn/collocation/pages.html#tabbar 如图: 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com原文: https://blog.imgtouch. 阅读全文
posted @ 2023-02-14 16:01 刘宏缔的架构森林 阅读(629) 评论(0) 推荐(0)
摘要: 一,代码: <template> <view> <uni-list> <uni-list-item :border="false" v-for="(item, index) in itemList" :key="index"> <template v-slot:body > <view @click 阅读全文
posted @ 2023-02-14 14:59 刘宏缔的架构森林 阅读(868) 评论(0) 推荐(0)
摘要: 一,代码: <template> <view> <uni-list > <uni-list-item :border="false" v-for="(item, index) in itemList" :key="index"> <template v-slot:body > <view @clic 阅读全文
posted @ 2023-02-14 14:14 刘宏缔的架构森林 阅读(3022) 评论(0) 推荐(0)
摘要: 一,官方文档地址: https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast 如图: 二,演示代码 <template> <view> <button style="width: 600rpx;margin-top: 30rpx;" type 阅读全文
posted @ 2023-02-13 16:31 刘宏缔的架构森林 阅读(162) 评论(0) 推荐(0)
摘要: 一,配置pages.json 说明:给需要下拉刷新的页面设置 "enablePullDownRefresh": true 其默认值是false 代码: { "path" : "pages/list1/list1", "style" : { "navigationBarTitleText": "", 阅读全文
posted @ 2023-02-13 15:42 刘宏缔的架构森林 阅读(1920) 评论(0) 推荐(0)
上一页 1 ··· 127 128 129 130 131 132 133 134 135 ··· 186 下一页