order-list.vue 19 KB

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