search-order.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  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. :onlinePayFlag = "order.onlinePayFlag"
  79. @buttonConfirm="handButtonConfirm">
  80. </order-button>
  81. </view>
  82. <!--加载loadding-->
  83. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  84. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  85. <!--加载loadding-->
  86. </view>
  87. </view>
  88. </scroll-view>
  89. </view>
  90. <!-- 分享弹窗 -->
  91. <share-alert v-if="isShareModal"
  92. :orderID="btnoRderID"
  93. @shareConfirm ='onShareAppMessage'>
  94. </share-alert>
  95. <!-- 透明模态层 -->
  96. <modal-layer v-if='isModalLayer'></modal-layer>
  97. </view>
  98. </template>
  99. <script>
  100. import orSearch from '@/components/uni-search/or-search.vue'
  101. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  102. import tuiNomore from "@/components/tui-components/nomore/nomore"
  103. import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
  104. import modalLayer from "@/components/modal-layer"
  105. import empty from "@/components/empty";
  106. import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
  107. import authorize from '@/common/config/authorize.js'
  108. import {
  109. searchOrderInfo,
  110. searchOrderHistory,
  111. clearOrderHistory,
  112. queryOrderList,
  113. cancelOrder,
  114. deleteOrder,
  115. confirmReceipt,
  116. affirmOrder
  117. } from "@/api/order.js"
  118. export default {
  119. components: {
  120. orSearch,
  121. tuiLoadmore,
  122. tuiNomore,
  123. orderButton,
  124. empty,
  125. shareAlert,
  126. },
  127. data() {
  128. return {
  129. themeClass: 'block',
  130. searchInputVal:'',
  131. isShowClose:false, //是否显示清空输入框图标
  132. isSearchHistory:false, //是都显示搜索历史
  133. serachRecordList:[],
  134. isShowWrapper:false,
  135. isModallayer:false,
  136. isShowEmpty:false,
  137. windowHeight: '',
  138. showSkeleton: true,
  139. userID:0,
  140. orderList: [],
  141. btnoRderID: 0, //点击按钮传入的的订单ID
  142. pageNum: 1, //页数
  143. pageSize: 10, //条数
  144. scrollTop: 0,
  145. deteleType:'',
  146. skeletonShow: true,
  147. isShareModal: false,//控制分享弹窗
  148. isCenceModal: false,//控制取消订单弹窗
  149. isShowDelModal: false,//控制删除订单弹窗
  150. isModalLayer: false,
  151. loadding: false,
  152. pullUpOn: true,
  153. hasNextPage: false,
  154. pullFlag: true,
  155. navbarHeight:'',
  156. nomoreText: '上拉显示更多',
  157. scrollHeight:''
  158. }
  159. },
  160. onLoad() {
  161. this.initGetSerachRecord()
  162. },
  163. methods:{
  164. subMitSearch() {
  165. if (this.searchInputVal == '') {
  166. this.$util.msg('请输入商品关键词',2000);
  167. }else{
  168. this.commodityList =[]
  169. this.getOrderDatainit()
  170. }
  171. },
  172. initGetSerachRecord(){
  173. this.$api.getStorage().then((resolve) =>{
  174. this.userID = resolve.userID
  175. searchOrderHistory({userId:this.userID}).then(response =>{
  176. this.serachRecordList = response.data
  177. if(this.serachRecordList.length>0){
  178. this.isSearchHistory = true
  179. }else{
  180. this.isSearchHistory = false
  181. }
  182. }).catch(error =>{
  183. this.$util.msg(error.msg,2000)
  184. })
  185. })
  186. },
  187. onShowClose () { //输入框失去焦点时触发
  188. this.inputEmpty(this.searchInputVal)
  189. },
  190. onFocus () { //输入框获取焦点时触发
  191. this.inputEmpty(this.searchInputVal)
  192. this.initGetSerachRecord()
  193. },
  194. delInputText () { //清除输入框内容
  195. this.searchInputVal = ''
  196. this.isShowClose = false
  197. this.isShowWrapper = false
  198. this.inputEmpty(this.searchInputVal)
  199. this.initGetSerachRecord()
  200. },
  201. keywordsClick (item) { //关键词搜索与历史搜索
  202. this.searchInputVal = item;
  203. this.isShowClose = true;
  204. this.subMitSearch();
  205. },
  206. confirmDetele () {//清空历史记录
  207. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  208. clearOrderHistory({userId:this.userID}).then(response =>{
  209. this.$util.msg('删除记录成功',2000,true,'success')
  210. this.serachRecordList=[]
  211. }).catch(error =>{
  212. this.$util.msg(error.msg,2000)
  213. })
  214. })
  215. },
  216. inputEmpty(val){
  217. this.isShowWrapper = false
  218. if(val != ''){
  219. this.isShowClose = true
  220. }else{
  221. this.isShowClose = false
  222. }
  223. },
  224. getOrderDatainit(index,source){
  225. /**
  226. * @订单初始化加载 仅加载第一页码
  227. * @param:searchWord(搜索关键词)
  228. * @param:userId(用户ID)
  229. * @param:pageNum(页码数)
  230. * @param:pageSize(每页条数)
  231. * @param:organizeID(全局变量组织ID)
  232. */
  233. let params = {searchWord:this.searchInputVal,userId:this.userID,pageNum:1,pageSize:this.pageSize};
  234. searchOrderInfo(params).then(response =>{
  235. this.isShowWrapper = true
  236. this.showSkeleton = true
  237. const _responseData = response.data.results;
  238. if(_responseData && _responseData.length > 0){
  239. let filrerData = _responseData.filter(item=>{
  240. //添加不同状态下订单的表现形式
  241. item = Object.assign(item, this.orderStateExp(item.state));
  242. return item;
  243. });
  244. this.orderList =[];
  245. filrerData.forEach(item=>{
  246. this.orderList.push(item);
  247. })
  248. this.hasNextPage = response.data.hasNextPage;
  249. if(this.hasNextPage){
  250. this.pullUpOn = false
  251. this.nomoreText = '上拉显示更多'
  252. }else{
  253. if(this.orderList.length < 2){
  254. this.pullUpOn = true
  255. }else{
  256. this.pullUpOn = false
  257. this.nomoreText = '已至底部'
  258. }
  259. }
  260. this.isShowEmpty = false
  261. }else{
  262. this.isShowEmpty = true
  263. }
  264. }).catch(error =>{
  265. this.$util.msg(error.msg,2000)
  266. })
  267. },
  268. getOnReachBottomData(index){//上拉加载
  269. this.pageNum+=1
  270. let params = {searchWord:this.searchInputVal,userId:this.userID,pageNum:this.pageNum,pageSize:this.pageSize}
  271. searchOrderInfo(params).then(response =>{
  272. let resData = response.data.results
  273. this.hasNextPage = response.data.hasNextPage;
  274. this.orderList = this.orderList.concat(resData)
  275. this.pullFlag = false;// 防上拉暴滑
  276. setTimeout(()=>{this.pullFlag = true;},500)
  277. if(this.hasNextPage){
  278. this.pullUpOn = false
  279. this.nomoreText = '上拉显示更多'
  280. }else{
  281. this.loadding = false
  282. this.pullUpOn = false
  283. this.nomoreText = '已至底部'
  284. }
  285. }).catch(error =>{
  286. this.$util.msg(error.msg,2000)
  287. })
  288. },
  289. scrolltolower() {
  290. if(this.hasNextPage){
  291. this.loadding = true
  292. this.pullUpOn = true
  293. this.showSkeleton = false
  294. this.getOnReachBottomData();
  295. }
  296. },
  297. detail(id) {//订单详情跳转
  298. this.isModalLayer = true;
  299. this.$api.navigateTo(`/pages/user/order/order-details?type=search&orderID=${id}`)
  300. },
  301. handButtonConfirm(data) {//获取点击
  302. this.handShowAlert(data)
  303. this.btnoRderID = data.orderId
  304. },
  305. handShowAlert(data) {//执行
  306. switch(data.type){
  307. case 'delete':
  308. this.handOrderDetele(data.orderId);
  309. break
  310. case 'cancel':
  311. this.handCenceConfirm(data.orderId)
  312. break
  313. case 'query':
  314. this.isModalLayer = true;
  315. this.$api.navigateTo('/pages/user/order/order-logistics?orderID='+data.orderId)
  316. break
  317. case 'confirm':
  318. this.handOrderConfirm(data.orderId);
  319. break
  320. case 'confirmation':
  321. this.handOrderConfirmation(data.orderId);
  322. break
  323. }
  324. },
  325. handOrderConfirm (id){//确认收货
  326. this.$util.modal('提示','是否确认收货','确定','取消',true,() =>{
  327. confirmReceipt({orderID:id}).then(response =>{
  328. this.$util.msg(response.msg,2000,true,'success');
  329. this.getOrderDatainit()
  330. }).catch(error =>{
  331. this.$util.msg(error.msg,2000)
  332. })
  333. })
  334. },
  335. handOrderConfirmation (id){//确认订单
  336. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  337. affirmOrder({orderID:id}).then(response =>{
  338. this.$util.msg(response.msg,2000,true,'success');
  339. setTimeout(() => {
  340. this.getOrderDatainit()
  341. },2000)
  342. }).catch(error =>{
  343. this.$util.msg(error.msg,2000)
  344. })
  345. })
  346. },
  347. handOrderDetele(id){//删除订单
  348. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  349. deleteOrder({orderID:id}).then(response =>{
  350. this.$util.msg(response.msg,2000,true,'success');
  351. setTimeout(() => {
  352. this.getOrderDatainit()
  353. },2000)
  354. }).catch(error =>{
  355. this.$util.msg(error.msg,2000)
  356. })
  357. })
  358. },
  359. handCenceConfirm(id){//取消订单
  360. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  361. cancelOrder({orderID:id}).then(response =>{
  362. this.$util.msg(response.msg,2000,true,'success');
  363. setTimeout(() => {
  364. this.getOrderDatainit()
  365. },2000)
  366. }).catch(error =>{
  367. this.$util.msg(error.msg,2000)
  368. })
  369. })
  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: 70rpx;
  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: 70rpx;
  446. padding: 0 68rpx;
  447. line-height: 70rpx;
  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: 70rpx;
  471. background-color: #F0F0F0;
  472. font-size: 26rpx;
  473. }
  474. }
  475. .search-btn{
  476. width: 118rpx;
  477. height: 70rpx;
  478. line-height: 70rpx;
  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. line-height: 40rpx;
  650. .bage-buss{
  651. display: inline-block;
  652. float: left;
  653. width: 64rpx;
  654. height: 30rpx;
  655. background:linear-gradient(132deg,rgba(255,177,0,1) 0%,rgba(255,127,0,1) 100%);
  656. border-radius: 6rpx;
  657. line-height: 30rpx;
  658. font-size: $font-size-22;
  659. text-align: center;
  660. color: #FFFFFF;
  661. margin-top: 8rpx;
  662. }
  663. .bage-auto{
  664. isplay: inline-block;
  665. float: left;
  666. width: 64rpx;
  667. height: 30rpx;
  668. background:linear-gradient(135deg,rgba(0,216,255,1) 0%,rgba(22,139,225,1) 100%);
  669. border-radius: 6rpx;
  670. line-height: 30rpx;
  671. font-size: $font-size-22;
  672. text-align: center;
  673. color: #FFFFFF;
  674. margin-top:8rpx;
  675. }
  676. .bage-text{
  677. font-size: $font-size-28;
  678. line-height: 40rpx;
  679. text-align: left;
  680. color: $color-system;
  681. margin-left: 15rpx;
  682. }
  683. }
  684. .order-title-b{
  685. width: 100%;
  686. height: 40rpx;
  687. float: left;
  688. margin-top: 8rpx;
  689. .order-title-btxt{
  690. float: left;
  691. font-size: $font-size-28;
  692. line-height: 40rpx;
  693. color: #999999;
  694. text-align: lef
  695. }
  696. .order-title-tip{
  697. float: right;
  698. font-size: $font-size-28;
  699. line-height: 40rpx;
  700. text-align: right;
  701. color: #FF2A2A;
  702. }
  703. }
  704. }
  705. .goods-title{
  706. width: 100%;
  707. height: 48rpx;
  708. float: left;
  709. margin-top: 24rpx;
  710. .title-logo{
  711. width: 48rpx;
  712. height: 48rpx;
  713. float: left;
  714. image{
  715. width: 48rpx;
  716. height: 48rpx;
  717. }
  718. }
  719. .title-text{
  720. width: 630rpx;
  721. overflow: hidden;
  722. text-overflow:ellipsis;
  723. white-space: nowrap;
  724. float: left;
  725. margin-left: 16rpx;
  726. font-size: $font-size-28;
  727. color: $text-color;
  728. text-align: left;
  729. line-height: 48rpx;
  730. font-weight: bold;
  731. }
  732. }
  733. .goods-item{
  734. width: 100%;
  735. height: auto;
  736. }
  737. .goods-pros-t{
  738. display: flex;
  739. align-items: center;
  740. width: 100%;
  741. height: 217rpx;
  742. padding:24rpx 0;
  743. .pros-img{
  744. width: 210rpx;
  745. height: 100%;
  746. border-radius: 10rpx;
  747. margin:0 26rpx 0 0;
  748. border:1px solid #f3f3f3;
  749. image{
  750. width: 100%;
  751. height: 100%;
  752. border-radius: 10rpx;
  753. }
  754. }
  755. }
  756. .pros-product{
  757. width: 468rpx;
  758. height: 100%;
  759. line-height: 36rpx;
  760. font-size: $font-size-26;
  761. position: relative;
  762. .producttitle{
  763. width: 100%;
  764. display: inline-block;
  765. height: auto;
  766. text-overflow:ellipsis;
  767. display: -webkit-box;
  768. word-break: break-all;
  769. -webkit-box-orient: vertical;
  770. -webkit-line-clamp: 2;
  771. overflow: hidden;
  772. margin-bottom: 8rpx;
  773. }
  774. .productspec{
  775. height: 36rpx;
  776. color: #999999;
  777. }
  778. .productprice{
  779. height: 48rpx;
  780. position: absolute;
  781. width: 100%;
  782. bottom: 0;
  783. .price{
  784. line-height: 48rpx;
  785. font-size: $font-size-28;
  786. width: 48%;
  787. color: #FF2A2A;
  788. float: left;
  789. font-weight: bold;
  790. }
  791. .count{
  792. height: 100%;
  793. float: right;
  794. position: relative;
  795. .small{
  796. color: #666666;
  797. }
  798. }
  799. }
  800. }
  801. .order-footer{
  802. width: 100%;
  803. height: 78rpx;
  804. float: left;
  805. .order-footer-top{
  806. width: 100%;
  807. height: 34rpx;
  808. line-height: 34rpx;
  809. font-size: $font-size-24;
  810. color: #999999;
  811. text-align: right;
  812. }
  813. .order-footer-bot{
  814. width: 100%;
  815. float: left;
  816. height: 48rpx;
  817. line-height: 48rpx;
  818. font-size: $font-size-28;
  819. font-weight: bold;
  820. color: $text-color;
  821. .count{
  822. width: 50%;
  823. float: left;
  824. text-align: left;
  825. }
  826. .money{
  827. width: 50%;
  828. float: right;
  829. text-align: right;
  830. }
  831. }
  832. }
  833. </style>