search-order.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  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="'#ffffff'" :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.SearchOrderInfo(
  230. {
  231. searchWord:this.searchInputVal,
  232. userId:this.userId,
  233. pageNum:1,
  234. 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. userId:this.userId,
  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.userId)
  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(){
  395. this.OrderService.ClearOrderHistory({userId:this.userId}).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-t{
  675. width: 100%;
  676. height: 48rpx;
  677. float: left;
  678. line-height: 48rpx;
  679. position: relative;
  680. .bage-text{
  681. display: inline-block;
  682. font-size: $font-size-28;
  683. line-height: 48rpx;
  684. text-align: left;
  685. color: $color-system;
  686. .text{
  687. color: #999999;
  688. }
  689. }
  690. }
  691. .order-title-b{
  692. width: 100%;
  693. height: 48rpx;
  694. float: left;
  695. margin-top: 8rpx;
  696. .order-title-btxt{
  697. float: left;
  698. font-size: $font-size-28;
  699. line-height: 48rpx;
  700. color: #999999;
  701. text-align: left;
  702. .text{
  703. color: #999999;
  704. }
  705. }
  706. .order-title-tip{
  707. float: right;
  708. font-size: $font-size-28;
  709. line-height: 48rpx;
  710. text-align: right;
  711. color: #FF2A2A;
  712. }
  713. }
  714. }
  715. .goods-title{
  716. width: 100%;
  717. height: 56rpx;
  718. float: left;
  719. margin-top:10rpx;
  720. .title-logo{
  721. width: 56rpx;
  722. height: 56rpx;
  723. float: left;
  724. border-radius: 8rpx;
  725. border: 1px solid #e1e1e1;
  726. margin-right: 8rpx;
  727. image{
  728. border-radius: 8rpx;
  729. width: 56rpx;
  730. height: 56rpx;
  731. }
  732. }
  733. .title-text{
  734. width: 400rpx;
  735. overflow: hidden;
  736. text-overflow:ellipsis;
  737. white-space: nowrap;
  738. float: left;
  739. font-size: $font-size-28;
  740. color: $text-color;
  741. text-align: left;
  742. line-height: 56rpx;
  743. font-weight: bold;
  744. }
  745. }
  746. .goods-item{
  747. width: 100%;
  748. height: auto;
  749. }
  750. .goods-pros-t{
  751. display: flex;
  752. align-items: center;
  753. width: 100%;
  754. height: 217rpx;
  755. padding:24rpx 0;
  756. .pros-img{
  757. float: left;
  758. width: 210rpx;
  759. height: 100%;
  760. border-radius: 10rpx;
  761. margin:0 26rpx 0 0;
  762. position: relative;
  763. .tips{
  764. display: inline-block;
  765. width: 80rpx;
  766. height: 40rpx;
  767. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  768. line-height: 40rpx;
  769. text-align: center;
  770. font-size: $font-size-24;
  771. color: #FFFFFF;
  772. border-radius:10rpx 0 10rpx 0 ;
  773. position: absolute;
  774. top:0;
  775. left: 0;
  776. }
  777. image{
  778. width: 210rpx;
  779. height: 210rpx;
  780. border-radius: 10rpx;
  781. border:1px solid #f3f3f3;
  782. }
  783. }
  784. }
  785. .pros-product{
  786. width: 468rpx;
  787. height: 100%;
  788. line-height: 36rpx;
  789. font-size: $font-size-26;
  790. position: relative;
  791. .producttitle{
  792. width: 100%;
  793. display: inline-block;
  794. height: auto;
  795. text-overflow:ellipsis;
  796. display: -webkit-box;
  797. word-break: break-all;
  798. -webkit-box-orient: vertical;
  799. -webkit-line-clamp: 2;
  800. overflow: hidden;
  801. margin-bottom: 8rpx;
  802. }
  803. .productspec{
  804. height: 36rpx;
  805. color: #999999;
  806. }
  807. .productprice{
  808. height: 48rpx;
  809. position: absolute;
  810. width: 100%;
  811. bottom: 0;
  812. .price{
  813. line-height: 48rpx;
  814. font-size: $font-size-28;
  815. width: 48%;
  816. color: #FF2A2A;
  817. float: left;
  818. font-weight: bold;
  819. &.disabled{
  820. color: #999999;
  821. text-decoration: line-through;
  822. }
  823. }
  824. .count{
  825. height: 100%;
  826. float: right;
  827. position: relative;
  828. .small{
  829. color: #666666;
  830. }
  831. }
  832. }
  833. .floor-item-act{
  834. width: 100%;
  835. height: 56rpx;
  836. text-align: center;
  837. box-sizing: border-box;
  838. float: left;
  839. padding:0 0 10rpx 0;
  840. .floor-tags{
  841. height: 28rpx;
  842. border-radius: 6rpx;
  843. background-color: #FFFFFF;
  844. line-height: 28rpx;
  845. color: #ff2a2a;
  846. text-align: center;
  847. display: inline-block;
  848. padding:0 5rpx;
  849. font-size: $font-size-20;
  850. border: 1px solid #ff2a2a;
  851. float: left;
  852. }
  853. }
  854. }
  855. .order-footer{
  856. width: 100%;
  857. height: 78rpx;
  858. float: left;
  859. .order-footer-top{
  860. width: 100%;
  861. height: 34rpx;
  862. line-height: 34rpx;
  863. font-size: $font-size-24;
  864. color: #999999;
  865. text-align: right;
  866. }
  867. .order-footer-bot{
  868. width: 100%;
  869. float: left;
  870. height: 48rpx;
  871. line-height: 48rpx;
  872. font-size: $font-size-28;
  873. font-weight: bold;
  874. color: $text-color;
  875. .count{
  876. width: 50%;
  877. float: left;
  878. text-align: left;
  879. }
  880. .money{
  881. width: 50%;
  882. float: right;
  883. text-align: right;
  884. }
  885. }
  886. }
  887. </style>