sellEdit.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. <template>
  2. <view class="center">
  3. <view class="buyup">
  4. <view class="c-row b-b">
  5. <text class="tit">名头</text>
  6. <view class="con-list">
  7. <text @click="navToDetailPage">{{deptList.seller}}</text>
  8. </view>
  9. </view>
  10. <view class="c-row b-b">
  11. <text class="tit">标题</text>
  12. <view class="con-list">
  13. <input maxlength='16' minlength='2' placeholder="请输入标题,不超过16个字" name="input"
  14. v-model="deptList.title"></input>
  15. </view>
  16. </view>
  17. <view class="c-row b-b">
  18. <text class="tit">货名</text>
  19. <view class="con-list">
  20. <input placeholder="请输入货名,如玉米" name="input" v-model="deptList.goodsName"></input>
  21. </view>
  22. </view>
  23. <view class="c-row b-b">
  24. <text class="tit">出货量(吨)</text>
  25. <view class="con-list">
  26. <input placeholder="请输入采购重量,如1000" name="input" v-model="deptList.plannedSaleVolume"></input>
  27. </view>
  28. </view>
  29. <view class="c-row b-b">
  30. <text class="tit">最小成交量(吨)</text>
  31. <view class="con-list">
  32. <input placeholder="请输入最小成交量" name="input" v-model="deptList.minimumVolume"></input>
  33. </view>
  34. </view>
  35. <view class="c-row b-b">
  36. <text class="tit">类型</text>
  37. <view class="con-list">
  38. {{deptList.salePlanType}}
  39. </view>
  40. </view>
  41. <view class="c-row b-b">
  42. <text class="tit">价格类型</text>
  43. <view class="con-list">
  44. {{deptList.priceType}}
  45. </view>
  46. </view>
  47. <view class="c-row b-b" v-if="this.typesIndex != 1">
  48. <text class="tit">单价(元/吨)</text>
  49. <view class="con-list">
  50. <input placeholder="请填写单价" name="input" v-model="deptList.salePrice"></input>
  51. </view>
  52. </view>
  53. <view class="c-row b-b" v-if="this.typesIndex == 1">
  54. <text class="tit">基差(元/吨)</text>
  55. <view class="con-list">
  56. <input placeholder="请输入基差" name="input" v-model="deptList.basisPrice"></input>
  57. </view>
  58. </view>
  59. <view class="c-row b-b">
  60. <text class="tit">产地</text>
  61. <view class="con-list">
  62. <view @click='regionchange1'>{{region1}}</view>
  63. <u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1"></u-picker>
  64. </view>
  65. </view>
  66. <view class="c-row b-b">
  67. <text class="tit">发货地区</text>
  68. <view class="con-list">
  69. <view @click='regionchange'>{{region}}</view>
  70. <u-picker :params='params' @confirm='regionpicker' mode="region" v-model="show"></u-picker>
  71. </view>
  72. </view>
  73. <view class="c-row ">
  74. <text class="tit">卖方手机号</text>
  75. <view class="con-list">
  76. <input placeholder="请输入买方手机号" name="input" v-model="deptList.sellerPhone"></input>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="buylow">
  81. <view class="c-row ">
  82. <checkbox style='transform: scale(0.8);' :checked="checked" @click='checkedbox'></checkbox><text
  83. style="font-size: 14px; ">完善更多信息<text
  84. style="font-size: 10px; color: #AFB3BF;">(选填,可由客服人员代为完善)</text></text>
  85. </view>
  86. <view v-if='!checked' class="c-row b-b">
  87. <text class="tit">水分(%)<= </text>
  88. <view class="con-list">
  89. <input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
  90. </view>
  91. </view>
  92. <view v-if='!checked' class="c-row b-b">
  93. <text class="tit">容重(g/L)<= </text>
  94. <view class="con-list">
  95. <input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
  96. </view>
  97. </view>
  98. <view v-if='!checked' class="c-row b-b">
  99. <text class="tit">热损伤(%)<= </text>
  100. <view class="con-list">
  101. <input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
  102. </view>
  103. </view>
  104. <view v-if='!checked' class="c-row b-b">
  105. <text class="tit">杂质(%)<= </text>
  106. <view class="con-list">
  107. <input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
  108. </view>
  109. </view>
  110. <view v-if='!checked' class="c-row b-b">
  111. <text class="tit">霉变粒(%)<= </text>
  112. <view class="con-list">
  113. <input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
  114. </view>
  115. </view>
  116. <view v-if='!checked' class="c-row b-b">
  117. <text class="tit">不完整粒(%)<= </text>
  118. <view class="con-list">
  119. <input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
  120. </view>
  121. </view>
  122. <view v-if='!checked' class="c-row b-b">
  123. <text class="tit">蛋白(%)<= </text>
  124. <view class="con-list">
  125. <input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
  126. </view>
  127. </view>
  128. <view v-if='!checked' class="c-row b-b">
  129. <text class="tit">粒型 </text>
  130. <picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
  131. <view class="con-list">
  132. {{liIndex>-1?liType[liIndex]:'请选择粒型'}}
  133. </view>
  134. </picker>
  135. </view>
  136. <view v-if='!checked' class="c-row b-b">
  137. <text class="tit">品级 </text>
  138. <picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
  139. <view class="con-list">
  140. {{pinIndex>-1?pinType[pinIndex]:'请选择品级'}}
  141. </view>
  142. </picker>
  143. </view>
  144. <view v-if='!checked' class="c-row b-b">
  145. <text class="tit">产出年份</text>
  146. <picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
  147. <view class="con-list">
  148. {{nianIndex>-1?nianType[nianIndex]:'请选择产出年份'}}
  149. </view>
  150. </picker>
  151. </view>
  152. <view v-if='!checked' class="c-row b-b">
  153. <text class="tit">包装方式</text>
  154. <picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
  155. <view class="con-list">
  156. {{baoIndex>-1?baoType[baoIndex]:'请选择包装方式'}}
  157. </view>
  158. </picker>
  159. </view>
  160. <view v-if='!checked&&baoIndex==2||!checked&&baoIndex==3' class="c-row b-b">
  161. <text class="tit">袋装备注</text>
  162. <view class="con-list">
  163. <input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
  164. </view>
  165. </view>
  166. <view v-if='!checked' class="c-row b-b">
  167. <text class="tit">运费承担方</text>
  168. <picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
  169. <view class="con-list">
  170. {{chengIndex>-1?chengType[chengIndex]:'请选择运费承担方'}}
  171. </view>
  172. </picker>
  173. </view>
  174. </view>
  175. <button @click="commit()" class="btn">重新发布</button>
  176. </view>
  177. </template>
  178. <script>
  179. import {
  180. mapState
  181. } from 'vuex';
  182. export default {
  183. data() {
  184. return {
  185. types: '',
  186. goods: {},
  187. typesType: ["现货", "期货"],
  188. typesIndex: 0,
  189. deptList: {
  190. priceType: "定价采购",
  191. procurementPlanType: "现货",
  192. grain: "塔粮",
  193. grade: "不限(默认)",
  194. outputYear: "2020",
  195. packingType: "不限(默认)",
  196. freightPayer: "",
  197. },
  198. params: {
  199. province: true,
  200. city: true,
  201. area: true,
  202. },
  203. params1: {
  204. province: true,
  205. city: true,
  206. },
  207. checked: true,
  208. insertProcurementPlanInfo: {},
  209. liIndex: 0,
  210. liType: ['塔粮', '筛粮', '中粒', '大粒'],
  211. pinIndex: 0,
  212. pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
  213. nianIndex: 3,
  214. nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
  215. '2011'
  216. ],
  217. show: false,
  218. show1: false,
  219. region: '请选择收货地区',
  220. region1: '请选择产地',
  221. baoIndex: 0,
  222. baoType: ['不限(默认)', '散装', '大袋', '小袋'],
  223. chengIndex: -1,
  224. chengType: ['可议', '买方承担', '卖方承担']
  225. }
  226. },
  227. computed: {
  228. ...mapState(['hasLogin', 'userInfo'])
  229. },
  230. onLoad(options) {
  231. this.getList(options)
  232. },
  233. // onShow() {
  234. // var that = this
  235. // this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
  236. // commonId: this.userInfo.id
  237. // }).then(res => {
  238. // if (res.data.code == 200) {
  239. // if (res.data.data.customerTypeFlag == 1) {
  240. // that.$set(this.deptList, 'procurementPlanNo', res.data.data.customerName)
  241. // } else {
  242. // that.$set(this.deptList, 'procurementPlanNo', res.data.data.compName)
  243. // }
  244. // this.goods = res.data.data
  245. // }
  246. // uni.hideLoading()
  247. // })
  248. // },
  249. methods: {
  250. getList(options) {
  251. this.$api.doRequest('get', '/salePlanInfo/getSalePlanInfo', {
  252. id: options.id
  253. }).then(res => {
  254. if (res.data.code == 200) {
  255. this.deptList = res.data.data
  256. if (this.deptList.waterContent != null || this.deptList.bulkDensity != null || this
  257. .deptList.jiaorenli != null || this.deptList.impurity != null || this.deptList
  258. .mildewGrain != null || this.deptList.imperfectGrain != null || this.deptList
  259. .protein != null || this.deptList.grade != null || this.deptList.outputYear != null ||
  260. this.deptList.packingType != null || this.deptList.freightPayer != null) {
  261. this.checked = false
  262. }
  263. this.region1=this.deptList.outputPrivate+'-'+this.deptList.outputCity
  264. this.region=this.deptList.sendPrivate+'-'+this.deptList.sendCity+'-'+this.deptList.sendArea
  265. if(this.deptList.salePlanTypeKey==2){
  266. this.typesIndex = 1
  267. }else if(this.deptList.salePlanTypeKey==1){
  268. this.typesIndex =0
  269. }
  270. if(this.deptList.grainKey==1){
  271. this.liIndex=0
  272. }else if(this.deptList.grainKey==2){
  273. this.liIndex=1
  274. }else if(this.deptList.grainKey==3){
  275. this.liIndex=2
  276. }else if(this.deptList.grainKey==4){
  277. this.liIndex=3
  278. }else if(this.deptList.grainKey==5){
  279. this.liIndex=4
  280. }
  281. this.baoIndex=this.deptList.packingTypeKey
  282. this.pinIndex=this.deptList.gradeKey
  283. if(this.deptList.freightPayerKey==1){
  284. this.chengIndex=0
  285. }else if(this.deptList.freightPayerKey==2){
  286. this.chengIndex=1
  287. }else if(this.deptList.freightPayerKey==3){
  288. this.chengIndex=2
  289. }
  290. } else {
  291. uni.showToast({
  292. title: res.data.message,
  293. icon: 'none',
  294. duration: 2000
  295. })
  296. }
  297. })
  298. .catch(res => {
  299. uni.showToast({
  300. title: res.errmsg,
  301. icon: 'none',
  302. duration: 2000
  303. })
  304. });
  305. },
  306. regionpicker(e) {
  307. this.deptList.sendPrivate = e.province.label
  308. this.deptList.sendCity = e.city.label
  309. this.deptList.sendArea = e.area.label
  310. this.region = e.province.label + '-' + e.city.label + '-' + e.area.label
  311. },
  312. regionchange() {
  313. this.show = true
  314. },
  315. regionpicker1(e) {
  316. this.deptList.outputPrivate = e.province.label
  317. this.deptList.outputCity = e.city.label
  318. this.region1 = e.province.label + '-' + e.city.label
  319. },
  320. regionchange1() {
  321. this.show1 = true
  322. },
  323. checkedbox(e) {
  324. this.checked = !this.checked
  325. },
  326. typeChange(e) {
  327. this.typesIndex = e.detail.value
  328. this.types = this.typesType[this.typesIndex];
  329. this.deptList.salePlanTypeKey = e.detail.value+1
  330. this.deptList.salePlanType = this.typesType[this.typesIndex];
  331. if (this.typesIndex == 0) {
  332. this.deptList.priceType = '定价采购'
  333. } else {
  334. this.deptList.priceType = '期货盘面价+基差'
  335. }
  336. },
  337. navToDetailPage() {
  338. // if (index == 1) {
  339. uni.navigateTo({
  340. url: `/pageD/myRelease/Identity_switching`
  341. })
  342. },
  343. commit() {
  344. if (!this.deptList.title) {
  345. this.$api.msg('标题不能为空')
  346. return
  347. }
  348. if (this.deptList.title.length > 16 || this.deptList.title.length < 2) {
  349. this.$api.msg('标题输入错误')
  350. return
  351. }
  352. if (!this.deptList.goodsName) {
  353. this.$api.msg('货名不能为空')
  354. return
  355. }
  356. if (this.deptList.goodsName.length > 6 || this.deptList.goodsName.length < 1) {
  357. this.$api.msg('货名输入错误')
  358. return
  359. }
  360. if (!this.deptList.plannedSaleVolume) {
  361. this.$api.msg('出货量不能为空')
  362. return
  363. }
  364. if (this.deptList.plannedSaleVolume > 100000 || this.deptList.plannedSaleVolume < 1) {
  365. this.$api.msg('出货量输入错误')
  366. return
  367. }
  368. if (this.deptList.plannedSaleVolume.toString().indexOf('.') != -1) {
  369. if (this.deptList.plannedSaleVolume.split('.')[1].length > 2) {
  370. this.$api.msg('出货量输入错误')
  371. return
  372. }
  373. }
  374. if (!this.deptList.minimumVolume) {
  375. this.$api.msg('最小成交量不能为空')
  376. return
  377. }
  378. if (this.deptList.minimumVolume > 100000 || this.deptList.minimumVolume < 1) {
  379. this.$api.msg('最小成交量输入错误')
  380. return
  381. }
  382. if (this.deptList.minimumVolume.toString().indexOf('.') != -1) {
  383. if (this.deptList.minimumVolume.split('.')[1].length > 2) {
  384. this.$api.msg('最小成交量输入错误')
  385. return
  386. }
  387. }
  388. if (!this.deptList.salePlanType) {
  389. this.$api.msg('类型不能为空')
  390. return
  391. }
  392. if (!this.deptList.priceType) {
  393. this.$api.msg('价格类型不能为空')
  394. return
  395. }
  396. if (this.deptList.salePlanType == '现货') {
  397. if (!this.deptList.salePrice) {
  398. this.$api.msg('单价不能为空')
  399. return
  400. }
  401. if (this.deptList.salePrice > 100000 || this.deptList.salePrice < 1) {
  402. this.$api.msg('单价输入错误')
  403. return
  404. }
  405. if (this.deptList.salePrice.indexOf('.') != -1) {
  406. if (this.deptList.salePrice.split('.')[1].length > 2) {
  407. this.$api.msg('单价输入错误')
  408. return
  409. }
  410. }
  411. } else if (this.deptList.salePlanType == '期货') {
  412. if (!this.deptList.basisPrice) {
  413. this.$api.msg('基差(元/吨)不能为空')
  414. return
  415. }
  416. // if (this.deptList.basisPrice > 10000 || this.deptList.basisPrice < 1) {
  417. // this.$api.msg('基差输入错误')
  418. // return
  419. // }
  420. // if (this.deptList.basisPrice.indexOf('.') != -1) {
  421. // if (this.deptList.basisPrice.split('.')[1].length > 2) {
  422. // this.$api.msg('基差输入错误')
  423. // return
  424. // }
  425. // }
  426. }
  427. if (!this.deptList.sellerPhone) {
  428. this.$api.msg('卖方手机号不能为空')
  429. return
  430. }
  431. if (this.checked == false) {
  432. if (this.deptList.waterContent && this.deptList.waterContent < 1 ||
  433. this.deptList.waterContent && this.deptList.waterContent > 40) {
  434. this.$api.msg('水分输入错误')
  435. return
  436. }
  437. if (this.deptList.waterContent && this.deptList.waterContent.indexOf('.') != -1) {
  438. if (this.deptList.waterContent.split('.')[1].length > 2) {
  439. this.$api.msg('水分输入错误')
  440. return
  441. }
  442. }
  443. if (this.deptList.bulkDensity && this.deptList.bulkDensity < 500 ||
  444. this.deptList.bulkDensity && this.deptList.bulkDensity > 1000) {
  445. this.$api.msg('容重输入错误')
  446. return
  447. }
  448. if (this.deptList.jiaorenli && this.deptList.jiaorenli < 1 ||
  449. this.deptList.jiaorenli && this.deptList.jiaorenli > 40) {
  450. this.$api.msg('热损伤输入错误')
  451. return
  452. }
  453. if (this.deptList.jiaorenli && this.deptList.jiaorenli.indexOf('.') != -1) {
  454. if (this.deptList.jiaorenli.split('.')[1].length > 2) {
  455. this.$api.msg('热损伤输入错误')
  456. return
  457. }
  458. }
  459. if (this.deptList.impurity && this.deptList.impurity < 1 ||
  460. this.deptList.impurity && this.deptList.impurity > 40) {
  461. this.$api.msg('杂质输入错误')
  462. return
  463. }
  464. if (this.deptList.impurity && this.deptList.impurity.indexOf('.') != -1) {
  465. if (this.deptList.impurity.split('.')[1].length > 2) {
  466. this.$api.msg('杂质输入错误')
  467. return
  468. }
  469. }
  470. if (this.deptList.mildewGrain && this.deptList.mildewGrain < 1 ||
  471. this.deptList.mildewGrain && this.deptList.mildewGrain > 40) {
  472. this.$api.msg('霉变粒输入错误')
  473. return
  474. }
  475. if (this.deptList.mildewGrain && this.deptList.mildewGrain.indexOf('.') != -1) {
  476. if (this.deptList.mildewGrain.split('.')[1].length > 2) {
  477. this.$api.msg('霉变粒输入错误')
  478. return
  479. }
  480. }
  481. if (this.deptList.imperfectGrain && this.deptList.imperfectGrain < 1 ||
  482. this.deptList.imperfectGrain && this.deptList.imperfectGrain > 40) {
  483. this.$api.msg('不完整粒输入错误')
  484. return
  485. }
  486. if (this.deptList.imperfectGrain && this.deptList.imperfectGrain.indexOf('.') != -1) {
  487. if (this.deptList.imperfectGrain.split('.')[1].length > 2) {
  488. this.$api.msg('不完整粒输入错误')
  489. return
  490. }
  491. }
  492. if (this.deptList.protein && this.deptList.protein < 1 ||
  493. this.deptList.protein && this.deptList.protein > 80) {
  494. this.$api.msg('蛋白输入错误')
  495. return
  496. }
  497. if (this.deptList.protein && this.deptList.protein.indexOf('.') != -1) {
  498. if (this.deptList.protein.split('.')[1].length > 2) {
  499. this.$api.msg('蛋白输入错误')
  500. return
  501. }
  502. }
  503. }
  504. this.insertProcurementPlanInfo = this.deptList
  505. if (this.deptList.salePlanType == '期货') {
  506. this.insertProcurementPlanInfo.basisPrice = this.insertProcurementPlanInfo.basisPrice
  507. }
  508. this.insertProcurementPlanInfo.commonId = this.userInfo.id
  509. this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
  510. this.$api.doRequest('post', '/salePlanInfo/api/editSalePlanInfo', this
  511. .insertProcurementPlanInfo).then(res => {
  512. if (res.data.code == 200) {
  513. uni.showToast({
  514. title: "发布成功",
  515. icon: 'none',
  516. })
  517. // setTimeout(() => {
  518. // uni.navigateBack({})
  519. // }, 1000)
  520. this.deptList = {}
  521. uni.navigateTo({
  522. url: `/pages/release/release`
  523. })
  524. } else {
  525. uni.showToast({
  526. title: res.data.message,
  527. icon: 'none',
  528. duration: 2000
  529. })
  530. }
  531. })
  532. .catch(res => {
  533. uni.showToast({
  534. title: res.errmsg,
  535. icon: 'none',
  536. duration: 2000
  537. })
  538. });
  539. },
  540. liChange(e) {
  541. this.liIndex = e.detail.value
  542. this.litypes = this.liType[this.liIndex];
  543. this.deptList.grainKey = e.detail.value+1
  544. this.deptList.grain = this.liType[this.liIndex]
  545. },
  546. pinChange(e) {
  547. this.pinIndex = e.detail.value
  548. this.pintypes = this.pinType[this.pinIndex];
  549. this.deptList.gradeKey = e.detail.value+1
  550. this.deptList.grade = this.pinType[this.pinIndex]
  551. },
  552. nianChange(e) {
  553. this.nianIndex = e.detail.value
  554. this.niantypes = this.nianType[this.nianIndex];
  555. this.deptList.outputYear = this.baoType[this.baoIndex]
  556. },
  557. baoChange(e) {
  558. this.baoIndex = e.detail.value
  559. this.baotypes = this.baoType[this.baoIndex];
  560. this.deptList.packingTypeKey = e.detail.value
  561. this.deptList.packingType = this.baoType[this.baoIndex];
  562. },
  563. chengChange(e) {
  564. this.chengIndex = e.detail.value
  565. this.chengtypes = this.chengType[this.chengIndex];
  566. this.deptList.freightPayerKey = e.detail.value+1
  567. this.deptList.freightPayer = this.chengType[this.chengIndex];
  568. }
  569. }
  570. }
  571. </script>
  572. <style>
  573. .center {
  574. padding: 10px 20px;
  575. background-color: #F5F6FA;
  576. }
  577. .c-row {
  578. display: -webkit-box;
  579. display: -webkit-flex;
  580. display: flex;
  581. -webkit-box-align: center;
  582. -webkit-align-items: center;
  583. align-items: center;
  584. padding: 20rpx 30rpx;
  585. position: relative;
  586. }
  587. .con-list {
  588. -webkit-box-flex: 1;
  589. -webkit-flex: 1;
  590. flex: 1;
  591. display: -webkit-box;
  592. display: -webkit-flex;
  593. display: flex;
  594. -webkit-box-orient: vertical;
  595. -webkit-box-direction: normal;
  596. -webkit-flex-direction: column;
  597. flex-direction: column;
  598. color: #AFB3BF;
  599. line-height: 40rpx;
  600. text-align: right;
  601. padding-right: 20rpx;
  602. font-size: 14px;
  603. }
  604. .buyup {
  605. background-color: #FFFFFF;
  606. border-radius: 20px;
  607. margin-top: 10px;
  608. }
  609. .buylow {
  610. background-color: #FFFFFF;
  611. border-radius: 20px;
  612. margin-top: 10px;
  613. }
  614. .btn {
  615. border-radius: 20px;
  616. margin-top: 10px;
  617. background-color: #22C572;
  618. color: #FFFFFF;
  619. }
  620. .validate {
  621. width: 100px;
  622. height: 32px;
  623. background-color: #F5F6F9;
  624. color: #AFB3BF;
  625. border-radius: 10px;
  626. border: none;
  627. text-align: center;
  628. line-height: 30px;
  629. }
  630. </style>