order-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  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(response.data.onlinePayFlag == '1'){
  344. this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${response.data.pendingPayments}&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. if(data.onlinePayFlag == '1'){
  367. this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&orderID=${data.orderId}`)
  368. }else{
  369. this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderID=${data.orderId}`)
  370. }
  371. },
  372. handOrderConfirm (id){//确认收货
  373. this.$util.modal('提示','是否确认收货','确定','取消',true,() =>{
  374. confirmReceipt({orderID:id}).then(response =>{
  375. this.$util.msg(response.msg,2000,true,'success');
  376. setTimeout(() => {
  377. this.getOrderDatainit(this.currentTab)
  378. },2000)
  379. }).catch(error =>{
  380. this.$util.msg(error.msg,2000)
  381. })
  382. })
  383. },
  384. handOrderConfirmation (id){//确认订单
  385. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  386. affirmOrder({orderID:id}).then(response =>{
  387. this.$util.msg(response.msg,2000,true,'success');
  388. setTimeout(() => {
  389. this.getOrderDatainit(this.currentTab)
  390. },2000)
  391. }).catch(error =>{
  392. this.$util.msg(error.msg,2000)
  393. })
  394. })
  395. },
  396. handOrderDetele(id){//删除订单
  397. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  398. deleteOrder({orderID:id}).then(response =>{
  399. this.$util.msg(response.msg,2000,true,'success');
  400. setTimeout(() => {
  401. this.getOrderDatainit(this.currentTab)
  402. },2000)
  403. }).catch(error =>{
  404. this.$util.msg(error.msg,2000)
  405. })
  406. })
  407. },
  408. handCenceConfirm(id){//取消订单
  409. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  410. cancelOrder({orderID:id}).then(response =>{
  411. this.$util.msg(response.msg,2000,true,'success');
  412. setTimeout(() => {
  413. this.getOrderDatainit(this.currentTab)
  414. },2000)
  415. }).catch(error =>{
  416. this.$util.msg(error.msg,2000)
  417. })
  418. })
  419. },
  420. handlSearchPath(){
  421. this.$api.navigateTo('/pages/search/search-order')
  422. },
  423. onShareAppMessage (res){//分享转发
  424. this.isShareModal = false
  425. if (res.from === 'button') {// 来自页面内转发按钮
  426. }
  427. return {
  428. title: '您有新的分享订单,快来查看吧~',
  429. path: `/pages/user/order/order-sharelogin?orderID=${this.btnoRderID}&userID=${this.userID}`,
  430. imageUrl:'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  431. }
  432. },
  433. //订单状态文字和颜色
  434. orderStateExp (state){
  435. let stateText = '',
  436. stateTextObject={
  437. 0:'待确认',
  438. 4:'交易完成',
  439. 5:'订单完成',
  440. 6:'已关闭',
  441. 7:'交易全退',
  442. 77:'交易全退',
  443. 11:'待付款待发货',
  444. 12:'待付款部分发货',
  445. 13:'待付款已发货',
  446. 21:'部分付款待发货',
  447. 22:'部分付款部分发货',
  448. 23:'部分付款已发货',
  449. 31:'已付款待发货',
  450. 32:'已付款部分发货',
  451. 33:'已付款已发货',
  452. 111:'待付款待发货',
  453. }
  454. Object.keys(stateTextObject).forEach(key => {
  455. if(key == state){
  456. stateText = stateTextObject[key]
  457. }
  458. })
  459. return stateText;
  460. },
  461. orderPriceToFixed (n){
  462. let price ='';
  463. price = n.toFixed(2);
  464. return price
  465. },
  466. getHeaderTopHeight (){ // 状态栏高度
  467. let statusBarHeight = this.systeminfo.statusBarHeight
  468. let headerPosi = this.headerBtnPosi
  469. let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
  470. height: headerPosi.height,
  471. width: headerPosi.width,
  472. // 胶囊top - 状态栏高度
  473. top: headerPosi.top - statusBarHeight,
  474. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  475. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  476. // 屏幕宽度 - 胶囊right
  477. right: this.systeminfo.screenWidth - headerPosi.right
  478. }
  479. this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
  480. },
  481. setHeaderBtnPosi (){
  482. // 获得胶囊按钮位置信息
  483. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  484. return headerBtnPosi
  485. },
  486. setSysteminfo (){
  487. let systeminfo;
  488. uni.getSystemInfo({ // 获取设备信息
  489. success: (res) => {
  490. systeminfo = res
  491. },
  492. })
  493. return systeminfo
  494. }
  495. },
  496. onPageScroll(e) {
  497. this.scrollTop = e.scrollTop;
  498. },
  499. onShow() {
  500. this.isModalLayer = false;
  501. this.getOrderDatainit(this.currentTab)
  502. }
  503. }
  504. </script>
  505. <style lang="scss">
  506. /*tabbar start*/
  507. ::-webkit-scrollbar {
  508. width: 0;
  509. height: 0;
  510. color: transparent;
  511. }
  512. .order-section-top{
  513. width: 100%;
  514. position: fixed;
  515. top: 0;
  516. left: 0;
  517. z-index: 99;
  518. background: #FFFFFF;
  519. }
  520. .tab-view::before {
  521. content: '';
  522. position: absolute;
  523. border-bottom: 1rpx solid #eaeef1;
  524. -webkit-transform: scaleY(0.5);
  525. transform: scaleY(0.5);
  526. bottom: 0;
  527. right: 0;
  528. left: 0;
  529. }
  530. .tab-view {
  531. width: 100%;
  532. height: 80rpx;
  533. overflow: hidden;
  534. box-sizing: border-box;
  535. background: #fff;
  536. white-space: nowrap;
  537. border-top: 1px solid #F7F7F7;
  538. }
  539. .tab-bar-item {
  540. padding: 0;
  541. height: 80rpx;
  542. min-width: 80rpx;
  543. line-height: 80rpx;
  544. margin: 0 28rpx;
  545. display: inline-block;
  546. text-align: center;
  547. box-sizing: border-box;
  548. }
  549. .tab-bar-title {
  550. height: 80rpx;
  551. line-height: 80rpx;
  552. font-size:$font-size-28;
  553. color: $text-color;
  554. }
  555. .active {
  556. border-bottom: 6rpx solid $color-system;
  557. }
  558. .active .tab-bar-title {
  559. color: $color-system !important;
  560. }
  561. /*tabbar end*/
  562. .scoll-y {
  563. height: 100%;
  564. }
  565. page{
  566. background: #F7F7F7;
  567. }
  568. .container {
  569. padding-bottom: env(safe-area-inset-bottom);
  570. height: auto;
  571. position: relative;
  572. }
  573. .tui-order-content{
  574. width: 100%;
  575. height: auto;
  576. }
  577. .tui-order-list {
  578. margin-top: 90rpx;
  579. width: 100%;
  580. position: relative;
  581. }
  582. .tui-order-item {
  583. display: flex;
  584. flex-direction: column;
  585. width: 702rpx;
  586. padding:20rpx 24rpx 0 24rpx;
  587. background: #fff;
  588. border-bottom: 20rpx solid #F7F7F7;
  589. }
  590. .order-title{
  591. width: 100%;
  592. height: auto;
  593. .order-title-t{
  594. width: 100%;
  595. height: 68rpx;
  596. float: left;
  597. line-height: 68rpx;
  598. position: relative;
  599. .bage-icon{
  600. width: 50rpx;
  601. height: 50rpx;
  602. display: block;
  603. position: absolute;
  604. right: 0;
  605. top: 9rpx;
  606. }
  607. .bage-buss{
  608. display: inline-block;
  609. width: 72rpx;
  610. height: 30rpx;
  611. background:radial-gradient(circle,rgba(255,39,180,1) 0%,rgba(193,77,245,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-auto{
  619. display: inline-block;
  620. width: 72rpx;
  621. height: 30rpx;
  622. background:radial-gradient(circle,rgba(255,180,39,1) 0%,rgba(245,142,77,1) 100%);
  623. border-radius: 15rpx;
  624. line-height: 30rpx;
  625. font-size: $font-size-22;
  626. text-align: center;
  627. color: #FFFFFF;
  628. }
  629. .bage-text{
  630. display: inline-block;
  631. font-size: $font-size-28;
  632. line-height: 68rpx;
  633. text-align: left;
  634. color: $color-system;
  635. margin-left: 10rpx;
  636. }
  637. }
  638. .order-title-b{
  639. width: 100%;
  640. height: 40rpx;
  641. float: left;
  642. margin-top: 8rpx;
  643. .order-title-btxt{
  644. float: left;
  645. font-size: $font-size-28;
  646. line-height: 40rpx;
  647. color: #999999;
  648. text-align: lef
  649. }
  650. .order-title-tip{
  651. float: right;
  652. font-size: $font-size-28;
  653. line-height: 40rpx;
  654. text-align: right;
  655. color: #FF2A2A;
  656. }
  657. }
  658. }
  659. .goods-title{
  660. width: 100%;
  661. height: 48rpx;
  662. float: left;
  663. margin-top: 24rpx;
  664. .title-logo{
  665. width: 48rpx;
  666. height: 48rpx;
  667. float: left;
  668. image{
  669. width: 48rpx;
  670. height: 48rpx;
  671. }
  672. }
  673. .title-text{
  674. width: 630rpx;
  675. overflow: hidden;
  676. text-overflow:ellipsis;
  677. white-space: nowrap;
  678. float: left;
  679. margin-left: 16rpx;
  680. font-size: $font-size-28;
  681. color: $text-color;
  682. text-align: left;
  683. line-height: 48rpx;
  684. font-weight: bold;
  685. }
  686. }
  687. .goods-item{
  688. width: 100%;
  689. height: auto;
  690. }
  691. .goods-pros-t{
  692. display: flex;
  693. align-items: center;
  694. width: 100%;
  695. height: 217rpx;
  696. padding:24rpx 0;
  697. .pros-img{
  698. width: 210rpx;
  699. height: 100%;
  700. border-radius: 10rpx;
  701. margin:0 26rpx 0 0;
  702. border:1px solid #f3f3f3;
  703. image{
  704. width: 100%;
  705. height: 100%;
  706. border-radius: 10rpx;
  707. }
  708. }
  709. }
  710. .pros-product{
  711. width: 468rpx;
  712. height: 100%;
  713. line-height: 36rpx;
  714. font-size: $font-size-26;
  715. position: relative;
  716. .producttitle{
  717. width: 100%;
  718. display: inline-block;
  719. height: auto;
  720. text-overflow:ellipsis;
  721. display: -webkit-box;
  722. word-break: break-all;
  723. -webkit-box-orient: vertical;
  724. -webkit-line-clamp: 2;
  725. overflow: hidden;
  726. margin-bottom: 8rpx;
  727. }
  728. .productspec{
  729. height: 36rpx;
  730. color: #999999;
  731. }
  732. .productprice{
  733. height: 48rpx;
  734. position: absolute;
  735. width: 100%;
  736. bottom: 0;
  737. .price{
  738. line-height: 48rpx;
  739. font-size: $font-size-28;
  740. width: 48%;
  741. color: #FF2A2A;
  742. float: left;
  743. font-weight: bold;
  744. }
  745. .count{
  746. height: 100%;
  747. float: right;
  748. position: relative;
  749. .small{
  750. color: #666666;
  751. }
  752. }
  753. }
  754. }
  755. .order-footer{
  756. width: 100%;
  757. height: 78rpx;
  758. float: left;
  759. .order-footer-top{
  760. width: 100%;
  761. height: 34rpx;
  762. line-height: 34rpx;
  763. font-size: $font-size-24;
  764. color: #999999;
  765. text-align: right;
  766. }
  767. .order-footer-bot{
  768. width: 100%;
  769. float: left;
  770. height: 48rpx;
  771. line-height: 48rpx;
  772. font-size: $font-size-28;
  773. font-weight: bold;
  774. color: $text-color;
  775. .count{
  776. width: 50%;
  777. float: left;
  778. text-align: left;
  779. }
  780. .money{
  781. width: 50%;
  782. float: right;
  783. text-align: right;
  784. }
  785. }
  786. }
  787. </style>