+
+
@@ -116,16 +119,23 @@
})
},
methods: {
+ goBack() {
+ this.$router.back(-1)
+ },
messages() {
this.$prompt('请输入留言', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
- inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
- inputErrorMessage: '邮箱格式不正确'
+ inputValidator: (value) => {
+ if(!value) {
+ return '输入不能为空';
+ }
+ },
+ inputErrorMessage: '不能为空'
}).then(({ value }) => {
let day2 = new Date();
day2.setTime(day2.getTime());
- let date = day2.getFullYear()+"-" + (day2.getMonth()+1) + "-" + day2.getDate()+" "+day2.getHours()+"-"+day2.getMinutes()
+ let date = day2.getFullYear()+"-" + (day2.getMonth()+1) + "-" + day2.getDate()+" "+day2.getHours()+":"+day2.getMinutes()
this.$ajax.post("/hs/addMessage",{noticeId:sessionStorage.getItem("noticeId"),content:value,
createTime:date,userId:JSON.parse(sessionStorage.getItem("userInfo")).user_id},r=>{
if (r == "1") {
@@ -135,7 +145,12 @@
});
this.$ajax.post("/hs/getOneContent", {
id: sessionStorage.getItem("noticeId")
- }, r => {this.message = r.message;})
+ }, r => {
+ this.message = r.message;
+ for (let i = 0; i < this.message.length; i++) {
+ this.message[i].header_photo = this.message[i].real_name.substring(0, 1)
+ }
+ })
}
})
}).catch(() => {
@@ -164,6 +179,9 @@
}
diff --git a/HSLink-front/src/components/ParentsProposal.vue b/HSLink-front/src/components/ParentsProposal.vue
index 1d1cc9e..6cf1582 100644
--- a/HSLink-front/src/components/ParentsProposal.vue
+++ b/HSLink-front/src/components/ParentsProposal.vue
@@ -1,19 +1,132 @@
-
- 家长意见
-
+
+
+
+
+ 搜索
+
+
+
家长建议
+
+
[{{item.label}}]
+
{{item.title}}
+
{{item.real_name}}
+
{{item.release_time}}
+
+
共{{length}}条数据
+
+
+
+
+
+
diff --git a/HSLink-front/src/components/PersonalInfo.vue b/HSLink-front/src/components/PersonalInfo.vue
new file mode 100644
index 0000000..705b702
--- /dev/null
+++ b/HSLink-front/src/components/PersonalInfo.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+ [{{item.label}}]
+
+
{{item.title}}
+
+
{{item.release_time}}
+
+
共{{length}}条数据
+
+
+
+
+
+
+
+
+
+
{{all.real_name}}
+
TA的个人主页 >
+
+
+
+
+ 积分:
+ {{all.integral}}
+
+
+
+
+
+ 关 注
+ 私 信
+
+
+ 新增文章
+ 修改密码
+
+
+
+
+
+
+
+
+
+
diff --git a/HSLink-front/src/components/SchoolNotice.vue b/HSLink-front/src/components/SchoolNotice.vue
index 4faede6..e76199d 100644
--- a/HSLink-front/src/components/SchoolNotice.vue
+++ b/HSLink-front/src/components/SchoolNotice.vue
@@ -1,40 +1,162 @@
-
- 搜索
+
+ 搜索
-
- {{ data.day.split('-').slice(1).join('-') }} {{ data.isSelected ? '✔️' : ''}}
-
+ {{ data.day.split('-').slice(1).join('-') }}
+
+
+
+
+
+
+
[{{item.label}}]
+
{{item.title}}
+
{{item.real_name}}
+
{{item.release_time}}
+
+
共{{length}}条数据
+
+
+
-
diff --git a/HSLink-front/src/components/StudentThought.vue b/HSLink-front/src/components/StudentThought.vue
index 3e7872d..1ba0737 100644
--- a/HSLink-front/src/components/StudentThought.vue
+++ b/HSLink-front/src/components/StudentThought.vue
@@ -1,17 +1,132 @@
-
- 学生想法
-
+
+
+
+
+ 搜索
+
+
+
学生想法
+
+
[{{item.label}}]
+
{{item.title}}
+
{{item.real_name}}
+
{{item.release_time}}
+
+
共{{length}}条数据
+
+
+
+
+
+
+
diff --git a/HSLink-front/src/components/components/Mdeditor.vue b/HSLink-front/src/components/components/Mdeditor.vue
index 8a019e0..2923652 100644
--- a/HSLink-front/src/components/components/Mdeditor.vue
+++ b/HSLink-front/src/components/components/Mdeditor.vue
@@ -43,7 +43,7 @@
import Vue from 'vue'
import marked from 'marked'
import scroll from 'vue-scroll'
- import hljs from '../../assets/js/highlight.min.js'
+ // import ranges from '../../assets/js/highlight.min.js'
import range from '../../assets/js/rangeFn.js'
Vue.use(scroll)
marked.setOptions({
@@ -55,9 +55,9 @@
sanitize: false,
smartLists: true,
smartypants: false,
- highlight: function(code) {
- return hljs.highlightAuto(code).value
- }
+ /*highlight: function(code) {
+ return ranges.highlightAuto(code).value
+ }*/
});
function insertContent(val, that) {
diff --git a/HSLink-front/src/router/index.js b/HSLink-front/src/router/index.js
index 0d4c1b4..b437454 100644
--- a/HSLink-front/src/router/index.js
+++ b/HSLink-front/src/router/index.js
@@ -49,7 +49,17 @@ export default new Router({
path:'content',
name:'content',
component:() => import('@/components/Content')
- }
+ },
+ {
+ path:'search',
+ name:'search',
+ component:() => import('@/components/Search')
+ },
+ {
+ path:'personalinfo',
+ name:'personalinfo',
+ component:() => import('@/components/PersonalInfo')
+ },
]
}