order-list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  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 || order.orderSubmitType == 4">协销</text>
  37. <text class="bage-auto tui-skeleton-fillet" v-if="order.orderSubmitType == 0 || order.orderSubmitType == 1 || order.orderSubmitType == 2">自主</text>
  38. <text class="bage-text tui-skeleton-fillet">订单号:{{order.orderNo}}({{order.orderID}})</text>
  39. <image class="bage-icon" src="../../../static/temp/icon-type@3x.png" mode="widthFix" v-if="order.secondHandOrderFlag == 1"></image>
  40. </view>
  41. <view class="order-title-b">
  42. <view class="order-title-btxt tui-skeleton-fillet">下单时间:{{order.orderTime}}</view>
  43. <view class="order-title-tip tui-skeleton-fillet">{{orderStateExp(order.status)}}</view>
  44. </view>
  45. </view>
  46. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  47. <view class="goods-title">
  48. <view class="title-logo tui-skeleton-fillet"><image :src="shop.shopLogo" mode=""></image></view>
  49. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  50. </view>
  51. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  52. <view class="goods-pros-t">
  53. <view class="pros-img tui-skeleton-fillet"><image :src="pros.productImage" alt="" /></view>
  54. <view class="pros-product">
  55. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  56. <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2" >规格:{{pros.productUnit ? pros.productUnit : ''}}</view>
  57. <view class="productprice">
  58. <view class="price tui-skeleton-fillet">
  59. <text>¥{{pros.price.toFixed(2)}}</text>
  60. </view>
  61. <view class="count tui-skeleton-fillet">
  62. <text class="small">x</text>{{pros.num}}
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </block>
  69. <view class="order-footer">
  70. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{orderPriceToFixed(order.discountFee)}}</view>
  71. <view class="order-footer-bot">
  72. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  73. <view class="money tui-skeleton-fillet">应付总额:¥{{orderPriceToFixed(order.payableAmount)}}</view>
  74. </view>
  75. </view>
  76. <!-- 底部button -->
  77. <order-button ref="orderButton"
  78. :status="order.status"
  79. :orderID="order.orderID"
  80. :userID = "order.userID"
  81. @buttonConfirm="handButtonConfirm">
  82. </order-button>
  83. </view>
  84. <!--加载loadding-->
  85. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  86. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  87. <!--加载loadding-->
  88. </view>
  89. </view>
  90. </scroll-view>
  91. </swiper-item>
  92. </swiper>
  93. <!-- 分享弹窗 -->
  94. <share-alert v-if="isShareModal"
  95. :orderID="btnoRderID"
  96. @shareConfirm ='onShareAppMessage'>
  97. </share-alert>
  98. <!-- 透明模态层 -->
  99. <modal-layer v-if='isModalLayer'></modal-layer>
  100. </view>
  101. </template>
  102. <script>
  103. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义顶部导航
  104. import btSearch from '@/components/uni-search/bt-search.vue' //搜索
  105. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  106. import tuiListCell from "@/components/tui-components/list-cell/list-cell"
  107. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  108. import tuiNomore from "@/components/tui-components/nomore/nomore"
  109. import orderButton from '@/components/cm-module/orderDetails/sellerOrderButton' //操作按钮
  110. import modalLayer from "@/components/modal-layer"
  111. import empty from "@/components/empty";
  112. import shareAlert from '@/components/cm-module/modelAlert/sellerShareAlert' //分享弹窗
  113. import { cancelOrder,deleteOrder, affirmOrder } from "@/api/order.js"
  114. import { getSellerOrderList } from "@/api/seller.js"
  115. export default {
  116. components: {
  117. headerBack,
  118. empty,
  119. btSearch,
  120. tuiListCell,
  121. tuiLoadmore,
  122. tuiNomore,
  123. orderButton,
  124. tuiSkeleton,
  125. modalLayer,
  126. shareAlert
  127. },
  128. data() {
  129. return {
  130. orderTabBar: [{listType: 0,text: '全部订单',orderList: []},
  131. {listType: 1,text: '待确认',orderList: []},
  132. {listType: 2,text: '待付款',orderList: []},
  133. {listType: 3,text: '待发货',orderList: []},
  134. {listType: 4,text: '已发货',orderList: []},
  135. {listType: 5,text: '退货/款',orderList: []},
  136. ],
  137. screenTabBar:[
  138. {type:0,text:'全部订单'},
  139. {type:1,text:'机构自主订单'},
  140. {type:2,text:'协销订单'}
  141. ],
  142. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  143. systeminfo: this.setSysteminfo(), //获取设备信息
  144. nvabarData: { //顶部自定义导航
  145. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  146. showSearch: 1,
  147. title: '我的订单 ', // 导航栏中间的标题
  148. },
  149. CustomBar:this.CustomBar,// 顶部导航栏高度
  150. winHeight: "", //窗口高度
  151. currentTab: 0, //预设当前项的值
  152. screenTab:0, //筛选预设当前项的值
  153. scrollLeft: 0 ,//tab标题的滚动条位置
  154. serviceProviderId:0,//协销用户ID
  155. orderData: [],
  156. btnClubUserID:0,
  157. btnoRderID: 0, //点击按钮传入的的订单ID
  158. pageNum: 1, //页数
  159. pageSize: 10, //条数
  160. scrollTop: 0,
  161. deteleType:'',
  162. skeletonShow: true,
  163. isClickChange: false,
  164. isShareModal: false,//控制分享弹窗
  165. isSeller:false,
  166. isModalLayer: false,
  167. loadding: false,
  168. pullUpOn: true,
  169. hasNextPage: false,
  170. pullFlag: true,
  171. navbarHeight:'',
  172. nomoreText: '上拉显示更多',
  173. }
  174. },
  175. onLoad(option) {
  176. let self = this;
  177. if(option.type ==='detele'){self.isDelete = true}
  178. self.currentTab = option.listType
  179. self.getHeaderTopHeight()//设置自定义导航高度
  180. // 高度自适应
  181. uni.getSystemInfo({
  182. success: function(res) {
  183. let calc = res.windowHeight;
  184. self.winHeight = calc-self.CustomBar-82;
  185. }
  186. });
  187. },
  188. methods: {
  189. // 滚动切换标签样式
  190. onChange (e) {
  191. let index = e.target.current || e.detail.current;
  192. if (this.isClickChange) {
  193. this.currentTab = index;
  194. this.isClickChange = false
  195. return;
  196. }
  197. this.isClickChange = false
  198. this.currentTab = index
  199. this.checkCor()
  200. this.pageNum = 1
  201. this.pullUpOn = true //切换时隐藏
  202. this.loadding = false //切换时隐藏
  203. this.nomoreText = ''
  204. this.getOrderDatainit(this.currentTab,'tabChange')
  205. },
  206. // 点击标题切换当前页时改变样式
  207. onClickTab (e) {
  208. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current;
  209. if (this.currentTab === tabIndex) {
  210. return false;
  211. } else {
  212. this.isClickChange = true
  213. this.currentTab = tabIndex
  214. this.pageNum = 1
  215. this.pullUpOn = true //切换时隐藏
  216. this.loadding = false //切换时隐藏
  217. this.getOrderDatainit(this.currentTab)
  218. }
  219. },
  220. onClickScreenTab(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/order-sharelogin?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: 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: 15rpx;
  601. line-height: 30rpx;
  602. font-size: $font-size-22;
  603. text-align: center;
  604. color: #FFFFFF;
  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: 15rpx;
  612. line-height: 30rpx;
  613. font-size: $font-size-22;
  614. text-align: center;
  615. color: #FFFFFF;
  616. }
  617. .bage-text{
  618. display: inline-block;
  619. font-size: $font-size-28;
  620. line-height: 68rpx;
  621. text-align: left;
  622. color: $color-system;
  623. margin-left: 10rpx;
  624. }
  625. }
  626. .order-title-b{
  627. width: 100%;
  628. height: 40rpx;
  629. float: left;
  630. margin-top: 8rpx;
  631. .order-title-btxt{
  632. float: left;
  633. font-size: $font-size-28;
  634. line-height: 40rpx;
  635. color: #999999;
  636. text-align: lef
  637. }
  638. .order-title-tip{
  639. float: right;
  640. font-size: $font-size-28;
  641. line-height: 40rpx;
  642. text-align: right;
  643. color: #FF2A2A;
  644. }
  645. }
  646. }
  647. .goods-title{
  648. width: 100%;
  649. height: 48rpx;
  650. float: left;
  651. margin-top: 24rpx;
  652. .title-logo{
  653. width: 48rpx;
  654. height: 48rpx;
  655. float: left;
  656. image{
  657. width: 48rpx;
  658. height: 48rpx;
  659. }
  660. }
  661. .title-text{
  662. float: left;
  663. margin-left: 16rpx;
  664. font-size: $font-size-28;
  665. color: $text-color;
  666. text-align: left;
  667. line-height: 48rpx;
  668. font-weight: bold;
  669. }
  670. }
  671. .goods-item{
  672. width: 100%;
  673. height: auto;
  674. }
  675. .goods-pros-t{
  676. display: flex;
  677. align-items: center;
  678. width: 100%;
  679. height: 217rpx;
  680. padding:24rpx 0;
  681. .pros-img{
  682. width: 210rpx;
  683. height: 100%;
  684. border-radius: 10rpx;
  685. margin:0 26rpx 0 0;
  686. border:1px solid #f3f3f3;
  687. image{
  688. width: 100%;
  689. height: 100%;
  690. border-radius: 10rpx;
  691. }
  692. }
  693. }
  694. .pros-product{
  695. width: 468rpx;
  696. height: 100%;
  697. line-height: 36rpx;
  698. font-size: $font-size-26;
  699. position: relative;
  700. .producttitle{
  701. width: 100%;
  702. display: inline-block;
  703. height: auto;
  704. text-overflow:ellipsis;
  705. display: -webkit-box;
  706. word-break: break-all;
  707. -webkit-box-orient: vertical;
  708. -webkit-line-clamp: 2;
  709. overflow: hidden;
  710. margin-bottom: 8rpx;
  711. }
  712. .productspec{
  713. height: 36rpx;
  714. color: #999999;
  715. }
  716. .productprice{
  717. height: 48rpx;
  718. position: absolute;
  719. width: 100%;
  720. bottom: 0;
  721. .price{
  722. line-height: 48rpx;
  723. font-size: $font-size-28;
  724. width: 48%;
  725. color: #FF2A2A;
  726. float: left;
  727. font-weight: bold;
  728. }
  729. .count{
  730. height: 100%;
  731. float: right;
  732. position: relative;
  733. .small{
  734. color: #666666;
  735. }
  736. }
  737. }
  738. }
  739. .order-footer{
  740. width: 100%;
  741. height: 78rpx;
  742. float: left;
  743. .order-footer-top{
  744. width: 100%;
  745. height: 34rpx;
  746. line-height: 34rpx;
  747. font-size: $font-size-24;
  748. color: #999999;
  749. text-align: right;
  750. }
  751. .order-footer-bot{
  752. width: 100%;
  753. float: left;
  754. height: 48rpx;
  755. line-height: 48rpx;
  756. font-size: $font-size-28;
  757. font-weight: bold;
  758. color: $text-color;
  759. .count{
  760. width: 50%;
  761. float: left;
  762. text-align: left;
  763. }
  764. .money{
  765. width: 50%;
  766. float: right;
  767. text-align: right;
  768. }
  769. }
  770. }
  771. </style>