create-order.vue 20 KB

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