search-order.vue 23 KB

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