order-search.vue 22 KB

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