sellGrain.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view class="center">
  3. <view class="c-row b-b">
  4. <text class="tit">名头</text>
  5. <view class="con-list">
  6. <input placeholder="请填写名头" name="input" @input="addressInput"></input>
  7. </view>
  8. </view>
  9. <view class="c-row b-b">
  10. <text class="tit">标题</text>
  11. <view class="con-list">
  12. <input placeholder="请填写标题,2-16个子" name="input" @input="addressInput"></input>
  13. </view>
  14. </view>
  15. <view class="c-row b-b">
  16. <text class="tit">货名</text>
  17. <view class="con-list">
  18. <input placeholder="请填写货名" name="input" @input="addressInput"></input>
  19. </view>
  20. </view>
  21. <view class="c-row b-b">
  22. <text class="tit">出售量(吨)</text>
  23. <view class="con-list">
  24. <input placeholder="请填写出售重量" name="input" @input="addressInput"></input>
  25. </view>
  26. </view>
  27. <view class="c-row b-b">
  28. <text class="tit">最小成交量(吨)</text>
  29. <view class="con-list">
  30. <input placeholder="请填写最小成交量" name="input" @input="addressInput"></input>
  31. </view>
  32. </view>
  33. <view class="c-row b-b">
  34. <text class="tit">类型</text>
  35. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  36. <view class="picker">
  37. {{typesIndex>-1?typesType[typesIndex]:'请选择类型'}}
  38. </view>
  39. </picker>
  40. </view>
  41. <view class="c-row b-b">
  42. <text class="tit">价格类型</text>
  43. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  44. <view class="con-list">
  45. <input placeholder="请填写价格类型" name="input" @input="addressInput"></input>
  46. </view>
  47. </picker>
  48. </view>
  49. <view class="c-row b-b">
  50. <text class="tit">单价(元/吨)</text>
  51. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  52. <view class="con-list">
  53. <input placeholder="请填写单价(元/吨)" name="input" @input="addressInput"></input>
  54. </view>
  55. </picker>
  56. </view>
  57. <view class="c-row b-b">
  58. <text class="tit">产地</text>
  59. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  60. <view class="con-list">
  61. <input placeholder="请填写产地" name="input" @input="addressInput"></input>
  62. </view>
  63. </picker>
  64. </view>
  65. <view class="c-row b-b">
  66. <text class="tit">发货地区</text>
  67. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  68. <view class="con-list">
  69. <input placeholder="请填写发货地区" name="input" @input="addressInput"></input>
  70. </view>
  71. </picker>
  72. </view>
  73. <view class="c-row b-b">
  74. <text class="tit">卖方手机号</text>
  75. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  76. <view class="con-list">
  77. <input placeholder="请填写卖方手机号" name="input" @input="addressInput"></input>
  78. </view>
  79. </picker>
  80. </view>
  81. <view class="c-row b-b">
  82. <button type="default">获取验证码</button>
  83. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  84. <view class="con-list">
  85. <input placeholder="请填写6位短信验证码" name="input" @input="addressInput"></input>
  86. </view>
  87. </picker>
  88. </view>
  89. <view class="c-row b-b">
  90. <text class="tit">水分(%)<= </text>
  91. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  92. <view class="con-list">
  93. <input placeholder="请填写水分占比" name="input" @input="addressInput"></input>
  94. </view>
  95. </picker>
  96. </view>
  97. <view class="c-row b-b">
  98. <text class="tit">容重(g/L)<= </text>
  99. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  100. <view class="con-list">
  101. <input placeholder="请填写容重" name="input" @input="addressInput"></input>
  102. </view>
  103. </picker>
  104. </view>
  105. <view class="c-row b-b">
  106. <text class="tit">热损伤(%)<= </text>
  107. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  108. <view class="con-list">
  109. <input placeholder="请填写热损伤占比" name="input" @input="addressInput"></input>
  110. </view>
  111. </picker>
  112. </view>
  113. <view class="c-row b-b">
  114. <text class="tit">杂质(%)<= </text>
  115. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  116. <view class="con-list">
  117. <input placeholder="请填写杂质占比" name="input" @input="addressInput"></input>
  118. </view>
  119. </picker>
  120. </view>
  121. <view class="c-row b-b">
  122. <text class="tit">霉变粒(%)<= </text>
  123. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  124. <view class="con-list">
  125. <input placeholder="请填写霉变粒占比" name="input" @input="addressInput"></input>
  126. </view>
  127. </picker>
  128. </view>
  129. <view class="c-row b-b">
  130. <text class="tit">不完整粒(%)<= </text>
  131. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  132. <view class="con-list">
  133. <input placeholder="请填写不完整粒占比" name="input" @input="addressInput"></input>
  134. </view>
  135. </picker>
  136. </view>
  137. <view class="c-row b-b">
  138. <text class="tit">蛋白(%)<= </text>
  139. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  140. <view class="con-list">
  141. <input placeholder="请填写蛋白占比" name="input" @input="addressInput"></input>
  142. </view>
  143. </picker>
  144. </view>
  145. <view class="c-row b-b">
  146. <text class="tit">粒型 </text>
  147. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  148. <view class="con-list">
  149. <input placeholder="请填写粒型" name="input" @input="addressInput"></input>
  150. </view>
  151. </picker>
  152. </view>
  153. <view class="c-row b-b">
  154. <text class="tit">品级 </text>
  155. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  156. <view class="con-list">
  157. <input placeholder="请填写品级" name="input" @input="addressInput"></input>
  158. </view>
  159. </picker>
  160. </view>
  161. <view class="c-row b-b">
  162. <text class="tit">产出年份</text>
  163. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  164. <view class="con-list">
  165. <input placeholder="请填写产出年份" name="input" @input="addressInput"></input>
  166. </view>
  167. </picker>
  168. </view>
  169. <view class="c-row b-b">
  170. <text class="tit">包装方式</text>
  171. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  172. <view class="con-list">
  173. <input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
  174. </view>
  175. </picker>
  176. </view>
  177. <view class="c-row b-b">
  178. <text class="tit">袋装备注</text>
  179. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  180. <view class="con-list">
  181. <input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
  182. </view>
  183. </picker>
  184. </view>
  185. <view class="c-row b-b">
  186. <text class="tit">运费承担方</text>
  187. <picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
  188. <view class="con-list">
  189. <input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
  190. </view>
  191. </picker>
  192. </view>
  193. <button type="default">发布</button>
  194. </view>
  195. </template>
  196. <script>
  197. export default {
  198. data() {
  199. return {
  200. types:'',
  201. typesType:["现货","期货"],
  202. }
  203. },
  204. methods: {
  205. typeChange(e){
  206. this.typesIndex = e.detail.value
  207. this.types = this.typesType[this.typesIndex];
  208. }
  209. }
  210. }
  211. </script>
  212. <style>
  213. .center{
  214. padding: 10px 20px;
  215. }
  216. .c-row {
  217. display: -webkit-box;
  218. display: -webkit-flex;
  219. display: flex;
  220. -webkit-box-align: center;
  221. -webkit-align-items: center;
  222. align-items: center;
  223. padding: 20rpx 30rpx;
  224. position: relative;
  225. }
  226. .con-list {
  227. -webkit-box-flex: 1;
  228. -webkit-flex: 1;
  229. flex: 1;
  230. display: -webkit-box;
  231. display: -webkit-flex;
  232. display: flex;
  233. -webkit-box-orient: vertical;
  234. -webkit-box-direction: normal;
  235. -webkit-flex-direction: column;
  236. flex-direction: column;
  237. color: #303133;
  238. line-height: 40rpx;
  239. text-align: right;
  240. padding-right: 20rpx;
  241. font-size: 14px;
  242. }
  243. </style>