order-historylist.vue 24 KB

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