上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 142 下一页
摘要: 逻辑组织中,待完成。。。 阅读全文
posted @ 2020-04-21 12:00 每天都要进步一点点 阅读(1296) 评论(0) 推荐(0)
摘要: 逻辑组织中,待完成。。。 阅读全文
posted @ 2020-04-20 12:00 每天都要进步一点点 阅读(587) 评论(0) 推荐(0)
摘要: 1.适当封装 Redux,简化调用 src/utils/redux.js /** * 适当封装 Redux,简化调用 */ /* eslint-disable import/prefer-default-export */ import fetch from './request' export f 阅读全文
posted @ 2020-04-19 12:00 每天都要进步一点点 阅读(346) 评论(0) 推荐(0)
摘要: 1.封装工具类 utils/jump.js import Taro from '@tarojs/taro' const PAGE_WEBVIEW = '/pages/webview/webview' /** * // NOTE 后端返回的 url 可能是网页链接,需要在 webview 中打开 * 阅读全文
posted @ 2020-04-18 12:00 每天都要进步一点点 阅读(4891) 评论(0) 推荐(0)
摘要: 1.封装工具类 src/utils/style.js import Taro from '@tarojs/taro' const NAVIGATOR_HEIGHT = 44 const TAB_BAR_HEIGHT = 50 /** * 返回屏幕可用高度 * // NOTE 各端返回的 window 阅读全文
posted @ 2020-04-17 12:00 每天都要进步一点点 阅读(2933) 评论(0) 推荐(0)
摘要: 1.配置 config/index.js const config = { ... h5: { // NOTE H5 打包静态资源时带 hash 值,方便缓存、版本管理 publicPath: '/', staticDirectory: 'static', output: { filename: ' 阅读全文
posted @ 2020-04-16 12:00 每天都要进步一点点 阅读(3035) 评论(0) 推荐(1)
摘要: 1.配置 config/index.js const path = require('path') ... const config = { alias: { '@actions': path.resolve(__dirname, '..', 'src/actions'), '@assets': p 阅读全文
posted @ 2020-04-15 12:00 每天都要进步一点点 阅读(3248) 评论(2) 推荐(0)
摘要: 1.在 sass 中通过别名(@ 或 ~)引用需要指定路径 config/index.js const path = require('path') // NOTE 在 sass 中通过别名(@ 或 ~)引用需要指定路径 const sassImporter = function(url) { if 阅读全文
posted @ 2020-04-14 12:00 每天都要进步一点点 阅读(1679) 评论(0) 推荐(0)
摘要: 1.src/app.js tabBar: { color: "#666", selectedColor: "#b4282d", backgroundColor: "#fafafa", borderStyle: 'black', list: [{ pagePath: "pages/home/home" 阅读全文
posted @ 2020-04-13 12:00 每天都要进步一点点 阅读(2210) 评论(0) 推荐(0)
摘要: 1.安装 cross-env yarn add cross-env -D 2.配置 dev.js config/dev.js // NOTE H5 端使用 devServer 实现跨域,需要修改 package.json 的运行命令,加入环境变量 const isH5 = process.env.C 阅读全文
posted @ 2020-04-12 12:00 每天都要进步一点点 阅读(5528) 评论(1) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 142 下一页