order-list.vue 24 KB

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