order-list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  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. @buttonConfirm="handButtonConfirm">
  81. </order-button>
  82. </view>
  83. <!--加载loadding-->
  84. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  85. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  86. <!--加载loadding-->
  87. </view>
  88. </view>
  89. </scroll-view>
  90. </swiper-item>
  91. </swiper>
  92. <!-- 分享弹窗 -->
  93. <share-alert v-if="isShareModal"
  94. :orderID="btnoRderID"
  95. :clubUserID = btnClubUserID
  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. console.log(index)
  222. this.screenTab = index
  223. this.pageNum = 1
  224. this.pullUpOn = true //切换时隐藏
  225. this.loadding = false //切换时隐藏
  226. this.nomoreText = ''
  227. this.getOrderDatainit(this.currentTab)
  228. },
  229. //判断当前滚动超过一屏时,设置tab标题滚动条。
  230. checkCor: function() {
  231. if (this.currentTab > 3) {
  232. //这里距离按实际计算
  233. this.scrollLeft = 300
  234. } else {
  235. this.scrollLeft = 0
  236. }
  237. },
  238. getOrderDatainit(index,source){
  239. setTimeout(()=>{this.skeletonShow = false},1500)
  240. let orderItem = this.orderTabBar[index];
  241. let listType = orderItem.listType;
  242. if(source === 'tabChange' && orderItem.loaded === true){//tab切换只有第一次需要加载数据
  243. return;
  244. }
  245. setTimeout(()=>{
  246. this.$api.getStorage().then((resolve) =>{
  247. this.serviceProviderId = resolve.serviceProviderID
  248. let params = {
  249. listType:index,
  250. orderSubmitType:this.screenTab,
  251. serviceProviderId:this.serviceProviderId,
  252. pageNum:1,
  253. pageSize:this.pageSize,
  254. };
  255. getSellerOrderList(params).then(response =>{
  256. let orderList = response.data.results.filter(item=>{
  257. //添加不同状态下订单的表现形式
  258. item = Object.assign(item, this.orderStateExp(item.listType));
  259. return item;
  260. });
  261. orderItem.orderList =[];
  262. orderList.forEach(item=>{
  263. orderItem.orderList.push(item);
  264. })
  265. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  266. this.$set(orderItem, 'loaded', true);
  267. this.hasNextPage = response.data.hasNextPage;
  268. if(this.hasNextPage){
  269. this.pullUpOn = false
  270. this.nomoreText = '上拉显示更多'
  271. }else{
  272. if(orderItem.orderList.length < 2){
  273. this.pullUpOn = true
  274. }else{
  275. this.pullUpOn = false
  276. this.nomoreText = '已至底部'
  277. }
  278. }
  279. }).catch(error =>{
  280. this.$util.msg(error.msg,2000);
  281. })
  282. })
  283. }, 600);
  284. },
  285. getOnReachBottomData(index){//上拉加载
  286. let params = {
  287. listType:index,
  288. orderSubmitType:this.screenTab,
  289. serviceProviderId:this.serviceProviderId,
  290. pageNum:this.pageNum+=1,
  291. pageSize:this.pageSize,
  292. };
  293. getSellerOrderList(params).then(response =>{
  294. let orderItem = this.orderTabBar[index];
  295. let resData = response.data.results
  296. this.hasNextPage = response.data.hasNextPage;
  297. orderItem.orderList = orderItem.orderList.concat(resData)
  298. this.pullFlag = false;// 防上拉暴滑
  299. setTimeout(()=>{this.pullFlag = true;},500)
  300. if(this.hasNextPage){
  301. this.pullUpOn = false
  302. this.nomoreText = '上拉显示更多'
  303. }else{
  304. this.loadding = false
  305. this.pullUpOn = false
  306. this.nomoreText = '已至底部'
  307. }
  308. }).catch(error =>{
  309. this.$util.msg(error.msg,2000)
  310. })
  311. },
  312. scrolltolower() {
  313. if(this.hasNextPage){
  314. this.loadding = true
  315. this.pullUpOn = true
  316. this.getOnReachBottomData(this.currentTab);
  317. }
  318. },
  319. detail(id) {//订单详情跳转
  320. this.isModalLayer = true;
  321. this.$api.navigateTo(`/seller/pages/order/order-details?listType=${this.currentTab}&orderID=${id}`)
  322. },
  323. handButtonConfirm(data) {//获取点击
  324. this.handShowAlert(data)
  325. this.btnoRderID = data.orderId
  326. },
  327. handShowAlert(data) {//执行
  328. switch(data.type){
  329. case 'delete':
  330. this.handOrderDetele(data.orderId);
  331. break
  332. case 'cancel':
  333. this.handCenceConfirm(data.orderId)
  334. break
  335. case 'confirm':
  336. this.handOrderConfirm(data.orderId);
  337. break
  338. }
  339. },
  340. handOrderConfirm (id){//确认订单
  341. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  342. affirmOrder({orderID:id}).then(response =>{
  343. this.$util.msg(response.msg,2000,true,'success');
  344. setTimeout(() => {
  345. this.getOrderDatainit(this.currentTab)
  346. },2000)
  347. }).catch(error =>{
  348. this.$util.msg(error.msg,2000)
  349. })
  350. })
  351. },
  352. handOrderDetele(id){//删除订单
  353. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  354. deleteOrder({orderID:id}).then(response =>{
  355. this.$util.msg(response.msg,2000,true,'success');
  356. setTimeout(() => {
  357. this.getOrderDatainit(this.currentTab)
  358. },2000)
  359. }).catch(error =>{
  360. this.$util.msg(error.msg,2000)
  361. })
  362. })
  363. },
  364. handCenceConfirm(id){//取消订单
  365. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  366. cancelOrder({orderID:id}).then(response =>{
  367. this.$util.msg(response.msg,2000,true,'success');
  368. setTimeout(() => {
  369. this.getOrderDatainit(this.currentTab)
  370. },2000)
  371. }).catch(error =>{
  372. this.$util.msg(error.msg,2000)
  373. })
  374. })
  375. },
  376. handlSearchPath(){
  377. this.$api.navigateTo('/seller/pages/search/search-order')
  378. },
  379. onShareAppMessage (res){//分享转发
  380. this.isShareModal = false
  381. if (res.from === 'button') {// 来自页面内转发按钮
  382. // console.log(res.target)
  383. }
  384. return {
  385. title: '您有新的订单,请点击查看~',
  386. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.btnClubUserID}&serviceProviderId=${this.serviceProviderId}`,
  387. imageUrl:'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  388. }
  389. },
  390. //订单状态文字和颜色
  391. orderStateExp (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. getHeaderTopHeight (){ // 状态栏高度
  424. let statusBarHeight = this.systeminfo.statusBarHeight
  425. let headerPosi = this.headerBtnPosi
  426. let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
  427. height: headerPosi.height,
  428. width: headerPosi.width,
  429. // 胶囊top - 状态栏高度
  430. top: headerPosi.top - statusBarHeight,
  431. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  432. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  433. // 屏幕宽度 - 胶囊right
  434. right: this.systeminfo.screenWidth - headerPosi.right
  435. }
  436. this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
  437. },
  438. setHeaderBtnPosi (){
  439. // 获得胶囊按钮位置信息
  440. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  441. return headerBtnPosi
  442. },
  443. setSysteminfo (){
  444. let systeminfo;
  445. uni.getSystemInfo({ // 获取设备信息
  446. success: (res) => {
  447. systeminfo = res
  448. },
  449. })
  450. return systeminfo
  451. }
  452. },
  453. onPageScroll(e) {
  454. this.scrollTop = e.scrollTop;
  455. },
  456. onShow() {
  457. this.isModalLayer = false;
  458. this.getOrderDatainit(this.currentTab)
  459. }
  460. }
  461. </script>
  462. <style lang="scss">
  463. /*tabbar start*/
  464. ::-webkit-scrollbar {
  465. width: 0;
  466. height: 0;
  467. color: transparent;
  468. }
  469. .order-section-top{
  470. width: 100%;
  471. position: fixed;
  472. top: 0;
  473. left: 0;
  474. z-index: 99;
  475. background: #FFFFFF;
  476. .tab-screen{
  477. height: 60rpx;
  478. width: 702rpx;
  479. padding: 10rpx 24rpx;
  480. border-top: 1px solid #F7F7F7;
  481. border-bottom: 1px solid #F7F7F7;
  482. display: flex;
  483. justify-content: center;
  484. justify-items: center;
  485. .tab-screen-item{
  486. flex: 1;
  487. height: 60rpx;
  488. border-radius: 10rpx;
  489. background: #F7F7F7;
  490. margin-right: 22rpx;
  491. line-height: 66rpx;
  492. font-size: $font-size-28;
  493. color: #333333;
  494. text-align: center;
  495. &.active{
  496. color: $color-system;
  497. }
  498. &:last-child{
  499. margin-right: 0;
  500. }
  501. }
  502. }
  503. }
  504. .tab-view::before {
  505. content: '';
  506. position: absolute;
  507. border-bottom: 1rpx solid #eaeef1;
  508. -webkit-transform: scaleY(0.5);
  509. transform: scaleY(0.5);
  510. bottom: 0;
  511. right: 0;
  512. left: 0;
  513. }
  514. .tab-view {
  515. width: 100%;
  516. height: 80rpx;
  517. overflow: hidden;
  518. box-sizing: border-box;
  519. background: #fff;
  520. white-space: nowrap;
  521. border-top: 1px solid #F7F7F7;
  522. }
  523. .tab-bar-item {
  524. padding: 0;
  525. height: 80rpx;
  526. min-width: 80rpx;
  527. line-height: 80rpx;
  528. margin: 0 28rpx;
  529. display: inline-block;
  530. text-align: center;
  531. box-sizing: border-box;
  532. &.active {
  533. border-bottom: 6rpx solid $color-system;
  534. }
  535. .tab-bar-title {
  536. height: 80rpx;
  537. line-height: 80rpx;
  538. font-size:$font-size-28;
  539. color: $text-color;
  540. }
  541. &.active .tab-bar-title {
  542. color: $color-system !important;
  543. }
  544. }
  545. /*tabbar end*/
  546. page{
  547. background: #F7F7F7;
  548. }
  549. .container {
  550. padding-bottom: env(safe-area-inset-bottom);
  551. height: auto;
  552. position: relative;
  553. }
  554. .tui-order-content{
  555. width: 100%;
  556. height: auto;
  557. }
  558. .tui-order-list {
  559. width: 100%;
  560. position: relative;
  561. }
  562. .tui-order-item {
  563. display: flex;
  564. flex-direction: column;
  565. width: 702rpx;
  566. padding:20rpx 24rpx 0 24rpx;
  567. background: #fff;
  568. border-bottom: 20rpx solid #F7F7F7;
  569. }
  570. .order-title{
  571. width: 100%;
  572. height: auto;
  573. .order-title-name{
  574. width: 100%;
  575. height: 72rpx;
  576. border-bottom: 1px solid #F7F7F7;
  577. line-height: 72rpx;
  578. text-align: left;
  579. font-size: $font-size-28;
  580. color: #333333;
  581. }
  582. .order-title-t{
  583. width: 100%;
  584. height: 68rpx;
  585. float: left;
  586. line-height: 68rpx;
  587. position: relative;
  588. .bage-icon{
  589. width: 50rpx;
  590. height: 50rpx;
  591. display: block;
  592. position: absolute;
  593. right: 0;
  594. top: 9rpx;
  595. }
  596. .bage-buss{
  597. display: inline-block;
  598. width: 72rpx;
  599. height: 30rpx;
  600. background:radial-gradient(circle,rgba(255,39,180,1) 0%,rgba(193,77,245,1) 100%);
  601. border-radius: 15rpx;
  602. line-height: 30rpx;
  603. font-size: $font-size-22;
  604. text-align: center;
  605. color: #FFFFFF;
  606. }
  607. .bage-auto{
  608. display: inline-block;
  609. width: 72rpx;
  610. height: 30rpx;
  611. background:radial-gradient(circle,rgba(255,180,39,1) 0%,rgba(245,142,77,1) 100%);
  612. border-radius: 15rpx;
  613. line-height: 30rpx;
  614. font-size: $font-size-22;
  615. text-align: center;
  616. color: #FFFFFF;
  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: 10rpx;
  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: 48rpx;
  651. float: left;
  652. margin-top: 24rpx;
  653. .title-logo{
  654. width: 48rpx;
  655. height: 48rpx;
  656. float: left;
  657. image{
  658. width: 48rpx;
  659. height: 48rpx;
  660. }
  661. }
  662. .title-text{
  663. float: left;
  664. margin-left: 16rpx;
  665. font-size: $font-size-28;
  666. color: $text-color;
  667. text-align: left;
  668. line-height: 48rpx;
  669. font-weight: bold;
  670. }
  671. }
  672. .goods-item{
  673. width: 100%;
  674. height: auto;
  675. }
  676. .goods-pros-t{
  677. display: flex;
  678. align-items: center;
  679. width: 100%;
  680. height: 217rpx;
  681. padding:24rpx 0;
  682. .pros-img{
  683. width: 210rpx;
  684. height: 100%;
  685. border-radius: 10rpx;
  686. margin:0 26rpx 0 0;
  687. border:1px solid #f3f3f3;
  688. image{
  689. width: 100%;
  690. height: 100%;
  691. border-radius: 10rpx;
  692. }
  693. }
  694. }
  695. .pros-product{
  696. width: 468rpx;
  697. height: 100%;
  698. line-height: 36rpx;
  699. font-size: $font-size-26;
  700. position: relative;
  701. .producttitle{
  702. width: 100%;
  703. display: inline-block;
  704. height: auto;
  705. text-overflow:ellipsis;
  706. display: -webkit-box;
  707. word-break: break-all;
  708. -webkit-box-orient: vertical;
  709. -webkit-line-clamp: 2;
  710. overflow: hidden;
  711. margin-bottom: 8rpx;
  712. }
  713. .productspec{
  714. height: 36rpx;
  715. color: #999999;
  716. }
  717. .productprice{
  718. height: 48rpx;
  719. position: absolute;
  720. width: 100%;
  721. bottom: 0;
  722. .price{
  723. line-height: 48rpx;
  724. font-size: $font-size-28;
  725. width: 48%;
  726. color: #FF2A2A;
  727. float: left;
  728. font-weight: bold;
  729. }
  730. .count{
  731. height: 100%;
  732. float: right;
  733. position: relative;
  734. .small{
  735. color: #666666;
  736. }
  737. }
  738. }
  739. }
  740. .order-footer{
  741. width: 100%;
  742. height: 78rpx;
  743. float: left;
  744. .order-footer-top{
  745. width: 100%;
  746. height: 34rpx;
  747. line-height: 34rpx;
  748. font-size: $font-size-24;
  749. color: #999999;
  750. text-align: right;
  751. }
  752. .order-footer-bot{
  753. width: 100%;
  754. float: left;
  755. height: 48rpx;
  756. line-height: 48rpx;
  757. font-size: $font-size-28;
  758. font-weight: bold;
  759. color: $text-color;
  760. .count{
  761. width: 50%;
  762. float: left;
  763. text-align: left;
  764. }
  765. .money{
  766. width: 50%;
  767. float: right;
  768. text-align: right;
  769. }
  770. }
  771. }
  772. </style>