order-historylist.vue 22 KB

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