order-list.vue 20 KB

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