电速宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.wxml 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!--pages/createorder/index.wxml-->
  2. <view class="body">
  3. <view class="car">
  4. <view>
  5. <text style="color: red;">*</text> 用车类型
  6. </view>
  7. <view class="car_right">
  8. <view class="{{cartype== 1 ?'cartbuy':'carsell'}}" data-index="0" bind:tap="oncar">买电</view>
  9. <view class="{{cartype== 0 ?'cartbuy':'carsell'}}" data-index="1" bind:tap="oncar">卖电</view>
  10. </view>
  11. </view>
  12. <view class="car">
  13. <view>
  14. <text style="color: red;">*</text> <text wx:if="{{cartype==1}}"> 出售电量</text> <text wx:if="{{cartype==0}}"> 需求电量</text>
  15. </view>
  16. <view class="model_right">
  17. <input class="powerlevel" type="text" placeholder="请输入电量"/>
  18. </view>
  19. </view>
  20. <view class="car" wx:if="{{cartype==1}}">
  21. <view>
  22. <text style="color: red;">*</text> 意向电价
  23. </view>
  24. <view class="model_right">
  25. <input class="powerlevel" type="text" placeholder="请输入需求用电"/>
  26. </view>
  27. </view>
  28. <view class="car">
  29. <view style="margin-left: 18rpx;">
  30. 绿电
  31. </view>
  32. <view class="model_right">
  33. <radio-group bindchange="radioChange">
  34. <label class="weui-cell weui-check__label" wx:for="{{items}}" wx:key="value">
  35. <view class="weui-cell__hd">
  36. <radio value="{{item.value}}" checked="true"/>
  37. </view>
  38. <view class="weui-cell__bd">{{item.name}}</view>
  39. </label>
  40. </radio-group>
  41. </view>
  42. </view>
  43. <!-- 网电 -->
  44. <view class="car">
  45. <view style="margin-left: 18rpx;">
  46. 变压器容量
  47. </view>
  48. <view class="model_right">
  49. <input class="powerlevel" type="text" placeholder="请输入需求用电"/>
  50. </view>
  51. </view>
  52. <!-- <view class="car">
  53. <view>
  54. <text style="color: red;">*</text> 司机
  55. </view>
  56. <view class="model_right">
  57. <picker bindchange="binddriverChange" value="{{driverindex}}" range="{{objdriver}}" range-key="subtitle">
  58. <view class="picker">
  59. {{objdriver[driverindex].name}}
  60. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" color="#cccccc" bind:tap="onIconTap" />
  61. </view>
  62. </picker>
  63. </view>
  64. </view> -->
  65. <view class="car">
  66. <view style="margin-left: 18rpx;">
  67. 车长车型
  68. </view>
  69. <view class="model_right">
  70. <picker bindchange="bindectArrayChange" value="{{index}}" range="{{objectArray}}" range-key="subtitle">
  71. <view class="picker">
  72. {{objectArray[index].name}}
  73. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" color="#cccccc" bind:tap="onIconTap" />
  74. </view>
  75. </picker>
  76. </view>
  77. </view>
  78. <!-- <view class="car">
  79. <view>
  80. <text style="color: red;">*</text> 用户
  81. </view>
  82. <view class="model_right">
  83. <picker bindchange="binduserChange" value="{{userindex}}" range="{{userdata}}" range-key="companyName">
  84. <view class="picker">
  85. {{userdata[userindex].companyName}}
  86. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" color="#cccccc" bind:tap="onIconTap" />
  87. </view>
  88. </picker>
  89. </view>
  90. </view> -->
  91. <view class="car">
  92. <view>
  93. <text style="color: red;">*</text> 地址
  94. </view>
  95. <view class="model_right">
  96. <picker bindchange="bindPickerChange" value="{{addressindex}}" range="{{address}}" range-key="addressDetails">
  97. <view class="picker">
  98. {{address[addressindex].addressDetails}}
  99. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" color="#cccccc" bind:tap="onIconTap" />
  100. </view>
  101. </picker>
  102. </view>
  103. </view>
  104. <view class="car">
  105. <view>
  106. <text style="color: red;">*</text> 预计到达时间
  107. </view>
  108. <view class="model_right">
  109. <picker mode="date" value="{{date}}" start="2015-09-01" end="2017-09-01" bindchange="bindDateChange">
  110. <view class="picker">
  111. {{date}}
  112. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" color="#cccccc" bind:tap="onIconTap" />
  113. </view>
  114. </picker>
  115. </view>
  116. </view>
  117. </view>
  118. <!--
  119. --->
  120. <button class="call-btn" bindtap="details">
  121. <text class="call-btn_left_electricity">预约</text>
  122. </button>