Commit 30d4497f authored by 李智书's avatar 李智书

1.新增消息通知页面

parent a2b4b281
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"style": { "style": {
"navigationBarTitleText": "通知公告", "navigationBarTitleText": "通知公告",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom",
"usingComponents": { "usingComponents": {
}, },
...@@ -80,6 +80,33 @@ ...@@ -80,6 +80,33 @@
} }
} }
}
,{
"path" : "pages/AccessControlModular/SchoolAttendance/SchoolAttendance",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/AccessControlModular/StudentAttendance/StudentAttendance",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/AccessControlModular/TeacherAttendance/TeacherAttendance",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
} }
], ],
"globalStyle": { "globalStyle": {
......
<template>
<view class="container">
</view>
</template>
<script>
export default {
name: "SchoolAttendance",
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<view class="container">
</view>
</template>
<script>
export default {
name: "StudentAttendance",
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<view class="container">
</view>
</template>
<script>
export default {
name: "TeacherAttendance",
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
}, },
onLoad: function(options) { onLoad: function(options) {
console.log(options); console.log(options);
let this_ = this
if (!options.sessionid) { if (!options.sessionid) {
uni.showModal({ uni.showModal({
title: "系统提示", title: "系统提示",
...@@ -41,28 +42,45 @@ ...@@ -41,28 +42,45 @@
}) })
return return
} }
this.selectNoticeByOrgId(options.sessionid, options.schoolid, options.operatorId) // uni.showModal({
// title: "系统提示",
// showCancel: false,
// content: JSON.stringify(options),
// success: function() {
// },
// })
if (options.NoticeTitle) {
uni.setNavigationBarTitle({
title: options.NoticeTitle
})
}
this_.selectContentById(options.sessionid, options.schoolid, options.operatorId,
options.NoticeId)
}, },
methods: { methods: {
// 小程序端查询通知公告 // 小程序端查询通知公告
async selectNoticeByOrgId(sessionid, schoolid, operatorId) { async selectContentById(sessionid, schoolid, operatorId, NoticeId) {
let this_ = this; let this_ = this;
try { try {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
// 二维码加密内容获取token // 二维码加密内容获取token
$.ajax({ $.ajax({
url: 'http://192.168.0.54:8092/notice/noticeConfig/selectNoticeByOrgId', //开发者服务器接口地址", url: gHost +
type: "post", '/xpaynotice/notice/noticeConfig/selectContentById', //开发者服务器接口地址",
type: "get",
dataType: 'json', dataType: 'json',
contentType: 'application/json; charset=UTF-8', contentType: 'application/json; charset=UTF-8',
cache: false, cache: false,
data: JSON.stringify({ data: {
schoolid, schoolid: parseInt(schoolid),
operatorId, operatorId: parseInt(operatorId),
sessionid sessionid,
}), wechattype: 1,
id: NoticeId
},
success: function(res) { success: function(res) {
if (res.code == 10000) { if (res.code == 200) {
this_.NoticeInfo = res.data
resolve(res) resolve(res)
} else { } else {
reject(res) reject(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment