随笔分类 - uni-app
摘要:完全依赖后台接口实现 微信小程序只能用微信支付,不用考虑支付宝接口 submit(){ var self = this; // console.log(this.price,this.payType) var money = 100000; var amount = this.price; var
阅读全文
摘要:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/live-player-plugin.html https://docs.qq.com/doc/DZHhzV0FiYX
阅读全文
摘要:pages.json: { "pages": [ { "path": "pages/index/index", "name":"index", "style": { "navigationStyle": "custom", "navigationBarTitleText": "首页", "app-p
阅读全文
摘要:Android权限大全1.android.permission.WRITE_USER_DICTIONARY 允许应用程序向用户词典中写入新词2.android.permission.WRITE_SYNC_SETTINGS 写入Google在线同步设置3.android.permission.WRIT
阅读全文
摘要:main.js import {router,RouterMount} from './router.js' Vue.use(router) router.js // router.js //小程序系列无法拦截原生tabbar及原生导航返回,如需拦截请自定义tabbar、header import
阅读全文
摘要:<template> <view> <view style="margin-top: 20px;"> <button @click="xiaochengxu">小程序存图</button> </view> <view style="margin-top: 20px;"> <button @click
阅读全文
摘要:ckplayer.json { "config": { //通用配置 "fullInteractive": true, //是否开启交互功能 "delay": 30, //延迟加载视频,单位:毫秒 "timeFrequency": 100, //计算当前播放时间和加载量的时间频率,单位:毫秒 "au
阅读全文
摘要:vant: mounted(){ //手机后退键 let self = this; if (window.history && window.history.pushState) { $(window).on('popstate', function () { self.goback(); });
阅读全文
摘要:同步 uni.setStorageSync('cunData', this.curID); uni.getStorageSync('cunData') uni.removeStorageSync('cunData') 异步 uni.setStorage({ key: 'Token', data: r
阅读全文
摘要:1.导航自定义如果用默认的tabBar导航,需要在pages.json中设置 iconWidth和fontSize这两项图标尺寸和文字尺寸在生成的app里是没有用的 spacing间距设置应该是有用的,但是app是上下结构,h5是左右结构,设置了没有实际意义 在list中设置需要显示导航的页面,相当
阅读全文