search-order.vue 23 KB

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