欢迎各位兄弟 发布技术文章
这里的技术是共享的
1) 从 http://www.laiketui.com/download 跳转到 https://gitee.com/laiketui/open 下载
laiketui-open-master.zip
2) laiketui-open-master.zip 解压后文件目录结构图
3) 在 apache 服务器上 把 上图的 app 目录 作为网站的根目录,进行运行安装(它会自动跳到 install/index.php),此时 下一步,下一步的 进行安装
然后 后台配置 小程序 (这里用的http)
4) 把 miniprogram 导入到 微信开发者工具
然后 在微信小程序上申请测试号
点它 跳到
https://developers.weixin.qq.com/miniprogram/dev/devtools/sandbox.html
然后 点
跳到 https://developers.weixin.qq.com/sandbox
在这个页面上 点 "文档"
新窗口 跳到 https://developers.weixin.qq.com/community/develop/mixflow
扫码登录
再然后 刷新 https://developers.weixin.qq.com/sandbox 就会看到
然后配置一下域名 (这里用的http)
配置
在 来客推的小程序的代码中找到 几个(也许一个吧) utils/util.js 中
把相应的 向外请求的域名改掉 (这里用的http)
// return 'http://localhost/open/app/LKT/index.php?module=api&software_name=3&edition=1.0'
return 'http://test.xxxxxxx.cn/LKT/index.php?module=api&software_name=3&edition=1.0'
再然后在本地 打通道到远程服务器 http://test.xxxxx
通过以上操作似乎就可以使 小程序运行起来了
再然后 给远程服务器 配置 ssl https吧 (似乎真机就可以运行了,就不会报网络异常了)
(相应的 上面三处 的 (这里用的http) 要改成 https吧)
如果真机调试 提示网络异常
下面几个解决办法:
ssl,域名,备案,request合法设置
如果是测试本机的话,我发你一篇文章