order-list.vue 23 KB

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