摘要:微信小程序登录 在manifest.json中的源码视图下找到mp-weixin下的appid,填写申请到的开发者id "mp-weixin" : { "appid" : "xxxxxxxxxxxxxxx", "setting" : { "urlCheck" : false }, "usingCom
阅读全文
摘要:首先在page页面设置enablePullDownRefresh属性 激活下拉 { "path": "pages/index/index", "style": { "navigationBarTitleText": "uni-app", "enablePullDownRefresh":true }
阅读全文
摘要:<template> <view> <button @click="img" type="primary">button</button> <progress :percent="percent" stroke-width="10" /> </view> </template> <script> v
阅读全文
摘要:<template> <view> <scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll" class="scroll-y"
阅读全文
摘要:// 事件映射表,左侧为 WEB 事件,右侧为 ``uni-app`` 对应事件 { click: 'tap',//点击 touchstart: 'touchstart',//手指开始在元素上触屏 touchmove: 'touchmove',//移动 touchcancel: 'touchcanc
阅读全文
摘要:应用生命周期 uni-app 支持如下应用生命周期函数: 函数名说明 onLaunch 当uni-app 初始化完成时触发(全局只触发一次) onShow 当 uni-app 启动,或从后台进入前台显示 onHide 当 uni-app 从前台进入后台 onError 当 uni-app 报错时触发
阅读全文
摘要:底部导航栏 当设置 position 为 top 时,将不会显示 icon tabBar 中的 list 是一个数组,只能配置最少2个、最多5个 tab,tab 按数组的顺序排序。 tabbar 切换第一次加载时可能渲染不及时,可以在每个tabbar页面的onLoad生命周期里先弹出一个等待雪花(h
阅读全文