index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="main" style="height:{{infoHeight}}px;">
  3. <view class="one">
  4. <button type="primary" size="mini" bindtap="toAdd">添加商品类型</button>
  5. </view>
  6. <view class="two">
  7. <view class="list" wx:key="item" wx:for="{{list}}">
  8. <view class="name">{{item.code}}</view>
  9. <view class="other">
  10. <view class="otherInfo">类型名称:<text>{{item.name||'暂无' }}</text></view>
  11. </view>
  12. <view class="btn">
  13. <button type="info" size="mini" bindtap="toView" data-id="{{item.id}}">详细信息</button>
  14. <button type="info" size="mini" bindtap="toEdit" data-id="{{item.id}}">信息变更</button>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </mobile-main>
  20. <van-dialog use-slot title="{{dialog.title}}" show="{{ dialog.show }}" confirmButtonText="返回">
  21. <view class="dialog">
  22. <view wx:if="{{dialog.type=='1'}}" class="dialog_1">
  23. <form>
  24. <view class="content">
  25. <view class="left"><text>商品类别:</text></view>
  26. <view class="right"><input name="code" value="{{info.code}}" disabled></input></view>
  27. </view>
  28. <view class="content">
  29. <view class="left"><text>商品名称:</text></view>
  30. <view class="right"><input name="name" value="{{info.name}}" disabled></input></view>
  31. </view>
  32. </form>
  33. </view>
  34. </view>
  35. </van-dialog>