order-list.vue 24 KB

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