search-order.vue 25 KB

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