order-list.vue 25 KB

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