order-list.vue 23 KB

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