add.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <import src="add.skeleton.wxml" />
  2. <template is="skeleton" wx:if="{{skeletonShow}}" />
  3. <navigator wx:if="{{userrole!='经销商'}}" url="#" class="groud" bindtap="selectAgency">
  4. <view class="label jxs">
  5. 指定经销商:
  6. </view>
  7. <view class="agency" wx:if="{{agency.sys_enterpriseid}}">
  8. <view class="title">
  9. {{agency.enterprisename||" --"}}
  10. </view>
  11. <view class="exp">联系人:{{agency.changeby||" --"}} {{agency.phonenumber||" --"}}</view>
  12. <view class="exp">详细地址:{{agency.province+agency.city+agency.county+agency.address||" --"}}</view>
  13. </view>
  14. <view wx:else>
  15. 点击选择经销商
  16. </view>
  17. </navigator>
  18. <view class="groud" wx:if="{{brandList.length}}">
  19. <view class="label">
  20. 订单类型
  21. </view>
  22. <view class="content">
  23. <van-button custom-class='but {{type=="标准订单"?"active":""}}' data-name="标准订单" bindtap="onSelectType">标准订单</van-button>
  24. <van-button custom-class='but {{type=="特殊订单"?"active":""}}' data-name="特殊订单" bindtap="onSelectType">特殊订单</van-button>
  25. </view>
  26. </view>
  27. <view class="groud" wx:if="{{brandList.length}}">
  28. <view class="label">
  29. 选择品牌
  30. </view>
  31. <view class="content">
  32. <van-button custom-class='but {{item.sa_brandid==sa_brandid?"active":""}}' wx:for="{{brandList}}" wx:key="sa_brandid" data-item="{{item}}" bindtap="onSelectBrand">{{item.brandname}}</van-button>
  33. </view>
  34. </view>
  35. <view class="groud" wx:if="{{domainList.length}}">
  36. <view class="label">
  37. 选择领域
  38. </view>
  39. <view class="content">
  40. <van-button custom-class='but {{item.tradefield==tradefield?"active":""}}' wx:for="{{domainList}}" wx:key="sys_enterprise_tradefieldid" data-item="{{item}}" bindtap="onSelect">{{item.tradefield}}</van-button>
  41. </view>
  42. </view>
  43. <!-- 底部 -->
  44. <view style="height: 150rpx;" />
  45. <view class="footer">
  46. <van-button custom-class='but' loading='{{loading}}' loading-text='创建中...' bindtap="submit">创建订单</van-button>
  47. </view>