order-list.vue 21 KB

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