taro通用方法
使用指南
$ npm i ehome-taro-utils
or
$ cnpm i ehome-taro-utils
or
$ yarn add ehome-taro-utils
代码演示
import callApi showLoading hideLoading getThemeColor from 'ehome-taro-utils'
文件说明
文件 | 说明 |
---|---|
callApi.js | 网络请求 |
computeSignature.js | 接口签名 |
getResourceAllocation.js | 获取当前环境信息 |
getThemeColor.js | 获取主题色 |
getUpdateManager.js | 小程序更新 |
regexps.js | 正则 |
showLoading.js | 显示和关闭loading |
verifyLoginStatus.js | 验证是否登录 |