xunjianimg.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import http from '../../base/httputil'
  2. const app = getApp()
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. getXunjianimgList() {
  8. let obj = new Object()
  9. obj.isPass = 'N'
  10. http.post("/system/AppXunjianimgController/getXunjianimgList",obj,this.getXunjianimgListSuccess)
  11. },
  12. getXunjianimgListSuccess(res){
  13. console.log("@@@@@",res)
  14. this.setData({
  15. pictureBasePath : res.data.pictureBasePath+"/",
  16. mapdata : res.data.xunjianimgMap
  17. })
  18. },
  19. bindViewZhengGaiJinDu(e){
  20. let businspectionid = e.currentTarget.dataset.businspectionid
  21. wx.navigateTo({
  22. url: '../zhenggaijindu/zhenggaijindu?busInspectionId='+businspectionid,
  23. })
  24. },
  25. data: {
  26. host: app.globalData.host,
  27. mapdata : null,
  28. pictureBasePath : null
  29. },
  30. /**
  31. * 生命周期函数--监听页面加载
  32. */
  33. onLoad(options) {
  34. this.getXunjianimgList()
  35. },
  36. /**
  37. * 生命周期函数--监听页面初次渲染完成
  38. */
  39. onReady() {
  40. },
  41. /**
  42. * 生命周期函数--监听页面显示
  43. */
  44. onShow() {
  45. },
  46. /**
  47. * 生命周期函数--监听页面隐藏
  48. */
  49. onHide() {
  50. },
  51. /**
  52. * 生命周期函数--监听页面卸载
  53. */
  54. onUnload() {
  55. },
  56. /**
  57. * 页面相关事件处理函数--监听用户下拉动作
  58. */
  59. onPullDownRefresh() {
  60. },
  61. /**
  62. * 页面上拉触底事件的处理函数
  63. */
  64. onReachBottom() {
  65. },
  66. /**
  67. * 用户点击右上角分享
  68. */
  69. onShareAppMessage() {
  70. }
  71. })