search-order.vue 22 KB

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