order-historylist.vue 22 KB

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