赞
踩
目的:
记录做过的项目,还有一些学到的新知识。
项目背景:
某公司有很多停车场和充电柱。共享汽车也有合作进来充电和停车,想提高缴费和进入场的效率。
项目介绍:
微信公众号H5项目,主要功能提供线上支付(微信 支付宝),无感支付服务,附近停车场定位。其中无感支付,需要在自己开通自动缴费协议。
技术栈:
vue.js +vuex+ fetch + webpack + less: https://cn.vuejs.org/ https://www.jianshu.com/p/35123b048e5e
vuex demo https://github.com/vuejs/vuex/blob/dev/examples/shopping-cart/store/modules/cart.js
作者:Paranoid_K
链接:https://www.jianshu.com/p/6c8e55fc501b 來源:简书
滴滴code-ui :https://didi.github.io/cube-ui/#/zh-CN/docs/style
WeUI 官方 Wiki:https://github.com/weui/weui/wiki
百度地图:http://lbsyun.baidu.com/index.php?title=jspopular
开发工具+代码管理
vscode git
项目学习到的点或者坑或者新鲜的东西
静默授权的 URL scoper=snsapi_base (微信授权不提示 好像是这样)
&state=type%3Dquan%2Curl%3Dhttp%3A%2F%2Fmm.dianping.com%2Fweixin%2Faccount%2Fhome
非静默授权的 URL 样例 scoper=snsapi_userinfo (微信授权不提示 有个确定授权的提示 好像是这样)
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx841a97238d9e17b2&redirect_uri=http://cps.dianping.com/weiXinRedirect&response_type=code&scope=snsapi_userinfo&state=type%3Dquan%2Curl%3Dhttp%3A%2F%2Fmm.dianping.com%2Fweixin%2Faccount%2Fhome
webpack 前后端分离开发接口调试解决方案,proxyTable解决方案
后台知识:
controller 写路由 /api/ save /api/list 等
service 写服务
dao 映射数据 mapper mapper.xml
entry 实体类 数据库字段
application.yml 项目路径,数据库 连接 配置等
为了微信授权,内网穿透技术 https://natapp.cn/article (类似 花生壳一类的东西)
微信公众号项目测试 ,可以申请个微信公众号测试号 ,个人都可以申请,地址:
http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
关于微信支付等 参照官网集成就行。 https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_1
定位服务 百度地图集成:http://lbsyun.baidu.com/index.php?title=jspopular
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。