My magnificent Nuxt.js project
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generate
For detailed explanation on how things work, check out Nuxt.js docs.
(1) 使用 http://192.168.0.101:8000/captcha 来初始化 图片验证码 ,这个时候,有个图片验证码
(2) 用户 输完手机号,要发送验证码 http://{{host}}:{{port}}/auth/code?id=vqhjbH1XACP6igtj9GM0&digits=406827
这个id 就是 图片验证码的id 表单形式
需要再传入 一个手机号码
(4) 登录 JSON 登录的时候,参数为 手机号 和手机 验证码
(5) getUserInfo jwtToken放请求头里面 HEAD
// test(bottle,wine, gai){ // if ((bottle + wine) >=3 || gai >=4) { // console.log(bottle%3, parseInt(bottle/3),test(wine+ bottle%3, parseInt(bottle/3)) ) // return wine + test(wine+ bottle%3, parseInt(bottle/3)+ parseInt(gai/4), wine+bottle%4 ) // } else { // return wine; // }
// },
2 个问题
(1) 回退时候中英文问题