随笔分类 -  uin-App

1
摘要:检查电脑防火墙是否关闭 如果关闭了防火墙还是不行 看是否电脑开了vpn代理 记得关闭。 然后重新运行即可。 阅读全文
posted @ 2022-04-13 23:27 Action_swt 阅读(292) 评论(0) 推荐(0) 编辑
摘要:初始的时候不存在导致的。 阅读全文
posted @ 2022-03-31 19:06 Action_swt 阅读(419) 评论(0) 推荐(0) 编辑
摘要:// APP端 调起微信小程序 plus.share.getServices( res => { let sweixin = null; for (let i in res) { if (res[i].id == 'weixin') { sweixin = res[i]; } } //唤醒微信小程序 阅读全文
posted @ 2022-03-07 11:18 Action_swt 阅读(2201) 评论(0) 推荐(0) 编辑
摘要:问题:iconfont图标在H5端正常显示,但是非H5端显示不成功。 解决方案:官方链接:https://uniapp.dcloud.io/matter 1、使用了非H5端不支持的vue语法,受小程序自定义组件限制的写法。 2、不要在引用组件的地方在组件属性上直接写 style="xx",要在组件内 阅读全文
posted @ 2022-03-07 11:09 Action_swt 阅读(1846) 评论(0) 推荐(0) 编辑
摘要:之前写的,没调用。删了就好了。。。 浏览器默认行为。 阅读全文
posted @ 2021-04-02 17:47 Action_swt 阅读(373) 评论(0) 推荐(0) 编辑
摘要:需求:账户设置->收货地址(列表)->新增收货地址。 新增完成以后 跳到 收货地址(列表)。 此时返回。要求返回到账户设置页面(淘宝流程)。 解决:1. 收货地址(列表)->新增收货地址。采用 uni.redirectTo() . 新增完成以后 跳到 收货地址(列表)也使用 uni.redirect 阅读全文
posted @ 2021-03-29 16:39 Action_swt 阅读(2259) 评论(1) 推荐(0) 编辑
摘要:page样式写在 scoped时App端会失效。单独写可解决。 阅读全文
posted @ 2021-02-23 16:21 Action_swt 阅读(961) 评论(0) 推荐(0) 编辑
摘要:在使用uni.setStorageAsync 存数据时,key 不能带 _ 比如 area_code ,可以采用驼峰方法命名key值。 阅读全文
posted @ 2020-10-14 11:30 Action_swt 阅读(4360) 评论(0) 推荐(0) 编辑
摘要:1、声明式跳转: 利用组件进行跳转。 https://uniapp.dcloud.io/component/navigator 导航组件 2、编程式跳转: JS跳转(uniapp中的API) ****************************************************** 阅读全文
posted @ 2020-08-14 10:45 Action_swt 阅读(431) 评论(0) 推荐(0) 编辑
摘要:uniapp 小程序打包上线: 1、配置小程序 AppID 2、封装的api层修改接口域名(并且该域名要在小程序业务域名配置种配置)。 3、微信开发者工具 IDE 点击上传,会提示 上传成功后......... ,然后会让写 版本号 以及 项目备注。 uniapp H5打包上线: uniapp AP 阅读全文
posted @ 2020-08-13 17:49 Action_swt 阅读(1068) 评论(0) 推荐(0) 编辑
摘要:https://uniapp.dcloud.io/platform 条件编译 阅读全文
posted @ 2020-08-12 17:27 Action_swt 阅读(187) 评论(0) 推荐(0) 编辑
摘要:https://uniapp.dcloud.io/api/media/image?id=chooseimage uniapp地址 https://uniapp.dcloud.io/api/media/image <template> <view> <view class="_c"> uniapp中的 阅读全文
posted @ 2020-08-12 17:15 Action_swt 阅读(1122) 评论(0) 推荐(0) 编辑
摘要:onReachBottom onReachBottom使用注意 可在pages.json里定义具体页面底部的触发距离onReachBottomDistance,比如设为50,那么滚动页面到距离底部50px时,就会触发onReachBottom事件。 阅读全文
posted @ 2020-08-12 15:59 Action_swt 阅读(1222) 评论(0) 推荐(0) 编辑
摘要:https://i.cnblogs.com/posts/edit uniapp地址。 第一步 需要在page.json中配置 enablePullDownRefresh 字段,分为全局配置和页面配置。 <template> <view> <view class="on_pull_t"> onPull 阅读全文
posted @ 2020-08-12 15:52 Action_swt 阅读(2251) 评论(0) 推荐(0) 编辑
摘要:其实uniapp中内置了Vuex,因此无需下载,直接使用即可。 第一个小坑。 根目录新建store文件夹。 依赖注入: ****************************************************************************************** 阅读全文
posted @ 2020-08-11 17:09 Action_swt 阅读(1540) 评论(0) 推荐(0) 编辑
摘要:<template> <view class="use_com"> <text>uniapp 组件</text> <view>1、 scroll-view</view> <scroll-view class="com_scroll_view" scroll-x="true"> <view v-for 阅读全文
posted @ 2020-08-11 11:56 Action_swt 阅读(3303) 评论(0) 推荐(1) 编辑
摘要:uniapp获取DOM位置信息(准确的来说应该是获取节点信息) 首先要获取uniapp节点的信息。 https://uniapp.dcloud.io/api/ui/nodes-info?id=selectorqueryin const query = uni.createSelectorQuery( 阅读全文
posted @ 2020-08-10 16:33 Action_swt 阅读(4104) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-04 14:14 Action_swt 阅读(121) 评论(0) 推荐(0) 编辑
摘要:uni-app产生的背景: 多端泛滥、体验不好。 特征:Vue的语法、微信小程序的api、内嵌mpvue。 通用的技术栈,学习成本更低。 开放的生态、组件更丰富。 支持通过npm安装第三方包。 支持微信小程序自定义组件及SDK 兼容mpvue组件及项目 App端支持和原生混合编码 DCloud将发布 阅读全文
posted @ 2020-07-31 15:49 Action_swt 阅读(847) 评论(0) 推荐(0) 编辑

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