create-order.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  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 >= this.hanldFreight*100 ){
  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 >= 3000 ){
  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 >= this.hanldFreight*100 ){
  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. this.payAllPrice = this.allPrice+parseInt(freight) - this.userMoney // 订单最终支付金额等于订单金额+运费-账户余额
  339. this.deductMoney = this.userMoney // 当前使用金额等于账户余额
  340. this.surplusMoney = this.userMoney - this.deductMoney // 剩余余额等于账户余额-当前使用金额
  341. }
  342. }else{
  343. this.payAllPrice = this.allPrice+parseInt(freight)
  344. this.deductMoney = 0.00 // 当前使用金额
  345. this.surplusMoney = this.userMoney // 剩余余额
  346. }
  347. },
  348. orderSubmitMit(){// 提交订单
  349. if(this.isSubLoading){ return; }
  350. if(this.addressID == ''){
  351. this.$util.msg('请先添加收货地址~',2000)
  352. return
  353. }
  354. this.orderInfo = this.goodsData.map(el => {
  355. let productInfo = [];
  356. el.cartList.forEach(item => {
  357. productInfo.push({
  358. productId:item.productId,
  359. productNum:item.number,
  360. presentNum:0,
  361. productType:item.productType
  362. })
  363. })
  364. return {shopId:el.id,note:el.note?el.note:'',productInfo:productInfo}
  365. })
  366. //订单信息
  367. this.payInfo = {
  368. clauseId:0,//条款(暂时保留)
  369. orderShouldPayFee:this.payAllPrice.toFixed(2),//提交的总价
  370. balancePayFlag:this.balanceDeductionFlag,//余额抵扣的状态
  371. freight:parseInt(this.hanldFreight).toFixed(2),//邮费
  372. freePostFlag:parseInt(this.hanldFreePostFlag),//运费形式
  373. userBeans:this.hanldUserBeans
  374. }
  375. let param = {
  376. orderSource:6,
  377. clubUserId:this.userID,
  378. cartType:this.cartType,
  379. addressId:this.addressID,
  380. orderInfo:this.orderInfo,
  381. payInfo:this.payInfo, //订单信息
  382. orderInvoice:this.invoiceData
  383. }
  384. console.log(param)
  385. this.isSubLoading = true;
  386. this.OrderService.CreatedOrderSubmit({'params':JSON.stringify(param)}).then(response =>{
  387. const data = response.data;
  388. // 友盟埋点收集机构自主提交订单
  389. if(process.env.NODE_ENV != 'development'){
  390. this.$uma.trackEvent('Um_Event_ConfirmOrder', {
  391. Um_Key_PageName: '机构提交订单',
  392. Um_Key_SourcePage: '确认订单',
  393. Um_Key_OrderID:`${data.orderID}`
  394. })
  395. }
  396. if(data.code === '1'){
  397. this.submitState ='success'
  398. setTimeout(()=>{
  399. this.isSubLoading = false;
  400. },2000)
  401. let data = {orderID:response.data.orderID}
  402. this.$api.navigateTo(`/pages/user/order/success?data=${JSON.stringify({data:data})}`)
  403. }else{
  404. this.submitState ='confirm'
  405. this.$util.msg('订单提交成功',3000,true,'success')
  406. setTimeout(()=>{
  407. this.isSubLoading = false;
  408. },2000)
  409. setTimeout(()=>{
  410. this.$api.redirectTo(`/pages/user/order/order-payment?type=${this.submitState}&orderID=${response.data.orderID}`)
  411. },3000)
  412. }
  413. }).catch(error =>{
  414. this.$util.msg(error.msg,3000);
  415. })
  416. },
  417. handFreightAlertShow(){//显示邮费弹窗
  418. this.isfreightTip = true;
  419. },
  420. hideFreight(){//关闭邮费弹窗
  421. this.isfreightTip = false;
  422. },
  423. },
  424. onShow() {
  425. // this.addressID = ''
  426. let pages = getCurrentPages();
  427. let currPage = pages[pages.length-1];
  428. if(currPage.data.select =='select'){
  429. this.isAddress = true
  430. let SelectData = uni.getStorageSync('selectAddress');
  431. this.addressID = SelectData.addressID;
  432. this.addressData = SelectData
  433. this.getFreightData()
  434. }else{
  435. this.getAddressData()
  436. }
  437. }
  438. }
  439. </script>
  440. <style lang="scss">
  441. page {
  442. height: auto;
  443. background:#F7F7F7;
  444. }
  445. .btn-hover{
  446. background: #FFFFFF;
  447. }
  448. .animation{
  449. /* transition: transform 0.3s ease;*/
  450. transition-property: transform;
  451. transition-duration: 0.3s;
  452. transition-timing-function: ease;
  453. }
  454. .order{
  455. padding-bottom: 134rpx;
  456. }
  457. .invoice-freight{
  458. width: 702rpx;
  459. padding: 0 24rpx;
  460. height: auto;
  461. font-size: $font-size-28;
  462. color: $text-color;
  463. background: #FFFFFF;
  464. float: left;
  465. font-weight: bold;
  466. }
  467. .invoice-balance{
  468. width: 702rpx;
  469. height: auto;
  470. padding:0 24rpx;
  471. background: #FFFFFF;
  472. float: left;
  473. margin-top: 24rpx;
  474. margin-bottom: 24rpx;
  475. .balabce-t{
  476. width: 100%;
  477. height: 86rpx;
  478. line-height: 86rpx;
  479. font-size: $font-size-28;
  480. color: $text-color;
  481. float: left;
  482. .balabce-t-le{
  483. float: left;
  484. font-weight: bold;
  485. }
  486. .balabce-t-ri{
  487. float: right;
  488. display: flex;
  489. align-items: center;
  490. .money{
  491. display: flex;
  492. float: left;
  493. }
  494. .checkbox-box{
  495. display: flex;
  496. width: 60rpx;
  497. float: left;
  498. height: 100%;
  499. font-size: $font-size-24;
  500. .checkbox{
  501. width: 40rpx;
  502. text-align: right;
  503. box-sizing: border-box;
  504. text-align: center;
  505. text-decoration: none;
  506. border-radius: 0;
  507. -webkit-tap-highlight-color: transparent;
  508. overflow: hidden;
  509. color: $color-system;
  510. }
  511. }
  512. }
  513. }
  514. .balabce-b{
  515. width: 100%;
  516. float: left;
  517. overflow: hidden;
  518. .balabce-b-text{
  519. width: 100%;
  520. line-height: 58rpx;
  521. font-size: $font-size-24;
  522. color: #FF2A2A;
  523. text-align: right;
  524. float: right;
  525. }
  526. &.balabce-b--hide {
  527. padding: 0 0;
  528. height: 0px;
  529. line-height: 0px;
  530. }
  531. }
  532. }
  533. .footer{
  534. position: fixed;
  535. left: 0;
  536. bottom: 0;
  537. z-index: 995;
  538. display: flex;
  539. align-items: center;
  540. width: 100%;
  541. height: 110rpx;
  542. line-height: 110rpx;
  543. justify-content: space-between;
  544. font-size: $font-size-28;
  545. background-color: #FFFFFF;
  546. z-index: 998;
  547. color: $text-color;
  548. .footer-le{
  549. width:570rpx;
  550. height:100%;
  551. float: left;
  552. }
  553. .footer-count{
  554. float: left;
  555. padding-left: 24rpx;
  556. width:180rpx;
  557. box-sizing: border-box;
  558. }
  559. .footer-price{
  560. width:370rpx;
  561. float: right;
  562. text-align: right;
  563. color: $text-color;
  564. padding: 10rpx 20rpx 10rpx 0;
  565. box-sizing: border-box;
  566. .sum-none{
  567. width: 100%;
  568. height: 45rpx;
  569. line-height: 45rpx;
  570. color: $text-color;
  571. float: left;
  572. text-align: right;
  573. .money{
  574. font-size: $font-size-26;
  575. color: #999999;
  576. text-decoration: line-through;
  577. }
  578. .money-sign{
  579. font-size: $font-size-26;
  580. color: #999999;
  581. text-decoration: line-through;
  582. }
  583. .money-reduced{
  584. margin-left: 10rpx;
  585. font-size: $font-size-26;
  586. color:$color-system;
  587. }
  588. }
  589. .sum{
  590. width: 100%;
  591. height: 45rpx;
  592. line-height: 45rpx;
  593. float: left;
  594. &.none{
  595. height: 90rpx;
  596. line-height: 90rpx;
  597. }
  598. .price{
  599. font-size: $font-size-32;
  600. color: #FF2A2A;
  601. }
  602. }
  603. }
  604. .footer-submit{
  605. display:flex;
  606. align-items:center;
  607. justify-content: center;
  608. width: 180rpx;
  609. height: 100%;
  610. box-sizing: border-box;
  611. padding: 15rpx 5rpx;
  612. .btn{
  613. width: 100%;
  614. height: 100%;
  615. color: #FFFFFF;
  616. background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  617. font-size: $font-size-26;
  618. text-align: center;
  619. line-height: 80rpx;
  620. border-radius: 40rpx;
  621. &.disabled{
  622. background: #e4e8eb;
  623. color: #999999;
  624. }
  625. }
  626. }
  627. }
  628. </style>