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