order-list.vue 19 KB

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