order-list.vue 23 KB

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