order-list.vue 20 KB

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