order-list.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <template>
  2. <view class="container" :style="{paddingTop:navbarHeight+'px'}">
  3. <!-- 自定义返回 -->
  4. <header-back :systeminfo='systeminfo' :navbar-data='nvabarData' :headerBtnPosi ="headerBtnPosi" :isDelete="isDelete" @goSearchPath="handlSearchPath"></header-back>
  5. <view class="order-section-top" :style="{marginTop:navbarHeight+'px'}">
  6. <scroll-view scroll-x scroll-with-animation class="tab-view" :scroll-left="scrollLeft">
  7. <view v-for="(item,index) in orderTabBar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']"
  8. :data-current="index" @tap.stop="onClickTab">
  9. <text class="tab-bar-title">{{item.text}}</text>
  10. </view>
  11. </scroll-view>
  12. </view>
  13. <swiper class="tab-content" :current="currentTab" duration="80" @animationfinish="onChange" :style="{height:winHeight+'px'}" >
  14. <swiper-item v-for="(tabItem,index) in orderTabBar" :key="index">
  15. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="false" :loadingType="9"></tui-skeleton>
  16. <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower">
  17. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  18. <!-- 空白页 -->
  19. <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0" :typeIndex="currentTab" :navbarHeight="navbarHeight"></empty>
  20. <!-- 列表 -->
  21. <view v-else class="tui-order-content">
  22. <view class="tui-order-item" v-for="(order,orderIndex) in tabItem.orderList" :key="orderIndex" @click.stop="detail(order.orderID)">
  23. <view class="order-title">
  24. <view class="order-title-t">
  25. <view class="order-title-num tui-skeleton-fillet">订单号:{{order.orderNo}}</view>
  26. <view class="order-title-tip tui-skeleton-fillet">{{orderStateExp(order.status)}}</view>
  27. </view>
  28. <view class="order-title-b">下单时间:{{order.orderTime}}</view>
  29. </view>
  30. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  31. <view class="goods-title">
  32. <view class="title-logo tui-skeleton-fillet"><image :src="shop.shopLogo" mode=""></image></view>
  33. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  34. </view>
  35. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  36. <view class="goods-pros-t">
  37. <view class="pros-img tui-skeleton-fillet"><image :src="pros.productImage" alt="" /></view>
  38. <view class="pros-product">
  39. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  40. <view class="productspec tui-skeleton-fillet">规格:{{pros.productUnit}}</view>
  41. <view class="productprice">
  42. <view class="price tui-skeleton-fillet">
  43. <text>¥{{pros.price.toFixed(2)}}</text>
  44. </view>
  45. <view class="count tui-skeleton-fillet">
  46. <text class="small">x</text>{{pros.num}}
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </block>
  53. <view class="order-footer">
  54. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{orderPriceToFixed(order.discountFee)}}</view>
  55. <view class="order-footer-bot">
  56. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  57. <view class="money tui-skeleton-fillet">应付总额:¥{{orderPriceToFixed(order.payableAmount)}}</view>
  58. </view>
  59. </view>
  60. <!-- 底部button -->
  61. <order-button ref="orderButton"
  62. :status="order.status"
  63. :orderID="order.orderID"
  64. @buttonConfirm="handButtonConfirm">
  65. </order-button>
  66. </view>
  67. <!--加载loadding-->
  68. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  69. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  70. <!--加载loadding-->
  71. </view>
  72. </view>
  73. </scroll-view>
  74. </swiper-item>
  75. </swiper>
  76. <!-- 分享弹窗 -->
  77. <share-alert v-if="isShareModal"
  78. :orderID="btnoRderID"
  79. @shareConfirm ='onShareAppMessage'>
  80. </share-alert>
  81. <!-- 透明模态层 -->
  82. <modal-layer v-if='isModalLayer'></modal-layer>
  83. </view>
  84. </template>
  85. <script>
  86. import headerBack from '@/components/module/headerNavbar/header-back' //自定义导航
  87. import btSearch from '@/components/uni-search/bt-search.vue' //搜索
  88. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  89. import tuiListCell from "@/components/tui-components/list-cell/list-cell"
  90. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  91. import tuiNomore from "@/components/tui-components/nomore/nomore"
  92. import orderButton from '@/components/module/orderDetails/orderListButton' //按钮
  93. import modalLayer from "@/components/modal-layer"
  94. import empty from "@/components/empty";
  95. import shareAlert from '@/components/module/modelAlert/shareAlert' //分享弹窗
  96. import { queryOrderList,cancelOrder,deleteOrder,confirmReceipt } from "@/api/order.js"
  97. export default {
  98. components: {
  99. headerBack,
  100. empty,
  101. btSearch,
  102. tuiListCell,
  103. tuiLoadmore,
  104. tuiNomore,
  105. orderButton,
  106. tuiSkeleton,
  107. modalLayer,
  108. shareAlert
  109. },
  110. data() {
  111. return {
  112. orderTabBar: [{state: 0,text: '全部订单',orderList: []},
  113. {state: 1,text: '待付款',orderList: []},
  114. {state: 2,text: '待发货',orderList: []},
  115. {state: 3,text: '已发货',orderList: []},
  116. {state: 4,text: '退货/款',orderList: []},
  117. ],
  118. tabbar: ["全部订单", "待付款", "待发货", "已发货", "退货/款"],
  119. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  120. systeminfo: this.setSysteminfo(), //获取设备信息
  121. nvabarData: { //顶部自定义导航
  122. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  123. showSearch: 1,
  124. title: '我的订单', // 导航栏 中间的标题
  125. },
  126. winHeight: "", //窗口高度
  127. currentTab: 0, //预设当前项的值
  128. scrollLeft: 0 ,//tab标题的滚动条位置
  129. userID:0,
  130. orderData: [],
  131. btnoRderID: 0, //点击按钮传入的的订单ID
  132. pageNum: 1, //页数
  133. pageSize: 10, //条数
  134. scrollTop: 0,
  135. deteleType:'',
  136. skeletonShow: true,
  137. isDelete:false,
  138. isClickChange: false,
  139. isShareModal: false,//控制分享弹窗
  140. isModalLayer: false,
  141. loadding: false,
  142. pullUpOn: true,
  143. hasNextPage: false,
  144. pullFlag: true,
  145. navbarHeight:'',
  146. nomoreText: '上拉显示更多',
  147. }
  148. },
  149. onLoad(e) {
  150. let that = this;
  151. console.log(e)
  152. if(e.type ==='detele'){that.isDelete = true}
  153. that.currentTab = e.state
  154. that.getHeaderTopHeight()//设置自定义导航高度
  155. // 高度自适应
  156. uni.getSystemInfo({
  157. success: function(res) {
  158. let calc = res.windowHeight;
  159. that.winHeight = calc;
  160. }
  161. });
  162. },
  163. methods: {
  164. // 滚动切换标签样式
  165. onChange: function(e) {
  166. let index = e.target.current || e.detail.current;
  167. if (this.isClickChange) {
  168. this.currentTab = index;
  169. this.isClickChange = false;
  170. return;
  171. }
  172. this.isClickChange = false;
  173. this.currentTab = index;
  174. this.checkCor();
  175. this.pageNum = 1
  176. this.pullUpOn = true //切换时隐藏
  177. this.loadding = false //切换时隐藏
  178. this.nomoreText = ''
  179. this.getOrderDatainit(this.currentTab,'tabChange')
  180. },
  181. // 点击标题切换当前页时改变样式
  182. onClickTab: function(e) {
  183. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current;
  184. if (this.currentTab === tabIndex) {
  185. return false;
  186. } else {
  187. this.isClickChange = true;
  188. this.currentTab = tabIndex
  189. this.pageNum = 1
  190. this.pullUpOn = true //切换时隐藏
  191. this.loadding = false //切换时隐藏
  192. this.getOrderDatainit(this.currentTab)
  193. }
  194. },
  195. //判断当前滚动超过一屏时,设置tab标题滚动条。
  196. checkCor: function() {
  197. if (this.currentTab > 3) {
  198. //这里距离按实际计算
  199. this.scrollLeft = 300
  200. } else {
  201. this.scrollLeft = 0
  202. }
  203. },
  204. getOrderDatainit(index,source){
  205. /**
  206. * @订单初始化加载 仅加载第一页码
  207. * @param:orderState(订单状态:0全部,1待付款,2待发货,3已发货,4退货款)
  208. * @param:userID(用户ID)
  209. * @param:pageNum(页码数)
  210. * @param:pageSize(每页条数)
  211. * @param:organizeID(全局变量组织ID)
  212. */
  213. setTimeout(()=>{this.skeletonShow = false},1500)
  214. let orderItem = this.orderTabBar[index];
  215. let state = orderItem.state;
  216. if(source === 'tabChange' && orderItem.loaded === true){
  217. //tab切换只有第一次需要加载数据
  218. return;
  219. }
  220. setTimeout(()=>{
  221. this.$api.getStorage().then((resolve) =>{
  222. this.userID = resolve.userID
  223. let params = {orderState:index,userId:this.userID,pageNum:1,pageSize:this.pageSize};
  224. queryOrderList(params).then(response =>{
  225. let orderList = response.data.results.filter(item=>{
  226. //添加不同状态下订单的表现形式
  227. item = Object.assign(item, this.orderStateExp(item.state));
  228. return item;
  229. });
  230. orderItem.orderList =[];
  231. orderList.forEach(item=>{
  232. orderItem.orderList.push(item);
  233. })
  234. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  235. this.$set(orderItem, 'loaded', true);
  236. this.hasNextPage = response.data.hasNextPage;
  237. if(this.hasNextPage){
  238. this.pullUpOn = false
  239. this.nomoreText = '上拉显示更多'
  240. }else{
  241. if(orderItem.orderList.length < 2){
  242. this.pullUpOn = true
  243. }else{
  244. this.pullUpOn = false
  245. this.nomoreText = '已至底部'
  246. }
  247. }
  248. }).catch(response =>{
  249. this.$util.msg(response.msg,2000);
  250. })
  251. })
  252. }, 600);
  253. },
  254. getOnReachBottomData(index){//上拉加载
  255. this.pageNum+=1
  256. let params = {orderState:index,userId:this.userID,pageNum:1,pageSize:this.pageSize};
  257. queryOrderList(params).then(response =>{
  258. let orderItem = this.orderTabBar[index];
  259. let resData = response.data.results
  260. this.hasNextPage = response.data.hasNextPage;
  261. orderItem.orderList = orderItem.orderList.concat(resData)
  262. this.pullFlag = false;// 防上拉暴滑
  263. setTimeout(()=>{this.pullFlag = true;},500)
  264. if(this.hasNextPage){
  265. this.pullUpOn = false
  266. this.nomoreText = '上拉显示更多'
  267. }else{
  268. this.loadding = false
  269. this.pullUpOn = false
  270. this.nomoreText = '已至底部'
  271. }
  272. }).catch(response =>{
  273. this.$util.msg(response.msg,2000)
  274. })
  275. },
  276. scrolltolower() {
  277. if(this.hasNextPage){
  278. this.loadding = true
  279. this.pullUpOn = true
  280. this.getOnReachBottomData(this.currentTab);
  281. }
  282. },
  283. detail(id) {//订单详情跳转
  284. console.log(id)
  285. this.isModalLayer = true;
  286. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderID=${id}`)
  287. },
  288. handButtonConfirm(data) {//获取点击
  289. console.log('点击按钮的类型是',data);
  290. this.handShowAlert(data)
  291. this.btnoRderID = data.orderId
  292. },
  293. handShowAlert(data) {//执行
  294. switch(data.type){
  295. case 'delete':
  296. this.handOrderDetele(data.orderId);
  297. break
  298. case 'cancel':
  299. this.handCenceConfirm(data.orderId)
  300. break
  301. case 'query':
  302. this.isModalLayer = true;
  303. this.$api.navigateTo('/pages/user/order/order-logistics?orderID='+data.orderId)
  304. break
  305. case 'confirm':
  306. this.handOrderConfirm(data.orderId);
  307. break
  308. }
  309. },
  310. handOrderConfirm (id){//确认收货
  311. this.$util.modal('提示','是否确认收货','确定','取消',true,() =>{
  312. confirmReceipt({orderID:id}).then(response =>{
  313. this.$util.msg(response.msg,2000,true,'success');
  314. setTimeout(() => {
  315. this.getOrderDatainit(this.currentTab)
  316. },2000)
  317. }).catch(response =>{
  318. this.$util.msg(response.msg,2000)
  319. })
  320. })
  321. },
  322. handOrderDetele(id){//删除订单
  323. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  324. deleteOrder({orderID:id}).then(response =>{
  325. this.$util.msg(response.msg,2000,true,'success');
  326. setTimeout(() => {
  327. this.getOrderDatainit(this.currentTab)
  328. },2000)
  329. }).catch(response =>{
  330. this.$util.msg(response.msg,2000)
  331. })
  332. })
  333. },
  334. handCenceConfirm(id){//取消订单
  335. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  336. cancelOrder({orderID:id}).then(response =>{
  337. this.$util.msg(response.msg,2000,true,'success');
  338. setTimeout(() => {
  339. this.getOrderDatainit(this.currentTab)
  340. },2000)
  341. }).catch(response =>{
  342. this.$util.msg(response.msg,2000)
  343. })
  344. })
  345. },
  346. handlSearchPath(){
  347. this.$api.navigateTo('/pages/search/search-order')
  348. },
  349. onShareAppMessage (res){//分享转发
  350. this.isShareModal = false
  351. if (res.from === 'button') {// 来自页面内转发按钮
  352. // console.log(res.target)
  353. }
  354. return {
  355. title: '您有新的分享订单,快来查看吧~',
  356. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.userID}`,
  357. imageUrl:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/03/%E8%AE%A2%E5%8D%95%E5%88%86%E4%BA%AB%E5%9B%BE%403x.png'
  358. }
  359. },
  360. //订单状态文字和颜色
  361. orderStateExp (state){
  362. let stateText = '',
  363. stateTextObject={
  364. 4:'交易完成',
  365. 5:'订单完成',
  366. 6:'已关闭',
  367. 7:'交易全退',
  368. 77:'交易全退',
  369. 11:'待付款待发货',
  370. 12:'待付款部分发货',
  371. 13:'待付款已发货',
  372. 21:'部分付款待发货',
  373. 22:'部分付款部分发货',
  374. 23:'部分付款已发货',
  375. 31:'已付款待发货',
  376. 32:'已付款部分发货',
  377. 33:'已付款已发货',
  378. 111:'待付款待发货',
  379. }
  380. Object.keys(stateTextObject).forEach(key => {
  381. if(key == state){
  382. stateText = stateTextObject[key]
  383. }
  384. })
  385. return stateText;
  386. },
  387. orderPriceToFixed (n){
  388. let price ='';
  389. price = n.toFixed(2);
  390. return price
  391. },
  392. getHeaderTopHeight (){ // 状态栏高度
  393. let statusBarHeight = this.systeminfo.statusBarHeight
  394. let headerPosi = this.headerBtnPosi
  395. let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
  396. height: headerPosi.height,
  397. width: headerPosi.width,
  398. // 胶囊top - 状态栏高度
  399. top: headerPosi.top - statusBarHeight,
  400. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  401. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  402. // 屏幕宽度 - 胶囊right
  403. right: this.systeminfo.screenWidth - headerPosi.right
  404. }
  405. this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
  406. },
  407. setHeaderBtnPosi (){
  408. // 获得胶囊按钮位置信息
  409. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  410. return headerBtnPosi
  411. },
  412. setSysteminfo (){
  413. let systeminfo;
  414. uni.getSystemInfo({ // 获取设备信息
  415. success: (res) => {
  416. systeminfo = res
  417. },
  418. })
  419. return systeminfo
  420. }
  421. },
  422. onPageScroll(e) {
  423. this.scrollTop = e.scrollTop;
  424. },
  425. onShow() {
  426. this.isModalLayer = false;
  427. this.getOrderDatainit(this.currentTab)
  428. }
  429. }
  430. </script>
  431. <style lang="scss">
  432. /*tabbar start*/
  433. ::-webkit-scrollbar {
  434. width: 0;
  435. height: 0;
  436. color: transparent;
  437. }
  438. .order-section-top{
  439. width: 100%;
  440. position: fixed;
  441. top: 0;
  442. left: 0;
  443. z-index: 99;
  444. background: #FFFFFF;
  445. }
  446. .tab-view::before {
  447. content: '';
  448. position: absolute;
  449. border-bottom: 1rpx solid #eaeef1;
  450. -webkit-transform: scaleY(0.5);
  451. transform: scaleY(0.5);
  452. bottom: 0;
  453. right: 0;
  454. left: 0;
  455. }
  456. .tab-view {
  457. width: 100%;
  458. height: 80rpx;
  459. overflow: hidden;
  460. box-sizing: border-box;
  461. background: #fff;
  462. white-space: nowrap;
  463. border-top: 1px solid #F7F7F7;
  464. }
  465. .tab-bar-item {
  466. padding: 0;
  467. height: 80rpx;
  468. min-width: 80rpx;
  469. line-height: 80rpx;
  470. margin: 0 28rpx;
  471. display: inline-block;
  472. text-align: center;
  473. box-sizing: border-box;
  474. }
  475. .tab-bar-title {
  476. height: 80rpx;
  477. line-height: 80rpx;
  478. font-size:$font-size-28;
  479. color: $text-color;
  480. }
  481. .active {
  482. border-bottom: 6rpx solid $color-system;
  483. }
  484. .active .tab-bar-title {
  485. color: $color-system !important;
  486. }
  487. /*tabbar end*/
  488. .scoll-y {
  489. height: 100%;
  490. }
  491. page{
  492. background: #F7F7F7;
  493. }
  494. .container {
  495. padding-bottom: env(safe-area-inset-bottom);
  496. height: auto;
  497. position: relative;
  498. }
  499. .tui-order-content{
  500. width: 100%;
  501. height: auto;
  502. }
  503. .tui-order-list {
  504. margin-top: 90rpx;
  505. width: 100%;
  506. position: relative;
  507. }
  508. .tui-order-item {
  509. display: flex;
  510. flex-direction: column;
  511. width: 702rpx;
  512. padding:20rpx 24rpx 0 24rpx;
  513. background: #fff;
  514. border-bottom: 20rpx solid #F7F7F7;
  515. }
  516. .order-title{
  517. width: 100%;
  518. height: auto;
  519. .order-title-t{
  520. width: 100%;
  521. height: 40rpx;
  522. float: left;
  523. font-size: $font-size-28;
  524. line-height: 40rpx;
  525. font-weight: bold;
  526. .order-title-num{
  527. float: left;
  528. text-align: left;
  529. color: $color-system;
  530. }
  531. .order-title-tip{
  532. float: right;
  533. text-align: right;
  534. color: #FF2A2A;
  535. }
  536. }
  537. .order-title-b{
  538. width: 100%;
  539. height: 40rpx;
  540. float: left;
  541. margin-top: 8rpx;
  542. font-size: $font-size-28;
  543. line-height: 40rpx;
  544. color: #999999;
  545. text-align: left;
  546. }
  547. }
  548. .goods-title{
  549. width: 100%;
  550. height: 48rpx;
  551. float: left;
  552. margin-top: 24rpx;
  553. .title-logo{
  554. width: 48rpx;
  555. height: 48rpx;
  556. float: left;
  557. image{
  558. width: 48rpx;
  559. height: 48rpx;
  560. }
  561. }
  562. .title-text{
  563. float: left;
  564. margin-left: 16rpx;
  565. font-size: $font-size-28;
  566. color: $text-color;
  567. text-align: left;
  568. line-height: 48rpx;
  569. font-weight: bold;
  570. }
  571. }
  572. .goods-item{
  573. width: 100%;
  574. height: auto;
  575. }
  576. .goods-pros-t{
  577. display: flex;
  578. align-items: center;
  579. width: 100%;
  580. height: 217rpx;
  581. padding:24rpx 0;
  582. .pros-img{
  583. width: 210rpx;
  584. height: 100%;
  585. border-radius: 10rpx;
  586. margin:0 26rpx 0 0;
  587. border:1px solid #f3f3f3;
  588. image{
  589. width: 100%;
  590. height: 100%;
  591. border-radius: 10rpx;
  592. }
  593. }
  594. }
  595. .pros-product{
  596. width: 468rpx;
  597. height: 100%;
  598. line-height: 36rpx;
  599. font-size: $font-size-26;
  600. position: relative;
  601. .producttitle{
  602. width: 100%;
  603. display: inline-block;
  604. height: auto;
  605. text-overflow:ellipsis;
  606. display: -webkit-box;
  607. word-break: break-all;
  608. -webkit-box-orient: vertical;
  609. -webkit-line-clamp: 2;
  610. overflow: hidden;
  611. margin-bottom: 8rpx;
  612. }
  613. .productspec{
  614. height: 36rpx;
  615. color: #999999;
  616. }
  617. .productprice{
  618. height: 48rpx;
  619. position: absolute;
  620. width: 100%;
  621. bottom: 0;
  622. .price{
  623. line-height: 48rpx;
  624. font-size: $font-size-28;
  625. width: 48%;
  626. color: #FF2A2A;
  627. float: left;
  628. font-weight: bold;
  629. }
  630. .count{
  631. height: 100%;
  632. float: right;
  633. position: relative;
  634. .small{
  635. color: #666666;
  636. }
  637. }
  638. }
  639. }
  640. .order-footer{
  641. width: 100%;
  642. height: 78rpx;
  643. float: left;
  644. .order-footer-top{
  645. width: 100%;
  646. height: 34rpx;
  647. line-height: 34rpx;
  648. font-size: $font-size-24;
  649. color: #999999;
  650. text-align: right;
  651. }
  652. .order-footer-bot{
  653. width: 100%;
  654. float: left;
  655. height: 48rpx;
  656. line-height: 48rpx;
  657. font-size: $font-size-28;
  658. font-weight: bold;
  659. color: $text-color;
  660. .count{
  661. width: 50%;
  662. float: left;
  663. text-align: left;
  664. }
  665. .money{
  666. width: 50%;
  667. float: right;
  668. text-align: right;
  669. }
  670. }
  671. }
  672. </style>