order-historylist.vue 20 KB

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