人人商城小程序消息服务器配置,人人商城小程序前端对接教程

首先确保你的微擎站点已经开启了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)

对接成功

常见问题:

全部分类--不显示分类:去后台重新提交下分类层级

首页没有数据:后台--小程序--自定义商城首页--调用数据

剩下自己多多熟悉了

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值