|
@@ -1,366 +1,373 @@
|
|
|
// pages/nais/nais.js
|
|
|
let app = getApp();
|
|
|
import {
|
|
|
- imgUrl
|
|
|
+ imgUrl
|
|
|
} from "../../api/request"
|
|
|
|
|
|
Page({
|
|
|
|
|
|
- /**
|
|
|
- * 页面的初始数据
|
|
|
- */
|
|
|
- data: {
|
|
|
- // 图片前缀
|
|
|
- imgUrl: imgUrl,
|
|
|
- // 屏幕高度
|
|
|
- navHeight: '',
|
|
|
- // 区政府领导列表
|
|
|
- leaderList: [{
|
|
|
- id: '145044',
|
|
|
- name: '王茂春',
|
|
|
- pic: '图层 1298.png',
|
|
|
- description: '区委副书记,区政府党组书记、区政府区长,重庆经开区党工委副书记(兼)'
|
|
|
- }, {
|
|
|
- id: '341997',
|
|
|
- name: '唐昕',
|
|
|
- pic: '图层 1298.png',
|
|
|
- description: '区委常委,区政府党组副书记、常务副区长'
|
|
|
- }, {
|
|
|
- id: '341998',
|
|
|
- name: '张进',
|
|
|
- pic: '图层 1298.png',
|
|
|
- description: '区委常委,区政府党组成员、副区长'
|
|
|
- }, {
|
|
|
- id: '341999',
|
|
|
- name: '蒋文新',
|
|
|
- pic: '图层 1298.png',
|
|
|
- description: '民盟重庆市南岸区委主委,区政府副区长'
|
|
|
- }],
|
|
|
- // 政府信息公开
|
|
|
- governmentInfoList: [{
|
|
|
- title: '政府信息公开指南',
|
|
|
- pic: 'public-zw1.png'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '政府信息公开制度',
|
|
|
- pic: 'public-zw2.png'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '法定主动公开内容',
|
|
|
- pic: 'public-zw3.png'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '政府信息公开年报',
|
|
|
- pic: 'public-zw4.png'
|
|
|
- }
|
|
|
- ],
|
|
|
- // 基层政务公开
|
|
|
- baseList: [{
|
|
|
- pic: 'publics-base-1.png',
|
|
|
- name: '重项目建设'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-2.png',
|
|
|
- name: '公共资源交易'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-3.png',
|
|
|
- name: '义务教育'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-4.png',
|
|
|
- name: '社会救助'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-5.png',
|
|
|
- name: '养老服务'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-6.png',
|
|
|
- name: '公共法律服务'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-7.png',
|
|
|
- name: '就业创业领域'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-8.png',
|
|
|
- name: '社会保险领域'
|
|
|
- },
|
|
|
- {
|
|
|
- pic: 'publics-base-9.png',
|
|
|
- name: '社会保险领域'
|
|
|
- }
|
|
|
- ],
|
|
|
- // 政策文件tab
|
|
|
- fileTab: 0,
|
|
|
- // 政策文件item
|
|
|
- fileItem: 0,
|
|
|
- // 政策文件列表
|
|
|
- fileList: [],
|
|
|
- // 政策解读
|
|
|
- policyInterpretation: [{
|
|
|
- name: '文字解读'
|
|
|
- }, {
|
|
|
- name: '图片解读'
|
|
|
- }, {
|
|
|
- name: '视频解读'
|
|
|
- }, {
|
|
|
- name: '媒体解读'
|
|
|
- }],
|
|
|
- // 文字解读
|
|
|
- textInterpretationList: [],
|
|
|
- // 图片解读
|
|
|
- pictureInterpretationList: [],
|
|
|
- // 视频解读
|
|
|
- videoInterpretationList: [],
|
|
|
- // 媒体解读
|
|
|
- mediaInterpretationList: [],
|
|
|
- // 政策解读默认项
|
|
|
- currentTab: 0,
|
|
|
- // 政务专题
|
|
|
- topics: ['图层 3269.png', '图层 3270.png', '图层 3269.png']
|
|
|
- },
|
|
|
+ /**
|
|
|
+ * 页面的初始数据
|
|
|
+ */
|
|
|
+ data: {
|
|
|
+ // 图片前缀
|
|
|
+ imgUrl: imgUrl,
|
|
|
+ // 屏幕高度
|
|
|
+ navHeight: '',
|
|
|
+ // 区政府领导列表
|
|
|
+ leaderList: [{
|
|
|
+ id: '145044',
|
|
|
+ name: '王茂春',
|
|
|
+ pic: '图层 1298.png',
|
|
|
+ description: '区委副书记,区政府党组书记、区政府区长,重庆经开区党工委副书记(兼)'
|
|
|
+ }, {
|
|
|
+ id: '341997',
|
|
|
+ name: '唐昕',
|
|
|
+ pic: '图层 1298.png',
|
|
|
+ description: '区委常委,区政府党组副书记、常务副区长'
|
|
|
+ }, {
|
|
|
+ id: '341998',
|
|
|
+ name: '张进',
|
|
|
+ pic: '图层 1298.png',
|
|
|
+ description: '区委常委,区政府党组成员、副区长'
|
|
|
+ }, {
|
|
|
+ id: '341999',
|
|
|
+ name: '蒋文新',
|
|
|
+ pic: '图层 1298.png',
|
|
|
+ description: '民盟重庆市南岸区委主委,区政府副区长'
|
|
|
+ }],
|
|
|
+ // 政府信息公开
|
|
|
+ governmentInfoList: [{
|
|
|
+ title: '政府信息公开指南',
|
|
|
+ pic: 'public-zw1.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '政府信息公开制度',
|
|
|
+ pic: 'public-zw2.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '法定主动公开内容',
|
|
|
+ pic: 'public-zw3.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '政府信息公开年报',
|
|
|
+ pic: 'public-zw4.png'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ // 基层政务公开
|
|
|
+ baseList: [{
|
|
|
+ pic: 'publics-base-1.png',
|
|
|
+ name: '重项目建设'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-2.png',
|
|
|
+ name: '公共资源交易'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-3.png',
|
|
|
+ name: '义务教育'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-4.png',
|
|
|
+ name: '社会救助'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-5.png',
|
|
|
+ name: '养老服务'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-6.png',
|
|
|
+ name: '公共法律服务'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-7.png',
|
|
|
+ name: '就业创业领域'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-8.png',
|
|
|
+ name: '社会保险领域'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pic: 'publics-base-9.png',
|
|
|
+ name: '社会保险领域'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ // 政策文件tab
|
|
|
+ fileTab: 0,
|
|
|
+ // 政策文件item
|
|
|
+ fileItem: 0,
|
|
|
+ // 政策文件列表
|
|
|
+ fileList: [],
|
|
|
+ // 政策解读
|
|
|
+ policyInterpretation: [{
|
|
|
+ name: '文字解读'
|
|
|
+ }, {
|
|
|
+ name: '图片解读'
|
|
|
+ }, {
|
|
|
+ name: '视频解读'
|
|
|
+ }, {
|
|
|
+ name: '媒体解读'
|
|
|
+ }],
|
|
|
+ // 文字解读
|
|
|
+ textInterpretationList: [],
|
|
|
+ // 图片解读
|
|
|
+ pictureInterpretationList: [],
|
|
|
+ // 视频解读
|
|
|
+ videoInterpretationList: [],
|
|
|
+ // 媒体解读
|
|
|
+ mediaInterpretationList: [],
|
|
|
+ // 政策解读默认项
|
|
|
+ currentTab: 0,
|
|
|
+ // 政务专题
|
|
|
+ topics: ['图层 3269.png', '图层 3270.png', '图层 3269.png']
|
|
|
+ },
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面初次渲染完成
|
|
|
- */
|
|
|
- onReady() {
|
|
|
- if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
|
|
- this.getTabBar().setData({
|
|
|
- selected: 1
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- onHide() {
|
|
|
- if (typeof this.getTabBar === 'function' &&
|
|
|
- this.getTabBar()) {
|
|
|
- this.getTabBar().setData({
|
|
|
- selected: -1
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- // 事件处理函数
|
|
|
- onLoad() {
|
|
|
- // 政策文件
|
|
|
- this.getFileListById(161753);
|
|
|
- // 政策解读
|
|
|
- this.getInterpretation();
|
|
|
- this.setData({
|
|
|
- navHeight: app.globalData.navHeight + app.globalData.menuHeight / 2
|
|
|
- })
|
|
|
- },
|
|
|
- // 获取政策文件列表
|
|
|
- getFileListById() {
|
|
|
- var chennelId = 161753
|
|
|
- switch (this.data.fileTab) {
|
|
|
- case 1:
|
|
|
- chennelId = 20442;
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- chennelId = 69336;
|
|
|
- break;
|
|
|
- default:
|
|
|
- chennelId = 161753;
|
|
|
- break;
|
|
|
- }
|
|
|
- // 161753 规范性文件 20442-其他文件 69336-废止和失效文件 161758-废止和失效文件
|
|
|
- wx.request({
|
|
|
- url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=10&channelId=' + chennelId,
|
|
|
- method: 'GET',
|
|
|
- success: res => {
|
|
|
- if (res.data.data.DATA) {
|
|
|
- this.setData({
|
|
|
- fileList: res.data.data.DATA
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 获取政策解读列表
|
|
|
- getInterpretation() {
|
|
|
- // 文字解读
|
|
|
- wx.request({
|
|
|
- url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
|
|
|
- method: 'GET',
|
|
|
- success: res => {
|
|
|
- this.setData({
|
|
|
- textInterpretationList: res.data.data.DATA
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- // 图片解读
|
|
|
- wx.request({
|
|
|
- url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
|
|
|
- method: 'GET',
|
|
|
- success: res => {
|
|
|
- this.setData({
|
|
|
- pictureInterpretationList: res.data.data.DATA
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- // 视频解读
|
|
|
- wx.request({
|
|
|
- url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
|
|
|
- method: 'GET',
|
|
|
- success: res => {
|
|
|
- this.setData({
|
|
|
- videoInterpretationList: res.data.data.DATA
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- // 媒体解读
|
|
|
- wx.request({
|
|
|
- url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
|
|
|
- method: 'GET',
|
|
|
- success: res => {
|
|
|
- this.setData({
|
|
|
- mediaInterpretationList: res.data.data.DATA
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 跳转更多界面
|
|
|
- goToMore() {
|
|
|
- console.log("跳转到详细界面");
|
|
|
- },
|
|
|
- gotoInterpretation() {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/publics/interpretation/interpretation',
|
|
|
- })
|
|
|
- },
|
|
|
- goToGovernment(e) {
|
|
|
- if (e.currentTarget.dataset.index) {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/publics/government/government?index=' + e.currentTarget.dataset.index,
|
|
|
- })
|
|
|
- } else {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/publics/government/government',
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- // 切换政策文件类型
|
|
|
- clickFileTab: function (e) {
|
|
|
- this.setData({
|
|
|
- fileItem: e.currentTarget.dataset.item
|
|
|
- })
|
|
|
- },
|
|
|
- // 滑动政策文件类型
|
|
|
- changeFileTab: function (e) {
|
|
|
- this.setData({
|
|
|
- fileTab: e.detail.current,
|
|
|
- fileList: []
|
|
|
- })
|
|
|
- this.getFileListById(this.data.fileTab)
|
|
|
- },
|
|
|
- // 切换政策解读
|
|
|
- tabNav(e) {
|
|
|
- let currentTab = e.currentTarget.dataset.index
|
|
|
- this.setData({
|
|
|
- currentTab
|
|
|
- })
|
|
|
- },
|
|
|
- // 滑动政策解读
|
|
|
- handleSwiper(e) {
|
|
|
- console.log("1212121");
|
|
|
- let {
|
|
|
- current,
|
|
|
- source
|
|
|
- } = e.detail
|
|
|
- if (source === 'autoplay' || source === 'touch') {
|
|
|
- const currentTab = current
|
|
|
- this.setData({
|
|
|
- currentTab
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
+ /**
|
|
|
+ * 生命周期函数--监听页面初次渲染完成
|
|
|
+ */
|
|
|
+ onReady() {
|
|
|
+ if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
|
|
+ this.getTabBar().setData({
|
|
|
+ selected: 1
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onHide() {
|
|
|
+ if (typeof this.getTabBar === 'function' &&
|
|
|
+ this.getTabBar()) {
|
|
|
+ this.getTabBar().setData({
|
|
|
+ selected: -1
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 事件处理函数
|
|
|
+ onLoad() {
|
|
|
+ // 政策文件
|
|
|
+ this.getFileListById(161753);
|
|
|
+ // 政策解读
|
|
|
+ this.getInterpretation();
|
|
|
+ this.setData({
|
|
|
+ navHeight: app.globalData.navHeight + app.globalData.menuHeight / 2
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取政策文件列表
|
|
|
+ getFileListById() {
|
|
|
+ var chennelId = 161753
|
|
|
+ switch (this.data.fileTab) {
|
|
|
+ case 1:
|
|
|
+ chennelId = 20442;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ chennelId = 69336;
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ chennelId = 161753;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ // 161753 规范性文件 20442-其他文件 69336-废止和失效文件 161758-废止和失效文件
|
|
|
+ wx.request({
|
|
|
+ url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=10&channelId=' + chennelId,
|
|
|
+ method: 'GET',
|
|
|
+ success: res => {
|
|
|
+ if (res.data.data.DATA) {
|
|
|
+ this.setData({
|
|
|
+ fileList: res.data.data.DATA
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取政策解读列表
|
|
|
+ getInterpretation() {
|
|
|
+ let that = this;
|
|
|
+ // 文字解读
|
|
|
+ wx.request({
|
|
|
+ url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
|
|
|
+ method: 'GET',
|
|
|
+ success: res => {
|
|
|
+ this.setData({
|
|
|
+ textInterpretationList: res.data.data.DATA
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 图片解读
|
|
|
+ setTimeout(function () {
|
|
|
+ wx.request({
|
|
|
+ url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=158049',
|
|
|
+ method: 'GET',
|
|
|
+ success: res => {
|
|
|
+ that.setData({
|
|
|
+ pictureInterpretationList: res.data.data.DATA
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 500)
|
|
|
+ // 视频解读
|
|
|
+ setTimeout(function () {
|
|
|
+ wx.request({
|
|
|
+ url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=158049',
|
|
|
+ method: 'GET',
|
|
|
+ success: res => {
|
|
|
+ that.setData({
|
|
|
+ videoInterpretationList: res.data.data.DATA
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 1200)
|
|
|
+ // 媒体解读
|
|
|
+ setTimeout(function () {
|
|
|
+ wx.request({
|
|
|
+ url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
|
|
|
+ method: 'GET',
|
|
|
+ success: res => {
|
|
|
+ that.setData({
|
|
|
+ mediaInterpretationList: res.data.data.DATA
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 1500)
|
|
|
+ },
|
|
|
+ // 跳转更多界面
|
|
|
+ goToMore() {
|
|
|
+ console.log("跳转到详细界面");
|
|
|
+ },
|
|
|
+ gotoInterpretation() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/publics/interpretation/interpretation',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goToGovernment(e) {
|
|
|
+ if (e.currentTarget.dataset.index) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/publics/government/government?index=' + e.currentTarget.dataset.index,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/publics/government/government',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 切换政策文件类型
|
|
|
+ clickFileTab: function (e) {
|
|
|
+ this.setData({
|
|
|
+ fileItem: e.currentTarget.dataset.item
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 滑动政策文件类型
|
|
|
+ changeFileTab: function (e) {
|
|
|
+ this.setData({
|
|
|
+ fileTab: e.detail.current,
|
|
|
+ fileList: []
|
|
|
+ })
|
|
|
+ this.getFileListById(this.data.fileTab)
|
|
|
+ },
|
|
|
+ // 切换政策解读
|
|
|
+ tabNav(e) {
|
|
|
+ let currentTab = e.currentTarget.dataset.index
|
|
|
+ this.setData({
|
|
|
+ currentTab
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 滑动政策解读
|
|
|
+ handleSwiper(e) {
|
|
|
+ console.log("1212121");
|
|
|
+ let {
|
|
|
+ current,
|
|
|
+ source
|
|
|
+ } = e.detail
|
|
|
+ if (source === 'autoplay' || source === 'touch') {
|
|
|
+ const currentTab = current
|
|
|
+ this.setData({
|
|
|
+ currentTab
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面显示
|
|
|
- */
|
|
|
- onShow() {
|
|
|
- if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
|
|
- this.getTabBar().setData({
|
|
|
- selected: 1
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
+ /**
|
|
|
+ * 生命周期函数--监听页面显示
|
|
|
+ */
|
|
|
+ onShow() {
|
|
|
+ if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
|
|
+ this.getTabBar().setData({
|
|
|
+ selected: 1
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面卸载
|
|
|
- */
|
|
|
- onUnload() {
|
|
|
+ /**
|
|
|
+ * 生命周期函数--监听页面卸载
|
|
|
+ */
|
|
|
+ onUnload() {
|
|
|
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- /**
|
|
|
- * 页面相关事件处理函数--监听用户下拉动作
|
|
|
- */
|
|
|
- onPullDownRefresh() {
|
|
|
+ /**
|
|
|
+ * 页面相关事件处理函数--监听用户下拉动作
|
|
|
+ */
|
|
|
+ onPullDownRefresh() {
|
|
|
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- /**
|
|
|
- * 页面上拉触底事件的处理函数
|
|
|
- */
|
|
|
- onReachBottom() {
|
|
|
+ /**
|
|
|
+ * 页面上拉触底事件的处理函数
|
|
|
+ */
|
|
|
+ onReachBottom() {
|
|
|
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- /**
|
|
|
- * 用户点击右上角分享
|
|
|
- */
|
|
|
- onShareAppMessage() {
|
|
|
+ /**
|
|
|
+ * 用户点击右上角分享
|
|
|
+ */
|
|
|
+ onShareAppMessage() {
|
|
|
|
|
|
- },
|
|
|
- gotoZXWDK() {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/ZCWDK/index/index',
|
|
|
- })
|
|
|
- },
|
|
|
- gotoLeaderDetail() {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/publics/publicLeaderDetail/publicLeaderDetail',
|
|
|
- })
|
|
|
- },
|
|
|
- goToBaseAffairs() {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/publics/baseAffairs/baseAffairs',
|
|
|
- })
|
|
|
- },
|
|
|
- goToFileList() {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/publics/fileList/fileList',
|
|
|
- })
|
|
|
- },
|
|
|
- goTOFileDetail(e) {
|
|
|
- var url = e.target.dataset.url
|
|
|
- url = url.substring(0, url.lastIndexOf("/") + 1)
|
|
|
- var docId = 0;
|
|
|
- if (e.target.dataset.item) {
|
|
|
- docId = e.target.dataset.item
|
|
|
- }
|
|
|
- var chennelId = 0;
|
|
|
- switch (this.data.fileTab) {
|
|
|
- case 0:
|
|
|
- chennelId = 161753;
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- chennelId = 20442;
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- chennelId = 69336;
|
|
|
- break;
|
|
|
- default:
|
|
|
- chennelId = 0;
|
|
|
- break;
|
|
|
- }
|
|
|
- if (chennelId != 0 && docId != 0) {
|
|
|
- wx.navigateTo({
|
|
|
- url: `/pages/publics/fileDetail/fileDetail?channelId=${chennelId}&docId=${docId}&url=${url}`
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ gotoZXWDK() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/ZCWDK/index/index',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ gotoLeaderDetail() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/publics/publicLeaderDetail/publicLeaderDetail',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goToBaseAffairs() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/publics/baseAffairs/baseAffairs',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goToFileList() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/publics/fileList/fileList',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goTOFileDetail(e) {
|
|
|
+ var url = e.target.dataset.url
|
|
|
+ url = url.substring(0, url.lastIndexOf("/") + 1)
|
|
|
+ var docId = 0;
|
|
|
+ if (e.target.dataset.item) {
|
|
|
+ docId = e.target.dataset.item
|
|
|
+ }
|
|
|
+ var chennelId = 0;
|
|
|
+ switch (this.data.fileTab) {
|
|
|
+ case 0:
|
|
|
+ chennelId = 161753;
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ chennelId = 20442;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ chennelId = 69336;
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ chennelId = 0;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ if (chennelId != 0 && docId != 0) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/publics/fileDetail/fileDetail?channelId=${chennelId}&docId=${docId}&url=${url}`
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|