order-historylist.vue 22 KB

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