uniapp 下拉刷新小技巧
pages.json 文件 里面进来不要用(globalStyle)来设置下拉刷新 (app-plus -》 pullToRefresh)否则会导致全部页面在iOS下都会开启下拉刷新 "globalStyle": { "navigation
TAG
共 21 条与「uniapp」相关的内容。
pages.json 文件 里面进来不要用(globalStyle)来设置下拉刷新 (app-plus -》 pullToRefresh)否则会导致全部页面在iOS下都会开启下拉刷新 "globalStyle": { "navigation
热更新会自动安装 整包更新会自动打开指定地址 // #ifdef APP-PLUS // 锁定屏幕方向 plus.screen.lockOrientation('portrait-primary'); //锁定 // 检测升级 uni.re
// #ifdef APP-PLUS const _handlePush = function(message) { let payload = message.payload; if ('string' === typeof payloa
function claerBadge(){ if(plus.os.name.toLowerCase() == 'ios'){ //导入ios UIApplication var UIApplication = plus.ios.impor
直接上代码,不多说了 // 原生检测 export default { /** * 检测通知栏 */ checkNotification:function(){ if(plus.os.name.toLowerCase() == 'ios')
// main.js 文件 // 全局 event bus Vue.prototype.$eventHub = new Vue(); // a.js 接收参数的文件 _self = this // 监听 全局 event bus this.
// ajax var Fly = require('./plugins/tools/fly.js'); var fly = new Fly //添加请求拦截器 fly.interceptors.request.use((config,pr
直接上代码 // 挂载 Vue.prototype // 示例如下: // 在 main.js 中挂载属性/方法 Vue.prototype.websiteUrl = 'http://uniapp.dcloud.io'; Vue.proto
var(--status-bar-height) 此变量在微信小程序环境为固定 25px,在 5+App 里为手机实际状态栏高度。 当设置 "navigationStyle":"custom" 取消原生导航栏后,由于窗体为沉浸式,占据了状态