|
il y a 1 an | |
---|---|---|
.. | ||
api | il y a 1 an | |
common | il y a 1 an | |
components | il y a 1 an | |
crmPages | il y a 1 an | |
images | il y a 2 ans | |
kui | il y a 1 an | |
lib | il y a 2 ans | |
mixins | il y a 2 ans | |
pages | il y a 1 an | |
plugins | il y a 2 ans | |
routes | il y a 1 an | |
static | il y a 2 ans | |
store | il y a 1 an | |
styles | il y a 2 ans | |
utils | il y a 1 an | |
App.vue | il y a 1 an | |
README.md | il y a 2 ans | |
constants.js | il y a 1 an | |
extension.js | il y a 2 ans | |
main.js | il y a 1 an | |
manifest.json | il y a 2 ans | |
pages.json | il y a 2 ans | |
project.config.json | il y a 2 ans | |
project.private.config.json | il y a 2 ans |
启动前准备:
npm install
命令关于用户信息以及鉴权:
KIP相关: app.globalData.auth
存储的是token相关数据,
在/auth/openid-login
之后会将token
存储在storage中使用uni.setStorageSync('kipAccessToken', access_token)
原有信息: app.globalData.openId
,app.globalData.userInfo
,app.globalData.member
,app.globalData.wxMember
;
同时这些信息在storage
中也有一份
userInfo
是会员授权信息调用 getUserProfile
获取到的,其他信息是调用接口获取到的,member
和wxMember
是一样的数据
1.manifest.json中mp-weixin
的appid
配置
2.request-kip.js中APPID
配置
3.api-kip.js中BASE_URL
配置
4.plugins/install.js中$baseURL
,$baseURLH5
,$wsBaseURL
,$picUrl
,
本项目代码使用了 CRM 的停车缴费代码,由于该项目中存在大量小程序方面的代码,需要单独配置一套环境数据,来确保本项目的环境指向是正确的。
window.env = 'dev|qa|prod'