sellEdit.vue 20 KB

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