order-historylist.vue 24 KB

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