人人商城打包原生APP
商城原生插件安装配置说明
插件下载地址:https://chuxueyun.lanzouw.com/ixGhuxxa5kb
1.插件安装步骤:
- 1.1:将本压缩包的"api_interface"文件夹放到微擎项目的根目录中(注意是微擎项目的根目录,不是人人商场的根目录)。
- 1.2:访问 您的域名加后戳"
/api\_interface/install.php
",插件会自动安装。 - 1.3:即可完成安装步骤。
2.App配置:
温馨提示:以下步骤均使用‘http://***/’代替您自己的域名,请配置时自行替换。
2.1:在初雪云网站(https://www.chuxueyun.com)购买高级版App—打开配置页面
2.2:在基本配置中,修改主页地址:
http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile
2.3:在原生组件-菜单栏中,增加以下按钮:
首页:http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile
商品:http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=shop.category
个人中心:
http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=member
3.在原生页面-首页中配置:
拦截地址:
http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile
接口地址:
http://***/api/home.php?i=1&m=ewei_shopv2&do=home
4.在原生页面-列表中配置:
- 拦截地址:
http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=member
- 接口地址:
http://***/api/goods/goodsClassify.php?i=1&categoryId=3&do=category&count=1
5.在原生页面-个人中心中配置:
拦截地址:
http://***/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=member
接口地址:
http://***/api/center.php?i=1&c=entry&m=ewei_shopv2&do=center
登录链接:
http://*** /api/home.php?i=1&do=login
退出链接:
http:// *** /api/home.php?i=1&do=logout
完成后即可进行生成!
6.涉及的改动文件:
- /api/goods/goodsClassify.php
- /api/center.php
- /api/home.php
- 会生成以下备份版本
- /api/goods/goodsClassify.php_base_
- /api/center.php_base_
- /api/home.php_base_
- 可自行恢复代码