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

1.新增消息通知页面

parent a2b4b281
......@@ -71,7 +71,7 @@
"style": {
"navigationBarTitleText": "通知公告",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"usingComponents": {
},
......@@ -81,7 +81,34 @@
}
}
],
,{
"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": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "校智付",
......
<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 @@
},
onLoad: function(options) {
console.log(options);
let this_ = this
if (!options.sessionid) {
uni.showModal({
title: "系统提示",
......@@ -41,28 +42,45 @@
})
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: {
// 小程序端查询通知公告
async selectNoticeByOrgId(sessionid, schoolid, operatorId) {
async selectContentById(sessionid, schoolid, operatorId, NoticeId) {
let this_ = this;
try {
await new Promise((resolve, reject) => {
// 二维码加密内容获取token
$.ajax({
url: 'http://192.168.0.54:8092/notice/noticeConfig/selectNoticeByOrgId', //开发者服务器接口地址",
type: "post",
url: gHost +
'/xpaynotice/notice/noticeConfig/selectContentById', //开发者服务器接口地址",
type: "get",
dataType: 'json',
contentType: 'application/json; charset=UTF-8',
cache: false,
data: JSON.stringify({
schoolid,
operatorId,
sessionid
}),
data: {
schoolid: parseInt(schoolid),
operatorId: parseInt(operatorId),
sessionid,
wechattype: 1,
id: NoticeId
},
success: function(res) {
if (res.code == 10000) {
if (res.code == 200) {
this_.NoticeInfo = res.data
resolve(res)
} else {
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