search-order.vue 23 KB

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