2019年3月24日

摘要: (1)AppBar:automaticallyImplyLeading//是否带返回leading箭头 (2)非route路由页面跳转 :Navigator.of(context).push(MaterialPageRoute(builder: (context) => UnderPage())), 阅读全文
posted @ 2019-03-24 11:10 kobe 阅读(74) 评论(0) 推荐(0) 编辑

2019年3月5日

摘要: Mark一下:string sql = "SELECT * FROM SomeTable WHERE id IN @ids" var results = conn.Query(sql, new { ids = new[] { 1, 2, 3, 4, 5 }}); 阅读全文
posted @ 2019-03-05 08:26 kobe 阅读(81) 评论(0) 推荐(0) 编辑

2019年1月25日

摘要: (1)搜索 https://pub.dartlang.org/packages/jpush_flutter ,安装插件,并且按照官方配置 /android/app/build.gradle (2)Flutter 新建页面,我放在Welcome页面 class SplashPageState exte 阅读全文
posted @ 2019-01-25 09:36 kobe 阅读(1019) 评论(0) 推荐(0) 编辑

2018年12月12日

摘要: npm install weixin-js-sdk --save 这个不行,这个是vue前端用的 网上找了一些vue jsweixin的案例 不能直接用 因为nuxt是后端运行,windows对象取不到,通过查找到了一个可用的案例 就是把js注入到前端 其中jssdkInfo和要分享的appid,n 阅读全文
posted @ 2018-12-12 09:22 kobe 阅读(1026) 评论(1) 推荐(0) 编辑
摘要: 1.安装pm2 npm install pm2 -gd 2.启动 Pm2 start ./bin/www 3. pm2 save 4.Pm2 startup 5.Pm2 save修改 package.json "scripts": { "build": "nuxt build && npm star 阅读全文
posted @ 2018-12-12 09:08 kobe 阅读(4111) 评论(0) 推荐(0) 编辑
摘要: 已经购买centos服务器,并安装了nodejs环境 Secure CRT链接 Cd / Cd /var/www Mkdir test.abc.cn 用ftp 除了node_modules,其他都上传 然后 cnpm install 为了防止冲突,修改nuxt的端口,修改 /package.json 阅读全文
posted @ 2018-12-12 09:05 kobe 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 用store把api数据交互部分重构出来,让前端更轻一点 新建 /store/gettter.js /store/actions.js /server/config/index.js Index.js: export default { app:{ domain:'', host:'localhos 阅读全文
posted @ 2018-12-12 09:03 kobe 阅读(339) 评论(0) 推荐(0) 编辑

2018年11月30日

摘要: 1.新建/pages/login.vue 2.安装cookie 3.Login.vue增加 4.Npm run dev刷新,cookie写入成功 5.为了统一鉴权,需要用到middleware,新建/middleware/userauth.js,如果需要了解middleware更多可以先从vue,e 阅读全文
posted @ 2018-11-30 15:11 kobe 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 这时候我们完成了list.vue,但是怎么返回index.vue,这时候需要这个头部返回 1.我们使用现成的minu-ui,eleme的开源移动端 ,参考 https://www.cnblogs.com/hai-cheng/p/8760887.html 2.修改nuxt.config.js plug 阅读全文
posted @ 2018-11-30 15:05 kobe 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 面是单页,下面实现一个列表页和分页加载的例子 1.新建pages/list.vue <template> <div> 分页加载列表页面 </div> </template> <script> export default { } </script> 2.我们从footer的首页改成更多,然后从foo 阅读全文
posted @ 2018-11-30 14:59 kobe 阅读(1266) 评论(0) 推荐(0) 编辑

导航