search-order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <template>
  2. <view class="search-container">
  3. <!-- <or-search :theme="themeClass" @getSearchText="getSearchText"></or-search> -->
  4. <view class="search-main">
  5. <view class="search">
  6. <view class="search-input">
  7. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  8. <input maxlength="20" focus type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入订单编号" v-model.trim="searchInputVal"/>
  9. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  10. </view>
  11. <view class="search-btn" @click="subMitSearch()">搜索</view>
  12. </view>
  13. </view>
  14. <view class="search-container-history" v-if="!isShowWrapper">
  15. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  16. <view class="header">
  17. 搜索历史
  18. <text class="iconfont icon-shanchu" @click="confirmDetele"></text>
  19. </view>
  20. <view class="list">
  21. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item.searchWord)">{{item.searchWord}}</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class=" order-container" v-if="isShowWrapper" :style="{'overflow' : 'auto','height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  26. <scroll-view class="tui-skeleton" :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower" scroll-y >
  27. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  28. <!-- 空白页 -->
  29. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  30. <!-- 列表 -->
  31. <view v-else class="tui-order-content">
  32. <view class="tui-order-item" v-for="(order,orderIndex) in orderList" :key="orderIndex" @click.stop="detail(order.orderID)">
  33. <view class="order-title">
  34. <view class="order-title-t">
  35. <view class="order-title-num tui-skeleton-fillet">订单号:{{order.orderNo}}</view>
  36. <view class="order-title-tip tui-skeleton-fillet">{{orderStateExp(order.status)}}</view>
  37. </view>
  38. <view class="order-title-b">下单时间:{{order.orderTime}}</view>
  39. </view>
  40. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  41. <view class="goods-title">
  42. <view class="title-logo tui-skeleton-fillet"><image :src="shop.shopLogo" mode=""></image></view>
  43. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  44. </view>
  45. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  46. <view class="goods-pros-t">
  47. <view class="pros-img tui-skeleton-fillet"><image :src="pros.productImage" alt="" /></view>
  48. <view class="pros-product">
  49. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  50. <view class="productspec tui-skeleton-fillet">规格:{{pros.productUnit}}</view>
  51. <view class="productprice">
  52. <view class="price tui-skeleton-fillet">
  53. <text>¥{{pros.price.toFixed(2)}}</text>
  54. </view>
  55. <view class="count tui-skeleton-fillet">
  56. <text class="small">x</text>{{pros.num}}
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </block>
  63. <view class="order-footer">
  64. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{orderPriceToFixed(order.discountFee)}}</view>
  65. <view class="order-footer-bot">
  66. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  67. <view class="money tui-skeleton-fillet">待付总额:¥{{orderPriceToFixed(order.pendingPayments)}}</view>
  68. </view>
  69. </view>
  70. <!-- 底部button -->
  71. <order-button ref="orderButton"
  72. :status="order.status"
  73. :orderID="order.orderID"
  74. @buttonConfirm="handButtonConfirm">
  75. </order-button>
  76. </view>
  77. <!--加载loadding-->
  78. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  79. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  80. <!--加载loadding-->
  81. </view>
  82. </view>
  83. </scroll-view>
  84. </view>
  85. <!-- 分享弹窗 -->
  86. <share-alert v-if="isShareModal"
  87. :orderID="btnoRderID"
  88. @shareConfirm ='onShareAppMessage'>
  89. </share-alert>
  90. <!-- 透明模态层 -->
  91. <modal-layer v-if='isModalLayer'></modal-layer>
  92. </view>
  93. </template>
  94. <script>
  95. import orSearch from '@/components/uni-search/or-search.vue'
  96. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  97. import tuiNomore from "@/components/tui-components/nomore/nomore"
  98. import orderButton from '@/components/module/orderDetails/sellerOrderButton' //按钮
  99. import modalLayer from "@/components/modal-layer"
  100. import empty from "@/components/empty";
  101. import shareAlert from '@/components/module/modelAlert/shareAlert' //分享弹窗
  102. import authorize from '@/common/config/authorize.js'
  103. import { searchOrderInfo, searchOrderHistory,clearOrderHistory,cancelOrder,deleteOrder,affirmOrder,} from "@/api/order.js"
  104. import { getSellerOrderList, } from "@/api/seller.js"
  105. export default {
  106. components: {
  107. orSearch,
  108. tuiLoadmore,
  109. tuiNomore,
  110. orderButton,
  111. empty,
  112. shareAlert,
  113. },
  114. data() {
  115. return {
  116. themeClass: 'block',
  117. searchInputVal:'',
  118. serviceProviderId:'',//协销ID
  119. isShowClose:false, //是否显示清空输入框图标
  120. isSearchHistory:false, //是都显示搜索历史
  121. serachRecordList:[],
  122. isShowWrapper:false,
  123. isModallayer:false,
  124. isShowEmpty:false,
  125. windowHeight: '',
  126. showSkeleton: true,
  127. userID:0,
  128. orderList: [],
  129. btnoRderID: 0, //点击按钮传入的的订单ID
  130. pageNum: 1, //页数
  131. pageSize: 10, //条数
  132. scrollTop: 0,
  133. deteleType:'',
  134. skeletonShow: true,
  135. isShareModal: false,//控制分享弹窗
  136. isCenceModal: false,//控制取消订单弹窗
  137. isShowDelModal: false,//控制删除订单弹窗
  138. isModalLayer: false,
  139. loadding: false,
  140. pullUpOn: true,
  141. hasNextPage: false,
  142. pullFlag: true,
  143. navbarHeight:'',
  144. nomoreText: '上拉显示更多',
  145. scrollHeight:''
  146. }
  147. },
  148. onLoad() {
  149. // this.initGetSerachRecord()
  150. },
  151. methods:{
  152. subMitSearch() {
  153. if (this.searchInputVal == '') {
  154. this.$util.msg('请输入订单编号',2000);
  155. }else{
  156. this.commodityList =[]
  157. this.getOrderDatainit()
  158. }
  159. },
  160. initGetSerachRecord(){
  161. this.$api.getStorage().then((resolve) =>{
  162. this.userID = resolve.userID
  163. searchOrderHistory({userId:this.userID}).then(response =>{
  164. this.serachRecordList = response.data
  165. if(this.serachRecordList.length>0){
  166. this.isSearchHistory = true
  167. }else{
  168. this.isSearchHistory = false
  169. }
  170. }).catch(response =>{
  171. this.$util.msg(response.msg,2000)
  172. })
  173. })
  174. },
  175. onShowClose () { //输入框失去焦点时触发
  176. this.inputEmpty(this.searchInputVal)
  177. },
  178. onFocus () { //输入框获取焦点时触发
  179. this.inputEmpty(this.searchInputVal)
  180. // this.initGetSerachRecord()
  181. },
  182. delInputText () { //清除输入框内容
  183. this.searchInputVal = ''
  184. this.isShowClose = false
  185. this.isShowWrapper = false
  186. this.inputEmpty(this.searchInputVal)
  187. // this.initGetSerachRecord()
  188. },
  189. keywordsClick (item) { //关键词搜索与历史搜索
  190. this.searchInputVal = item;
  191. this.isShowClose = true;
  192. this.subMitSearch();
  193. },
  194. confirmDetele () {//清空历史记录
  195. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  196. clearOrderHistory({userId:this.userID}).then(response =>{
  197. this.$util.msg('删除记录成功',2000,true,'success')
  198. this.serachRecordList=[]
  199. }).catch(response =>{
  200. this.$util.msg(response.msg,2000)
  201. })
  202. })
  203. },
  204. inputEmpty(val){
  205. this.isShowWrapper = false
  206. if(val != ''){
  207. this.isShowClose = true
  208. }else{
  209. this.isShowClose = false
  210. }
  211. },
  212. getOrderDatainit(index,source){
  213. /**
  214. * @订单初始化加载 仅加载第一页码
  215. * @param:orderNo(订单号)
  216. * @param:serviceProviderId(用户ID)
  217. * @param:pageNum(页码数)
  218. * @param:pageSize(每页条数)
  219. * @param:organizeID(全局变量组织ID)
  220. */
  221. let params = {orderNo:this.searchInputVal,serviceProviderId:this.serviceProviderId,pageNum:1,pageSize:this.pageSize};
  222. getSellerOrderList(params).then(response =>{
  223. this.isShowWrapper = true
  224. this.showSkeleton = true
  225. const _responseData = response.data.results;
  226. if(_responseData && _responseData.length > 0){
  227. let filrerData = _responseData.filter(item=>{
  228. //添加不同状态下订单的表现形式
  229. item = Object.assign(item, this.orderStateExp(item.state));
  230. return item;
  231. });
  232. this.orderList =[];
  233. filrerData.forEach(item=>{
  234. this.orderList.push(item);
  235. })
  236. this.hasNextPage = response.data.hasNextPage;
  237. if(this.hasNextPage){
  238. this.pullUpOn = false
  239. this.nomoreText = '上拉显示更多'
  240. }else{
  241. if(this.orderList.length < 2){
  242. this.pullUpOn = true
  243. }else{
  244. this.pullUpOn = false
  245. this.nomoreText = '已至底部'
  246. }
  247. }
  248. this.isShowEmpty = false
  249. }else{
  250. this.isShowEmpty = true
  251. }
  252. }).catch(response =>{
  253. this.$util.msg(response.msg,2000)
  254. })
  255. },
  256. getOnReachBottomData(index){//上拉加载
  257. this.pageNum+=1
  258. let params = {orderNo:this.searchInputVal,serviceProviderId:this.serviceProviderId,pageNum:this.pageNum,pageSize:this.pageSize}
  259. getSellerOrderList(params).then(response =>{
  260. let resData = response.data.results
  261. this.hasNextPage = response.data.hasNextPage;
  262. this.orderList = this.orderList.concat(resData)
  263. this.pullFlag = false;// 防上拉暴滑
  264. setTimeout(()=>{this.pullFlag = true;},500)
  265. if(this.hasNextPage){
  266. this.pullUpOn = false
  267. this.nomoreText = '上拉显示更多'
  268. }else{
  269. this.loadding = false
  270. this.pullUpOn = false
  271. this.nomoreText = '已至底部'
  272. }
  273. }).catch(response =>{
  274. this.$util.msg(response.msg,2000)
  275. })
  276. },
  277. scrolltolower() {
  278. if(this.hasNextPage){
  279. this.loadding = true
  280. this.pullUpOn = true
  281. this.showSkeleton = false
  282. this.getOnReachBottomData();
  283. }
  284. },
  285. detail(id) {//订单详情跳转
  286. this.isModalLayer = true;
  287. this.$api.navigateTo(`/market/pages/order/order-details?orderID=${id}`)
  288. },
  289. handButtonConfirm(data) {//获取点击
  290. this.handShowAlert(data)
  291. this.btnoRderID = data.orderId
  292. },
  293. handShowAlert(data) {//执行
  294. switch(data.type){
  295. case 'delete':
  296. this.handOrderDetele();
  297. break
  298. case 'cancel':
  299. this.handCenceConfirm()
  300. break
  301. case 'confirm':
  302. this.handOrderConfirm(data.orderId);
  303. break
  304. }
  305. },
  306. handOrderConfirm (id){//确认订单
  307. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  308. affirmOrder({orderID:id}).then(response =>{
  309. this.$util.msg(response.msg,2000,true,'success');
  310. setTimeout(() => {
  311. this.getOrderDatainit(this.currentTab)
  312. },2000)
  313. }).catch(response =>{
  314. this.$util.msg(response.msg,2000)
  315. })
  316. })
  317. },
  318. handOrderDetele(){//删除订单
  319. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  320. deleteOrder({orderID:this.orderID}).then(response =>{
  321. this.$util.msg(response.msg,2000,true,'success');
  322. setTimeout(() => {
  323. if(this.shareType ==='share'){
  324. this.$api.switchTabTo('/pages/tabBar/user/user')
  325. }else{
  326. this.$api.redirectTo(`/pages/user/order/order-list?type=detele&state=${this.state}`)
  327. }
  328. },500)
  329. }).catch(response =>{
  330. this.$util.msg(response.msg,2000)
  331. })
  332. })
  333. },
  334. handCenceConfirm(){//取消订单
  335. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  336. cancelOrder({orderID:this.orderID}).then(response =>{
  337. this.$util.msg(response.msg,2000,true,'success');
  338. this.initOrderDetaileData()
  339. }).catch(response =>{
  340. this.$util.msg(response.msg,2000)
  341. })
  342. })
  343. },
  344. onShareAppMessage (res){//分享转发
  345. this.isShareModal = false
  346. if (res.from === 'button') {// 来自页面内转发按钮
  347. }
  348. return {
  349. title: '您有新的分享订单,快来查看吧~',
  350. path: `/market/pages/order/orderShareLogin?orderID=${this.btnoRderID}`,
  351. imageUrl:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/03/%E8%AE%A2%E5%8D%95%E5%88%86%E4%BA%AB%E5%9B%BE%403x.png'
  352. }
  353. },
  354. //订单状态文字和颜色
  355. orderStateExp (state){
  356. let stateText = '',
  357. stateTextObject={
  358. 4:'交易完成',
  359. 5:'订单完成',
  360. 6:'已关闭',
  361. 7:'交易全退',
  362. 77:'交易全退',
  363. 11:'待付款待发货',
  364. 12:'待付款部分发货',
  365. 13:'待付款已发货',
  366. 21:'部分付款待发货',
  367. 22:'部分付款部分发货',
  368. 23:'部分付款已发货',
  369. 31:'已付款待发货',
  370. 32:'已付款部分发货',
  371. 33:'已付款已发货',
  372. 111:'待付款待发货',
  373. }
  374. Object.keys(stateTextObject).forEach(key => {
  375. if(key == state){
  376. stateText = stateTextObject[key]
  377. }
  378. })
  379. return stateText;
  380. },
  381. orderPriceToFixed (n){
  382. let price ='';
  383. price = n.toFixed(2);
  384. return price
  385. },
  386. setScrollHeight() {
  387. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  388. this.windowHeight = windowHeight - 1;
  389. this.scrollHeight = windowHeight - 1;
  390. }
  391. },
  392. onPageScroll(e) {
  393. this.scrollTop = e.scrollTop;
  394. },
  395. onShow() {
  396. this.setScrollHeight();
  397. this.$api.getStorage().then((resolve) =>{
  398. this.serviceProviderId = resolve.serviceProviderID
  399. })
  400. }
  401. }
  402. </script>
  403. <style lang="scss">
  404. @import "@/uni.scss";
  405. page{
  406. background-color: #F7F7F7 !important;
  407. }
  408. .search{
  409. width: 702rpx;
  410. height: 80rpx;
  411. padding: 12rpx 24rpx;
  412. border-bottom: 1px solid #F0F0F0;
  413. position: fixed;
  414. top: 0;
  415. left: 0;
  416. background: #FFFFFF;
  417. z-index: 1001;
  418. .search-input{
  419. width: 448rpx;
  420. height: 80rpx;
  421. padding: 0 68rpx;
  422. line-height: 80rpx;
  423. border-radius: 40rpx;
  424. position: relative;
  425. background: #F0F0F0;
  426. float: left;
  427. .icon-iconfonticonfontsousuo1{
  428. font-size: 36rpx;
  429. color: #8A8A8A;
  430. position: absolute;
  431. left: 24rpx;
  432. z-index: 10;
  433. }
  434. .icon-shanchu1{
  435. font-size: 36rpx;
  436. color: #8A8A8A;
  437. position: absolute;
  438. right: 24rpx;
  439. top: 0;
  440. padding: 0 10rpx;
  441. z-index: 10;
  442. }
  443. input{
  444. width: 448rpx;
  445. height: 80rpx;
  446. background-color: #F0F0F0;
  447. font-size: 26rpx;
  448. }
  449. }
  450. .search-btn{
  451. width: 118rpx;
  452. height: 80rpx;
  453. line-height: 80rpx;
  454. color: $color-system;
  455. font-size: 30rpx;
  456. text-align: center;
  457. float: left;
  458. }
  459. .voice-icon{
  460. width: 36rpx;
  461. height: 36rpx;
  462. padding: 16rpx 20rpx 16rpx 0;
  463. position: absolute;
  464. left: 16rpx;
  465. top: 4rpx;
  466. z-index: 10;
  467. }
  468. }
  469. .search-container{
  470. padding-top: 106rpx;
  471. }
  472. .s-block{
  473. background: #FFFFFF;
  474. .header{
  475. font-size: 32rpx;
  476. padding:40rpx 24rpx 22rpx 24rpx;
  477. line-height: 42rpx;
  478. font-size: 30rpx;
  479. font-weight: bold;
  480. position: relative;
  481. .icon-shanchu{
  482. font-size: 36rpx;
  483. color: #333333;
  484. float: right;
  485. padding: 0 10rpx;
  486. z-index: 10;
  487. font-weight: normal;
  488. }
  489. }
  490. .list{
  491. display: flex;
  492. flex-wrap: wrap;
  493. padding-bottom: 40rpx;
  494. view{
  495. color: #8A8A8A;
  496. font-size: 24rpx;
  497. box-sizing: border-box;
  498. text-align: center;
  499. height: 48rpx;
  500. line-height: 48rpx;
  501. border-radius: 24rpx;
  502. margin:12rpx;
  503. padding:.0 30rpx;
  504. overflow: hidden;
  505. white-space: nowrap;
  506. text-overflow: ellipsis;
  507. background-color: #F3F3F3;
  508. }
  509. }
  510. }
  511. .s-circle{
  512. margin-top: 30rpx;
  513. .header{
  514. font-size: 32rpx;
  515. padding: 30rpx;
  516. border-bottom: 2rpx solid #F9F9F9;
  517. position: relative;
  518. image{
  519. width: 36rpx;
  520. height: 36rpx;
  521. padding: 10rpx;
  522. position: absolute;
  523. right: 40rpx;
  524. top: 24rpx;
  525. }
  526. }
  527. .list{
  528. display: flex;
  529. flex-wrap: wrap;
  530. padding: 0 30rpx 20rpx;
  531. view{
  532. padding: 8rpx 30rpx;
  533. margin: 20rpx 30rpx 0 0;
  534. font-size: 28rpx;
  535. color: #8A8A8A;
  536. background-color: #F7F7F7;
  537. box-sizing: border-box;
  538. text-align: center;
  539. border-radius: 20rpx;
  540. }
  541. }
  542. }
  543. .wanted-block{
  544. margin-top: 30rpx;
  545. .header{
  546. font-size: 32rpx;
  547. padding: 30rpx;
  548. }
  549. .list{
  550. display: flex;
  551. flex-wrap: wrap;
  552. view{
  553. width: 50%;
  554. color: #8A8A8A;
  555. font-size: 28rpx;
  556. box-sizing: border-box;
  557. text-align: center;
  558. padding: 20rpx 0;
  559. border-top: 2rpx solid #FFF;
  560. border-left: 2rpx solid #FFF;
  561. background-color: #F7F7F7;
  562. overflow: hidden;
  563. white-space: nowrap;
  564. text-overflow: ellipsis;
  565. }
  566. }
  567. }
  568. .wanted-circle{
  569. margin-top: 30rpx;
  570. .header{
  571. font-size: 32rpx;
  572. padding: 30rpx;
  573. }
  574. .list{
  575. display: flex;
  576. flex-wrap: wrap;
  577. padding: 0 30rpx 20rpx;
  578. view{
  579. padding: 8rpx 30rpx;
  580. margin: 20rpx 30rpx 0 0;
  581. font-size: 28rpx;
  582. color: #8A8A8A;
  583. background-color: #F7F7F7;
  584. box-sizing: border-box;
  585. text-align: center;
  586. border-radius: 20rpx;
  587. }
  588. }
  589. }
  590. .order-container {
  591. scroll-view {
  592. height: 100%;
  593. overflow: scroll;
  594. }
  595. }
  596. .container {
  597. padding-bottom: env(safe-area-inset-bottom);
  598. height: auto;
  599. position: relative;
  600. }
  601. .tui-order-content{
  602. width: 100%;
  603. height: auto;
  604. }
  605. .tui-order-list {
  606. width: 100%;
  607. position: relative;
  608. }
  609. .tui-order-item {
  610. display: flex;
  611. flex-direction: column;
  612. width: 702rpx;
  613. padding:20rpx 24rpx 0 24rpx;
  614. background: #fff;
  615. border-bottom: 20rpx solid #F7F7F7;
  616. }
  617. .order-title{
  618. width: 100%;
  619. height: auto;
  620. .order-title-t{
  621. width: 100%;
  622. height: 40rpx;
  623. float: left;
  624. font-size: $font-size-28;
  625. line-height: 40rpx;
  626. font-weight: bold;
  627. .order-title-num{
  628. float: left;
  629. text-align: left;
  630. color: $color-system;
  631. }
  632. .order-title-tip{
  633. float: right;
  634. text-align: right;
  635. color: #FF2A2A;
  636. }
  637. }
  638. .order-title-b{
  639. width: 100%;
  640. height: 40rpx;
  641. float: left;
  642. margin-top: 8rpx;
  643. font-size: $font-size-28;
  644. line-height: 40rpx;
  645. color: #999999;
  646. text-align: left;
  647. }
  648. }
  649. .goods-title{
  650. width: 100%;
  651. height: 48rpx;
  652. float: left;
  653. margin-top: 24rpx;
  654. .title-logo{
  655. width: 48rpx;
  656. height: 48rpx;
  657. float: left;
  658. image{
  659. width: 48rpx;
  660. height: 48rpx;
  661. }
  662. }
  663. .title-text{
  664. float: left;
  665. margin-left: 16rpx;
  666. font-size: $font-size-28;
  667. color: $text-color;
  668. text-align: left;
  669. line-height: 48rpx;
  670. font-weight: bold;
  671. }
  672. }
  673. .goods-item{
  674. width: 100%;
  675. height: auto;
  676. }
  677. .goods-pros-t{
  678. display: flex;
  679. align-items: center;
  680. width: 100%;
  681. height: 217rpx;
  682. padding:24rpx 0;
  683. .pros-img{
  684. width: 210rpx;
  685. height: 100%;
  686. border-radius: 10rpx;
  687. margin:0 26rpx 0 0;
  688. border:1px solid #f3f3f3;
  689. image{
  690. width: 100%;
  691. height: 100%;
  692. border-radius: 10rpx;
  693. }
  694. }
  695. }
  696. .pros-product{
  697. width: 468rpx;
  698. height: 100%;
  699. line-height: 36rpx;
  700. font-size: $font-size-26;
  701. position: relative;
  702. .producttitle{
  703. width: 100%;
  704. display: inline-block;
  705. height: auto;
  706. text-overflow:ellipsis;
  707. display: -webkit-box;
  708. word-break: break-all;
  709. -webkit-box-orient: vertical;
  710. -webkit-line-clamp: 2;
  711. overflow: hidden;
  712. margin-bottom: 8rpx;
  713. }
  714. .productspec{
  715. height: 36rpx;
  716. color: #999999;
  717. }
  718. .productprice{
  719. height: 48rpx;
  720. position: absolute;
  721. width: 100%;
  722. bottom: 0;
  723. .price{
  724. line-height: 48rpx;
  725. font-size: $font-size-28;
  726. width: 48%;
  727. color: #FF2A2A;
  728. float: left;
  729. font-weight: bold;
  730. }
  731. .count{
  732. height: 100%;
  733. float: right;
  734. position: relative;
  735. .small{
  736. color: #666666;
  737. }
  738. }
  739. }
  740. }
  741. .order-footer{
  742. width: 100%;
  743. height: 78rpx;
  744. float: left;
  745. .order-footer-top{
  746. width: 100%;
  747. height: 34rpx;
  748. line-height: 34rpx;
  749. font-size: $font-size-24;
  750. color: #999999;
  751. text-align: right;
  752. }
  753. .order-footer-bot{
  754. width: 100%;
  755. float: left;
  756. height: 48rpx;
  757. line-height: 48rpx;
  758. font-size: $font-size-28;
  759. font-weight: bold;
  760. color: $text-color;
  761. .count{
  762. width: 50%;
  763. float: left;
  764. text-align: left;
  765. }
  766. .money{
  767. width: 50%;
  768. float: right;
  769. text-align: right;
  770. }
  771. }
  772. }
  773. </style>