index.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. // index.js
  2. import {
  3. login
  4. } from "../api/user-api";
  5. import {
  6. imgUrl,
  7. request
  8. } from "../api/request"
  9. import {
  10. yjzjList
  11. } from "../api/index-api"
  12. import * as echarts from '../../ec-canvas/echarts';
  13. // 获取应用实例
  14. const app = getApp()
  15. Page({
  16. data: {
  17. imgUrl: imgUrl,
  18. // 屏幕高度
  19. navHeight: '',
  20. searchInput: '',
  21. // 南岸咨询
  22. naTab: 0,
  23. naItem: '',
  24. // 政民tab
  25. communicateTab: 0,
  26. // 政民item
  27. communicateItem: 0,
  28. // 服务列表
  29. serviceItems1: [{
  30. img: imgUrl + 'service-1.png',
  31. name: '生活缴费'
  32. },
  33. {
  34. img: imgUrl + 'service-2.png',
  35. name: '社保服务'
  36. },
  37. {
  38. img: imgUrl + 'service-3.png',
  39. name: '公积金'
  40. },
  41. {
  42. img: imgUrl + 'service-4.png',
  43. name: '电子证照'
  44. },
  45. {
  46. img: imgUrl + 'service-5.png',
  47. name: '民政低保'
  48. }
  49. ],
  50. serviceItems2: [{
  51. img: imgUrl + 'service-6.png',
  52. name: '税务服务'
  53. },
  54. {
  55. img: imgUrl + 'service-7.png',
  56. name: '交通出行'
  57. },
  58. {
  59. img: imgUrl + 'service-8.png',
  60. name: '核酸采样点'
  61. },
  62. {
  63. img: imgUrl + 'service-9.png',
  64. name: '住房置业'
  65. },
  66. // {
  67. // img: imgUrl + 'service-10.png',
  68. // name: '更多功能'
  69. // }
  70. ],
  71. // 百姓聚焦
  72. peopleService: [{
  73. top: true,
  74. name: '12345热线'
  75. },
  76. {
  77. top: false,
  78. name: '个人社保查询'
  79. },
  80. {
  81. top: false,
  82. name: '南岸文旅消费劵'
  83. },
  84. {
  85. top: false,
  86. name: '长喜汇弹子石老街'
  87. },
  88. {
  89. top: false,
  90. name: '南山一棵松'
  91. },
  92. {
  93. top: false,
  94. name: '一次性创业补助'
  95. }
  96. ],
  97. // 南岸咨询二级title
  98. naItemTabList: [{
  99. id: 1,
  100. name: '政策.咨询'
  101. },
  102. {
  103. id: 2,
  104. name: '党建.服务'
  105. },
  106. {
  107. id: 3,
  108. name: '抗疫.复工'
  109. },
  110. {
  111. id: 4,
  112. name: '功能.服务'
  113. }
  114. ],
  115. // 南岸咨询内容
  116. naContentList: [{
  117. id: 1,
  118. name: '洪斌在全区疫情防控工作会议上强调,坚持不松懈的精神,努力工作,开展创先争优活动,激励人民发扬美好传统美德!'
  119. },
  120. {
  121. id: 2,
  122. name: '​坚持不松劲渝事好商量'
  123. },
  124. {
  125. id: 3,
  126. name: '南岸实践工作全面启动'
  127. },
  128. {
  129. id: 4,
  130. name: '首条直达南滨路人防隧道开建'
  131. },
  132. {
  133. id: 5,
  134. name: '全市首个!南岸区便民数字地图上线啦~'
  135. }
  136. ],
  137. // 本年办件数
  138. officeNumber: [],
  139. // 评价总量
  140. evalutionNum: 0,
  141. // 满意度
  142. evalutionRate: '',
  143. // 图表
  144. streetlinechartec: {
  145. lazyLoad: true,
  146. },
  147. // 图表图片
  148. canvasImg: '',
  149. videoInfo: [{
  150. url: 'video1.png',
  151. title: '南岸百企风采'
  152. }, {
  153. url: 'video2.png',
  154. title: '“不夜南滨”集乐无'
  155. }, {
  156. url: 'video3.png',
  157. title: '2022爱尚重庆'
  158. },
  159. {
  160. url: 'video1.png',
  161. title: '南岸百企风采'
  162. }
  163. ],
  164. // 意见征集list
  165. yjzjDataList: [],
  166. // 地图服务
  167. mapServiceData: [{
  168. id: 1,
  169. name: '政务公开'
  170. },
  171. {
  172. id: 2,
  173. name: '政务服务'
  174. },
  175. {
  176. id: 3,
  177. name: '党群服务'
  178. },
  179. {
  180. id: 4,
  181. name: '核酸检测'
  182. },
  183. {
  184. id: 5,
  185. name: '教育资源'
  186. },
  187. {
  188. id: 6,
  189. name: '医疗卫生'
  190. },
  191. {
  192. id: 7,
  193. name: '户籍管理'
  194. },
  195. {
  196. id: 8,
  197. name: '交通服务'
  198. },
  199. ],
  200. // 媒体矩阵导航
  201. mediaCurrentTab: 0,
  202. // 媒体矩阵导航列表
  203. provList: [{
  204. "name": "南岸发布"
  205. },
  206. {
  207. "name": "微信公众号"
  208. },
  209. // {
  210. // "name": "新浪微博矩阵"
  211. // },
  212. {
  213. "name": "今日头条"
  214. }
  215. ],
  216. // 媒体矩阵内容选项
  217. mediaSelectList: [{
  218. id: '1',
  219. name: "重庆市南岸区人民政府",
  220. img: imgUrl + 'index-media-icon1.png'
  221. },
  222. {
  223. id: '2',
  224. name: "南岸文旅",
  225. img: imgUrl + 'index-media-icon2.png'
  226. },
  227. {
  228. id: '3',
  229. name: "南岸发布",
  230. img: imgUrl + 'index-media-icon3.png'
  231. },
  232. {
  233. id: '4',
  234. name: "南岸国资",
  235. img: imgUrl + 'index-media-icon4.png'
  236. },
  237. {
  238. id: '5',
  239. name: "重庆南岸消防",
  240. img: imgUrl + 'index-media-icon5.png'
  241. },
  242. {
  243. id: '6',
  244. name: "南岸生态环境",
  245. img: imgUrl + 'index-media-icon6.png'
  246. },
  247. {
  248. id: '7',
  249. name: "南岸健康卫士",
  250. img: imgUrl + 'index-media-icon7.png'
  251. },
  252. {
  253. id: '8',
  254. name: "南岸公安",
  255. img: imgUrl + 'index-media-icon8.png'
  256. },
  257. {
  258. id: '9',
  259. name: "遇见南坪",
  260. img: imgUrl + 'index-media-icon9.png'
  261. },
  262. {
  263. id: '10',
  264. name: "书香南岸",
  265. img: imgUrl + 'index-media-icon10.png'
  266. },
  267. {
  268. id: '11',
  269. name: "南岸卫生健康监督",
  270. img: imgUrl + 'index-media-icon11.png'
  271. },
  272. {
  273. id: '12',
  274. name: "南岸司法",
  275. img: imgUrl + 'index-media-icon12.png'
  276. },
  277. {
  278. id: '13',
  279. name: "广阳岛绿色发展公司",
  280. img: imgUrl + 'index-media-icon13.png'
  281. },
  282. {
  283. id: '14',
  284. name: "南岸人力社保",
  285. img: imgUrl + 'index-media-icon14.png'
  286. },
  287. {
  288. id: '15',
  289. name: "广阳湾智创生态城",
  290. img: imgUrl + 'index-media-icon15.png'
  291. },
  292. {
  293. id: '16',
  294. name: "南岸智慧城管",
  295. img: imgUrl + 'index-media-icon16.png'
  296. }
  297. ]
  298. },
  299. onReady() {},
  300. onShow() {
  301. if (typeof this.getTabBar === 'function' && this.getTabBar()) {
  302. this.getTabBar().setData({
  303. selected: 0
  304. })
  305. }
  306. this.setData({
  307. naItem: 0
  308. }),
  309. this.setData({
  310. naItemTab: 1
  311. })
  312. },
  313. // 点击服务
  314. clickService1(e) {
  315. const index = e.currentTarget.dataset.item
  316. switch (index) {
  317. case 0: {
  318. wx.navigateToMiniProgram({
  319. appId: 'wxd2ade0f25a874ee2',
  320. success(res) {
  321. // 打开成功
  322. }
  323. })
  324. };
  325. break;
  326. case 1: {
  327. wx.navigateToMiniProgram({
  328. appId: 'wxfc86707bae655315',
  329. success(res) {
  330. // 打开成功
  331. }
  332. })
  333. };
  334. break;
  335. case 2: {
  336. wx.navigateToMiniProgram({
  337. appId: 'wx0bff7955e6e8b2bb',
  338. success(res) {
  339. // 打开成功
  340. }
  341. })
  342. };
  343. break;
  344. case 3: {
  345. wx.navigateToMiniProgram({
  346. appId: 'wxfc86707bae655315',
  347. success(res) {
  348. // 打开成功
  349. }
  350. })
  351. };
  352. break;
  353. case 4: {
  354. wx.navigateToMiniProgram({
  355. appId: 'wxfc86707bae655315',
  356. success(res) {
  357. // 打开成功
  358. }
  359. })
  360. };
  361. break;
  362. }
  363. },
  364. // 点击服务
  365. clickService2(e) {
  366. const index = e.currentTarget.dataset.item
  367. switch (index) {
  368. case 0: {
  369. wx.navigateToMiniProgram({
  370. appId: 'wxfc86707bae655315',
  371. success(res) {
  372. // 打开成功
  373. }
  374. })
  375. };
  376. break;
  377. case 1: {
  378. wx.navigateToMiniProgram({
  379. appId: 'wxbb58374cdce267a6',
  380. success(res) {
  381. // 打开成功
  382. }
  383. })
  384. };
  385. break;
  386. case 2: {
  387. wx.navigateTo({
  388. url: '/pages/web/web?url=' + "https://www.cqna.gov.cn/maps/sy_mobile.html&se=核酸检测",
  389. })
  390. };
  391. break;
  392. case 3: {
  393. wx.navigateTo({
  394. url: '/pages/web/web?url=' + "http://221.7.85.104:9999/zfjyjgfwpt/main/mobilepage/guidepage.html",
  395. })
  396. };
  397. break;
  398. }
  399. },
  400. toDataCenter() {
  401. wx.navigateTo({
  402. url: '/pages/dataCenter/dataCenter',
  403. })
  404. },
  405. onHide() {
  406. if (typeof this.getTabBar === 'function' && this.getTabBar()) {
  407. this.getTabBar().setData({
  408. selected: -1
  409. })
  410. }
  411. },
  412. onLoad() {
  413. // 加载字体
  414. wx.loadFontFace({
  415. family: 'DOUYU',
  416. // source: 'url("https://hui.yrslm.com:8089/douyu.ttf")',
  417. source: 'url("http://116.63.49.144:8081/applet/font/douyu.ttf")',
  418. success: function (e) {
  419. console.log(e, '动态加载字体成功')
  420. },
  421. fail: function (e) {
  422. console.log(e, '动态加载字体失败')
  423. },
  424. })
  425. // 获取好差评图表
  426. this.barComponent3 = this.selectComponent('#streetlinechart3');
  427. this.init_bar3();
  428. // 获取本年办件数
  429. this.getOfficeNumberByAreaInfo();
  430. // 意见征集数据
  431. this.yjzjData()
  432. this.setData({
  433. navHeight: app.globalData.navHeight + app.globalData.menuHeight / 2
  434. })
  435. // wx.login({
  436. // success(res) {
  437. // if (res.code) {
  438. // //发起网络请求
  439. // login(res.code).then(res => {
  440. // console.log(res)
  441. // wx.setStorageSync("token", res.data.data)
  442. // })
  443. // } else {
  444. // console.log('登录失败!' + res.errMsg)
  445. // }
  446. // }
  447. // })
  448. },
  449. // canvas转图片
  450. canvasToTempImage() {
  451. wx.canvasToTempFilePath({
  452. canvas: this.barComponent3.canvasNode,
  453. success: (res) => {
  454. this.setData({
  455. canvasImg: res.tempFilePath
  456. });
  457. }
  458. }, this);
  459. },
  460. // 加载评价图表
  461. init_bar3() {
  462. let that = this;
  463. this.barComponent3.init((canvas, width, height, dpr) => {
  464. // 初始化图表
  465. const barChart = echarts.init(canvas, null, {
  466. width: width,
  467. height: height,
  468. devicePixelRatio: dpr
  469. });
  470. barChart.setOption(this.getScaOption2());
  471. request({
  472. url: '/goodOrbad/getGoodOrBadByYearAndArea?area=1',
  473. method: 'GET'
  474. }).then(res => {
  475. if (res.result === 'ok') {
  476. let temp = [];
  477. temp.push(res.data.veryDissatisfied);
  478. temp.push(res.data.notSatisfied);
  479. temp.push(res.data.basicSatisfied);
  480. temp.push(res.data.satisfied);
  481. temp.push(res.data.great);
  482. this.setData({
  483. evalutionNum: res.data.goodOrBad,
  484. evalutionRate: Math.round(res.data.good / res.data.goodOrBad * 100)
  485. })
  486. barChart.setOption({
  487. series: [{
  488. data: temp
  489. }]
  490. })
  491. }
  492. })
  493. barChart.on("finished", function () {
  494. that.canvasToTempImage();
  495. });
  496. // 注意这里一定要返回 chart 实例,否则会影响事件处理等
  497. return barChart;
  498. });
  499. },
  500. getScaOption2() {
  501. //请求数据
  502. let xAxis = {
  503. type: 'value',
  504. interval: 500000
  505. },
  506. yAxis = {
  507. type: 'category',
  508. data: [
  509. '非常不满意', '不满意', '基本满意', '满意', '非常满意'
  510. ]
  511. },
  512. grid = {
  513. left: '20%',
  514. top: '10%',
  515. bottom: '10%',
  516. right: '20%'
  517. },
  518. series = [{
  519. data: [],
  520. type: 'bar',
  521. barWidth: 14,
  522. itemStyle: {
  523. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  524. offset: 0,
  525. color: '#3977E6'
  526. },
  527. {
  528. offset: 1,
  529. color: '#37BBF8'
  530. }
  531. ]),
  532. // emphasis: {
  533. // barBorderRadius: 7
  534. // },
  535. // normal: {
  536. // barBorderRadius: 7
  537. // }
  538. },
  539. label: {
  540. show: true,
  541. position: 'right',
  542. valueAnimation: true
  543. }
  544. }]
  545. return {
  546. backgroundColor: '#FFFFFF',
  547. xAxis: xAxis,
  548. yAxis: yAxis,
  549. grid: grid,
  550. series: series,
  551. animationDelay: function (idx) {
  552. return idx * 50;
  553. },
  554. animationEasing: 'elasticOut'
  555. };
  556. },
  557. // 获取本年办件数
  558. getOfficeNumberByAreaInfo() {
  559. request({
  560. url: '/department/getOfficeNumberByAreaInfo?area=1&timeType=3',
  561. method: 'GET'
  562. }).then(res => {
  563. let temp = [];
  564. temp.push(res.data.acceptNumber);
  565. temp.push(res.data.serialNumber);
  566. temp.push(res.data.applicationNumberNetwork);
  567. this.setData({
  568. officeNumber: temp
  569. })
  570. })
  571. },
  572. // 搜索框
  573. bindKeyInput: function (e) {
  574. this.setData({
  575. searchInput: e.detail.value
  576. })
  577. },
  578. // 南岸咨询tab
  579. naChangeItem: function (e) {
  580. this.setData({
  581. naItem: e.currentTarget.dataset.item
  582. })
  583. if (this.data.naItem == 0) {
  584. this.setData({
  585. naItemTabList: [{
  586. id: 1,
  587. name: '政策.咨询'
  588. },
  589. {
  590. id: 2,
  591. name: '党建.服务'
  592. },
  593. {
  594. id: 3,
  595. name: '抗疫.复工'
  596. },
  597. {
  598. id: 4,
  599. name: '功能.服务'
  600. }
  601. ]
  602. })
  603. } else {
  604. this.setData({
  605. naItemTabList: [{
  606. id: 1,
  607. name: '天气.咨询'
  608. },
  609. {
  610. id: 2,
  611. name: '外出.服务'
  612. },
  613. {
  614. id: 3,
  615. name: '打工.复工'
  616. },
  617. {
  618. id: 4,
  619. name: '娱乐.服务'
  620. }
  621. ]
  622. })
  623. }
  624. },
  625. naChangeTab: function (e) {
  626. this.setData({
  627. naTab: e.detail.current
  628. })
  629. if (this.data.naTab == 0) {
  630. this.setData({
  631. naItemTabList: [{
  632. id: 1,
  633. name: '政策.咨询'
  634. },
  635. {
  636. id: 2,
  637. name: '党建.服务'
  638. },
  639. {
  640. id: 3,
  641. name: '抗疫.复工'
  642. },
  643. {
  644. id: 4,
  645. name: '功能.服务'
  646. }
  647. ]
  648. })
  649. } else {
  650. this.setData({
  651. naItemTabList: [{
  652. id: 1,
  653. name: '天气.咨询'
  654. },
  655. {
  656. id: 2,
  657. name: '外出.服务'
  658. },
  659. {
  660. id: 3,
  661. name: '打工.复工'
  662. },
  663. {
  664. id: 4,
  665. name: '娱乐.服务'
  666. }
  667. ]
  668. })
  669. }
  670. // 重置咨询title-tab
  671. this.setData({
  672. naItemTab: 1
  673. })
  674. },
  675. // 南岸咨询子集菜单点击
  676. clickNaTilteTab: function (e) {
  677. this.setData({
  678. naItemTab: e.currentTarget.dataset.item.id
  679. })
  680. const ran = Math.random() * 100 + 41
  681. this.setData({
  682. naContentList: [{
  683. id: 1,
  684. name: `${ran}2洪斌在全区疫情防控工作会议上强调,坚持不松懈的精神,努力工作,开展创先争优活动,激励人民发扬美好传统美德!`
  685. },
  686. {
  687. id: 2,
  688. name: `​${ran}坚持不松劲渝事好商量`
  689. },
  690. {
  691. id: 3,
  692. name: '2南岸实践工作全面启动'
  693. },
  694. {
  695. id: 4,
  696. name: '2首条直达南滨路人防隧道开建'
  697. },
  698. {
  699. id: 5,
  700. name: '2全市首个!南岸区便民数字地图上线啦~'
  701. }
  702. ]
  703. })
  704. },
  705. // 南岸咨询内容点击
  706. clickNaContent: function (e) {
  707. console.log(e)
  708. },
  709. // 南岸咨询更多
  710. naMore: function (e) {
  711. let title = this.data.naTab == 0 ? '南岸动态' : this.data.naTab == 1 ? '今日重庆' : '国务院信息';
  712. wx.navigateTo({
  713. url: '/pages/aticleList/aticleList?title=' + title,
  714. })
  715. },
  716. // 政民互动
  717. communicateChangeItem: function (e) {
  718. this.setData({
  719. communicateItem: e.currentTarget.dataset.item
  720. })
  721. },
  722. communicateChangeTab: function (e) {
  723. this.setData({
  724. communicateTab: e.detail.current
  725. })
  726. },
  727. // 意见征集接口
  728. yjzjData() {
  729. yjzjList().then(res => {
  730. var list = []
  731. if (res.statusCode == 200 && res.datas.pageInfo.totalResults > 0) {
  732. list = res.datas.data
  733. for (var i = 0; i < list.length; i++) {
  734. list[i].beginTime = this.formatDateNumber(new Date(list[i].beginTime * 1))
  735. list[i].endTime = this.formatDateNumber(new Date(list[i].endTime * 1))
  736. }
  737. this.setData({
  738. 'yjzjDataList': list
  739. })
  740. }
  741. })
  742. },
  743. goYjzjDetail(e) {
  744. var html = e.currentTarget.dataset.item
  745. wx.navigateTo({
  746. url: "/pages/yjzjDetail/yjzjDetail?html=" + encodeURIComponent(html)
  747. })
  748. },
  749. // 日期格式化
  750. formatDateNumber: function (date) {
  751. let myYear = date.getFullYear();
  752. let myMonth = date.getMonth() + 1;
  753. let myWeekDay = date.getDate();
  754. return myYear + "-" + myMonth + "-" + myWeekDay
  755. },
  756. toList: function () {
  757. wx.navigateTo({
  758. url: '/pages/programList/programList',
  759. })
  760. },
  761. toLeaveMessage: function () {
  762. wx.navigateTo({
  763. url: '/pages/leaveMessage/leaveMessage',
  764. })
  765. },
  766. // 媒体矩阵
  767. swichNav: function (e) {
  768. var that = this;
  769. if (this.data.mediaCurrentTab === e.target.dataset.current) {
  770. return false;
  771. } else {
  772. that.setData({
  773. mediaCurrentTab: e.target.dataset.current,
  774. navScrollLeft: e.target.dataset.current >= 2 ? ((e.target.dataset.current - 1) * 215) : 0
  775. })
  776. }
  777. },
  778. mediaBindChange: function (e) {
  779. var that = this;
  780. that.setData({
  781. mediaCurrentTab: e.detail.current,
  782. navScrollLeft: e.detail.current >= 2 ? ((e.detail.current - 1) * 215) : 0
  783. });
  784. },
  785. getUserProfile() {
  786. wx.setStorageSync('nickname', "");
  787. wx.setStorageSync('avatarUrl', "");
  788. wx.getUserProfile({
  789. desc: '获取用户信息',
  790. success: (res) => {
  791. wx.setStorageSync('nickname', res.userInfo.nickName);
  792. wx.setStorageSync('avatarUrl', res.userInfo.avatarUrl);
  793. wx.login({
  794. success(res) {
  795. if (res.code) {
  796. //发起网络请求
  797. data = {
  798. code: res.code
  799. }
  800. login(data).then(res => {
  801. console.log(res)
  802. wx.setStorageSync("token", res.data.data)
  803. })
  804. } else {
  805. console.log('登录失败!' + res.errMsg)
  806. }
  807. }
  808. })
  809. },
  810. fail(res) {
  811. console.log("获取用户信息失败", res)
  812. }
  813. })
  814. },
  815. //印象南岸进入
  816. toYxna() {
  817. wx.navigateTo({
  818. url: "/pages/yxnaJfq/yxnaJfq",
  819. })
  820. },
  821. toJfq: function () {
  822. wx.navigateTo({
  823. url: '/pages/yxnaJfq/yxnaJfq',
  824. })
  825. },
  826. toJfh: function () {
  827. wx.navigateTo({
  828. url: '/pages/yxnaJfh/yxnaJfh',
  829. })
  830. },
  831. toXsj: function () {
  832. wx.navigateTo({
  833. url: '/pages/yxna/yxna',
  834. })
  835. },
  836. toQxn: function () {
  837. wx.navigateTo({
  838. url: '/pages/yxnaQxn/yxnaQxn',
  839. })
  840. },
  841. gotoSjzx() {
  842. wx.navigateTo({
  843. url: '/pages/dataCenter/dataCenter',
  844. })
  845. },
  846. gotoZWTJ() {
  847. wx.navigateTo({
  848. url: '/pages/dataCenterZWTJ/dataCenterZWTJ',
  849. })
  850. },
  851. gotoNewsPaper() {
  852. wx.navigateTo({
  853. url: '/pages/newsPaper/newsPaper',
  854. })
  855. },
  856. gotoZlwd() {
  857. wx.navigateTo({
  858. url: '/pages/web/web?url=' + "https://www.cqna.gov.cn/ghwd/znwd/mobile/index.html",
  859. })
  860. },
  861. gotoDTSS(e) {
  862. const search = e.currentTarget.dataset.item
  863. if (search && search != '') {
  864. wx.navigateTo({
  865. url: '/pages/web/web?url=' + "https://www.cqna.gov.cn/maps/sy_mobile.html&se=" + search,
  866. })
  867. } else {
  868. wx.navigateTo({
  869. url: '/pages/web/web?url=' + "https://www.cqna.gov.cn/maps/sy_mobile.html",
  870. })
  871. }
  872. },
  873. gotoMTJZ() {
  874. wx.navigateTo({
  875. url: '/pages/web/web?url=' + "https://data.cqna.gov.cn/newMedia/officialAccounts.html",
  876. })
  877. },
  878. gotoSPTJ() {
  879. wx.navigateTo({
  880. url: '/pages/web/web?url=' + "http://www.cqna.com.cn/na_Class/node_24133.html",
  881. })
  882. },
  883. gotoNAB() {
  884. wx.navigateTo({
  885. url: '/pages/web/web?url=' + "http://www.cqna.com.cn/na_Class/node_24150.html",
  886. })
  887. }
  888. })