goodsCate.wxml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!--pages/goodsCate/goodsCate.wxml-->
  2. <view class="fixedWrap">
  3. <view class="divide"></view>
  4. <view class="formArea noMargin">
  5. <picker bindchange="setTop" value="{{showTopIndex}}" range="{{showTop}}" class="lineGroup">
  6. <view class="lineInner">
  7. <view class="label">一级类目</view>
  8. <view class="content">
  9. <view class="diyInput hasArrow">
  10. <view wx:if="{{showTopIndex!==''}}">{{showTop[showTopIndex]}}</view>
  11. <view wx:if="{{showTopIndex===''}}" class="placeholderStyle">请选择</view>
  12. </view>
  13. <i class="iconfont icon-arrowr arrow"></i>
  14. </view>
  15. </view>
  16. </picker>
  17. <view bindtap="setTwo" wx:if="{{showTopIndex===''}}" class="lineGroup">
  18. <view class="lineInner">
  19. <view class="label">二级类目</view>
  20. <view class="content">
  21. <view class="diyInput hasArrow">
  22. <view class="placeholderStyle">请选择</view>
  23. </view>
  24. <i class="iconfont icon-arrowr arrow"></i>
  25. </view>
  26. </view>
  27. </view>
  28. <picker bindchange="setTwo" wx:if="{{showTopIndex!==''}}" value="{{showTwoIndex}}" range="{{showTwo}}" class="lineGroup">
  29. <view class="lineInner">
  30. <view class="label">二级类目</view>
  31. <view class="content">
  32. <view class="diyInput hasArrow">
  33. <view wx:if="{{showTwoIndex!==''}}">{{showTwo[showTwoIndex]}}</view>
  34. <view wx:if="{{showTwoIndex===''}}" class="placeholderStyle">请选择</view>
  35. </view>
  36. <i class="iconfont icon-arrowr arrow"></i>
  37. </view>
  38. </view>
  39. </picker>
  40. </view>
  41. <view class="searchWrap">
  42. <view class="inputWrap">
  43. <i class="iconfont icon-search"></i>
  44. <input bindinput="getKeywords" value="{{keywords}}" class="input shadow" placeholder="关键字搜索" placeholder-class="placeholderStyle"></input>
  45. </view>
  46. <button bindtap="search" class="btn">搜索</button>
  47. </view>
  48. </view>
  49. <view class="proList">
  50. <view bindtap="chooseItem" data-index="{{index}}" wx:for="{{list}}" wx:key="_id" hover-class="active" class="proItem">{{item.name}}</view>
  51. </view>
  52. <ipx-placeholder></ipx-placeholder>
  53. <view catchtouchmove="noScroll" class="modal {{fadeIn?'fadeIn':''}}">
  54. <view class="head">
  55. <i bindtap="hideMoadal" class="iconfont icon-fail"></i>
  56. </view>
  57. <view class="content">
  58. <view class="lineBox">
  59. <view class="label">名称</view>
  60. <view class="cont">{{item.name}}</view>
  61. </view>
  62. <view class="lineBox">
  63. <view class="label">简称</view>
  64. <view class="cont">{{item.shortName}}</view>
  65. </view>
  66. <view class="lineBox">
  67. <view class="label">分类编码</view>
  68. <view class="cont">{{item.code}}</view>
  69. </view>
  70. <view class="lineBox">
  71. <view class="label">税率</view>
  72. <view class="cont">{{item.rate}}</view>
  73. </view>
  74. <view class="lineBox">
  75. <view class="label">关键字</view>
  76. <view class="cont">{{item.keyword}}</view>
  77. </view>
  78. <view class="lineBox">
  79. <view class="label">描述</view>
  80. <view class="cont">{{item.desc}}</view>
  81. </view>
  82. </view>
  83. <view class="bottom">
  84. <button bindtap="selected" class="btn">选择该类</button>
  85. </view>
  86. </view>
  87. <view catchtouchmove="noScroll" class="backdrop {{fadeIn?'fadeIn':''}}"></view>