时间:2019-04-30 来源:小程序工厂
ext.json文件中的extAppid要填微信小程序的appid。
ext.json
{
"extAppid": "wx7be48fd3337a5e4c",
"extEnable": true,
"directCommit": false,
"window": {
"navigationBarTitleText": "壹佰智慧店铺",
"navigationBarBackgroundColor": "#df2f20",
"navigationBarTextStyle": "white"
},
"ext": {
"app_key": "ECDJDSWSUI",
"app_name": "壹佰智慧店铺",
"navigationBarBackgroundColor": "#df2f20",
"navigationBarTextStyle": "white",
"selectedColor": "#df2f20"
},
"tabBar": {
"color": "#808080",
"selectedColor": "#df2f20",
"backgroundColor": "#ffffff",
"list": [
{
"type": "index",
"param": "",
"pagePath": "pages\/index\/index",
"text": "首页",
"iconPath": "static\/icon\/gray_home.png",
"selectedIconPath": "static\/icon\/red_home.png"
},
{
"type": "product",
"param": "",
"pagePath": "pages\/caregory\/index",
"text": "产品",
"iconPath": "static\/icon\/gray_cate.png",
"selectedIconPath": "static\/icon\/red_cate.png"
},
{
"type": "cart",
"param": "",
"pagePath": "pages\/member\/cart\/index",
"text": "购物车",
"iconPath": "static\/icon\/gray_cart.png",
"selectedIconPath": "static\/icon\/red_cart.png"
},
{
"type": "article",
"param": "",
"pagePath": "pages\/find\/index",
"text": "资讯",
"iconPath": "static\/icon\/gray_find.png",
"selectedIconPath": "static\/icon\/red_find.png"
},
{
"type": "article_info",
"param": "",
"pagePath": "pages\/member\/index\/index",
"text": "我的",
"iconPath": "static\/icon\/gray_people.png",
"selectedIconPath": "static\/icon\/red_people.png"
}
]
}
}
project.config.json
{
"description": "项目配置文件。",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true
},
"compileType": "miniprogram",
"libVersion": "1.9.98",
"appid": "wx18f6881ad4cc182c",
"projectname": "%E5%95%86%E5%9F%8E%E6%A8%A1%E6%9C%AC",
"isGameTourist": false,
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": [
{
"id": -1,
"name": "pages/member/favorite/index",
"pathName": "pages/member/favorite/index",
"query": "uid=1"
}
]
}
}
}
你好,截图看下 project.config.json,ext.json 和详情页?