order-historylist.vue 27 KB

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