APP.js
App({
globalData: {
// 用户信息
userInfo: null,
host:'http://116.62.201.243:8080/wxxcx/',
flag:false,//判断购物车是否为空
goodsList:null,//商品列表
}
})
app.json
{
"pages": [
"pages/login/login",
"pages/shopping/shopping",
"pages/order/order",
"pages/account/account",
"pages/account_consume/account_consume",
"pages/account_recharge/account_recharge",
"pages/detail/detail",
"pages/pageorder/pageorder",
"pages/addresslist_address/addresslist_address",
"pages/account_address/account_address",
"pages/accountConsume/accountConsume",
"pages/addresslistEditor/addresslistEditor",
"pages/appointment/appointment",
"pages/accountRecharge/accountRecharge"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "O2O客户端",
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#000000",
"selectedColor": "#7B68EE",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/shopping/shopping",
"text": "商店",
"iconPath": "/images/shangcheng.png",
"selectedIconPath": "/images/shangcheng1.png"
},
{
"pagePath": "pages/appointment/appointment",
"text": "预约",
"iconPath": "images/yuyue.png",
"selectedIconPath": "images/yuyue1.png"
},
{
"pagePath": "pages/order/order",
"text": "订单",
"iconPath": "images/weibiaoti--.png",
"selectedIconPath": "images/weibiaoti--1.png"
},
{
"pagePath": "pages/account/account",
"text": "账户",
"iconPath": "images/zhanghu.png",
"selectedIconPath": "images/zhanghu1.png"
}
]
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
app.wxss
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
.mybutton{
width: 120rpx;
height: 60rpx;
background-color: #7E7FEE;
color: white;
font-size: 28rpx;
border-radius: 16rpx;
text-align: center;
line-height: 60rpx;
}
.hover{
background-color: #5380EE;
}
.bottombox .hover1{
background-color: #DCDCDC;
}
.bottombox .hover2{
background-color: #DC143C;
}
project.config.json
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"enhance": false,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": false,
"useApiHook": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": []
},
"compileType": "miniprogram",
"libVersion": "2.13.0",
"appid": "wxc47bd49b58be3198",
"projectname": "O2OClient",
"cloudfunctionTemplateRoot": "",
"watchOptions": {
"ignore": []
},
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"gamePlugin": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": [
{
"id": -1,
"name": "pages/appointment/appointment",
"pathName": "pages/appointment/appointment",
"scene": null
}
]
}
}
}