提交数据库脚本

main
YangT-ao 2 years ago
parent 83f456e4a4
commit 7dbd37eb6e

@ -0,0 +1,42 @@
/*
Navicat Premium Data Transfer
Source Server : mysql
Source Server Type : MySQL
Source Server Version : 80031
Source Host : localhost:3306
Source Schema : digital_culture_heritage
Target Server Type : MySQL
Target Server Version : 80031
File Encoding : 65001
Date: 01/11/2023 08:37:04
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(0) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户的登录账号,唯一',
`name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户的姓名',
`password` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户的登录密码',
`workUnit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户的工作单位',
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户的电子邮箱',
`phone` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户的手机号码',
`avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户的头像url',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `unique_user_u`(`username`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 77 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, '张三', '过往烟云', 'e10adc3949ba59abbe56e057f20f883e', '湖南师范大学', '123456765@qq.com', '13135475865', '');
SET FOREIGN_KEY_CHECKS = 1;

@ -47,10 +47,11 @@ export default {
{ icon: 'nav-tab-item_icon iconfont icon-home', label: '首页', path: '/home'},
{ icon: 'nav-tab-item_icon iconfont icon-send-fill', label: '虚拟体验', path: '/experience'},
{ icon: 'nav-tab-item_icon iconfont icon-shujuxianshi', label: '线下活动', path: '/big-screen'},
{ icon: 'nav-tab-item_icon iconfont icon-zhinengtuijian', label: '论坛', path: '/recommend'},
{ icon: 'nav-tab-item_icon iconfont icon-zhinengtuijian', label: '论坛', path: '/forum'},
/*{ icon: 'nav-tab-item_icon iconfont icon-project_info', label: '', path: '/background'},
{ icon: 'nav-tab-item_icon iconfont icon-rencaishuangxuanhui', label: '团队介绍', path: '/team'},
{ icon: 'nav-tab-item_icon iconfont icon-a-commandinquiry-fill', label: '常见问题', path: '/question'},*/
{ icon: 'nav-tab-item_icon iconfont icon-user', label: '个人中心', path: '/personal'},
],
// activeIndex: Number(sessionStorage.getItem("activeIndex")),

@ -10,6 +10,7 @@ import UserRegister from "@/views/user/UserRegister";
import UserLogin from "@/views/user/UserLogin";
import UserIndex from "../views/index"
import VirtualExperience from "@/views/user/VirtualExperience";
import Forum from "@/views/user/Forum.vue";
// 启用路由
Vue.use(Router);
@ -70,6 +71,14 @@ const router = new Router({
requireAuth: false
}
},
{
path: "/forum",
name: "论坛",
component: Forum,
meta: {
requireAuth: false
}
}
]
}
]

@ -4,7 +4,7 @@
<div v-for="o in 4" :key="o" class="text item">
<el-card class="box-card2">
<div style="float:left;width:20%">
<img src="../assets/logo.png" style="height:200px;width: 200px;"/>
<img src="" style="height:200px;width: 200px;"/>
</div>
<div style="width: 78%;float: right;">
<h2 style="margin-bottom: 10px;">湖南非遗论坛</h2>
@ -26,7 +26,7 @@
background
layout="prev, pager, next"
:total="1000">
</el-pagination>
</el-pagination>
</el-card>
</div>
</template>

Loading…
Cancel
Save