search-order.vue 25 KB

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