create-order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  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. this.isFreight = false
  169. let params ={
  170. userId:this.userID,
  171. productIds:this.productIds,
  172. totalPrice:this.allPrice,
  173. townId:this.addressData.townID
  174. }
  175. this.OrderService.GetOrderPostage(params).then(response =>{
  176. this.isFreight = true
  177. this.isCheckedBeans = false
  178. this.freightData = response.data
  179. this.hanldFreePostFlag = response.data.freePostFlag
  180. this.hanldFreight = response.data.freight
  181. if(this.hanldFreePostFlag == 1){
  182. if( this.freightData.userBeans > 0 ){
  183. this.freightBeansMoney = this.hanldFreight
  184. }else{
  185. this.freightBeansMoney = 0
  186. }
  187. this.payAllPrice = this.allPrice + response.data.freight
  188. this.attributePallPrice()
  189. this.hanldFreightBeans(this.isCheckedBeans)
  190. }else{
  191. if( this.freightData.userBeans > 0 ){
  192. this.freightBeansMoney = 30
  193. }else{
  194. this.freightBeansMoney = 0
  195. }
  196. this.payAllPrice = this.allPrice
  197. this.attributePallPrice()
  198. this.hanldFreightBeans(this.isCheckedBeans)
  199. }
  200. })
  201. },
  202. getAddressData(){//获取地址信息
  203. this.$api.getStorage().then((resolve) => {
  204. this.UserService.QueryAddressList({pageNum:1,pageSize:1,userID:resolve.userId}).then(response =>{
  205. this.isAddress = true
  206. this.addressData = {}
  207. if(response.data.results != ''){
  208. this.addressID = response.data.results[0].addressID;
  209. this.townID = response.data.results[0].townID;
  210. this.addressData = response.data.results[0];
  211. this.getFreightData()
  212. }else{
  213. this.addressData = this.addressData;
  214. }
  215. })
  216. })
  217. },
  218. handChangeInputGoodsList(data){//对应供应商的留言信息
  219. this.goodsData = data;
  220. },
  221. handleChoiceaInvoiceData(data){//获取发票信息
  222. this.invoiceData = data
  223. },
  224. hanldFreightFn(data){//显示邮费弹窗
  225. console.log(data)
  226. switch(data.freePostFlag){
  227. case 1:
  228. this.hanldFreight = this.freightData.freight
  229. this.hanldFreePostFlag = data.freePostFlag
  230. this.freightBeansMoney = data.freightBeansMoney
  231. this.payAllPrice =this.allPrice + this.hanldFreight
  232. this.attributePallPrice()
  233. this.hanldFreightBeans(this.isCheckedBeans)
  234. break
  235. case -1:
  236. this.hanldFreight = 0
  237. this.hanldFreePostFlag = data.freePostFlag
  238. this.freightBeansMoney = data.freightBeansMoney
  239. this.payAllPrice = this.allPrice
  240. this.attributePallPrice()
  241. this.hanldFreightBeans(this.isCheckedBeans)
  242. break
  243. }
  244. },
  245. hanldFreightBeans(data){//是否勾选采美豆抵扣
  246. this.isCheckedBeans = data;
  247. if(this.isCheckedBeans){
  248. // 判断如果采美豆大于等于运费*100
  249. if( this.freightData.userBeans > 0 ){
  250. this.hanldUserBeans = this.freightBeansMoney*100
  251. }else{
  252. this.hanldUserBeans = 0
  253. }
  254. // 计算抵扣后的总价
  255. if(this.hanldFreePostFlag == 1){
  256. // 如果使用了余额 最终价格
  257. if(this.ischecked){
  258. if(this.userMoney>=this.payAllPrice){
  259. this.payAllPrice = 0.00
  260. this.deductMoney = this.allPrice // 当前使用金额等于订单金额
  261. this.surplusMoney = this.userMoney - this.deductMoney // 剩余金额等于余额-当前使用金额
  262. }else{
  263. this.payAllPrice = this.allPrice - this.userMoney // 订单最终支付金额等于订单金额-账户余额
  264. this.deductMoney = this.userMoney // 当前使用金额等于总余额
  265. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于总余额-当前使用金额
  266. }
  267. }else{
  268. this.payAllPrice = this.allPrice + this.hanldFreight - this.freightBeansMoney
  269. }
  270. console.log('抵扣',this.payAllPrice)
  271. }
  272. }else{// 采美豆不抵扣运费
  273. this.hanldUserBeans = 0
  274. // 不抵扣时计算总价
  275. if(this.hanldFreePostFlag == 1){
  276. this.attributeHashfreight(this.hanldFreight)
  277. }
  278. }
  279. },
  280. checkedBalabce(){//勾选使用余额
  281. if(this.userMoney > 0){
  282. this.ischecked = !this.ischecked
  283. if(this.ischecked){
  284. this.balanceDeductionFlag =1
  285. this.attributePallPrice()
  286. }else{
  287. if(this.hanldFreePostFlag == 1 || this.hanldFreePostFlag == '1'){ //如果是有运费时
  288. if(this.isCheckedBeans){
  289. this.payAllPrice = this.allPrice
  290. }else{
  291. this.payAllPrice = this.allPrice+parseInt(this.freightData.freight)
  292. }
  293. }else{
  294. this.payAllPrice = this.allPrice
  295. }
  296. this.balanceDeductionFlag = 2
  297. }
  298. }else{
  299. return
  300. }
  301. },
  302. attributePallPrice(){// 计算价格
  303. if(this.hanldFreePostFlag == 1 || this.hanldFreePostFlag == '1'){
  304. this.attributeHashfreight(this.freightData.freight)
  305. }else{
  306. this.attributeNofreight()
  307. }
  308. },
  309. attributeNofreight(){// 计算没有邮费的支付价格
  310. if(this.ischecked){
  311. if(this.userMoney>=this.payAllPrice){
  312. this.payAllPrice = 0.00
  313. this.deductMoney = this.allPrice // 当前使用金额等于订单金额
  314. this.surplusMoney = this.userMoney - this.deductMoney // 剩余金额等于余额-当前使用金额
  315. }else{
  316. this.payAllPrice = this.allPrice - this.userMoney // 订单最终支付金额等于订单金额-账户余额
  317. this.deductMoney = this.userMoney // 当前使用金额等于总余额
  318. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于总余额-当前使用金额
  319. }
  320. }else{
  321. this.payAllPrice = this.allPrice;
  322. this.deductMoney = 0.00; // 当前使用
  323. this.surplusMoney = this.userMoney; // 剩余余额
  324. }
  325. },
  326. attributeHashfreight(freight){// 计算需要邮费的支付价格
  327. this.payAllPrice = this.allPrice+parseInt(freight)// 计算不包邮的价格 总价等于商品价格+邮费
  328. if(this.ischecked){
  329. if(this.userMoney>=this.payAllPrice){// 全部抵扣
  330. this.payAllPrice =0.00
  331. if(this.isCheckedBeans){// 抵扣运费了
  332. this.deductMoney = this.allPrice // 当前使用金额等于订单金额
  333. this.surplusMoney = this.userMoney - this.deductMoney // 剩余金额等于余额减去当前使用金额
  334. }else{
  335. this.deductMoney = this.allPrice + parseInt(freight) // 当前使用金额等于订单金额+运费金额
  336. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于总余额-当前使用金额
  337. }
  338. }else{// 部分抵扣
  339. if(this.isCheckedBeans){// 抵扣运费了
  340. this.payAllPrice = this.allPrice - this.userMoney // 订单最终支付金额等于订单金额+运费-账户余额
  341. this.deductMoney = this.userMoney // 当前使用金额等于账户余额
  342. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于账户余额-当前使用金额
  343. }else{
  344. this.payAllPrice = this.allPrice+parseInt(freight) - this.userMoney // 订单最终支付金额等于订单金额+运费-账户余额
  345. this.deductMoney = this.userMoney // 当前使用金额等于账户余额
  346. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于账户余额-当前使用金额
  347. }
  348. }
  349. }else{
  350. this.payAllPrice = this.allPrice+parseInt(freight)
  351. this.deductMoney = 0.00 // 当前使用金额
  352. this.surplusMoney = this.userMoney // 剩余余额
  353. }
  354. },
  355. orderSubmitMit(){// 提交订单
  356. if(this.isSubLoading){ return; }
  357. if(this.addressID == ''){
  358. this.$util.msg('请先添加收货地址~',2000)
  359. return
  360. }
  361. this.orderInfo = this.goodsData.map(el => {
  362. let productInfo = [];
  363. el.cartList.forEach(item => {
  364. productInfo.push({
  365. productId:item.productId,
  366. productNum:item.number,
  367. presentNum:0,
  368. productType:item.productType
  369. })
  370. })
  371. return {shopId:el.id,note:el.note?el.note:'',productInfo:productInfo}
  372. })
  373. //订单信息
  374. this.payInfo = {
  375. clauseId:0,//条款(暂时保留)
  376. orderShouldPayFee:this.payAllPrice.toFixed(2),//提交的总价
  377. balancePayFlag:this.balanceDeductionFlag,//余额抵扣的状态
  378. freight:parseInt(this.hanldFreight).toFixed(2),//邮费
  379. freePostFlag:parseInt(this.hanldFreePostFlag),//运费形式
  380. userBeans:this.hanldUserBeans
  381. }
  382. let param = {
  383. orderSource:6,
  384. clubUserId:this.userID,
  385. cartType:this.cartType,
  386. addressId:this.addressID,
  387. orderInfo:this.orderInfo,
  388. payInfo:this.payInfo, //订单信息
  389. orderInvoice:this.invoiceData
  390. }
  391. console.log(param)
  392. this.isSubLoading = true;
  393. this.OrderService.CreatedOrderSubmit({'params':JSON.stringify(param)}).then(response =>{
  394. const data = response.data;
  395. // 友盟埋点收集机构自主提交订单
  396. if(process.env.NODE_ENV != 'development'){
  397. this.$uma.trackEvent('Um_Event_ConfirmOrder', {
  398. Um_Key_PageName: '机构提交订单',
  399. Um_Key_SourcePage: '确认订单',
  400. Um_Key_OrderID:`${data.orderID}`
  401. })
  402. }
  403. if(data.code === '1'){
  404. this.submitState ='success'
  405. setTimeout(()=>{
  406. this.isSubLoading = false;
  407. },2000)
  408. let data = {orderID:response.data.orderID}
  409. this.$api.navigateTo(`/pages/user/order/success?data=${JSON.stringify({data:data})}`)
  410. }else{
  411. this.submitState ='confirm'
  412. this.$util.msg('订单提交成功',3000,true,'success')
  413. setTimeout(()=>{
  414. this.isSubLoading = false;
  415. },2000)
  416. setTimeout(()=>{
  417. this.$api.redirectTo(`/pages/user/order/order-payment?type=${this.submitState}&orderID=${response.data.orderID}`)
  418. },3000)
  419. }
  420. }).catch(error =>{
  421. this.$util.msg(error.msg,3000);
  422. })
  423. },
  424. handFreightAlertShow(){//显示邮费弹窗
  425. this.isfreightTip = true;
  426. },
  427. hideFreight(){//关闭邮费弹窗
  428. this.isfreightTip = false;
  429. },
  430. },
  431. onShow() {
  432. // this.addressID = ''
  433. let pages = getCurrentPages();
  434. let currPage = pages[pages.length-1];
  435. if(currPage.data.select =='select'){
  436. this.isAddress = true
  437. let SelectData = uni.getStorageSync('selectAddress');
  438. this.addressID = SelectData.addressID;
  439. this.addressData = SelectData
  440. this.getFreightData()
  441. }else{
  442. this.getAddressData()
  443. }
  444. }
  445. }
  446. </script>
  447. <style lang="scss">
  448. page {
  449. height: auto;
  450. background:#F7F7F7;
  451. }
  452. .btn-hover{
  453. background: #FFFFFF;
  454. }
  455. .animation{
  456. /* transition: transform 0.3s ease;*/
  457. transition-property: transform;
  458. transition-duration: 0.3s;
  459. transition-timing-function: ease;
  460. }
  461. .order{
  462. padding-bottom: 134rpx;
  463. }
  464. .invoice-freight{
  465. width: 702rpx;
  466. padding: 0 24rpx;
  467. height: auto;
  468. font-size: $font-size-28;
  469. color: $text-color;
  470. background: #FFFFFF;
  471. float: left;
  472. font-weight: bold;
  473. }
  474. .invoice-balance{
  475. width: 702rpx;
  476. height: auto;
  477. padding:0 24rpx;
  478. background: #FFFFFF;
  479. float: left;
  480. margin-top: 24rpx;
  481. margin-bottom: 24rpx;
  482. .balabce-t{
  483. width: 100%;
  484. height: 86rpx;
  485. line-height: 86rpx;
  486. font-size: $font-size-28;
  487. color: $text-color;
  488. float: left;
  489. .balabce-t-le{
  490. float: left;
  491. font-weight: bold;
  492. }
  493. .balabce-t-ri{
  494. float: right;
  495. display: flex;
  496. align-items: center;
  497. .money{
  498. display: flex;
  499. float: left;
  500. }
  501. .checkbox-box{
  502. display: flex;
  503. width: 60rpx;
  504. float: left;
  505. height: 100%;
  506. font-size: $font-size-24;
  507. .checkbox{
  508. width: 40rpx;
  509. text-align: right;
  510. box-sizing: border-box;
  511. text-align: center;
  512. text-decoration: none;
  513. border-radius: 0;
  514. -webkit-tap-highlight-color: transparent;
  515. overflow: hidden;
  516. color: $color-system;
  517. }
  518. }
  519. }
  520. }
  521. .balabce-b{
  522. width: 100%;
  523. float: left;
  524. overflow: hidden;
  525. .balabce-b-text{
  526. width: 100%;
  527. line-height: 58rpx;
  528. font-size: $font-size-24;
  529. color: #FF2A2A;
  530. text-align: right;
  531. float: right;
  532. }
  533. &.balabce-b--hide {
  534. padding: 0 0;
  535. height: 0px;
  536. line-height: 0px;
  537. }
  538. }
  539. }
  540. .footer{
  541. position: fixed;
  542. left: 0;
  543. bottom: 0;
  544. z-index: 995;
  545. display: flex;
  546. align-items: center;
  547. width: 100%;
  548. height: 110rpx;
  549. line-height: 110rpx;
  550. justify-content: space-between;
  551. font-size: $font-size-28;
  552. background-color: #FFFFFF;
  553. z-index: 998;
  554. color: $text-color;
  555. .footer-le{
  556. width:570rpx;
  557. height:100%;
  558. float: left;
  559. }
  560. .footer-count{
  561. float: left;
  562. padding-left: 24rpx;
  563. width:180rpx;
  564. box-sizing: border-box;
  565. }
  566. .footer-price{
  567. width:370rpx;
  568. float: right;
  569. text-align: right;
  570. color: $text-color;
  571. padding: 10rpx 20rpx 10rpx 0;
  572. box-sizing: border-box;
  573. .sum-none{
  574. width: 100%;
  575. height: 45rpx;
  576. line-height: 45rpx;
  577. color: $text-color;
  578. float: left;
  579. text-align: right;
  580. .money{
  581. font-size: $font-size-26;
  582. color: #999999;
  583. text-decoration: line-through;
  584. }
  585. .money-sign{
  586. font-size: $font-size-26;
  587. color: #999999;
  588. text-decoration: line-through;
  589. }
  590. .money-reduced{
  591. margin-left: 10rpx;
  592. font-size: $font-size-26;
  593. color:$color-system;
  594. }
  595. }
  596. .sum{
  597. width: 100%;
  598. height: 45rpx;
  599. line-height: 45rpx;
  600. float: left;
  601. &.none{
  602. height: 90rpx;
  603. line-height: 90rpx;
  604. }
  605. .price{
  606. font-size: $font-size-32;
  607. color: #FF2A2A;
  608. }
  609. }
  610. }
  611. .footer-submit{
  612. display:flex;
  613. align-items:center;
  614. justify-content: center;
  615. width: 180rpx;
  616. height: 100%;
  617. box-sizing: border-box;
  618. padding: 15rpx 5rpx;
  619. .btn{
  620. width: 100%;
  621. height: 100%;
  622. color: #FFFFFF;
  623. background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  624. font-size: $font-size-26;
  625. text-align: center;
  626. line-height: 80rpx;
  627. border-radius: 40rpx;
  628. &.disabled{
  629. background: #e4e8eb;
  630. color: #999999;
  631. }
  632. }
  633. }
  634. }
  635. </style>