Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
A
az-uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
az-uniapp-wechat-web
Commits
30d4497f
Commit
30d4497f
authored
May 18, 2021
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增消息通知页面
parent
a2b4b281
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
12 deletions
+126
-12
pages.json
pages.json
+29
-2
pages/AccessControlModular/SchoolAttendance/SchoolAttendance.vue
...ccessControlModular/SchoolAttendance/SchoolAttendance.vue
+23
-0
pages/AccessControlModular/StudentAttendance/StudentAttendance.vue
...essControlModular/StudentAttendance/StudentAttendance.vue
+23
-0
pages/AccessControlModular/TeacherAttendance/TeacherAttendance.vue
...essControlModular/TeacherAttendance/TeacherAttendance.vue
+23
-0
pages/NoticeInfo/NoticeInfo.vue
pages/NoticeInfo/NoticeInfo.vue
+28
-10
No files found.
pages.json
View file @
30d4497f
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"通知公告"
,
"navigationBarTitleText"
:
"通知公告"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
"usingComponents"
:
{
"usingComponents"
:
{
},
},
...
@@ -81,7 +81,34 @@
...
@@ -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"
:
{
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"校智付"
,
"navigationBarTitleText"
:
"校智付"
,
...
...
pages/AccessControlModular/SchoolAttendance/SchoolAttendance.vue
0 → 100644
View file @
30d4497f
<
template
>
<view
class=
"container"
>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
SchoolAttendance
"
,
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
pages/AccessControlModular/StudentAttendance/StudentAttendance.vue
0 → 100644
View file @
30d4497f
<
template
>
<view
class=
"container"
>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
StudentAttendance
"
,
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
pages/AccessControlModular/TeacherAttendance/TeacherAttendance.vue
0 → 100644
View file @
30d4497f
<
template
>
<view
class=
"container"
>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
TeacherAttendance
"
,
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
pages/NoticeInfo/NoticeInfo.vue
View file @
30d4497f
...
@@ -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
select
NoticeByOrgId
(
sessionid
,
schoolid
,
operator
Id
)
{
async
select
ContentById
(
sessionid
,
schoolid
,
operatorId
,
Notice
Id
)
{
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment