order-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  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. // console.log(this.orderTabBar)
  493. }
  494. }
  495. </script>
  496. <style lang="scss">
  497. /*tabbar start*/
  498. ::-webkit-scrollbar {
  499. width: 0;
  500. height: 0;
  501. color: transparent;
  502. }
  503. .order-section-top{
  504. width: 100%;
  505. position: fixed;
  506. top: 0;
  507. left: 0;
  508. z-index: 99;
  509. background: #FFFFFF;
  510. }
  511. .tab-view::before {
  512. content: '';
  513. position: absolute;
  514. border-bottom: 1rpx solid #eaeef1;
  515. -webkit-transform: scaleY(0.5);
  516. transform: scaleY(0.5);
  517. bottom: 0;
  518. right: 0;
  519. left: 0;
  520. }
  521. .tab-view {
  522. width: 100%;
  523. height: 80rpx;
  524. overflow: hidden;
  525. box-sizing: border-box;
  526. background: #fff;
  527. white-space: nowrap;
  528. border-top: 1px solid #F7F7F7;
  529. }
  530. .tab-bar-item {
  531. padding: 0;
  532. height: 80rpx;
  533. min-width: 90rpx;
  534. line-height: 80rpx;
  535. margin: 0 28rpx;
  536. display: inline-block;
  537. text-align: center;
  538. box-sizing: border-box;
  539. }
  540. .tab-bar-title {
  541. height: 80rpx;
  542. line-height: 80rpx;
  543. font-size:$font-size-28;
  544. color: $text-color;
  545. }
  546. .active {
  547. border-bottom: 6rpx solid #c4761f;
  548. }
  549. .active .tab-bar-title {
  550. color:#c4761f !important;
  551. }
  552. /*tabbar end*/
  553. .scoll-y {
  554. height: 100%;
  555. }
  556. page{
  557. background: #F7F7F7;
  558. }
  559. .container {
  560. padding-bottom: env(safe-area-inset-bottom);
  561. height: auto;
  562. position: relative;
  563. }
  564. .tui-order-content{
  565. width: 100%;
  566. height: auto;
  567. }
  568. .tui-order-list {
  569. margin-top: 90rpx;
  570. width: 100%;
  571. position: relative;
  572. }
  573. .tui-order-item {
  574. display: flex;
  575. flex-direction: column;
  576. width: 702rpx;
  577. padding:20rpx 24rpx 0 24rpx;
  578. background: #fff;
  579. border-bottom: 20rpx solid #F7F7F7;
  580. }
  581. .order-title{
  582. width: 100%;
  583. height: auto;
  584. padding-bottom: 20rpx;
  585. border-bottom: 1px solid #e1e1e1;
  586. .order-title-name{
  587. width: 100%;
  588. height: 48rpx;
  589. line-height: 48rpx;
  590. text-align: left;
  591. font-size: $font-size-28;
  592. color: #333333;
  593. }
  594. .order-title-t{
  595. width: 100%;
  596. height: 48rpx;
  597. float: left;
  598. line-height: 48rpx;
  599. position: relative;
  600. .bage-icon{
  601. width: 50rpx;
  602. height: 50rpx;
  603. display: block;
  604. position: absolute;
  605. right: 0;
  606. top: 9rpx;
  607. }
  608. .bage-text{
  609. display: inline-block;
  610. font-size: $font-size-28;
  611. line-height: 48rpx;
  612. text-align: left;
  613. color: $text-color;
  614. .text{
  615. color: #999999;
  616. }
  617. }
  618. }
  619. .order-title-b{
  620. width: 100%;
  621. height: 48rpx;
  622. float: left;
  623. margin-top: 8rpx;
  624. .order-title-btxt{
  625. float: left;
  626. font-size: $font-size-28;
  627. line-height: 48rpx;
  628. color: $text-color;
  629. text-align: left;
  630. .text{
  631. color: #999999;
  632. }
  633. }
  634. .order-title-tip{
  635. float: right;
  636. font-size: $font-size-28;
  637. line-height: 48rpx;
  638. text-align: right;
  639. color: #FF2A2A;
  640. }
  641. }
  642. }
  643. .goods-title{
  644. width: 100%;
  645. height: 56rpx;
  646. float: left;
  647. margin-top:10rpx;
  648. .title-logo{
  649. width: 56rpx;
  650. height: 56rpx;
  651. float: left;
  652. box-sizing: border-box;
  653. margin-right: 10rpx;
  654. border: 1px solid #e1e1e1;
  655. image{
  656. width: 56rpx;
  657. height: 56rpx;
  658. display: block;
  659. }
  660. }
  661. .title-text{
  662. width: 400rpx;
  663. overflow: hidden;
  664. text-overflow:ellipsis;
  665. white-space: nowrap;
  666. float: left;
  667. font-size: $font-size-28;
  668. color: $text-color;
  669. text-align: left;
  670. line-height: 56rpx;
  671. font-weight: bold;
  672. }
  673. }
  674. .goods-item{
  675. width: 100%;
  676. height: auto;
  677. }
  678. .goods-pros-t{
  679. width: 100%;
  680. height: auto;
  681. padding:24rpx 0;
  682. .pros-img{
  683. float: left;
  684. width: 210rpx;
  685. height: 100%;
  686. border-radius: 10rpx;
  687. margin:0 26rpx 0 0;
  688. position: relative;
  689. .tips{
  690. display: inline-block;
  691. width: 80rpx;
  692. height: 40rpx;
  693. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  694. line-height: 40rpx;
  695. text-align: center;
  696. font-size: $font-size-24;
  697. color: #FFFFFF;
  698. border-radius:10rpx 0 10rpx 0 ;
  699. position: absolute;
  700. top:0;
  701. left: 0;
  702. }
  703. image{
  704. width: 210rpx;
  705. height: 210rpx;
  706. border-radius: 10rpx;
  707. border:1px solid #f3f3f3;
  708. }
  709. }
  710. }
  711. .pros-product{
  712. width: 460rpx;
  713. height: 100%;
  714. line-height: 36rpx;
  715. font-size: $font-size-26;
  716. position: relative;
  717. float: left;
  718. .producttitle{
  719. width: 100%;
  720. display: inline-block;
  721. height: auto;
  722. text-overflow:ellipsis;
  723. display: -webkit-box;
  724. word-break: break-all;
  725. -webkit-box-orient: vertical;
  726. -webkit-line-clamp: 2;
  727. overflow: hidden;
  728. margin-bottom: 8rpx;
  729. }
  730. .productspec{
  731. height: 36rpx;
  732. color: #999999;
  733. margin: 10rpx 0;
  734. }
  735. .productprice{
  736. height: 48rpx;
  737. width: 100%;
  738. float: left;
  739. .price{
  740. line-height: 48rpx;
  741. font-size: $font-size-28;
  742. width: 48%;
  743. color: #FF2A2A;
  744. float: left;
  745. font-weight: bold;
  746. }
  747. .count{
  748. height: 100%;
  749. float: right;
  750. position: relative;
  751. .small{
  752. color: #666666;
  753. }
  754. }
  755. }
  756. .floor-item-act{
  757. width: 100%;
  758. height: 56rpx;
  759. text-align: center;
  760. box-sizing: border-box;
  761. float: left;
  762. padding:0 0 10rpx 0;
  763. .floor-tags{
  764. height: 28rpx;
  765. border-radius: 6rpx;
  766. background-color: #FFFFFF;
  767. line-height: 28rpx;
  768. color: #ff2a2a;
  769. text-align: center;
  770. display: inline-block;
  771. padding:0 16rpx;
  772. font-size: $font-size-20;
  773. border: 1px solid #ff2a2a;
  774. float: left;
  775. }
  776. }
  777. }
  778. .order-footer{
  779. width: 100%;
  780. height: 78rpx;
  781. float: left;
  782. margin-top: 20rpx;
  783. .order-footer-top{
  784. width: 100%;
  785. height: 34rpx;
  786. line-height: 34rpx;
  787. font-size: $font-size-24;
  788. color: #999999;
  789. text-align: right;
  790. }
  791. .order-footer-bot{
  792. width: 100%;
  793. float: left;
  794. height: 48rpx;
  795. line-height: 48rpx;
  796. font-size: $font-size-28;
  797. color: $text-color;
  798. .count{
  799. width: 50%;
  800. float: left;
  801. text-align: left;
  802. font-weight: bold;
  803. }
  804. .money{
  805. width: 50%;
  806. float: right;
  807. text-align: right;
  808. }
  809. }
  810. }
  811. </style>