order-historylist.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. <template>
  2. <view class="container" :style="{paddingTop:82+'px'}">
  3. <view class="order-section-top">
  4. <scroll-view scroll-x scroll-with-animation class="tab-view" :scroll-left="scrollLeft">
  5. <view v-for="(item,index) in orderTabBar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']"
  6. :data-current="index" @tap.stop="onClickTab">
  7. <text class="tab-bar-title">{{item.text}}</text>
  8. </view>
  9. </scroll-view>
  10. <view class="tab-screen">
  11. <view v-for="(item,index) in screenTabBar" :key="index" class="tab-screen-item" :class="[screenTab == index ? 'active' : '']"
  12. :data-current="index" @tap.stop="onClickScreenTab(index)">{{item.text}}</view>
  13. </view>
  14. </view>
  15. <swiper class="tab-content" :current="currentTab" duration="80" @animationfinish="onChange" :style="{height:winHeight+'px'}" >
  16. <swiper-item v-for="(tabItem,index) in orderTabBar" :key="index">
  17. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="false" :loadingType="5"></tui-skeleton>
  18. <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower" :style="{height:winHeight+'px'}" >
  19. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  20. <!-- 空白页 -->
  21. <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0" :typeIndex="currentTab" :navbarHeight="navbarHeight"></empty>
  22. <!-- 列表 -->
  23. <view v-else class="tui-order-content">
  24. <view class="tui-order-item" v-for="(order,orderIndex) in tabItem.orderList" :key="orderIndex" @click.stop="detail(order.orderID)">
  25. <view class="order-title">
  26. <view class="order-title-name">这里是机构的名称</view>
  27. <view class="order-title-t">
  28. <text class="bage-buss tui-skeleton-fillet" v-if="order.orderSubmitType == 3">协销</text>
  29. <text class="bage-auto tui-skeleton-fillet" v-if="order.orderSubmitType == 0 || order.orderSubmitType == 2">自主</text>
  30. <text class="bage-text tui-skeleton-fillet">订单号:{{order.orderNo}}({{order.orderID}})</text>
  31. </view>
  32. <view class="order-title-b">
  33. <view class="order-title-btxt tui-skeleton-fillet">下单时间:{{order.orderTime}}</view>
  34. <view class="order-title-tip tui-skeleton-fillet">{{orderStateExp(order.status)}}</view>
  35. </view>
  36. </view>
  37. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  38. <view class="goods-title">
  39. <view class="title-logo tui-skeleton-fillet"><image :src="shop.shopLogo" mode=""></image></view>
  40. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  41. </view>
  42. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  43. <view class="goods-pros-t">
  44. <view class="pros-img tui-skeleton-fillet"><image :src="pros.productImage" alt="" /></view>
  45. <view class="pros-product">
  46. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  47. <view class="productspec tui-skeleton-fillet">规格:{{pros.productUnit ? pros.productUnit : ''}}</view>
  48. <view class="productprice">
  49. <view class="price tui-skeleton-fillet">
  50. <text>¥{{pros.price.toFixed(2)}}</text>
  51. </view>
  52. <view class="count tui-skeleton-fillet">
  53. <text class="small">x</text>{{pros.num}}
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </block>
  60. <view class="order-footer">
  61. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{orderPriceToFixed(order.discountFee)}}</view>
  62. <view class="order-footer-bot">
  63. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  64. <view class="money tui-skeleton-fillet">应付总额:¥{{orderPriceToFixed(order.payableAmount)}}</view>
  65. </view>
  66. </view>
  67. <!-- 底部button -->
  68. <order-button ref="orderButton"
  69. :status="order.status"
  70. :orderID="order.orderID"
  71. @buttonConfirm="handButtonConfirm">
  72. </order-button>
  73. </view>
  74. <!--加载loadding-->
  75. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  76. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  77. <!--加载loadding-->
  78. </view>
  79. </view>
  80. </scroll-view>
  81. </swiper-item>
  82. </swiper>
  83. <!-- 分享弹窗 -->
  84. <share-alert v-if="isShareModal"
  85. :orderID="btnoRderID"
  86. :clubUserID = btnClubUserID
  87. @shareConfirm ='onShareAppMessage'>
  88. </share-alert>
  89. <!-- 透明模态层 -->
  90. <modal-layer v-if='isModalLayer'></modal-layer>
  91. </view>
  92. </template>
  93. <script>
  94. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义顶部导航
  95. import btSearch from '@/components/uni-search/bt-search.vue' //搜索
  96. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  97. import tuiListCell from "@/components/tui-components/list-cell/list-cell"
  98. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  99. import tuiNomore from "@/components/tui-components/nomore/nomore"
  100. import orderButton from '@/components/cm-module/orderDetails/sellerOrderButton' //操作按钮
  101. import modalLayer from "@/components/modal-layer"
  102. import empty from "@/components/empty";
  103. import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
  104. import { cancelOrder,deleteOrder, affirmOrder } from "@/api/order.js"
  105. import { getSellerClubOrderList } from "@/api/seller.js"
  106. export default {
  107. components: {
  108. headerBack,
  109. empty,
  110. btSearch,
  111. tuiListCell,
  112. tuiLoadmore,
  113. tuiNomore,
  114. orderButton,
  115. tuiSkeleton,
  116. modalLayer,
  117. shareAlert
  118. },
  119. data() {
  120. return {
  121. orderTabBar: [{listType: 0,text: '全部订单',orderList: []},
  122. {listType: 1,text: '待确认',orderList: []},
  123. {listType: 2,text: '待付款',orderList: []},
  124. {listType: 3,text: '待发货',orderList: []},
  125. {listType: 4,text: '已发货',orderList: []},
  126. {listType: 5,text: '退货/款',orderList: []},
  127. ],
  128. screenTabBar:[
  129. {type:0,text:'全部订单'},
  130. {type:1,text:'机构自主订单'},
  131. {type:2,text:'协销订单'}
  132. ],
  133. winHeight: "", //窗口高度
  134. clubID:'', //机构ID
  135. currentTab: 0, //预设当前项的值
  136. screenTab:0, //筛选预设当前项的值
  137. scrollLeft: 0 ,//tab标题的滚动条位置
  138. serviceProviderId:0,//协销用户ID
  139. orderData: [],
  140. btnClubUserID:0,
  141. btnoRderID: 0, //点击按钮传入的的订单ID
  142. pageNum: 1, //页数
  143. pageSize: 10, //条数
  144. scrollTop: 0,
  145. deteleType:'',
  146. skeletonShow: true,
  147. isClickChange: false,
  148. isShareModal: false,//控制分享弹窗
  149. isSeller:false,
  150. isModalLayer: false,
  151. loadding: false,
  152. pullUpOn: true,
  153. hasNextPage: false,
  154. pullFlag: true,
  155. navbarHeight:'',
  156. nomoreText: '上拉显示更多',
  157. }
  158. },
  159. onLoad(option) {
  160. let self = this
  161. this.clubID = option.clubID
  162. this.currentTab = option.listType
  163. // 高度自适应
  164. uni.getSystemInfo({
  165. success: function(res) {
  166. let calc = res.windowHeight;
  167. self.winHeight = calc-82;
  168. }
  169. });
  170. },
  171. methods: {
  172. // 滚动切换标签样式
  173. onChange (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 (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. onClickScreenTab(index){
  204. console.log(index)
  205. this.screenTab = index
  206. this.pageNum = 1
  207. this.pullUpOn = true //切换时隐藏
  208. this.loadding = false //切换时隐藏
  209. this.nomoreText = ''
  210. this.getOrderDatainit(this.currentTab)
  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. setTimeout(()=>{this.skeletonShow = false},1500)
  223. let orderItem = this.orderTabBar[index];
  224. let listType = orderItem.listType;
  225. if(source === 'tabChange' && orderItem.loaded === true){//tab切换只有第一次需要加载数据
  226. return;
  227. }
  228. setTimeout(()=>{
  229. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  230. let params = {listType:index,clubID:resolve.clubID,orderSubmitType:this.screenTab,serviceProviderId:this.serviceProviderId,pageNum:1,pageSize:this.pageSize};
  231. getSellerClubOrderList(params).then(response =>{
  232. let orderList = response.data.results.filter(item=>{
  233. //添加不同状态下订单的表现形式
  234. item = Object.assign(item, this.orderStateExp(item.listType));
  235. return item;
  236. });
  237. orderItem.orderList =[];
  238. orderList.forEach(item=>{
  239. orderItem.orderList.push(item);
  240. })
  241. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  242. this.$set(orderItem, 'loaded', true);
  243. this.hasNextPage = response.data.hasNextPage;
  244. if(this.hasNextPage){
  245. this.pullUpOn = false
  246. this.nomoreText = '上拉显示更多'
  247. }else{
  248. if(orderItem.orderList.length < 2){
  249. this.pullUpOn = true
  250. }else{
  251. this.pullUpOn = false
  252. this.nomoreText = '已至底部'
  253. }
  254. }
  255. }).catch(error =>{
  256. this.$util.msg(error.msg,2000);
  257. })
  258. })
  259. }, 600);
  260. },
  261. getOnReachBottomData(index){//上拉加载
  262. let params = {listType:index,orderSubmitType:this.screenTab,serviceProviderId:this.serviceProviderId,pageNum:this.pageNum+=1,pageSize:this.pageSize};
  263. getSellerOrderList(params).then(response =>{
  264. let orderItem = this.orderTabBar[index];
  265. let resData = response.data.results
  266. this.hasNextPage = response.data.hasNextPage;
  267. orderItem.orderList = orderItem.orderList.concat(resData)
  268. this.pullFlag = false;// 防上拉暴滑
  269. setTimeout(()=>{this.pullFlag = true;},500)
  270. if(this.hasNextPage){
  271. this.pullUpOn = false
  272. this.nomoreText = '上拉显示更多'
  273. }else{
  274. this.loadding = false
  275. this.pullUpOn = false
  276. this.nomoreText = '已至底部'
  277. }
  278. }).catch(error =>{
  279. this.$util.msg(error.msg,2000)
  280. })
  281. },
  282. scrolltolower() {
  283. if(this.hasNextPage){
  284. this.loadding = true
  285. this.pullUpOn = true
  286. this.getOnReachBottomData(this.currentTab);
  287. }
  288. },
  289. detail(id) {//订单详情跳转
  290. this.isModalLayer = true;
  291. this.$api.navigateTo(`/seller/pages/order/order-details?listType=${this.currentTab}&orderID=${id}`)
  292. },
  293. handButtonConfirm(data) {//获取点击
  294. this.handShowAlert(data)
  295. this.btnoRderID = data.orderId
  296. },
  297. handShowAlert(data) {//执行
  298. switch(data.type){
  299. case 'delete':
  300. this.handOrderDetele(data.orderId);
  301. break
  302. case 'cancel':
  303. this.handCenceConfirm(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. affirmOrder({orderID:id}).then(response =>{
  313. this.$util.msg(response.msg,2000,true,'success');
  314. setTimeout(() => {
  315. this.getOrderDatainit(this.currentTab)
  316. },2000)
  317. }).catch(error =>{
  318. this.$util.msg(error.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(error =>{
  330. this.$util.msg(error.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(error =>{
  342. this.$util.msg(error.msg,2000)
  343. })
  344. })
  345. },
  346. handlSearchPath(){
  347. this.$api.navigateTo('/seller/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.btnClubUserID}&serviceProviderId=${this.serviceProviderId}`,
  357. imageUrl:'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  358. }
  359. },
  360. //订单状态文字和颜色
  361. orderStateExp (state){
  362. let stateText = '',
  363. stateTextObject={
  364. 0:'待确认',
  365. 4:'交易完成',
  366. 5:'订单完成',
  367. 6:'已关闭',
  368. 7:'交易全退',
  369. 77:'交易全退',
  370. 11:'待付款待发货',
  371. 12:'待付款部分发货',
  372. 13:'待付款已发货',
  373. 21:'部分付款待发货',
  374. 22:'部分付款部分发货',
  375. 23:'部分付款已发货',
  376. 31:'已付款待发货',
  377. 32:'已付款部分发货',
  378. 33:'已付款已发货',
  379. 111:'待付款待发货',
  380. }
  381. Object.keys(stateTextObject).forEach(key => {
  382. if(key == state){
  383. stateText = stateTextObject[key]
  384. }
  385. })
  386. return stateText;
  387. },
  388. orderPriceToFixed (n){
  389. let price ='';
  390. price = n.toFixed(2);
  391. return price
  392. },
  393. },
  394. onPageScroll(e) {
  395. this.scrollTop = e.scrollTop;
  396. },
  397. onShow() {
  398. this.isModalLayer = false;
  399. this.getOrderDatainit(this.currentTab)
  400. }
  401. }
  402. </script>
  403. <style lang="scss">
  404. /*tabbar start*/
  405. ::-webkit-scrollbar {
  406. width: 0;
  407. height: 0;
  408. color: transparent;
  409. }
  410. .order-section-top{
  411. width: 100%;
  412. position: fixed;
  413. top: 0;
  414. left: 0;
  415. z-index: 99;
  416. background: #FFFFFF;
  417. .tab-screen{
  418. height: 60rpx;
  419. width: 702rpx;
  420. padding: 10rpx 24rpx;
  421. border-top: 1px solid #F7F7F7;
  422. border-bottom: 1px solid #F7F7F7;
  423. display: flex;
  424. justify-content: center;
  425. justify-items: center;
  426. .tab-screen-item{
  427. flex: 1;
  428. height: 60rpx;
  429. border-radius: 10rpx;
  430. background: #F7F7F7;
  431. margin-right: 22rpx;
  432. line-height: 66rpx;
  433. font-size: $font-size-28;
  434. color: #333333;
  435. text-align: center;
  436. &.active{
  437. color: $color-system;
  438. }
  439. &:last-child{
  440. margin-right: 0;
  441. }
  442. }
  443. }
  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. &.active {
  474. border-bottom: 6rpx solid $color-system;
  475. }
  476. .tab-bar-title {
  477. height: 80rpx;
  478. line-height: 80rpx;
  479. font-size:$font-size-28;
  480. color: $text-color;
  481. }
  482. &.active .tab-bar-title {
  483. color: $color-system !important;
  484. }
  485. }
  486. /*tabbar end*/
  487. page{
  488. background: #F7F7F7;
  489. }
  490. .container {
  491. padding-bottom: env(safe-area-inset-bottom);
  492. height: auto;
  493. position: relative;
  494. }
  495. .tui-order-content{
  496. width: 100%;
  497. height: auto;
  498. }
  499. .tui-order-list {
  500. width: 100%;
  501. position: relative;
  502. }
  503. .tui-order-item {
  504. display: flex;
  505. flex-direction: column;
  506. width: 702rpx;
  507. padding:0 24rpx;
  508. background: #fff;
  509. border-bottom: 20rpx solid #F7F7F7;
  510. }
  511. .order-title{
  512. width: 100%;
  513. height: auto;
  514. .order-title-name{
  515. width: 100%;
  516. height: 72rpx;
  517. border-bottom: 1px solid #F7F7F7;
  518. line-height: 72rpx;
  519. text-align: left;
  520. font-size: $font-size-28;
  521. color: #333333;
  522. }
  523. .order-title-t{
  524. width: 100%;
  525. height: 44rpx;
  526. float: left;
  527. padding-top: 8rpx;
  528. .bage-buss{
  529. display: block;
  530. float: left;
  531. width: 64rpx;
  532. height: 30rpx;
  533. background:linear-gradient(132deg,rgba(255,177,0,1) 0%,rgba(255,127,0,1) 100%);
  534. border-radius: 6rpx;
  535. line-height: 30rpx;
  536. font-size: $font-size-24;
  537. text-align: center;
  538. color: #FFFFFF;
  539. margin-top: 10rpx;
  540. }
  541. .bage-auto{
  542. display: block;
  543. float: left;
  544. width: 64rpx;
  545. height: 30rpx;
  546. background:linear-gradient(135deg,rgba(0,216,255,1) 0%,rgba(22,139,225,1) 100%);
  547. border-radius: 6rpx;
  548. line-height: 30rpx;
  549. font-size: $font-size-24;
  550. text-align: center;
  551. color: #FFFFFF;
  552. margin-top: 10rpx;
  553. }
  554. .bage-text{
  555. font-size: $font-size-28;
  556. line-height: 44rpx;
  557. text-align: left;
  558. color: $color-system;
  559. margin-left: 15rpx;
  560. }
  561. }
  562. .order-title-b{
  563. width: 100%;
  564. height: 40rpx;
  565. float: left;
  566. margin-top: 8rpx;
  567. .order-title-btxt{
  568. float: left;
  569. font-size: $font-size-28;
  570. line-height: 40rpx;
  571. color: #999999;
  572. text-align: lef
  573. }
  574. .order-title-tip{
  575. float: right;
  576. font-size: $font-size-28;
  577. line-height: 40rpx;
  578. text-align: right;
  579. color: #FF2A2A;
  580. }
  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>