order-historylist.vue 24 KB

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