order-list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. <template>
  2. <view class="container" :style="{paddingTop:(navbarHeight+82)+'px'}">
  3. <!-- 自定义返回 -->
  4. <header-back :systeminfo='systeminfo'
  5. :navbar-data='nvabarData'
  6. :headerBtnPosi ="headerBtnPosi"
  7. :isDelete="isDelete"
  8. :isUsertype="1"
  9. @goSearchPath="handlSearchPath">
  10. </header-back>
  11. <view class="order-section-top" :style="{marginTop:navbarHeight+'px'}">
  12. <scroll-view scroll-x scroll-with-animation class="tab-view" :scroll-left="scrollLeft">
  13. <view v-for="(item,index) in orderTabBar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']"
  14. :data-current="index" @tap.stop="onClickTab">
  15. <text class="tab-bar-title">{{item.text}}</text>
  16. </view>
  17. </scroll-view>
  18. <view class="tab-screen">
  19. <view v-for="(item,index) in screenTabBar" :key="index" class="tab-screen-item" :class="[screenTab == index ? 'active' : '']"
  20. :data-current="index" @tap.stop="onClickScreenTab(index)">{{item.text}}</view>
  21. </view>
  22. </view>
  23. <swiper class="tab-content" :current="currentTab" duration="80" @animationfinish="onChange" :style="{height:winHeight+'px'}" >
  24. <swiper-item v-for="(tabItem,index) in orderTabBar" :key="index">
  25. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="false" :loadingType="5"></tui-skeleton>
  26. <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower" :style="{height:winHeight+'px'}" >
  27. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  28. <!-- 空白页 -->
  29. <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0" :typeIndex="currentTab" :navbarHeight="navbarHeight"></empty>
  30. <!-- 列表 -->
  31. <view v-else class="tui-order-content">
  32. <view class="tui-order-item" v-for="(order,orderIndex) in tabItem.orderList" :key="orderIndex" @click.stop="detail(order.orderID)">
  33. <view class="order-title">
  34. <view class="order-title-name">{{order.clubName}}</view>
  35. <view class="order-title-t">
  36. <text class="bage-buss tui-skeleton-fillet" v-if="order.orderSubmitType == 3">协销</text>
  37. <text class="bage-auto tui-skeleton-fillet" v-if="order.orderSubmitType == 0 || order.orderSubmitType == 2">自主</text>
  38. <text class="bage-text tui-skeleton-fillet">订单号:{{order.orderNo}}({{order.orderID}})</text>
  39. </view>
  40. <view class="order-title-b">
  41. <view class="order-title-btxt tui-skeleton-fillet">下单时间:{{order.orderTime}}</view>
  42. <view class="order-title-tip tui-skeleton-fillet">{{orderStateExp(order.status)}}</view>
  43. </view>
  44. </view>
  45. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  46. <view class="goods-title">
  47. <view class="title-logo tui-skeleton-fillet"><image :src="shop.shopLogo" mode=""></image></view>
  48. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  49. </view>
  50. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  51. <view class="goods-pros-t">
  52. <view class="pros-img tui-skeleton-fillet"><image :src="pros.productImage" alt="" /></view>
  53. <view class="pros-product">
  54. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  55. <view class="productspec tui-skeleton-fillet">规格:{{pros.productUnit ? pros.productUnit : ''}}</view>
  56. <view class="productprice">
  57. <view class="price tui-skeleton-fillet">
  58. <text>¥{{pros.price.toFixed(2)}}</text>
  59. </view>
  60. <view class="count tui-skeleton-fillet">
  61. <text class="small">x</text>{{pros.num}}
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </block>
  68. <view class="order-footer">
  69. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{orderPriceToFixed(order.discountFee)}}</view>
  70. <view class="order-footer-bot">
  71. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  72. <view class="money tui-skeleton-fillet">应付总额:¥{{orderPriceToFixed(order.payableAmount)}}</view>
  73. </view>
  74. </view>
  75. <!-- 底部button -->
  76. <order-button ref="orderButton"
  77. :status="order.status"
  78. :orderID="order.orderID"
  79. @buttonConfirm="handButtonConfirm">
  80. </order-button>
  81. </view>
  82. <!--加载loadding-->
  83. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  84. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  85. <!--加载loadding-->
  86. </view>
  87. </view>
  88. </scroll-view>
  89. </swiper-item>
  90. </swiper>
  91. <!-- 分享弹窗 -->
  92. <share-alert v-if="isShareModal"
  93. :orderID="btnoRderID"
  94. :clubUserID = btnClubUserID
  95. @shareConfirm ='onShareAppMessage'>
  96. </share-alert>
  97. <!-- 透明模态层 -->
  98. <modal-layer v-if='isModalLayer'></modal-layer>
  99. </view>
  100. </template>
  101. <script>
  102. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义顶部导航
  103. import btSearch from '@/components/uni-search/bt-search.vue' //搜索
  104. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  105. import tuiListCell from "@/components/tui-components/list-cell/list-cell"
  106. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  107. import tuiNomore from "@/components/tui-components/nomore/nomore"
  108. import orderButton from '@/components/cm-module/orderDetails/sellerOrderButton' //操作按钮
  109. import modalLayer from "@/components/modal-layer"
  110. import empty from "@/components/empty";
  111. import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
  112. import { cancelOrder,deleteOrder, affirmOrder } from "@/api/order.js"
  113. import { getSellerOrderList } from "@/api/seller.js"
  114. export default {
  115. components: {
  116. headerBack,
  117. empty,
  118. btSearch,
  119. tuiListCell,
  120. tuiLoadmore,
  121. tuiNomore,
  122. orderButton,
  123. tuiSkeleton,
  124. modalLayer,
  125. shareAlert
  126. },
  127. data() {
  128. return {
  129. orderTabBar: [{listType: 0,text: '全部订单',orderList: []},
  130. {listType: 1,text: '待确认',orderList: []},
  131. {listType: 2,text: '待付款',orderList: []},
  132. {listType: 3,text: '待发货',orderList: []},
  133. {listType: 4,text: '已发货',orderList: []},
  134. {listType: 5,text: '退货/款',orderList: []},
  135. ],
  136. screenTabBar:[
  137. {type:0,text:'全部订单'},
  138. {type:1,text:'机构自主订单'},
  139. {type:2,text:'协销订单'}
  140. ],
  141. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  142. systeminfo: this.setSysteminfo(), //获取设备信息
  143. nvabarData: { //顶部自定义导航
  144. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  145. showSearch: 1,
  146. title: '我的订单 ', // 导航栏中间的标题
  147. },
  148. CustomBar:this.CustomBar,// 顶部导航栏高度
  149. winHeight: "", //窗口高度
  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. if(option.type ==='detele'){self.isDelete = true}
  177. self.currentTab = option.listType
  178. self.getHeaderTopHeight()//设置自定义导航高度
  179. // 高度自适应
  180. uni.getSystemInfo({
  181. success: function(res) {
  182. let calc = res.windowHeight;
  183. self.winHeight = calc-self.CustomBar-82;
  184. }
  185. });
  186. },
  187. methods: {
  188. // 滚动切换标签样式
  189. onChange (e) {
  190. let index = e.target.current || e.detail.current;
  191. if (this.isClickChange) {
  192. this.currentTab = index;
  193. this.isClickChange = false
  194. return;
  195. }
  196. this.isClickChange = false
  197. this.currentTab = index
  198. this.checkCor()
  199. this.pageNum = 1
  200. this.pullUpOn = true //切换时隐藏
  201. this.loadding = false //切换时隐藏
  202. this.nomoreText = ''
  203. this.getOrderDatainit(this.currentTab,'tabChange')
  204. },
  205. // 点击标题切换当前页时改变样式
  206. onClickTab (e) {
  207. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current;
  208. if (this.currentTab === tabIndex) {
  209. return false;
  210. } else {
  211. this.isClickChange = true
  212. this.currentTab = tabIndex
  213. this.pageNum = 1
  214. this.pullUpOn = true //切换时隐藏
  215. this.loadding = false //切换时隐藏
  216. this.getOrderDatainit(this.currentTab)
  217. }
  218. },
  219. onClickScreenTab(index){
  220. console.log(index)
  221. this.screenTab = index
  222. this.pageNum = 1
  223. this.pullUpOn = true //切换时隐藏
  224. this.loadding = false //切换时隐藏
  225. this.nomoreText = ''
  226. this.getOrderDatainit(this.currentTab)
  227. },
  228. //判断当前滚动超过一屏时,设置tab标题滚动条。
  229. checkCor: function() {
  230. if (this.currentTab > 3) {
  231. //这里距离按实际计算
  232. this.scrollLeft = 300
  233. } else {
  234. this.scrollLeft = 0
  235. }
  236. },
  237. getOrderDatainit(index,source){
  238. setTimeout(()=>{this.skeletonShow = false},1500)
  239. let orderItem = this.orderTabBar[index];
  240. let listType = orderItem.listType;
  241. if(source === 'tabChange' && orderItem.loaded === true){//tab切换只有第一次需要加载数据
  242. return;
  243. }
  244. setTimeout(()=>{
  245. this.$api.getStorage().then((resolve) =>{
  246. this.serviceProviderId = resolve.serviceProviderID
  247. let params = {
  248. listType:index,
  249. orderSubmitType:this.screenTab,
  250. serviceProviderId:this.serviceProviderId,
  251. pageNum:1,
  252. pageSize:this.pageSize,
  253. };
  254. getSellerOrderList(params).then(response =>{
  255. let orderList = response.data.results.filter(item=>{
  256. //添加不同状态下订单的表现形式
  257. item = Object.assign(item, this.orderStateExp(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. let params = {
  286. listType:index,
  287. orderSubmitType:this.screenTab,
  288. serviceProviderId:this.serviceProviderId,
  289. pageNum:this.pageNum+=1,
  290. pageSize:this.pageSize,
  291. };
  292. getSellerOrderList(params).then(response =>{
  293. let orderItem = this.orderTabBar[index];
  294. let resData = response.data.results
  295. this.hasNextPage = response.data.hasNextPage;
  296. orderItem.orderList = orderItem.orderList.concat(resData)
  297. this.pullFlag = false;// 防上拉暴滑
  298. setTimeout(()=>{this.pullFlag = true;},500)
  299. if(this.hasNextPage){
  300. this.pullUpOn = false
  301. this.nomoreText = '上拉显示更多'
  302. }else{
  303. this.loadding = false
  304. this.pullUpOn = false
  305. this.nomoreText = '已至底部'
  306. }
  307. }).catch(error =>{
  308. this.$util.msg(error.msg,2000)
  309. })
  310. },
  311. scrolltolower() {
  312. if(this.hasNextPage){
  313. this.loadding = true
  314. this.pullUpOn = true
  315. this.getOnReachBottomData(this.currentTab);
  316. }
  317. },
  318. detail(id) {//订单详情跳转
  319. this.isModalLayer = true;
  320. this.$api.navigateTo(`/seller/pages/order/order-details?listType=${this.currentTab}&orderID=${id}`)
  321. },
  322. handButtonConfirm(data) {//获取点击
  323. this.handShowAlert(data)
  324. this.btnoRderID = data.orderId
  325. },
  326. handShowAlert(data) {//执行
  327. switch(data.type){
  328. case 'delete':
  329. this.handOrderDetele(data.orderId);
  330. break
  331. case 'cancel':
  332. this.handCenceConfirm(data.orderId)
  333. break
  334. case 'confirm':
  335. this.handOrderConfirm(data.orderId);
  336. break
  337. }
  338. },
  339. handOrderConfirm (id){//确认订单
  340. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  341. affirmOrder({orderID:id}).then(response =>{
  342. this.$util.msg(response.msg,2000,true,'success');
  343. setTimeout(() => {
  344. this.getOrderDatainit(this.currentTab)
  345. },2000)
  346. }).catch(error =>{
  347. this.$util.msg(error.msg,2000)
  348. })
  349. })
  350. },
  351. handOrderDetele(id){//删除订单
  352. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  353. deleteOrder({orderID:id}).then(response =>{
  354. this.$util.msg(response.msg,2000,true,'success');
  355. setTimeout(() => {
  356. this.getOrderDatainit(this.currentTab)
  357. },2000)
  358. }).catch(error =>{
  359. this.$util.msg(error.msg,2000)
  360. })
  361. })
  362. },
  363. handCenceConfirm(id){//取消订单
  364. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  365. cancelOrder({orderID:id}).then(response =>{
  366. this.$util.msg(response.msg,2000,true,'success');
  367. setTimeout(() => {
  368. this.getOrderDatainit(this.currentTab)
  369. },2000)
  370. }).catch(error =>{
  371. this.$util.msg(error.msg,2000)
  372. })
  373. })
  374. },
  375. handlSearchPath(){
  376. this.$api.navigateTo('/seller/pages/search/search-order')
  377. },
  378. onShareAppMessage (res){//分享转发
  379. this.isShareModal = false
  380. if (res.from === 'button') {// 来自页面内转发按钮
  381. // console.log(res.target)
  382. }
  383. return {
  384. title: '您有新的分享订单,快来查看吧~',
  385. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.btnClubUserID}&serviceProviderId=${this.serviceProviderId}`,
  386. imageUrl:'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  387. }
  388. },
  389. //订单状态文字和颜色
  390. orderStateExp (state){
  391. let stateText = '',
  392. stateTextObject={
  393. 0:'待确认',
  394. 4:'交易完成',
  395. 5:'订单完成',
  396. 6:'已关闭',
  397. 7:'交易全退',
  398. 77:'交易全退',
  399. 11:'待付款待发货',
  400. 12:'待付款部分发货',
  401. 13:'待付款已发货',
  402. 21:'部分付款待发货',
  403. 22:'部分付款部分发货',
  404. 23:'部分付款已发货',
  405. 31:'已付款待发货',
  406. 32:'已付款部分发货',
  407. 33:'已付款已发货',
  408. 111:'待付款待发货',
  409. }
  410. Object.keys(stateTextObject).forEach(key => {
  411. if(key == state){
  412. stateText = stateTextObject[key]
  413. }
  414. })
  415. return stateText;
  416. },
  417. orderPriceToFixed (n){
  418. let price ='';
  419. price = n.toFixed(2);
  420. return price
  421. },
  422. getHeaderTopHeight (){ // 状态栏高度
  423. let statusBarHeight = this.systeminfo.statusBarHeight
  424. let headerPosi = this.headerBtnPosi
  425. let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
  426. height: headerPosi.height,
  427. width: headerPosi.width,
  428. // 胶囊top - 状态栏高度
  429. top: headerPosi.top - statusBarHeight,
  430. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  431. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  432. // 屏幕宽度 - 胶囊right
  433. right: this.systeminfo.screenWidth - headerPosi.right
  434. }
  435. this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
  436. },
  437. setHeaderBtnPosi (){
  438. // 获得胶囊按钮位置信息
  439. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  440. return headerBtnPosi
  441. },
  442. setSysteminfo (){
  443. let systeminfo;
  444. uni.getSystemInfo({ // 获取设备信息
  445. success: (res) => {
  446. systeminfo = res
  447. },
  448. })
  449. return systeminfo
  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:20rpx 24rpx 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: 44rpx;
  584. float: left;
  585. padding-top: 8rpx;
  586. .bage-buss{
  587. display: block;
  588. float: left;
  589. width: 64rpx;
  590. height: 30rpx;
  591. background:linear-gradient(132deg,rgba(255,177,0,1) 0%,rgba(255,127,0,1) 100%);
  592. border-radius: 6rpx;
  593. line-height: 30rpx;
  594. font-size: $font-size-24;
  595. text-align: center;
  596. color: #FFFFFF;
  597. margin-top: 10rpx;
  598. }
  599. .bage-auto{
  600. display: block;
  601. float: left;
  602. width: 64rpx;
  603. height: 30rpx;
  604. background:linear-gradient(135deg,rgba(0,216,255,1) 0%,rgba(22,139,225,1) 100%);
  605. border-radius: 6rpx;
  606. line-height: 30rpx;
  607. font-size: $font-size-24;
  608. text-align: center;
  609. color: #FFFFFF;
  610. margin-top: 10rpx;
  611. }
  612. .bage-text{
  613. font-size: $font-size-28;
  614. line-height: 44rpx;
  615. text-align: left;
  616. color: $color-system;
  617. margin-left: 15rpx;
  618. }
  619. }
  620. .order-title-b{
  621. width: 100%;
  622. height: 40rpx;
  623. float: left;
  624. margin-top: 8rpx;
  625. .order-title-btxt{
  626. float: left;
  627. font-size: $font-size-28;
  628. line-height: 40rpx;
  629. color: #999999;
  630. text-align: lef
  631. }
  632. .order-title-tip{
  633. float: right;
  634. font-size: $font-size-28;
  635. line-height: 40rpx;
  636. text-align: right;
  637. color: #FF2A2A;
  638. }
  639. }
  640. }
  641. .goods-title{
  642. width: 100%;
  643. height: 48rpx;
  644. float: left;
  645. margin-top: 24rpx;
  646. .title-logo{
  647. width: 48rpx;
  648. height: 48rpx;
  649. float: left;
  650. image{
  651. width: 48rpx;
  652. height: 48rpx;
  653. }
  654. }
  655. .title-text{
  656. float: left;
  657. margin-left: 16rpx;
  658. font-size: $font-size-28;
  659. color: $text-color;
  660. text-align: left;
  661. line-height: 48rpx;
  662. font-weight: bold;
  663. }
  664. }
  665. .goods-item{
  666. width: 100%;
  667. height: auto;
  668. }
  669. .goods-pros-t{
  670. display: flex;
  671. align-items: center;
  672. width: 100%;
  673. height: 217rpx;
  674. padding:24rpx 0;
  675. .pros-img{
  676. width: 210rpx;
  677. height: 100%;
  678. border-radius: 10rpx;
  679. margin:0 26rpx 0 0;
  680. border:1px solid #f3f3f3;
  681. image{
  682. width: 100%;
  683. height: 100%;
  684. border-radius: 10rpx;
  685. }
  686. }
  687. }
  688. .pros-product{
  689. width: 468rpx;
  690. height: 100%;
  691. line-height: 36rpx;
  692. font-size: $font-size-26;
  693. position: relative;
  694. .producttitle{
  695. width: 100%;
  696. display: inline-block;
  697. height: auto;
  698. text-overflow:ellipsis;
  699. display: -webkit-box;
  700. word-break: break-all;
  701. -webkit-box-orient: vertical;
  702. -webkit-line-clamp: 2;
  703. overflow: hidden;
  704. margin-bottom: 8rpx;
  705. }
  706. .productspec{
  707. height: 36rpx;
  708. color: #999999;
  709. }
  710. .productprice{
  711. height: 48rpx;
  712. position: absolute;
  713. width: 100%;
  714. bottom: 0;
  715. .price{
  716. line-height: 48rpx;
  717. font-size: $font-size-28;
  718. width: 48%;
  719. color: #FF2A2A;
  720. float: left;
  721. font-weight: bold;
  722. }
  723. .count{
  724. height: 100%;
  725. float: right;
  726. position: relative;
  727. .small{
  728. color: #666666;
  729. }
  730. }
  731. }
  732. }
  733. .order-footer{
  734. width: 100%;
  735. height: 78rpx;
  736. float: left;
  737. .order-footer-top{
  738. width: 100%;
  739. height: 34rpx;
  740. line-height: 34rpx;
  741. font-size: $font-size-24;
  742. color: #999999;
  743. text-align: right;
  744. }
  745. .order-footer-bot{
  746. width: 100%;
  747. float: left;
  748. height: 48rpx;
  749. line-height: 48rpx;
  750. font-size: $font-size-28;
  751. font-weight: bold;
  752. color: $text-color;
  753. .count{
  754. width: 50%;
  755. float: left;
  756. text-align: left;
  757. }
  758. .money{
  759. width: 50%;
  760. float: right;
  761. text-align: right;
  762. }
  763. }
  764. }
  765. </style>