search-order.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  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?state=${this.currentTab}&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();
  304. break
  305. case 'cancel':
  306. this.handCenceConfirm()
  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.initOrderDetaileData()
  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(this.currentTab)
  336. },2000)
  337. }).catch(response =>{
  338. this.$util.msg(response.msg,2000)
  339. })
  340. })
  341. },
  342. handOrderDetele(){//删除订单
  343. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  344. deleteOrder({orderID:this.orderID}).then(response =>{
  345. this.$util.msg(response.msg,2000,true,'success');
  346. setTimeout(() => {
  347. if(this.shareType ==='share'){
  348. this.$api.switchTabTo('/pages/tabBar/user/user')
  349. }else{
  350. this.$api.redirectTo(`/pages/user/order/order-list?type=detele&state=${this.state}`)
  351. }
  352. },500)
  353. }).catch(response =>{
  354. this.$util.msg(response.msg,2000)
  355. })
  356. })
  357. },
  358. handCenceConfirm(){//取消订单
  359. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  360. cancelOrder({orderID:this.orderID}).then(response =>{
  361. this.$util.msg(response.msg,2000,true,'success');
  362. this.initOrderDetaileData()
  363. }).catch(response =>{
  364. this.$util.msg(response.msg,2000)
  365. })
  366. })
  367. },
  368. handlSearchPath(){
  369. this.$api.navigateTo('/pages/search/search-order')
  370. },
  371. onShareAppMessage (res){//分享转发
  372. this.isShareModal = false
  373. if (res.from === 'button') {// 来自页面内转发按钮
  374. }
  375. return {
  376. title: '您有新的分享订单,快来查看吧~',
  377. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.userID}`,
  378. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  379. }
  380. },
  381. //订单状态文字和颜色
  382. orderStateExp (state){
  383. let stateText = '',
  384. stateTextObject={
  385. 0:'待确认',
  386. 4:'交易完成',
  387. 5:'订单完成',
  388. 6:'已关闭',
  389. 7:'交易全退',
  390. 77:'交易全退',
  391. 11:'待付款待发货',
  392. 12:'待付款部分发货',
  393. 13:'待付款已发货',
  394. 21:'部分付款待发货',
  395. 22:'部分付款部分发货',
  396. 23:'部分付款已发货',
  397. 31:'已付款待发货',
  398. 32:'已付款部分发货',
  399. 33:'已付款已发货',
  400. 111:'待付款待发货',
  401. }
  402. Object.keys(stateTextObject).forEach(key => {
  403. if(key == state){
  404. stateText = stateTextObject[key]
  405. }
  406. })
  407. return stateText;
  408. },
  409. orderPriceToFixed (n){
  410. let price ='';
  411. price = n.toFixed(2);
  412. return price
  413. },
  414. setScrollHeight() {
  415. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  416. this.windowHeight = windowHeight - 1;
  417. this.scrollHeight = windowHeight - 1;
  418. }
  419. },
  420. onPageScroll(e) {
  421. this.scrollTop = e.scrollTop;
  422. },
  423. onShow() {
  424. this.setScrollHeight();
  425. }
  426. }
  427. </script>
  428. <style lang="scss">
  429. @import "@/uni.scss";
  430. page{
  431. background-color: #F7F7F7 !important;
  432. }
  433. .search{
  434. width: 702rpx;
  435. height: 80rpx;
  436. padding: 12rpx 24rpx;
  437. border-bottom: 1px solid #F0F0F0;
  438. position: fixed;
  439. top: 0;
  440. left: 0;
  441. background: #FFFFFF;
  442. z-index: 1001;
  443. .search-input{
  444. width: 448rpx;
  445. height: 80rpx;
  446. padding: 0 68rpx;
  447. line-height: 80rpx;
  448. border-radius: 40rpx;
  449. position: relative;
  450. background: #F0F0F0;
  451. float: left;
  452. .icon-iconfonticonfontsousuo1{
  453. font-size: 36rpx;
  454. color: #8A8A8A;
  455. position: absolute;
  456. left: 24rpx;
  457. z-index: 10;
  458. }
  459. .icon-shanchu1{
  460. font-size: 36rpx;
  461. color: #8A8A8A;
  462. position: absolute;
  463. right: 24rpx;
  464. top: 0;
  465. padding: 0 10rpx;
  466. z-index: 10;
  467. }
  468. input{
  469. width: 448rpx;
  470. height: 80rpx;
  471. background-color: #F0F0F0;
  472. font-size: 26rpx;
  473. }
  474. }
  475. .search-btn{
  476. width: 118rpx;
  477. height: 80rpx;
  478. line-height: 80rpx;
  479. color: $color-system;
  480. font-size: 30rpx;
  481. text-align: center;
  482. float: left;
  483. }
  484. .voice-icon{
  485. width: 36rpx;
  486. height: 36rpx;
  487. padding: 16rpx 20rpx 16rpx 0;
  488. position: absolute;
  489. left: 16rpx;
  490. top: 4rpx;
  491. z-index: 10;
  492. }
  493. }
  494. .search-container{
  495. padding-top: 106rpx;
  496. }
  497. .s-block{
  498. background: #FFFFFF;
  499. .header{
  500. font-size: 32rpx;
  501. padding:40rpx 24rpx 22rpx 24rpx;
  502. line-height: 42rpx;
  503. font-size: 30rpx;
  504. font-weight: bold;
  505. position: relative;
  506. .icon-shanchu{
  507. font-size: 36rpx;
  508. color: #333333;
  509. float: right;
  510. padding: 0 10rpx;
  511. z-index: 10;
  512. font-weight: normal;
  513. }
  514. }
  515. .list{
  516. display: flex;
  517. flex-wrap: wrap;
  518. padding-bottom: 40rpx;
  519. view{
  520. color: #8A8A8A;
  521. font-size: 24rpx;
  522. box-sizing: border-box;
  523. text-align: center;
  524. height: 48rpx;
  525. line-height: 48rpx;
  526. border-radius: 24rpx;
  527. margin:12rpx;
  528. padding:.0 30rpx;
  529. overflow: hidden;
  530. white-space: nowrap;
  531. text-overflow: ellipsis;
  532. background-color: #F3F3F3;
  533. }
  534. }
  535. }
  536. .s-circle{
  537. margin-top: 30rpx;
  538. .header{
  539. font-size: 32rpx;
  540. padding: 30rpx;
  541. border-bottom: 2rpx solid #F9F9F9;
  542. position: relative;
  543. image{
  544. width: 36rpx;
  545. height: 36rpx;
  546. padding: 10rpx;
  547. position: absolute;
  548. right: 40rpx;
  549. top: 24rpx;
  550. }
  551. }
  552. .list{
  553. display: flex;
  554. flex-wrap: wrap;
  555. padding: 0 30rpx 20rpx;
  556. view{
  557. padding: 8rpx 30rpx;
  558. margin: 20rpx 30rpx 0 0;
  559. font-size: 28rpx;
  560. color: #8A8A8A;
  561. background-color: #F7F7F7;
  562. box-sizing: border-box;
  563. text-align: center;
  564. border-radius: 20rpx;
  565. }
  566. }
  567. }
  568. .wanted-block{
  569. margin-top: 30rpx;
  570. .header{
  571. font-size: 32rpx;
  572. padding: 30rpx;
  573. }
  574. .list{
  575. display: flex;
  576. flex-wrap: wrap;
  577. view{
  578. width: 50%;
  579. color: #8A8A8A;
  580. font-size: 28rpx;
  581. box-sizing: border-box;
  582. text-align: center;
  583. padding: 20rpx 0;
  584. border-top: 2rpx solid #FFF;
  585. border-left: 2rpx solid #FFF;
  586. background-color: #F7F7F7;
  587. overflow: hidden;
  588. white-space: nowrap;
  589. text-overflow: ellipsis;
  590. }
  591. }
  592. }
  593. .wanted-circle{
  594. margin-top: 30rpx;
  595. .header{
  596. font-size: 32rpx;
  597. padding: 30rpx;
  598. }
  599. .list{
  600. display: flex;
  601. flex-wrap: wrap;
  602. padding: 0 30rpx 20rpx;
  603. view{
  604. padding: 8rpx 30rpx;
  605. margin: 20rpx 30rpx 0 0;
  606. font-size: 28rpx;
  607. color: #8A8A8A;
  608. background-color: #F7F7F7;
  609. box-sizing: border-box;
  610. text-align: center;
  611. border-radius: 20rpx;
  612. }
  613. }
  614. }
  615. .order-container {
  616. scroll-view {
  617. height: 100%;
  618. overflow: scroll;
  619. }
  620. }
  621. .container {
  622. padding-bottom: env(safe-area-inset-bottom);
  623. height: auto;
  624. position: relative;
  625. }
  626. .tui-order-content{
  627. width: 100%;
  628. height: auto;
  629. }
  630. .tui-order-list {
  631. width: 100%;
  632. position: relative;
  633. }
  634. .tui-order-item {
  635. display: flex;
  636. flex-direction: column;
  637. width: 702rpx;
  638. padding:20rpx 24rpx 0 24rpx;
  639. background: #fff;
  640. border-bottom: 20rpx solid #F7F7F7;
  641. }
  642. .order-title{
  643. width: 100%;
  644. height: auto;
  645. .order-title-t{
  646. width: 100%;
  647. height: 40rpx;
  648. float: left;
  649. font-size: $font-size-28;
  650. line-height: 40rpx;
  651. font-weight: bold;
  652. .order-title-num{
  653. float: left;
  654. text-align: left;
  655. color: $color-system;
  656. }
  657. .order-title-tip{
  658. float: right;
  659. text-align: right;
  660. color: #FF2A2A;
  661. }
  662. }
  663. .order-title-b{
  664. width: 100%;
  665. height: 40rpx;
  666. float: left;
  667. margin-top: 8rpx;
  668. font-size: $font-size-28;
  669. line-height: 40rpx;
  670. color: #999999;
  671. text-align: left;
  672. }
  673. }
  674. .goods-title{
  675. width: 100%;
  676. height: 48rpx;
  677. float: left;
  678. margin-top: 24rpx;
  679. .title-logo{
  680. width: 48rpx;
  681. height: 48rpx;
  682. float: left;
  683. image{
  684. width: 48rpx;
  685. height: 48rpx;
  686. }
  687. }
  688. .title-text{
  689. float: left;
  690. margin-left: 16rpx;
  691. font-size: $font-size-28;
  692. color: $text-color;
  693. text-align: left;
  694. line-height: 48rpx;
  695. font-weight: bold;
  696. }
  697. }
  698. .goods-item{
  699. width: 100%;
  700. height: auto;
  701. }
  702. .goods-pros-t{
  703. display: flex;
  704. align-items: center;
  705. width: 100%;
  706. height: 217rpx;
  707. padding:24rpx 0;
  708. .pros-img{
  709. width: 210rpx;
  710. height: 100%;
  711. border-radius: 10rpx;
  712. margin:0 26rpx 0 0;
  713. border:1px solid #f3f3f3;
  714. image{
  715. width: 100%;
  716. height: 100%;
  717. border-radius: 10rpx;
  718. }
  719. }
  720. }
  721. .pros-product{
  722. width: 468rpx;
  723. height: 100%;
  724. line-height: 36rpx;
  725. font-size: $font-size-26;
  726. position: relative;
  727. .producttitle{
  728. width: 100%;
  729. display: inline-block;
  730. height: auto;
  731. text-overflow:ellipsis;
  732. display: -webkit-box;
  733. word-break: break-all;
  734. -webkit-box-orient: vertical;
  735. -webkit-line-clamp: 2;
  736. overflow: hidden;
  737. margin-bottom: 8rpx;
  738. }
  739. .productspec{
  740. height: 36rpx;
  741. color: #999999;
  742. }
  743. .productprice{
  744. height: 48rpx;
  745. position: absolute;
  746. width: 100%;
  747. bottom: 0;
  748. .price{
  749. line-height: 48rpx;
  750. font-size: $font-size-28;
  751. width: 48%;
  752. color: #FF2A2A;
  753. float: left;
  754. font-weight: bold;
  755. }
  756. .count{
  757. height: 100%;
  758. float: right;
  759. position: relative;
  760. .small{
  761. color: #666666;
  762. }
  763. }
  764. }
  765. }
  766. .order-footer{
  767. width: 100%;
  768. height: 78rpx;
  769. float: left;
  770. .order-footer-top{
  771. width: 100%;
  772. height: 34rpx;
  773. line-height: 34rpx;
  774. font-size: $font-size-24;
  775. color: #999999;
  776. text-align: right;
  777. }
  778. .order-footer-bot{
  779. width: 100%;
  780. float: left;
  781. height: 48rpx;
  782. line-height: 48rpx;
  783. font-size: $font-size-28;
  784. font-weight: bold;
  785. color: $text-color;
  786. .count{
  787. width: 50%;
  788. float: left;
  789. text-align: left;
  790. }
  791. .money{
  792. width: 50%;
  793. float: right;
  794. text-align: right;
  795. }
  796. }
  797. }
  798. </style>