search-order.vue 20 KB

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