xunjianmore.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // pages/xunjianmore/xunjianmore.js
  2. import http from '../../base/httputil'
  3. const app = getApp()
  4. Page({
  5. /**
  6. * 页面的初始数据
  7. */
  8. data: {
  9. host: app.globalData.host,
  10. buslogid: null,
  11. mapdata : null,
  12. pictureBasePath : null,
  13. hiddenName:true,
  14. isHave_xqzgtzs:false,
  15. isHave_fcyjtzs:false,
  16. isRefresh:false,
  17. },
  18. onLoad(e) {
  19. this.initData(e)
  20. },
  21. onShow(){
  22. console.log("!!!!",this.data.buslogid)
  23. let pages = getCurrentPages();
  24. let currPage = pages[pages.length-1];
  25. this.data.isAfterBack=currPage.data.isAfterBack;
  26. console.log("!@!@!@",this.data.isRefresh)
  27. },
  28. initData(e){
  29. let buslogid = e.buslogid
  30. this.data.buslogid = buslogid
  31. console.log("####",this.data.buslogid)
  32. let obj = new Object()
  33. obj.busLogId = this.data.buslogid
  34. http.post("/system/AppXunjianimgController/getXunjianimgList",obj,this.getXunjianMoreListSuccess)
  35. },
  36. getXunjianMoreListSuccess(res){
  37. console.log("@@@@@",res)
  38. this.setData({
  39. pictureBasePath : res.data.pictureBasePath+"/",
  40. mapdata : res.data.xunjianimgMap,
  41. isHave_xqzgtzs:res.data.isHave_xqzgtzs,
  42. isHave_fcyjtzs:res.data.isHave_fcyjtzs,
  43. })
  44. },
  45. bindViewZhengGaiJinDu(e){
  46. let businspectionid = e.currentTarget.dataset.businspectionid
  47. wx.navigateTo({
  48. url: '../zhenggaijindu/zhenggaijindu?busInspectionId='+businspectionid,
  49. })
  50. },
  51. // 按钮显示隐藏
  52. shghnn:function(){
  53. this.setData({
  54. hiddenName:!this.data.hiddenName
  55. })
  56. },
  57. // 跳转整改进度
  58. bindViewXqZgGzS(){
  59. wx.navigateTo({
  60. url: '../xqzggzs/xqzggzs?logId='+this.data.buslogid,
  61. })
  62. },
  63. })