order-list.vue 23 KB

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