170
社区成员




Course for This Assignment | 2401_MU_SE_FZU |
Team Name | NoFantasy |
Assignment Requirements | Fifth Assignment——Alpha Sprint |
Objectives of This Assignment | Alpha Sprint |
Other References | NO reference |
Aim: Build out a simple framework for a personal homepage interface
Problem: Some of the code is running erratically, but it's not clear why
Front-end: uniapp framework is used to realize the overall architecture, and uni-ui components are used to realize the corresponding interface rendering. The framework structure is shown in the figure below
After adding the bar bottom navigation, the code for creating a personal home page interface is as follows
<view class="mine-container" :style="{height: `${windowHeight}px`}">
<view class="header-section">
<view class="flex padding justify-between">
<view class="flex align-center">
<view v-if="!avatar" class="cu-avatar xl round bg-white">
<view class="iconfont icon-people text-gray icon"></view>
</view>
<image v-if="avatar" @click="handleToAvatar" :src="avatar" class="cu-avatar xl round" mode="widthFix">
</image>
<view v-if="!name" @click="handleToLogin" class="login-tip">
点击登录
</view>
Aim: try to build the login interface built the database
Problem: There is currently a data transfer bug that is being debugged.
Using springboot+mybatis+mysql to realize the overall framework including security security authentication project structure is as follows:
Design the user database structure
CREATE TABLE `sys_user` (
`user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`dept_id` bigint DEFAULT NULL COMMENT '部门ID',
`user_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT '用户账号',
`nick_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT '用户昵称',
`user_type` varchar(2) COLLATE utf8_unicode_ci DEFAULT '00' COMMENT '用户类型(00系统用户)',
`email` varchar(50) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '用户邮箱',
`phonenumber` varchar(11) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '手机号码',
`sex` char(1) COLLATE utf8_unicode_ci DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
`avatar` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT '' COMMENT '头像地址',
`password` varchar(100) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '密码',
`status` char(1) COLLATE utf8_unicode_ci DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
`del_flag` char(1) COLLATE utf8_unicode_ci DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`login_ip` varchar(128) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '最后登录IP',
`login_date` datetime DEFAULT NULL COMMENT '最后登录时间',
`create_by` varchar(64) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '创建者',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '更新者',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '备注',
`open_id` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户信息表'