wfwzxxcx.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!--pages/minePages/wfwzxxcx/wfwzxxcx.wxml-->
  2. <scroll-view class="wfwzxxcx-container" scroll-y enhanced show-scrollbar="{{false}}">
  3. <view class="seize-a-seat"></view>
  4. <view class="content-container">
  5. <view class="mp-component-tip">查询信息</view>
  6. <view class="cxxx-form">
  7. <view class="form-item">
  8. <view class="item-label">企业名称</view>
  9. <view class="item-value">
  10. <view class="select" bind:tap="selectEnterprice">{{enterPrice.nsrmc || '请选择企业'}}</view>
  11. </view>
  12. </view>
  13. <view class="form-item">
  14. <view class="item-label">开始日期</view>
  15. <view class="item-value">
  16. <picker class="picker" mode="date" value="{{startDate}}" data-type="0" bindchange="seleDate">
  17. <view class="picker-date">{{startDate}}</view>
  18. </picker>
  19. </view>
  20. </view>
  21. <view class="form-item">
  22. <view class="item-label">结束日期</view>
  23. <view class="item-value">
  24. <picker class="picker" mode="date" value="{{endDate}}" data-type="1" bindchange="seleDate">
  25. <view class="picker-date">{{endDate}}</view>
  26. </picker>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="mp-component-tip">查询结果</view>
  31. <view class="result-form" wx:for="{{resultList}}" wx:key="index">
  32. <view class="result-form-item">
  33. <view class="result-form-label">违法违章名称</view>
  34. <view class="result-form-value">{{item.wfxwmc}}</view>
  35. </view>
  36. <view class="result-form-item">
  37. <view class="result-form-label">违法行为类型</view>
  38. <view class="result-form-value">{{item.wfxwlxmc}}</view>
  39. </view>
  40. <view class="result-form-item">
  41. <view class="result-form-label">所属期起止</view>
  42. <view class="result-form-value">{{tools.dateFormat(item)}}</view>
  43. </view>
  44. <view class="result-form-item">
  45. <view class="result-form-label">处罚金额</view>
  46. <view class="result-form-value">{{item.cfje}}</view>
  47. </view>
  48. <view class="result-form-item">
  49. <view class="result-form-label"><text>违法行为处\n理状态</text></view>
  50. <view class="result-form-value">{{item.wfxwclztmc}}</view>
  51. </view>
  52. <view class="result-form-item">
  53. <view class="result-form-label">违法事实</view>
  54. <view class="result-form-value">{{item.wfss}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="safe-area"></view>
  59. </scroll-view>
  60. <pop show="{{enterpriceTypeShow}}" bindclose="close">
  61. <view class="pop1-title">选择企业名称</view>
  62. <scroll-view class="pop1Contain" scroll-y="{{true}}" enhanced="{{true}}" show-scrollbar="{{false}}">
  63. <view wx:if="{{enterPriceList.length>0}}" class="pop1list" wx:for="{{enterPriceList}}" wx:key="index" hover-class="buttonActive" data-item="{{item}}" bind:tap="selectedEnterprice">{{item.nsrmc}}</view>
  64. <view wx:if="{{enterPriceList.length==0}}" class="pop1list">暂无企业</view>
  65. </scroll-view>
  66. </pop>
  67. <wxs module="tools">
  68. var dateFormat = function (e, i) {
  69. if (e) {
  70. var s = e.sssqq.substring(0,10)
  71. var e = e.sssqz.substring(0,10)
  72. return s + '——' + e
  73. } else {
  74. return ""
  75. }
  76. }
  77. var tools = {
  78. dateFormat: dateFormat,
  79. }
  80. module.exports = tools;
  81. </wxs>