search-order.vue 21 KB

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