order-list.vue 23 KB

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