order-list.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  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" upper-threshold="40" @scrolltoupper="scrolltoupper">
  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}}</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(this.orderData.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. scrolltoupper() {
  309. this.loadding = false
  310. this.pullUpOn = true
  311. this.getOrderDatainit(this.currentTab);
  312. },
  313. detail(id) {//订单详情跳转
  314. console.log(id)
  315. this.isModalLayer = true;
  316. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderID=${id}`)
  317. },
  318. handButtonConfirm(data) {//获取点击
  319. console.log('点击按钮的类型是',data);
  320. this.handShowAlert(data)
  321. this.btnoRderID = data.orderId
  322. },
  323. handShowAlert(data) {//执行
  324. switch(data.type){
  325. case 'delete':
  326. this.isShowDelModal = true;
  327. break
  328. case 'cancel':
  329. this.isCenceModal = true;
  330. break
  331. case 'query':
  332. this.isModalLayer = true;
  333. this.$api.navigateTo('/pages/user/order/order-logistics?orderID='+data.orderId)
  334. break
  335. case 'confirm':
  336. this.handOrderConfirm(data.orderId);
  337. break
  338. }
  339. },
  340. handOrderConfirm (id){//确认收货
  341. this.$api.get('/order/affirm',{orderID:id},
  342. response => {
  343. if(response.code === '1'){
  344. this.$util.msg(response.msg,2000,true,'success');
  345. this.isShowDelModal = false
  346. setTimeout(() => {
  347. this.getOrderDatainit(this.currentTab)
  348. },2000)
  349. }else{
  350. this.$util.msg(response.msg,2000);
  351. }
  352. }
  353. )
  354. },
  355. handOrderDetele (){//删除订单
  356. this.$api.get('/order/delete',{orderID:this.btnoRderID},
  357. response => {
  358. if(response.code === '1'){
  359. this.$util.msg(response.msg,2000,true,'success');
  360. this.isShowDelModal = false
  361. setTimeout(() => {
  362. this.getOrderDatainit(this.currentTab)
  363. },2000)
  364. }else{
  365. this.$util.msg(response.msg,2000);
  366. }
  367. }
  368. )
  369. },
  370. handCenceConfirm (){//取消订单
  371. this.$api.get('/order/cancel',{orderID:this.btnoRderID},
  372. response => {
  373. if(response.code === '1'){
  374. this.$util.msg(response.msg,2000,true,'success');
  375. this.isCenceModal = false
  376. setTimeout(() => {
  377. this.getOrderDatainit(this.currentTab)
  378. },2000)
  379. }else{
  380. this.$util.msg(response.msg,2000);
  381. }
  382. }
  383. )
  384. },
  385. handlSearchPath(){
  386. this.$api.navigateTo('/pages/search/search-order')
  387. },
  388. onShareAppMessage (res){//分享转发
  389. this.isShareModal = false
  390. if (res.from === 'button') {// 来自页面内转发按钮
  391. // console.log(res.target)
  392. }
  393. return {
  394. title: '您有新的分享订单,快来查看吧~',
  395. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.userID}`,
  396. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  397. }
  398. },
  399. //订单状态文字和颜色
  400. orderStateExp (state){
  401. let stateText = '',
  402. stateTextObject={
  403. 4:'交易完成',
  404. 5:'订单完成',
  405. 6:'已关闭',
  406. 7:'交易全退',
  407. 77:'交易全退',
  408. 11:'待付款待发货',
  409. 12:'待付款部分发货',
  410. 13:'待付款已发货',
  411. 21:'部分付款待发货',
  412. 22:'部分付款部分发货',
  413. 23:'部分付款已发货',
  414. 31:'已付款待发货',
  415. 32:'已付款部分发货',
  416. 33:'已付款已发货',
  417. 111:'待付款待发货',
  418. }
  419. Object.keys(stateTextObject).forEach(key => {
  420. if(key == state){
  421. stateText = stateTextObject[key]
  422. }
  423. })
  424. return stateText;
  425. },
  426. orderPriceToFixed (n){
  427. let price ='';
  428. price = n.toFixed(2);
  429. return price
  430. },
  431. getHeaderTopHeight (){ // 状态栏高度
  432. let statusBarHeight = this.systeminfo.statusBarHeight
  433. let headerPosi = this.headerBtnPosi
  434. let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
  435. height: headerPosi.height,
  436. width: headerPosi.width,
  437. // 胶囊top - 状态栏高度
  438. top: headerPosi.top - statusBarHeight,
  439. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  440. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  441. // 屏幕宽度 - 胶囊right
  442. right: this.systeminfo.screenWidth - headerPosi.right
  443. }
  444. this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
  445. },
  446. setHeaderBtnPosi (){
  447. // 获得胶囊按钮位置信息
  448. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  449. return headerBtnPosi
  450. },
  451. setSysteminfo (){
  452. let systeminfo;
  453. uni.getSystemInfo({ // 获取设备信息
  454. success: (res) => {
  455. systeminfo = res
  456. },
  457. })
  458. return systeminfo
  459. }
  460. },
  461. onPageScroll(e) {
  462. this.scrollTop = e.scrollTop;
  463. },
  464. onShow() {
  465. this.isModalLayer = false;
  466. this.getOrderDatainit(this.currentTab)
  467. }
  468. }
  469. </script>
  470. <style lang="scss">
  471. /*tabbar start*/
  472. ::-webkit-scrollbar {
  473. width: 0;
  474. height: 0;
  475. color: transparent;
  476. }
  477. .order-section-top{
  478. width: 100%;
  479. position: fixed;
  480. top: 0;
  481. left: 0;
  482. z-index: 99;
  483. background: #FFFFFF;
  484. }
  485. .tab-view::before {
  486. content: '';
  487. position: absolute;
  488. border-bottom: 1rpx solid #eaeef1;
  489. -webkit-transform: scaleY(0.5);
  490. transform: scaleY(0.5);
  491. bottom: 0;
  492. right: 0;
  493. left: 0;
  494. }
  495. .tab-view {
  496. width: 100%;
  497. height: 80rpx;
  498. overflow: hidden;
  499. box-sizing: border-box;
  500. background: #fff;
  501. white-space: nowrap;
  502. border-top: 1px solid #F7F7F7;
  503. }
  504. .tab-bar-item {
  505. padding: 0;
  506. height: 80rpx;
  507. min-width: 80rpx;
  508. line-height: 80rpx;
  509. margin: 0 28rpx;
  510. display: inline-block;
  511. text-align: center;
  512. box-sizing: border-box;
  513. }
  514. .tab-bar-title {
  515. height: 80rpx;
  516. line-height: 80rpx;
  517. font-size:$font-size-base;
  518. color: $text-color;
  519. font-weight: bold;
  520. }
  521. .active {
  522. border-bottom: 6rpx solid $color-system;
  523. }
  524. .active .tab-bar-title {
  525. color: $color-system !important;
  526. }
  527. /*tabbar end*/
  528. .scoll-y {
  529. height: 100%;
  530. }
  531. page{
  532. background: #F7F7F7;
  533. }
  534. .container {
  535. padding-bottom: env(safe-area-inset-bottom);
  536. height: auto;
  537. position: relative;
  538. }
  539. .tui-order-content{
  540. width: 100%;
  541. height: auto;
  542. }
  543. .tui-order-list {
  544. margin-top: 90rpx;
  545. width: 100%;
  546. position: relative;
  547. }
  548. .tui-order-item {
  549. display: flex;
  550. flex-direction: column;
  551. width: 702rpx;
  552. padding:20rpx 24rpx 0 24rpx;
  553. background: #fff;
  554. border-bottom: 20rpx solid #F7F7F7;
  555. }
  556. .order-title{
  557. width: 100%;
  558. height: auto;
  559. .order-title-t{
  560. width: 100%;
  561. height: 40rpx;
  562. float: left;
  563. font-size: $font-size-base;
  564. line-height: 40rpx;
  565. font-weight: bold;
  566. .order-title-num{
  567. float: left;
  568. text-align: left;
  569. color: $color-system;
  570. }
  571. .order-title-tip{
  572. float: right;
  573. text-align: right;
  574. color: #FF2A2A;
  575. }
  576. }
  577. .order-title-b{
  578. width: 100%;
  579. height: 40rpx;
  580. float: left;
  581. margin-top: 8rpx;
  582. font-size: $font-size-base;
  583. line-height: 40rpx;
  584. color: #999999;
  585. text-align: left;
  586. }
  587. }
  588. .goods-title{
  589. width: 100%;
  590. height: 48rpx;
  591. float: left;
  592. margin-top: 24rpx;
  593. .title-logo{
  594. width: 48rpx;
  595. height: 48rpx;
  596. float: left;
  597. image{
  598. width: 48rpx;
  599. height: 48rpx;
  600. }
  601. }
  602. .title-text{
  603. float: left;
  604. margin-left: 16rpx;
  605. font-size: $font-size-base;
  606. color: $text-color;
  607. text-align: left;
  608. line-height: 48rpx;
  609. font-weight: bold;
  610. }
  611. }
  612. .goods-item{
  613. width: 100%;
  614. height: auto;
  615. }
  616. .goods-pros-t{
  617. display: flex;
  618. align-items: center;
  619. width: 100%;
  620. height: 217rpx;
  621. padding:24rpx 0;
  622. .pros-img{
  623. width: 210rpx;
  624. height: 100%;
  625. border-radius: 10rpx;
  626. margin:0 26rpx 0 0;
  627. border:1px solid #f3f3f3;
  628. image{
  629. width: 100%;
  630. height: 100%;
  631. border-radius: 10rpx;
  632. }
  633. }
  634. }
  635. .pros-product{
  636. width: 468rpx;
  637. height: 100%;
  638. line-height: 36rpx;
  639. font-size: $font-size-sb;
  640. position: relative;
  641. .producttitle{
  642. width: 100%;
  643. display: inline-block;
  644. height: auto;
  645. text-overflow:ellipsis;
  646. display: -webkit-box;
  647. word-break: break-all;
  648. -webkit-box-orient: vertical;
  649. -webkit-line-clamp: 2;
  650. overflow: hidden;
  651. margin-bottom: 8rpx;
  652. }
  653. .productspec{
  654. height: 36rpx;
  655. color: #999999;
  656. }
  657. .productprice{
  658. height: 48rpx;
  659. position: absolute;
  660. width: 100%;
  661. bottom: 0;
  662. .price{
  663. line-height: 48rpx;
  664. font-size: $font-size-base;
  665. width: 48%;
  666. color: #FF2A2A;
  667. float: left;
  668. font-weight: bold;
  669. }
  670. .count{
  671. height: 100%;
  672. float: right;
  673. position: relative;
  674. .small{
  675. color: #666666;
  676. }
  677. }
  678. }
  679. }
  680. .order-footer{
  681. width: 100%;
  682. height: 78rpx;
  683. float: left;
  684. .order-footer-top{
  685. width: 100%;
  686. height: 34rpx;
  687. line-height: 34rpx;
  688. font-size: $font-size-sm;
  689. color: #999999;
  690. text-align: right;
  691. }
  692. .order-footer-bot{
  693. width: 100%;
  694. float: left;
  695. height: 48rpx;
  696. line-height: 48rpx;
  697. font-size: $font-size-base;
  698. font-weight: bold;
  699. color: $text-color;
  700. .count{
  701. width: 50%;
  702. float: left;
  703. text-align: left;
  704. }
  705. .money{
  706. width: 50%;
  707. float: right;
  708. text-align: right;
  709. }
  710. }
  711. }
  712. </style>