转自:https://idig8.com/2018/08/09/xiaochengxu-chuji-08/ 小程序如何加载的呢?生命周期!源码:https://github.com/limingios/wxProgram.git 中的No.3 加载页面 小程序默认加载的pages中的第一个目录 不管你的名称,只管你的顺序 其他目录需要通过触发才能加载 生命周期 相关的框架的时候都有生命周期的概念,通过了解生命周期更好的把控框架的使用! onLaunch 第一次打开小程序的初始化,也被调用一次.…
转自:https://idig8.com/2018/09/08/xiaochengxujavashizhanxiaochengxutouxiangtupianshangchuan40/ 在微信小程序中,有很多的场景是用来上传图片的,有的图片是拍摄获得,有的直接选择手机端的相册.源码:https://github.com/limingios/wxProgram.git 中No.15 官方组件的介绍 图片选择API 官方网站:https://developers.weixin.qq.com/mini…
转自:https://idig8.com/2018/09/09/xiaochengxujavashizhanxiaochengxutouxiangtupianshangchuan43/ 用户可以上传了和用户的face更新到数据库,接下来我们需要对图片进行展示,tomcat本身就提供了虚拟目录的概念,直接把某个路径的图片映射到web服务器作为资源路径.其实在springboot可以通过代码的方式来进行映射.源码:https://github.com/limingios/wxProgram.git…
转自:https://idig8.com/2018/09/05/xiaochengxujavashizhanxiaochengxuwodegerenxinxiyemiankaifa40/ 已经完成了登录和注册页面已经开发完毕,当用户注册和登录完毕后,让用户登录到我们的个人信息页面,就是我的页面.源码:https://github.com/limingios/wxProgram.git 中No.15 我的页面的功能 当其他人查看我的信息,可以看到关注我,粉丝数量,关注数量,获赞数量. 当用户自己点…
转自:https://idig8.com/2018/08/19/xiaochengxujavashizhanxiaochengxuduomeitizujian27/ 来说下 ,小程序的多媒体组件.源码:https://github.com/limingios/wxProgram.git 中的No.14 媒体组件 audio 可以在小程序嵌入一些音乐,歌曲,mp3什么的 image 任何小程序中必然会使用图片组件 * video 视频组件,主要视频播放类的 camera 摄像头组件,新版才提供的…
转自:https://idig8.com/2018/08/18/xiaochengxujavashizhanxiaochengxudebiaodanzujian25/ 来说下 ,小程序的基础组件.源码:https://github.com/limingios/wxProgram.git 中的No.12 表单组件 button checkbox/label form input picker picker-view radio slider button的使用 官方介绍>https://devel…
转自:https://idig8.com/2018/08/09/xiaochengxu-chuji-10/ 之前讲了小程序全局的生命周期,今天咱们说说单个页面的生命周期!源码:https://github.com/limingios/wxProgram.git 中的No.5 Page页面的生命周期 官方介绍 https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/page.html 运行小程序查看生命周期 //…
转自:https://idig8.com/2018/09/06/xiaochengxujavashizhanxiaochengxuwodegerenxinxi-zhuxiaogongneng40/ 注销的功能,直接写在springboot的controller里面就可以了,通过删除redis的方式来完成用户的注销功能.源码:https://github.com/limingios/wxProgram.git 中No.15 后端代码 后端代码通过用户user的Id,删除redis的方式来完成.编写…
转自:https://idig8.com/2018/09/24/xiaochengxujavashizhanxiaochengxudegerenxinxizuopinshoucangguanzhu65/ 个人信息页面有一个tab(作品,收藏,关注)源码:https://github.com/limingios/wxProgram.git 中No.15和springboot 作品,收藏,关注的列表 VideoController.java package com.idig8.controller;…
转自:https://idig8.com/2018/09/24/xiaochengxujavashizhanxiaochengxudeguanzhugongneng64/ 在个人页面,根据发布者个人和个人的信息来进行展示,如果是发布者,可以进行关注和取消关注. 后端开发 涉及2涨表,一个关联表,个人和粉丝的关联表,用户表. UsersMapper.java package com.idig8.mapper; import com.idig8.pojo.Users; import com.idig…