安装
bower install wxapp-store-model --save
项目目录结构
├── vender
插件目录
| ├── wxapp-client-sdk
客户端sdk
| | ├── ...
sdk功能包
| ├── wxapp-shop
商城模块
| | ├── assets
页面素材包
| | ├── etc
模块配置文件(请求地址,主题,素材等)
| | ├── pages
模块页面
| | └── utils
功能插件
| └── wyying-assets
小程序公共素材包
├── app.js
小程序入口文件(需要自行添加)
├── app.json
小程序全局配置(配置商城模块页面)
├── app.wxss
小程序全局样式
└── config.js
小程序项目配置文件(配置商城模块功能)
"pages": [
"vendor/wxapp-shop/pages/index/index",
"vendor/wxapp-shop/pages/order/order",
"vendor/wxapp-shop/pages/personal/personal",
"vendor/wxapp-shop/pages/goodsAddr/goodsAddr",
"vendor/wxapp-shop/pages/homecategory/homecategory",
"vendor/wxapp-shop/pages/personal/personal",
"vendor/wxapp-shop/pages/cards/cards",
"vendor/wxapp-shop/pages/orderDetail/orderDetail",
"vendor/wxapp-shop/pages/addShip/addShip",
"vendor/wxapp-shop/pages/deliveryAddress/deliveryAddress",
"vendor/wxapp-shop/pages/shipAddress/shipAddress",
"vendor/wxapp-shop/pages/goodsDetail/goodsDetail",
"vendor/wxapp-shop/pages/createOrder/createOrder",
"vendor/wxapp-shop/pages/category/category",
"vendor/wxapp-shop/pages/cart/cart",
"vendor/wxapp-shop/pages/searchPage/searchPage",
"vendor/wxapp-shop/pages/logistics/logistics",
"vendor/wxapp-shop/pages/rechargeRecord/rechargeRecord",
"vendor/wxapp-shop/pages/recharge/recharge",
"vendor/wxapp-shop/pages/baseinfo/baseinfo",
"vendor/wxapp-client-sdk/pages/noAuth/index", //必选--页面没有授权时的跳转页面
],
var config = {
"service": {
"businessId": "1000000018785",
"apiHost": "https://gt.wxapp.dev.wyying.cn",//请求地址域名
},
shopConfig:{
url: "https://gt.wxapp.dev.wyying.cn",
shopName:'长颈鹿',
//商城名称
theme:{
radioColor:'#F6B041' //风格相关,控制radio,switch样式风格
},
centerBg:"",//个人中心背景
/*首页轮播图*/
swiper:[
{imgUrl:'',toUrl:"../personal/personal",},
{imgUrl:'',toUrl:''},
{imgUrl:'',toUrl:''},
]
},
"version":{
"designerVersion": "0.0.1v",
"publishVersion": "0",
"publishDate": "2017-05-09 21:27:59",
"appId":"wx90455d5f6625bb9f"
},
/*tabBar数据,用于跳转函数做switchTab判断用*/
"tabBar": [
"/pages/c729850ca5234a5883512b2e2802f9c1",
"/vendor/center/index"
]
};