多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
首先确保你的微擎站点已经开启了https 其次你已经对接好了认证服务号 已认证小程序一个 1.首先我们先去完善小程序的基础信息 2.微信小程序后台 **开发--开发设置** 配置好**服务器域名、业务域名、消息推送** 这里域名配置微擎站点的域名 备注:认证服务号和认证小程序需要是同一主体 [![](https://www.99999699.cn/wp-content/uploads/2019/01/13-2.png)](https://www.99999699.cn/wp-content/uploads/2019/01/13-2.png)[![](https://www.99999699.cn/wp-content/uploads/2019/01/14-2.png)](https://www.99999699.cn/wp-content/uploads/2019/01/14-2.png)[![](https://www.99999699.cn/wp-content/uploads/2019/01/15.png)](https://www.99999699.cn/wp-content/uploads/2019/01/15.png) 上图中的消息推送对接公众号的公众平台通信,如下图 [![](https://www.99999699.cn/wp-content/uploads/2019/01/16.png)](https://www.99999699.cn/wp-content/uploads/2019/01/16.png) 然后我们微擎后台进入已经对接好的公众号,进入人人商城,去配置小程序信息了 [![](https://www.99999699.cn/wp-content/uploads/2019/01/17.png)](https://www.99999699.cn/wp-content/uploads/2019/01/17.png) 接下来我们去对接小程序前端 1.新建个英文命名的文件夹。如ewshop [![](https://www.99999699.cn/wp-content/uploads/2019/01/18.png)](https://www.99999699.cn/wp-content/uploads/2019/01/18.png) 2.开发者工具--新建小程序--选择刚才我们新建的文件夹,选择普通快速启动模板(一定要注意)--确定 [![](https://www.99999699.cn/wp-content/uploads/2019/01/19.png)](https://www.99999699.cn/wp-content/uploads/2019/01/19.png) 然后我们将人人小程序前端文件复制到我们创建小程序的文件夹ewshop替换并覆盖 [![](https://www.99999699.cn/wp-content/uploads/2019/01/20.png)](https://www.99999699.cn/wp-content/uploads/2019/01/20.png)[![](https://www.99999699.cn/wp-content/uploads/2019/01/21-3.png)](https://www.99999699.cn/wp-content/uploads/2019/01/21-3.png) 然后,我们关闭开发者工具,重启下 [![](https://www.99999699.cn/wp-content/uploads/2019/01/22-4.png)](https://www.99999699.cn/wp-content/uploads/2019/01/22-4.png) 不急,我们还没配置自己的信息呢,下面我们在app.js最底部配置自己的信息 [![](https://www.99999699.cn/wp-content/uploads/2019/01/23-3.png)](https://www.99999699.cn/wp-content/uploads/2019/01/23-3.png) 然后crtl+s保存,缓存--清除下缓存--点击 编译 [![](https://www.99999699.cn/wp-content/uploads/2019/01/25-2.png)](https://www.99999699.cn/wp-content/uploads/2019/01/25-2.png)[![](https://www.99999699.cn/wp-content/uploads/2019/01/26-2.png)](https://www.99999699.cn/wp-content/uploads/2019/01/26-2.png) 对接成功 常见问题: 全部分类--不显示分类:去后台重新提交下分类层级 首页没有数据:后台--小程序--自定义商城首页--调用数据 剩下自己多多熟悉了