Commit 4c7d6f7f by 高淑倩

init

parent d0afec57
// app.js
import { cEvent } from './utils/event.js'
const Promise = require('lib/bluebird')
var utils = require('utils/util.js')
var wxService = require('utils/wxService')
const envInfo = require('config/index').envInfo
App({
onLaunch: function (e) {
},
onShow: function (options = {}) {
// 是不是第一次进入小程序
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
if (baseUserInfo) {
// wxService.getUserInfo()
}
},
onHide: function () {
this.globalData.loginFirst = false
},
getUserInfo() {
return new Promise((resolve, reject) => {
const _baseUserInfo = wx.getStorageSync('_baseUserInfo')
if (_baseUserInfo) {
resolve(_baseUserInfo)
} else {
reject('_baseUserInfo is null')
}
})
},
globalData: {
userInfo: null,
userBaseInfo: null, // openid
systemInfo: wx.getSystemInfoSync(),
ctx: envInfo.ctx,
openCard: false,
userNo: null,
storeId: '',
storeName: '',
loginFirst: false
}
})
{
"pages": [
"pages/welcome/welcome",
"pages/userCenter/userCenter",
"pages/mySpend/mySpend",
"pages/memberRules/memberRules",
"pages/memberOfOwn/memberOfOwn",
"pages/integralWater/integralWater",
"pages/deliveryService/deliveryService",
"pages/coupons/coupons",
"pages/couponDetail/couponDetail",
"pages/consumptionDetails/consumptionDetails",
"pages/IntegralMall/IntegralMall"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black"
}
}
\ No newline at end of file
/**app.wxss**/
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"autoAudits": false
},
"compileType": "miniprogram",
"libVersion": "2.6.6",
"appid": "wxc3b64b09b1d3dfc2",
"projectname": "7-Eleven",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": 0,
"list": [
{
"id": -1,
"name": "会员中心",
"pathName": "pages/userCenter/userCenter"
}
]
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment