order-historylist.vue 23 KB

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