search-order.vue 25 KB

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