create-order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. <template>
  2. <view class="container order clearfix" :style="{paddingBottom :isIphoneX ? '170rpx' : '134rpx'}">
  3. <!-- 地址选择 -->
  4. <choice-address ref="choiceAddress" v-if="isAddress" :addressData="addressData"></choice-address>
  5. <!-- 商品 -->
  6. <goods-list ref='goods' v-if="isRequest" :goodsData="goodsData" @handleGoodList="handChangeInputGoodsList"></goods-list>
  7. <!-- 发票信息 -->
  8. <invoice-tent ref="invoice"
  9. v-if="isRequest"
  10. :invoiceDatas="invoiceData"
  11. @handleChoiceaInvoice="handleChoiceaInvoiceData">
  12. </invoice-tent>
  13. <!-- 运费 -->
  14. <freight ref="freight"
  15. v-if="isFreight"
  16. :freightData="freightData"
  17. @confirmFreight="hanldFreightFn"
  18. @confirmFreightBeans = "hanldFreightBeans"
  19. >
  20. </freight>
  21. <freight-alert v-if="isfreightTip" ref="csPhone"></freight-alert>
  22. <!-- 余额抵扣 -->
  23. <view class="invoice-balance" v-show="!rechargeGoods">
  24. <view class="balabce-t">
  25. <view class="balabce-t-le">余额抵扣</view>
  26. <view class="balabce-t-ri">
  27. <view class="money">
  28. <text>可用余额:</text>
  29. <text>¥{{userMoney | NumFormat}}</text>
  30. </view>
  31. <view class="checkbox-box">
  32. <button class="checkbox iconfont"
  33. hover-class="btn-hover"
  34. v-if="userMoney!=0"
  35. @click.stop="checkedBalabce"
  36. :class="[ischecked ?'icon-yixuanze':'icon-weixuanze']"
  37. >
  38. </button>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="balabce-b" :class="{'balabce-b--hide':!ischecked}">
  43. <view class="balabce-b-text animation" :style="{'transform':ischecked?'translateY(0)':'translateY(-50%)','-webkit-transform':ischecked?'translateY(0)':'translateY(-50%)'}">
  44. <text>当前使用:¥{{deductMoney | NumFormat}},剩余:¥{{surplusMoney | NumFormat}}</text>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 底部 -->
  49. <view class="footer" :style="{paddingBottom :isIphoneX ? '68rpx' : '0rpx'}">
  50. <view class="footer-le">
  51. <view class="footer-count">
  52. <text>共{{allCount}}件商品</text>
  53. </view>
  54. <view class="footer-price">
  55. <view class="sum-none" v-if="reducedPrice>0">
  56. <text class="money-sign">¥</text>
  57. <text class="money">{{ totalOriginalPrice | NumFormat }}</text>
  58. <text class="money-reduced">减<text>¥{{ reducedPrice | NumFormat}}</text></text>
  59. </view>
  60. <view class="sum" :class="reducedPrice == 0 ? 'none' : ''">总价:<text class="price">¥{{payAllPrice | NumFormat}}</text></view>
  61. </view>
  62. </view>
  63. <view class="footer-submit" @click.stop="orderSubmitMit">
  64. <view class="btn" :class="isSubLoading ? 'disabled' : ''" >提交订单</view>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. import choiceAddress from '@/components/cm-module/creatOrder/choiceAddress'
  71. import goodsList from '@/components/cm-module/creatOrder/goodsList'
  72. import invoiceTent from '@/components/cm-module/creatOrder/invoiceTent'
  73. import freight from '@/components/cm-module/creatOrder/freight'
  74. import freightAlert from '@/components/cm-module/modelAlert/freightAlert'
  75. export default {
  76. components:{
  77. choiceAddress,
  78. goodsList,
  79. invoiceTent,
  80. freight,
  81. freightAlert
  82. },
  83. data() {
  84. return {
  85. isIphoneX:this.$store.state.isIphoneX,
  86. isSubLoading:false,
  87. orderID:0,
  88. productIds:'', // 获取上一级页面商品信息
  89. productCount:'', // 获取上一级页面商品数量
  90. classifyIDS:'', // 获取上一级页面商品分类
  91. userID:'', // 用户ID
  92. cartType:'', // 购买类型(1购物车提交,2直接购买提交)
  93. submitState:'', // 提交状态
  94. balanceDeductionFlag:2, // 勾选余额的状态(1使用,2不使用)
  95. allCount:1, // 订单提交总数量
  96. totalOriginalPrice:0, // 订单总原价(划线部分)
  97. reducedPrice:0, // 满减金额
  98. payAllPrice:0.00, // 订单提交总金额
  99. allPrice:0.00, // 订单总金额
  100. surplusMoney:0.00, // 显示勾选后的剩余抵扣
  101. userMoney:0.00, // 显示可使用余额
  102. deductMoney:0.00, // 显示已使用的余额
  103. addressID:'', // 地址ID
  104. townID:'', // 区ID
  105. isRequest:false, // 是否加载完成渲染子组件
  106. isFreight:false, // 是否加载完成渲染子组件
  107. isAddress:false, // 是否加载完成地址
  108. isfreightTip:false, // 控制邮费弹窗
  109. ischecked:false, // 是否勾选余额
  110. hanldFreePostFlag:'', // 邮费状态
  111. hanldFreight:'', // 邮费
  112. addressData:{}, // 初始化地址信息
  113. goodsData:[], // 初始化商品信息
  114. invoiceData:{type:0}, // 初始化发票信息
  115. freightData:{}, // 邮费数据
  116. orderInfo:[], // 提交的商品信息
  117. payInfo:{}, // 订单信息
  118. rechargeGoods:null, // 判断订单里有定金商品或者充值商品时,余额抵扣部分不显示
  119. freightBeansMoney:0, // 存储采美豆抵扣金额
  120. hanldUserBeans:0, // 抵扣的采美豆数
  121. isCheckedBeans:false, // 是否抵扣采美豆
  122. }
  123. },
  124. onLoad(option){//商品数据
  125. let data = JSON.parse(option.data);
  126. if(option.type =='prodcut'){
  127. this.cartType = 2
  128. this.productCount = data.data.productCount
  129. this.productIds = data.data.productID
  130. }else{
  131. this.cartType = 1
  132. this.productCount = data.data.productCount
  133. this.productIds = data.data.productID
  134. }
  135. this.$api.getStorage().then((resolve) =>{
  136. this.userID = resolve.userId ? resolve.userId : 0
  137. this.getInitCrearOrder(option);
  138. })
  139. },
  140. filters:{
  141. NumFormat(value) {//处理金额
  142. return Number(value).toFixed(2);
  143. },
  144. },
  145. methods: {
  146. getInitCrearOrder(option){//获取订单商品信息
  147. this.OrderService.CreateOrderInfo({
  148. userId:this.userID,
  149. count:this.productCount,
  150. productIds:this.productIds,
  151. unionId:uni.getStorageSync('unionId')
  152. })
  153. .then(response =>{
  154. let resData = response.data
  155. this.isRequest = true
  156. this.goodsData = resData.list
  157. this.userMoney = resData.userMoney
  158. this.reducedPrice = resData.reducedPrice
  159. this.allPrice = this.payAllPrice = resData.totalPrice
  160. this.totalOriginalPrice = resData.totalOriginalPrice
  161. this.rechargeGoods = resData.rechargeGoods
  162. })
  163. .catch(error =>{
  164. this.$util.msg(error.msg,2000)
  165. })
  166. },
  167. getFreightData(){//获取邮费信息
  168. let params ={
  169. userId:this.userID,
  170. productIds:this.productIds,
  171. totalPrice:this.allPrice,
  172. townId:this.addressData.townID
  173. }
  174. this.OrderService.GetOrderPostage(params).then(response =>{
  175. this.isFreight = true
  176. this.isCheckedBeans = false
  177. this.freightData = response.data
  178. this.hanldFreePostFlag = response.data.freePostFlag
  179. this.hanldFreight = response.data.freight
  180. if(this.hanldFreePostFlag == 1){
  181. if( this.freightData.userBeans > 0 ){
  182. this.freightBeansMoney = this.hanldFreight
  183. }else{
  184. this.freightBeansMoney = 0
  185. }
  186. this.payAllPrice = this.allPrice + response.data.freight
  187. this.attributePallPrice()
  188. this.hanldFreightBeans(this.isCheckedBeans)
  189. }else{
  190. if( this.freightData.userBeans > 0 ){
  191. this.freightBeansMoney = 30
  192. }else{
  193. this.freightBeansMoney = 0
  194. }
  195. this.payAllPrice = this.allPrice
  196. this.attributePallPrice()
  197. this.hanldFreightBeans(this.isCheckedBeans)
  198. }
  199. })
  200. },
  201. getAddressData(){//获取地址信息
  202. this.$api.getStorage().then((resolve) => {
  203. this.UserService.QueryAddressList({pageNum:1,pageSize:1,userID:resolve.userId}).then(response =>{
  204. this.isAddress = true
  205. this.addressData = {}
  206. if(response.data.results != ''){
  207. this.addressID = response.data.results[0].addressID;
  208. this.townID = response.data.results[0].townID;
  209. this.addressData = response.data.results[0];
  210. this.getFreightData()
  211. }else{
  212. this.addressData = this.addressData;
  213. }
  214. })
  215. })
  216. },
  217. handChangeInputGoodsList(data){//对应供应商的留言信息
  218. this.goodsData = data;
  219. },
  220. handleChoiceaInvoiceData(data){//获取发票信息
  221. this.invoiceData = data
  222. },
  223. hanldFreightFn(data){//显示邮费弹窗
  224. console.log(data)
  225. switch(data.freePostFlag){
  226. case 1:
  227. this.hanldFreight = this.freightData.freight
  228. this.hanldFreePostFlag = data.freePostFlag
  229. this.freightBeansMoney = data.freightBeansMoney
  230. this.payAllPrice =this.allPrice + this.hanldFreight
  231. this.attributePallPrice()
  232. this.hanldFreightBeans(this.isCheckedBeans)
  233. break
  234. case -1:
  235. this.hanldFreight = 0
  236. this.hanldFreePostFlag = data.freePostFlag
  237. this.freightBeansMoney = data.freightBeansMoney
  238. this.payAllPrice = this.allPrice
  239. this.attributePallPrice()
  240. this.hanldFreightBeans(this.isCheckedBeans)
  241. break
  242. }
  243. },
  244. hanldFreightBeans(data){//是否勾选采美豆抵扣
  245. this.isCheckedBeans = data;
  246. if(this.isCheckedBeans){
  247. // 判断如果采美豆大于等于运费*100
  248. if( this.freightData.userBeans > 0 ){
  249. this.hanldUserBeans = this.freightBeansMoney*100
  250. }else{
  251. this.hanldUserBeans = 0
  252. }
  253. // 计算抵扣后的总价
  254. if(this.hanldFreePostFlag == 1){
  255. // 如果使用了余额 最终价格
  256. if(this.ischecked){
  257. if(this.userMoney>=this.payAllPrice){
  258. this.payAllPrice = 0.00
  259. this.deductMoney = this.allPrice // 当前使用金额等于订单金额
  260. this.surplusMoney = this.userMoney - this.deductMoney // 剩余金额等于余额-当前使用金额
  261. }else{
  262. this.payAllPrice = this.allPrice - this.userMoney // 订单最终支付金额等于订单金额-账户余额
  263. this.deductMoney = this.userMoney // 当前使用金额等于总余额
  264. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于总余额-当前使用金额
  265. }
  266. }else{
  267. this.payAllPrice = this.allPrice + this.hanldFreight - this.freightBeansMoney
  268. }
  269. console.log('抵扣',this.payAllPrice)
  270. }
  271. }else{// 采美豆不抵扣运费
  272. this.hanldUserBeans = 0
  273. // 不抵扣时计算总价
  274. if(this.hanldFreePostFlag == 1){
  275. this.attributeHashfreight(this.hanldFreight)
  276. }
  277. }
  278. },
  279. checkedBalabce(){//勾选使用余额
  280. if(this.userMoney > 0){
  281. this.ischecked = !this.ischecked
  282. if(this.ischecked){
  283. this.balanceDeductionFlag =1
  284. this.attributePallPrice()
  285. }else{
  286. if(this.hanldFreePostFlag == 1 || this.hanldFreePostFlag == '1'){ //如果是有运费时
  287. if(this.isCheckedBeans){
  288. this.payAllPrice = this.allPrice
  289. }else{
  290. this.payAllPrice = this.allPrice+parseInt(this.freightData.freight)
  291. }
  292. }else{
  293. this.payAllPrice = this.allPrice
  294. }
  295. this.balanceDeductionFlag = 2
  296. }
  297. }else{
  298. return
  299. }
  300. },
  301. attributePallPrice(){// 计算价格
  302. if(this.hanldFreePostFlag == 1 || this.hanldFreePostFlag == '1'){
  303. this.attributeHashfreight(this.freightData.freight)
  304. }else{
  305. this.attributeNofreight()
  306. }
  307. },
  308. attributeNofreight(){// 计算没有邮费的支付价格
  309. if(this.ischecked){
  310. if(this.userMoney>=this.payAllPrice){
  311. this.payAllPrice = 0.00
  312. this.deductMoney = this.allPrice // 当前使用金额等于订单金额
  313. this.surplusMoney = this.userMoney - this.deductMoney // 剩余金额等于余额-当前使用金额
  314. }else{
  315. this.payAllPrice = this.allPrice - this.userMoney // 订单最终支付金额等于订单金额-账户余额
  316. this.deductMoney = this.userMoney // 当前使用金额等于总余额
  317. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于总余额-当前使用金额
  318. }
  319. }else{
  320. this.payAllPrice = this.allPrice;
  321. this.deductMoney = 0.00; // 当前使用
  322. this.surplusMoney = this.userMoney; // 剩余余额
  323. }
  324. },
  325. attributeHashfreight(freight){// 计算需要邮费的支付价格
  326. this.payAllPrice = this.allPrice+parseInt(freight)// 计算不包邮的价格 总价等于商品价格+邮费
  327. if(this.ischecked){
  328. if(this.userMoney>=this.payAllPrice){// 全部抵扣
  329. this.payAllPrice =0.00
  330. if(this.isCheckedBeans){// 抵扣运费了
  331. this.deductMoney = this.allPrice // 当前使用金额等于订单金额
  332. this.surplusMoney = this.userMoney - this.deductMoney // 剩余金额等于余额减去当前使用金额
  333. }else{
  334. this.deductMoney = this.allPrice + parseInt(freight) // 当前使用金额等于订单金额+运费金额
  335. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于总余额-当前使用金额
  336. }
  337. }else{// 部分抵扣
  338. if(this.isCheckedBeans){// 抵扣运费了
  339. this.payAllPrice = this.allPrice - this.userMoney // 订单最终支付金额等于订单金额+运费-账户余额
  340. this.deductMoney = this.userMoney // 当前使用金额等于账户余额
  341. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于账户余额-当前使用金额
  342. }else{
  343. this.payAllPrice = this.allPrice+parseInt(freight) - this.userMoney // 订单最终支付金额等于订单金额+运费-账户余额
  344. this.deductMoney = this.userMoney // 当前使用金额等于账户余额
  345. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于账户余额-当前使用金额
  346. }
  347. }
  348. }else{
  349. this.payAllPrice = this.allPrice+parseInt(freight)
  350. this.deductMoney = 0.00 // 当前使用金额
  351. this.surplusMoney = this.userMoney // 剩余余额
  352. }
  353. },
  354. orderSubmitMit(){// 提交订单
  355. if(this.isSubLoading){ return; }
  356. if(this.addressID == ''){
  357. this.$util.msg('请先添加收货地址~',2000)
  358. return
  359. }
  360. this.orderInfo = this.goodsData.map(el => {
  361. let productInfo = [];
  362. el.cartList.forEach(item => {
  363. productInfo.push({
  364. productId:item.productId,
  365. productNum:item.number,
  366. presentNum:0,
  367. productType:item.productType
  368. })
  369. })
  370. return {shopId:el.id,note:el.note?el.note:'',productInfo:productInfo}
  371. })
  372. //订单信息
  373. this.payInfo = {
  374. clauseId:0,//条款(暂时保留)
  375. orderShouldPayFee:this.payAllPrice.toFixed(2),//提交的总价
  376. balancePayFlag:this.balanceDeductionFlag,//余额抵扣的状态
  377. freight:parseInt(this.hanldFreight).toFixed(2),//邮费
  378. freePostFlag:parseInt(this.hanldFreePostFlag),//运费形式
  379. userBeans:this.hanldUserBeans
  380. }
  381. let param = {
  382. orderSource:6,
  383. clubUserId:this.userID,
  384. cartType:this.cartType,
  385. addressId:this.addressID,
  386. orderInfo:this.orderInfo,
  387. payInfo:this.payInfo, //订单信息
  388. orderInvoice:this.invoiceData
  389. }
  390. console.log(param)
  391. this.isSubLoading = true;
  392. this.OrderService.CreatedOrderSubmit({'params':JSON.stringify(param)}).then(response =>{
  393. const data = response.data;
  394. // 友盟埋点收集机构自主提交订单
  395. if(process.env.NODE_ENV != 'development'){
  396. this.$uma.trackEvent('Um_Event_ConfirmOrder', {
  397. Um_Key_PageName: '机构提交订单',
  398. Um_Key_SourcePage: '确认订单',
  399. Um_Key_OrderID:`${data.orderID}`
  400. })
  401. }
  402. if(data.code === '1'){
  403. this.submitState ='success'
  404. setTimeout(()=>{
  405. this.isSubLoading = false;
  406. },2000)
  407. let data = {orderID:response.data.orderID}
  408. this.$api.navigateTo(`/pages/user/order/success?data=${JSON.stringify({data:data})}`)
  409. }else{
  410. this.submitState ='confirm'
  411. this.$util.msg('订单提交成功',3000,true,'success')
  412. setTimeout(()=>{
  413. this.isSubLoading = false;
  414. },2000)
  415. setTimeout(()=>{
  416. this.$api.redirectTo(`/pages/user/order/order-payment?type=${this.submitState}&orderID=${response.data.orderID}`)
  417. },3000)
  418. }
  419. }).catch(error =>{
  420. this.$util.msg(error.msg,3000);
  421. })
  422. },
  423. handFreightAlertShow(){//显示邮费弹窗
  424. this.isfreightTip = true;
  425. },
  426. hideFreight(){//关闭邮费弹窗
  427. this.isfreightTip = false;
  428. },
  429. },
  430. onShow() {
  431. // this.addressID = ''
  432. let pages = getCurrentPages();
  433. let currPage = pages[pages.length-1];
  434. if(currPage.data.select =='select'){
  435. this.isAddress = true
  436. let SelectData = uni.getStorageSync('selectAddress');
  437. this.addressID = SelectData.addressID;
  438. this.addressData = SelectData
  439. this.getFreightData()
  440. }else{
  441. this.getAddressData()
  442. }
  443. }
  444. }
  445. </script>
  446. <style lang="scss">
  447. page {
  448. height: auto;
  449. background:#F7F7F7;
  450. }
  451. .btn-hover{
  452. background: #FFFFFF;
  453. }
  454. .animation{
  455. /* transition: transform 0.3s ease;*/
  456. transition-property: transform;
  457. transition-duration: 0.3s;
  458. transition-timing-function: ease;
  459. }
  460. .order{
  461. padding-bottom: 134rpx;
  462. }
  463. .invoice-freight{
  464. width: 702rpx;
  465. padding: 0 24rpx;
  466. height: auto;
  467. font-size: $font-size-28;
  468. color: $text-color;
  469. background: #FFFFFF;
  470. float: left;
  471. font-weight: bold;
  472. }
  473. .invoice-balance{
  474. width: 702rpx;
  475. height: auto;
  476. padding:0 24rpx;
  477. background: #FFFFFF;
  478. float: left;
  479. margin-top: 24rpx;
  480. margin-bottom: 24rpx;
  481. .balabce-t{
  482. width: 100%;
  483. height: 86rpx;
  484. line-height: 86rpx;
  485. font-size: $font-size-28;
  486. color: $text-color;
  487. float: left;
  488. .balabce-t-le{
  489. float: left;
  490. font-weight: bold;
  491. }
  492. .balabce-t-ri{
  493. float: right;
  494. display: flex;
  495. align-items: center;
  496. .money{
  497. display: flex;
  498. float: left;
  499. }
  500. .checkbox-box{
  501. display: flex;
  502. width: 60rpx;
  503. float: left;
  504. height: 100%;
  505. font-size: $font-size-24;
  506. .checkbox{
  507. width: 40rpx;
  508. text-align: right;
  509. box-sizing: border-box;
  510. text-align: center;
  511. text-decoration: none;
  512. border-radius: 0;
  513. -webkit-tap-highlight-color: transparent;
  514. overflow: hidden;
  515. color: $color-system;
  516. }
  517. }
  518. }
  519. }
  520. .balabce-b{
  521. width: 100%;
  522. float: left;
  523. overflow: hidden;
  524. .balabce-b-text{
  525. width: 100%;
  526. line-height: 58rpx;
  527. font-size: $font-size-24;
  528. color: #FF2A2A;
  529. text-align: right;
  530. float: right;
  531. }
  532. &.balabce-b--hide {
  533. padding: 0 0;
  534. height: 0px;
  535. line-height: 0px;
  536. }
  537. }
  538. }
  539. .footer{
  540. position: fixed;
  541. left: 0;
  542. bottom: 0;
  543. z-index: 995;
  544. display: flex;
  545. align-items: center;
  546. width: 100%;
  547. height: 110rpx;
  548. line-height: 110rpx;
  549. justify-content: space-between;
  550. font-size: $font-size-28;
  551. background-color: #FFFFFF;
  552. z-index: 998;
  553. color: $text-color;
  554. .footer-le{
  555. width:570rpx;
  556. height:100%;
  557. float: left;
  558. }
  559. .footer-count{
  560. float: left;
  561. padding-left: 24rpx;
  562. width:180rpx;
  563. box-sizing: border-box;
  564. }
  565. .footer-price{
  566. width:370rpx;
  567. float: right;
  568. text-align: right;
  569. color: $text-color;
  570. padding: 10rpx 20rpx 10rpx 0;
  571. box-sizing: border-box;
  572. .sum-none{
  573. width: 100%;
  574. height: 45rpx;
  575. line-height: 45rpx;
  576. color: $text-color;
  577. float: left;
  578. text-align: right;
  579. .money{
  580. font-size: $font-size-26;
  581. color: #999999;
  582. text-decoration: line-through;
  583. }
  584. .money-sign{
  585. font-size: $font-size-26;
  586. color: #999999;
  587. text-decoration: line-through;
  588. }
  589. .money-reduced{
  590. margin-left: 10rpx;
  591. font-size: $font-size-26;
  592. color:$color-system;
  593. }
  594. }
  595. .sum{
  596. width: 100%;
  597. height: 45rpx;
  598. line-height: 45rpx;
  599. float: left;
  600. &.none{
  601. height: 90rpx;
  602. line-height: 90rpx;
  603. }
  604. .price{
  605. font-size: $font-size-32;
  606. color: #FF2A2A;
  607. }
  608. }
  609. }
  610. .footer-submit{
  611. display:flex;
  612. align-items:center;
  613. justify-content: center;
  614. width: 180rpx;
  615. height: 100%;
  616. box-sizing: border-box;
  617. padding: 15rpx 5rpx;
  618. .btn{
  619. width: 100%;
  620. height: 100%;
  621. color: #FFFFFF;
  622. background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  623. font-size: $font-size-26;
  624. text-align: center;
  625. line-height: 80rpx;
  626. border-radius: 40rpx;
  627. &.disabled{
  628. background: #e4e8eb;
  629. color: #999999;
  630. }
  631. }
  632. }
  633. }
  634. </style>