create-order.vue 20 KB

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