order-historylist.vue 22 KB

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