order-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  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. let params = {orderState:index,organizeId:resolve.organizeId,pageNum:1,pageSize:this.pageSize};
  258. this.OrderService.QueryOrderList(params).then(response =>{
  259. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  260. let orderList = response.data.list.filter(item=>{
  261. //添加不同状态下订单的表现形式
  262. item = Object.assign(item, this.StateExpFormat(item.state));
  263. return item;
  264. });
  265. orderItem.orderList =[];
  266. orderList.forEach(item=>{
  267. orderItem.orderList.push(item);
  268. })
  269. this.$set(orderItem, 'loaded', true);
  270. this.hasNextPage = response.data.hasNextPage;
  271. if(this.hasNextPage){
  272. this.pullUpOn = false
  273. this.nomoreText = '上拉显示更多'
  274. }else{
  275. if(orderItem.orderList.length < 2){
  276. this.pullUpOn = true
  277. }else{
  278. this.pullUpOn = false
  279. this.nomoreText = '已至底部'
  280. }
  281. }
  282. }).catch(error =>{
  283. this.$util.msg(error.msg,2000);
  284. })
  285. })
  286. }, 600);
  287. },
  288. getOnReachBottomData(index){//上拉加载
  289. this.pageNum+=1
  290. let params = {orderState:index,userId:this.userId,pageNum:this.pageNum,pageSize:this.pageSize};
  291. this.OrderService.QueryOrderList(params).then(response =>{
  292. let orderItem = this.orderTabBar[index];
  293. let resData = response.data.results
  294. this.hasNextPage = response.data.hasNextPage;
  295. orderItem.orderList = orderItem.orderList.concat(resData)
  296. this.pullFlag = false;// 防上拉暴滑
  297. setTimeout(()=>{this.pullFlag = true;},500)
  298. if(this.hasNextPage){
  299. this.pullUpOn = false
  300. this.nomoreText = '上拉显示更多'
  301. }else{
  302. this.loadding = false
  303. this.pullUpOn = false
  304. this.nomoreText = '已至底部'
  305. }
  306. }).catch(error =>{
  307. this.$util.msg(error.msg,2000)
  308. })
  309. },
  310. scrolltolower() {
  311. if(this.hasNextPage){
  312. this.loadding = true
  313. this.pullUpOn = true
  314. this.getOnReachBottomData(this.currentTab);
  315. }
  316. },
  317. detail(id) {//订单详情跳转
  318. this.isModalLayer = true;
  319. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${id}`)
  320. },
  321. handButtonConfirm(data) {//获取点击
  322. console.log(data)
  323. this.hanldOrder = data
  324. this.btnoRderID = data.orderId
  325. this.OperationType = data.type
  326. this.handShowAlert(data)
  327. },
  328. handShowAlert(data) {//执行
  329. switch(data.type){
  330. case 'cancel':
  331. this.modal = true;
  332. this.contentModalText = '确认取消该订单吗?';
  333. break;
  334. case 'delete':
  335. this.modal = true;
  336. this.contentModalText = '确认删除该订单吗?';
  337. break;
  338. case 'confirm':
  339. this.modal = true;
  340. this.contentModalText = '是否确认收货?'
  341. break;
  342. case 'query':
  343. this.isModalLayer = true;
  344. this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+data.orderId)
  345. break;
  346. case 'pay':
  347. if(data.order.onlinePayFlag == '0'){
  348. this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
  349. }else{
  350. this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${data.order.pendingPayments}&orderId=${data.orderId}`)
  351. }
  352. break;
  353. }
  354. },
  355. handleClick(e) {//用户操作订单
  356. let index = e.index;
  357. if(index == 1){
  358. switch(this.OperationType){
  359. case 'delete':
  360. this.handOrderDetele(this.btnoRderID);
  361. break
  362. case 'cancel':
  363. this.handCenceConfirm(this.btnoRderID)
  364. break
  365. case 'confirm':
  366. this.handOrderConfirm(this.btnoRderID);
  367. break
  368. }
  369. }
  370. this.modal = false;
  371. },
  372. handOrderConfirm (id){//确认收货
  373. this.OrderService.ConfirmReceipt({orderId:id}).then(response =>{
  374. this.$util.msg(response.msg,2000,true,'success');
  375. setTimeout(() => {
  376. this.GetOrderDatainit(this.currentTab)
  377. },2000)
  378. }).catch(error =>{
  379. this.$util.msg(error.msg,2000)
  380. })
  381. },
  382. handOrderDetele(id){//删除订单
  383. this.OrderService.DeleteOrder({orderId:id}).then(response =>{
  384. this.$util.msg(response.msg,2000,true,'success');
  385. setTimeout(() => {
  386. this.GetOrderDatainit(this.currentTab)
  387. },2000)
  388. }).catch(error =>{
  389. this.$util.msg(error.msg,2000)
  390. })
  391. },
  392. handCenceConfirm(id){//取消订单
  393. this.OrderService.CancelOrder({orderId:id}).then(response =>{
  394. this.$util.msg(response.msg,2000,true,'success');
  395. setTimeout(() => {
  396. this.GetOrderDatainit(this.currentTab)
  397. },2000)
  398. }).catch(error =>{
  399. this.$util.msg(error.msg,2000)
  400. })
  401. },
  402. handlSearchPath(){
  403. this.$api.navigateTo('/pages/user/order/search-order')
  404. },
  405. onShareAppMessage (res){//分享转发
  406. this.isShareModal = false
  407. if (res.from === 'button') {// 来自页面内转发按钮
  408. }
  409. return {
  410. title: '点击查看您的订单~',
  411. path: `/pages/user/order/order-sharelogin?orderId=${this.btnoRderID}&userId=${this.userId}`,
  412. imageUrl:'https://static-b.caimei365.com/app/wisa/img/icon/icon-share.png'
  413. }
  414. },
  415. orderPriceToFixed (n){
  416. let price ='';
  417. price = n.toFixed(2);
  418. return price
  419. },
  420. getHeaderTopHeight (){ // 状态栏高度
  421. let statusBarHeight = this.systeminfo.statusBarHeight
  422. let headerPosi = this.headerBtnPosi
  423. let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
  424. height: headerPosi.height,
  425. width: headerPosi.width,
  426. // 胶囊top - 状态栏高度
  427. top: headerPosi.top - statusBarHeight,
  428. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  429. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  430. // 屏幕宽度 - 胶囊right
  431. right: this.systeminfo.screenWidth - headerPosi.right
  432. }
  433. this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
  434. },
  435. setHeaderBtnPosi (){
  436. // 获得胶囊按钮位置信息
  437. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  438. return headerBtnPosi
  439. },
  440. setSysteminfo (){
  441. let systeminfo;
  442. uni.getSystemInfo({ // 获取设备信息
  443. success: (res) => {
  444. systeminfo = res
  445. },
  446. })
  447. return systeminfo
  448. },
  449. PromotionsFormat(promo){//促销活动类型数据处理
  450. if(promo!=null){
  451. if(promo.type == 1 && promo.mode == 1){
  452. return true
  453. }else{
  454. return false
  455. }
  456. }
  457. return false
  458. },
  459. StateExpFormat(state){ //订单状态文字和颜色
  460. var HtmlStateText = '',
  461. stateTextObject={
  462. 4:'交易完成',
  463. 5:'订单完成',
  464. 6:'已关闭',
  465. 7:'交易全退',
  466. 77:'交易全退',
  467. 11:'待付款待发货',
  468. 12:'待付款部分发货',
  469. 13:'待付款已发货',
  470. 21:'部分付款待发货',
  471. 22:'部分付款部分发货',
  472. 23:'部分付款已发货',
  473. 31:'已付款待发货',
  474. 32:'已付款部分发货',
  475. 33:'已付款已发货',
  476. 111:'待付款待发货'
  477. };
  478. Object.keys(stateTextObject).forEach(function(key){
  479. if(key == state){
  480. HtmlStateText = stateTextObject[key]
  481. }
  482. });
  483. return HtmlStateText;
  484. }
  485. },
  486. onPageScroll(e) {
  487. this.scrollTop = e.scrollTop;
  488. },
  489. onShow() {
  490. this.isModalLayer = false;
  491. this.GetOrderDatainit(this.currentTab)
  492. }
  493. }
  494. </script>
  495. <style lang="scss">
  496. /*tabbar start*/
  497. ::-webkit-scrollbar {
  498. width: 0;
  499. height: 0;
  500. color: transparent;
  501. }
  502. .order-section-top{
  503. width: 100%;
  504. position: fixed;
  505. top: 0;
  506. left: 0;
  507. z-index: 99;
  508. background: #FFFFFF;
  509. }
  510. .tab-view::before {
  511. content: '';
  512. position: absolute;
  513. border-bottom: 1rpx solid #eaeef1;
  514. -webkit-transform: scaleY(0.5);
  515. transform: scaleY(0.5);
  516. bottom: 0;
  517. right: 0;
  518. left: 0;
  519. }
  520. .tab-view {
  521. width: 100%;
  522. height: 80rpx;
  523. overflow: hidden;
  524. box-sizing: border-box;
  525. background: #fff;
  526. white-space: nowrap;
  527. border-top: 1px solid #F7F7F7;
  528. }
  529. .tab-bar-item {
  530. padding: 0;
  531. height: 80rpx;
  532. min-width: 90rpx;
  533. line-height: 80rpx;
  534. margin: 0 28rpx;
  535. display: inline-block;
  536. text-align: center;
  537. box-sizing: border-box;
  538. }
  539. .tab-bar-title {
  540. height: 80rpx;
  541. line-height: 80rpx;
  542. font-size:$font-size-28;
  543. color: $text-color;
  544. }
  545. .active {
  546. border-bottom: 6rpx solid #c4761f;
  547. }
  548. .active .tab-bar-title {
  549. color:#c4761f !important;
  550. }
  551. /*tabbar end*/
  552. .scoll-y {
  553. height: 100%;
  554. }
  555. page{
  556. background: #F7F7F7;
  557. }
  558. .container {
  559. padding-bottom: env(safe-area-inset-bottom);
  560. height: auto;
  561. position: relative;
  562. }
  563. .tui-order-content{
  564. width: 100%;
  565. height: auto;
  566. }
  567. .tui-order-list {
  568. margin-top: 90rpx;
  569. width: 100%;
  570. position: relative;
  571. }
  572. .tui-order-item {
  573. display: flex;
  574. flex-direction: column;
  575. width: 702rpx;
  576. padding:20rpx 24rpx 0 24rpx;
  577. background: #fff;
  578. border-bottom: 20rpx solid #F7F7F7;
  579. }
  580. .order-title{
  581. width: 100%;
  582. height: auto;
  583. padding-bottom: 20rpx;
  584. border-bottom: 1px solid #e1e1e1;
  585. .order-title-name{
  586. width: 100%;
  587. height: 48rpx;
  588. line-height: 48rpx;
  589. text-align: left;
  590. font-size: $font-size-28;
  591. color: #333333;
  592. }
  593. .order-title-t{
  594. width: 100%;
  595. height: 48rpx;
  596. float: left;
  597. line-height: 48rpx;
  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-text{
  608. display: inline-block;
  609. font-size: $font-size-28;
  610. line-height: 48rpx;
  611. text-align: left;
  612. color: $text-color;
  613. .text{
  614. color: #999999;
  615. }
  616. }
  617. }
  618. .order-title-b{
  619. width: 100%;
  620. height: 48rpx;
  621. float: left;
  622. margin-top: 8rpx;
  623. .order-title-btxt{
  624. float: left;
  625. font-size: $font-size-28;
  626. line-height: 48rpx;
  627. color: $text-color;
  628. text-align: left;
  629. .text{
  630. color: #999999;
  631. }
  632. }
  633. .order-title-tip{
  634. float: right;
  635. font-size: $font-size-28;
  636. line-height: 48rpx;
  637. text-align: right;
  638. color: #FF2A2A;
  639. }
  640. }
  641. }
  642. .goods-title{
  643. width: 100%;
  644. height: 56rpx;
  645. float: left;
  646. margin-top:10rpx;
  647. .title-logo{
  648. width: 56rpx;
  649. height: 56rpx;
  650. float: left;
  651. box-sizing: border-box;
  652. margin-right: 10rpx;
  653. border: 1px solid #e1e1e1;
  654. image{
  655. width: 56rpx;
  656. height: 56rpx;
  657. display: block;
  658. }
  659. }
  660. .title-text{
  661. width: 400rpx;
  662. overflow: hidden;
  663. text-overflow:ellipsis;
  664. white-space: nowrap;
  665. float: left;
  666. font-size: $font-size-28;
  667. color: $text-color;
  668. text-align: left;
  669. line-height: 56rpx;
  670. font-weight: bold;
  671. }
  672. }
  673. .goods-item{
  674. width: 100%;
  675. height: auto;
  676. }
  677. .goods-pros-t{
  678. width: 100%;
  679. height: auto;
  680. padding:24rpx 0;
  681. .pros-img{
  682. float: left;
  683. width: 210rpx;
  684. height: 100%;
  685. border-radius: 10rpx;
  686. margin:0 26rpx 0 0;
  687. position: relative;
  688. .tips{
  689. display: inline-block;
  690. width: 80rpx;
  691. height: 40rpx;
  692. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  693. line-height: 40rpx;
  694. text-align: center;
  695. font-size: $font-size-24;
  696. color: #FFFFFF;
  697. border-radius:10rpx 0 10rpx 0 ;
  698. position: absolute;
  699. top:0;
  700. left: 0;
  701. }
  702. image{
  703. width: 210rpx;
  704. height: 210rpx;
  705. border-radius: 10rpx;
  706. border:1px solid #f3f3f3;
  707. }
  708. }
  709. }
  710. .pros-product{
  711. width: 460rpx;
  712. height: 100%;
  713. line-height: 36rpx;
  714. font-size: $font-size-26;
  715. position: relative;
  716. float: left;
  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. margin: 10rpx 0;
  733. }
  734. .productprice{
  735. height: 48rpx;
  736. width: 100%;
  737. float: left;
  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. .floor-item-act{
  756. width: 100%;
  757. height: 56rpx;
  758. text-align: center;
  759. box-sizing: border-box;
  760. float: left;
  761. padding:0 0 10rpx 0;
  762. .floor-tags{
  763. height: 28rpx;
  764. border-radius: 6rpx;
  765. background-color: #FFFFFF;
  766. line-height: 28rpx;
  767. color: #ff2a2a;
  768. text-align: center;
  769. display: inline-block;
  770. padding:0 16rpx;
  771. font-size: $font-size-20;
  772. border: 1px solid #ff2a2a;
  773. float: left;
  774. }
  775. }
  776. }
  777. .order-footer{
  778. width: 100%;
  779. height: 78rpx;
  780. float: left;
  781. margin-top: 20rpx;
  782. .order-footer-top{
  783. width: 100%;
  784. height: 34rpx;
  785. line-height: 34rpx;
  786. font-size: $font-size-24;
  787. color: #999999;
  788. text-align: right;
  789. }
  790. .order-footer-bot{
  791. width: 100%;
  792. float: left;
  793. height: 48rpx;
  794. line-height: 48rpx;
  795. font-size: $font-size-28;
  796. color: $text-color;
  797. .count{
  798. width: 50%;
  799. float: left;
  800. text-align: left;
  801. font-weight: bold;
  802. }
  803. .money{
  804. width: 50%;
  805. float: right;
  806. text-align: right;
  807. }
  808. }
  809. }
  810. </style>