order-list.vue 21 KB

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