order-list.vue 21 KB

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