1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
| //index.js
| //获取应用实例
| const app = getApp()
| Page({
| data: {
| user: app.globalData.imgUrl +'/image/user.svg',
| ywsqjd: app.globalData.imgUrl +'/image/ywsqjd.svg',
| xxtx: app.globalData.imgUrl +'/image/xxtx.svg',
| cgx: app.globalData.imgUrl +'/image/cgx.svg',
| zdtx: app.globalData.imgUrl +'/image/zdtx.svg',
| logo: app.globalData.imgUrl +'/image/logo.png',
| notRead: ''
| },
| //草稿箱
| drafts: function() {
| wx.navigateTo({
| url: '../drafts/drafts',
| })
| },
| //自动填写个人信息
| personInfo: function() {
| wx.navigateTo({
| url: '../personInfo/personInfo?url='+['../me/me'],
| })
| },
| //业务申请进度
| businessSchedule: function () {
| wx.navigateTo({
| url: '../businessSchedule/businessSchedule',
| })
| },
| msg: function() {
| wx.navigateTo({
| url: '../messageNotification/messageNotification',
| })
| },
|
| onLoad: function() {
| this.notification();
| },
|
| onShow: function() {
| this.notification();
| },
|
| notification: function() {
| var userinfo = wx.getStorageSync("user");
| var that = this;
| wx.request({
| url: app.globalData.url + '/api/businessAggr/unreadCount?createId=' + userinfo.id,
| success: function (res) {
| if (res.data.code == 0) {
| that.setData({
| notRead: res.data.data
| })
| } else {
| wx.showModal({
| title: '提示',
| content: "提交失败!"
| })
| }
| }
| })
| }
|
| })
|
|