摘要: /** * null => '' * @param {*} data 要处理的数据 */ function null2str(data) { for (let x in data) { if (data[x] === null) { // 如果是null 把直接内容转为 '' data[x] = ''; } else { if (Array.is... 阅读全文
posted @ 2019-03-26 10:53 leeseett 阅读(12070) 评论(0) 推荐(0) 编辑
摘要: /**检查是否打开GPS功能(android)**/ export const checkOpenGPSServiceByAndroid = () => { let system = uni.getSystemInfoSync();// 获取系统信息 if (system.platform === 'android') { // 判断平台 var context = plus.a... 阅读全文
posted @ 2019-03-26 10:36 leeseett 阅读(3035) 评论(0) 推荐(0) 编辑
摘要: 开局一张图,内容全靠编 1.开局一张图(先上效果图) 2.内容全靠编 开始编写复用组件: segmented-control.vue 开始编写父级组件来调用复用组件 list.vue 完事了,上图 线的宽度、过渡的时间、样式什么的自己调一调,改一改就行了 阅读全文
posted @ 2019-03-26 10:24 leeseett 阅读(6196) 评论(2) 推荐(0) 编辑