search-order.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145
  1. <template>
  2. <view class="search-container">
  3. <!-- <or-search :theme="themeClass" @getSearchText="getSearchText"></or-search> -->
  4. <view class="search-main">
  5. <view class="search">
  6. <view class="search-input">
  7. <text class="iconfont icon-sousuo"></text>
  8. <input
  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="searchInputVal"
  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"> 搜索历史<text class="iconfont icon-shanchu" @click="confirmDetele"></text> </view>
  28. <view class="list">
  29. <view v-for="(item, index) in serachRecordList" :key="index" @click="keywordsClick(item)">{{
  30. item
  31. }}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view
  36. class=" order-container"
  37. v-if="isShowWrapper"
  38. :style="{ overflow: 'auto', height: showSkeleton ? windowHeight + 'px' : 'auto' }"
  39. >
  40. <scroll-view
  41. class="tui-skeleton"
  42. :style="{ height: scrollHeight + 'px' }"
  43. @scrolltolower="scrolltolower"
  44. scroll-y
  45. >
  46. <view :class="{ 'tui-order-list': scrollTop >= 0 }" class="tui-skeleton clearfix">
  47. <!-- 空白页 -->
  48. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  49. <!-- 列表 -->
  50. <view v-else class="tui-order-content">
  51. <view
  52. class="tui-order-item"
  53. v-for="(order, orderIndex) in orderList"
  54. :key="orderIndex"
  55. @click.stop="detail(order.orderId)"
  56. >
  57. <view class="order-title">
  58. <view class="order-title-t">
  59. <text class="bage-text tui-skeleton-fillet"
  60. ><text class="text">订单编号:</text>{{ order.orderNo }}</text
  61. >
  62. </view>
  63. <view class="order-title-b">
  64. <view class="order-title-btxt tui-skeleton-fillet"
  65. ><text class="text">下单时间:</text>{{ order.orderTime }}</view
  66. >
  67. <view class="order-title-tip tui-skeleton-fillet">{{
  68. StateExpFormat(order.status)
  69. }}</view>
  70. </view>
  71. </view>
  72. <block v-for="(shop, index) in order.shopOrderList" :key="index">
  73. <view class="goods-title">
  74. <view class="title-logo"><image :src="shop.shopLogo" mode=""></image></view>
  75. <view class="title-text tui-skeleton-fillet">{{ shop.shopName }}</view>
  76. </view>
  77. <view
  78. class="goods-item"
  79. v-for="(pros, prosIndex) in shop.orderProductList"
  80. :key="prosIndex"
  81. >
  82. <view class="goods-pros-t">
  83. <view class="pros-img tui-skeleton-fillet">
  84. <image :src="pros.productImage" alt="" />
  85. <text class="tips" v-if="pros.productType == 2 || pros.productType == 1"
  86. >赠品</text
  87. >
  88. </view>
  89. <view class="pros-product">
  90. <view class="producttitle tui-skeleton-fillet">{{ pros.name }}</view>
  91. <view
  92. class="productspec tui-skeleton-fillet"
  93. v-if="pros.productCategory != 2"
  94. >规格:{{ pros.productUnit }}</view
  95. >
  96. <view class="productprice">
  97. <view
  98. class="price "
  99. v-if="pros.productType == 2 || pros.productType == 1"
  100. >
  101. <text>¥0.00</text>
  102. </view>
  103. <view
  104. v-else
  105. class="price tui-skeleton-fillet"
  106. :class="PromotionsFormat(pros.productPromotion) ? 'disabled' : ''"
  107. >
  108. <text>¥{{ pros.price | NumFormat }}</text>
  109. </view>
  110. <view class="count tui-skeleton-fillet">
  111. <text class="small">x</text>{{ pros.num }}
  112. </view>
  113. </view>
  114. <view class="floor-item-act" v-if="pros.productPromotion != null">
  115. <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
  116. {{ pros.productPromotion.name }}
  117. <text
  118. v-if="
  119. pros.productPromotion != null &&
  120. pros.productPromotion.type != 3
  121. "
  122. >
  123. :¥{{
  124. pros.productPromotion == null
  125. ? '0.00'
  126. : pros.productPromotion.touchPrice | NumFormat
  127. }}
  128. </text>
  129. </view>
  130. <view v-else-if="pros.productPromotion.type != 3" class="floor-tags">{{
  131. pros.productPromotion.name
  132. }}</view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </block>
  138. <view class="order-footer">
  139. <view class="order-footer-top" v-if="order.discountFee != 0"
  140. >经理折扣:¥{{ order.discountFee | NumFormat }}</view
  141. >
  142. <view class="order-footer-bot">
  143. <view class="count tui-skeleton-fillet">共{{ order.productCount }}件商品</view>
  144. <view class="money tui-skeleton-fillet"
  145. >待付总额:¥{{ order.pendingPayments | NumFormat }}</view
  146. >
  147. </view>
  148. </view>
  149. <!-- 底部button -->
  150. <order-button
  151. v-if="order.userId == userId"
  152. ref="orderButton"
  153. :status="order.status"
  154. :order="order"
  155. @buttonConfirm="handButtonConfirm"
  156. >
  157. </order-button>
  158. </view>
  159. <!--加载loadding-->
  160. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  161. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#F7F7F7'" :text="nomoreText"></tui-nomore>
  162. <!--加载loadding-->
  163. </view>
  164. </view>
  165. </scroll-view>
  166. </view>
  167. <!-- 操作弹窗 -->
  168. <tui-modal
  169. :show="modal"
  170. @click="handleClick"
  171. @cancel="hideMobel(1)"
  172. :content="contentModalText"
  173. color="#333"
  174. :size="32"
  175. shape="circle"
  176. :maskClosable="false"
  177. ></tui-modal>
  178. <!-- 再次购买订单商品全部下架弹窗 -->
  179. <tui-modal
  180. :show="modal2"
  181. @click="handleClick2"
  182. @cancel="hideMobel(2)"
  183. shape="circle"
  184. content="订单内商品已全部下架,不能购买!"
  185. :button="button"
  186. ></tui-modal>
  187. <!-- 再次购买部分商品失效弹窗 -->
  188. <tui-modal :show="modal3" @cancel="hideMobel(3)" :custom="true">
  189. <view class="tui-modal-custom">
  190. <view class="tui-modal-custom-text">
  191. <view class="title">以下商品已失效,不能进行购买;是否先将其他商品加入购物车?</view>
  192. <scroll-view scroll-y class="tui-modal-custom-list">
  193. <view class="custom-list" v-for="(invalid, index) in invalidList" :key="index">
  194. <view class="custom-list-image"><image :src="invalid.productImage" mode=""></image></view>
  195. <view class="custom-list-name">{{ invalid.name }}</view>
  196. </view>
  197. </scroll-view>
  198. </view>
  199. <view class="tui-modal-button">
  200. <button class="modal-button cancel" @click="hideMobel(3)">我再想想</button>
  201. <button class="modal-button confirm" @click="handleClick3">加入购物车</button>
  202. </view>
  203. </view>
  204. </tui-modal>
  205. <!-- 透明模态层 -->
  206. <modal-layer v-if="isModalLayer"></modal-layer>
  207. <cm-loading :visible="isSubLoading" :text="loadingText"></cm-loading>
  208. </view>
  209. </template>
  210. <script>
  211. import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
  212. import modalLayer from '@/components/cm-module/modal-layer/modal-layer'
  213. import empty from '@/components/cm-module/empty/empty'
  214. import authorize from '@/common/authorize.js'
  215. import CmLoading from '@/components/cm-module/cm-loading/cm-loading.vue'
  216. import wechatPay from '@/mixins/wechatPay.js'
  217. export default {
  218. components: {
  219. orderButton,
  220. empty,
  221. CmLoading
  222. },
  223. // 混入
  224. mixins: [wechatPay],
  225. data() {
  226. return {
  227. themeClass: 'block',
  228. searchInputVal: '',
  229. isShowClose: false, //是否显示清空输入框图标
  230. isSearchHistory: false, //是都显示搜索历史
  231. serachRecordList: [],
  232. isShowWrapper: false,
  233. isShowEmpty: false,
  234. windowHeight: '',
  235. showSkeleton: true,
  236. userId: 0,
  237. orderList: [],
  238. btnoRderID: 0, //点击按钮传入的的订单ID
  239. pageNum: 1, //页数
  240. pageSize: 10, //条数
  241. scrollTop: 0,
  242. deteleType: '',
  243. skeletonShow: true,
  244. isModalLayer: false,
  245. loadding: false,
  246. pullUpOn: true,
  247. hasNextPage: false,
  248. pullFlag: true,
  249. navbarHeight: '',
  250. nomoreText: '上拉显示更多',
  251. scrollHeight: '',
  252. modal: false,
  253. modal2: false,
  254. modal3: false,
  255. OperationType: '',
  256. contentModalText: '',
  257. button: [
  258. {
  259. text: '确定',
  260. type: 'danger'
  261. }
  262. ],
  263. invalidList: [],
  264. }
  265. },
  266. onLoad() {
  267. this.$api.getStorage().then(resolve => {
  268. this.userId = resolve.userId
  269. this.InitGetSerachRecord(this.userId)
  270. })
  271. },
  272. filters: {
  273. NumFormat(value) {
  274. //处理金额
  275. return Number(value).toFixed(2)
  276. }
  277. },
  278. methods: {
  279. subMitSearch() {
  280. if (this.searchInputVal == '') {
  281. this.$util.msg('请输入商品关键词', 2000)
  282. } else {
  283. this.commodityList = []
  284. this.GetOrderDatainit()
  285. }
  286. },
  287. InitGetSerachRecord() {
  288. this.OrderService.SearchOrderHistory({ userId: this.userId })
  289. .then(response => {
  290. this.serachRecordList = response.data
  291. if (this.serachRecordList.length > 0) {
  292. this.isSearchHistory = true
  293. } else {
  294. this.isSearchHistory = false
  295. }
  296. })
  297. .catch(error => {
  298. this.$util.msg(error.msg, 2000)
  299. })
  300. },
  301. onShowClose() {
  302. //输入框失去焦点时触发
  303. this.inputEmpty(this.searchInputVal)
  304. },
  305. onFocus() {
  306. //输入框获取焦点时触发
  307. this.inputEmpty(this.searchInputVal)
  308. this.InitGetSerachRecord()
  309. },
  310. delInputText() {
  311. //清除输入框内容
  312. this.searchInputVal = ''
  313. this.isShowClose = false
  314. this.isShowWrapper = false
  315. this.inputEmpty(this.searchInputVal)
  316. this.InitGetSerachRecord()
  317. },
  318. keywordsClick(item) {
  319. //关键词搜索与历史搜索
  320. this.searchInputVal = item
  321. this.isShowClose = true
  322. this.subMitSearch()
  323. },
  324. confirmDetele() {
  325. //清空历史记录
  326. this.modal = true
  327. this.contentModalText = '确定删除历史记录?'
  328. this.OperationType = 'history'
  329. },
  330. inputEmpty(val) {
  331. this.isShowWrapper = false
  332. if (val != '') {
  333. this.isShowClose = true
  334. } else {
  335. this.isShowClose = false
  336. }
  337. },
  338. GetOrderDatainit(index, source) {
  339. /**
  340. * @订单初始化加载 仅加载第一页码
  341. * @param:searchWord(搜索关键词)
  342. * @param:userId(用户ID)
  343. * @param:pageNum(页码数)
  344. * @param:pageSize(每页条数)
  345. * @param:userId(全局变量组织ID)
  346. */
  347. this.OrderService.QueryOrderDealerList({
  348. orderState: 0,
  349. orderType: 0,
  350. searchWord: this.searchInputVal,
  351. userId: this.userId,
  352. pageNum: 1,
  353. pageSize: this.pageSize
  354. })
  355. .then(response => {
  356. this.isShowWrapper = true
  357. this.showSkeleton = true
  358. const _responseData = response.data.list
  359. if (_responseData && _responseData.length > 0) {
  360. let filrerData = _responseData.filter(item => {
  361. //添加不同状态下订单的表现形式
  362. item = Object.assign(item, this.StateExpFormat(item.state))
  363. return item
  364. })
  365. this.orderList = []
  366. filrerData.forEach(item => {
  367. this.orderList.push(item)
  368. })
  369. this.hasNextPage = response.data.hasNextPage
  370. if (this.hasNextPage) {
  371. this.pullUpOn = false
  372. this.nomoreText = '上拉显示更多'
  373. } else {
  374. if (this.orderList.length < 2) {
  375. this.pullUpOn = true
  376. } else {
  377. this.pullUpOn = false
  378. this.nomoreText = '已至底部'
  379. }
  380. }
  381. this.isShowEmpty = false
  382. } else {
  383. this.isShowEmpty = true
  384. }
  385. })
  386. .catch(error => {
  387. this.$util.msg(error.msg, 2000)
  388. })
  389. },
  390. getOnReachBottomData(index) {
  391. //上拉加载
  392. this.pageNum += 1
  393. this.OrderService.QueryOrderDealerList({
  394. orderState: 0,
  395. orderType: 0,
  396. searchWord: this.searchInputVal,
  397. userId: this.userId,
  398. pageNum: this.pageNum,
  399. pageSize: this.pageSize
  400. })
  401. .then(response => {
  402. let resData = response.data.list
  403. this.hasNextPage = response.data.hasNextPage
  404. this.orderList = this.orderList.concat(resData)
  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(id) {
  431. //订单详情跳转
  432. this.isModalLayer = true
  433. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${id}`)
  434. },
  435. handButtonConfirm(data) {
  436. //获取点击
  437. this.hanldOrder = data
  438. this.btnoRderID = data.orderId
  439. this.OperationType = data.type
  440. this.handShowAlert(data)
  441. },
  442. handShowAlert(data) {
  443. //执行
  444. switch (data.type) {
  445. case 'cancel':
  446. this.modal = true
  447. this.contentModalText = '确认取消该订单吗?'
  448. break
  449. case 'delete':
  450. this.modal = true
  451. this.contentModalText = '确认删除该订单吗?'
  452. break
  453. case 'confirm':
  454. this.modal = true
  455. this.contentModalText = '是否确认收货?'
  456. break
  457. case 'query':
  458. this.isModalLayer = true
  459. this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + data.orderId)
  460. break
  461. case 'again':
  462. this.handBuyAgainInfo()
  463. break
  464. case 'pay':
  465. this.miniWxPayFor(data.order)
  466. break
  467. }
  468. },
  469. handleClick(e) {
  470. //用户操作订单
  471. let index = e.index
  472. if (index == 1) {
  473. switch (this.OperationType) {
  474. case 'delete':
  475. this.handOrderDetele(this.btnoRderID)
  476. break
  477. case 'cancel':
  478. this.handCenceConfirm(this.btnoRderID)
  479. break
  480. case 'confirm':
  481. this.handOrderConfirm(this.btnoRderID)
  482. break
  483. }
  484. }
  485. this.modal = false
  486. },
  487. handleClick2() {
  488. this.modal2 = false
  489. },
  490. handleClick3() {
  491. this.handShoppingAgainCart()
  492. this.modal3 = false
  493. },
  494. hideMobel(index) {
  495. switch (index) {
  496. case 1:
  497. this.modal = false
  498. break
  499. case 2:
  500. this.modal2 = false
  501. break
  502. case 3:
  503. this.modal3 = false
  504. break
  505. }
  506. },
  507. handBuyAgainInfo() {
  508. //再次购买初始化查询订单商品信息
  509. this.OrderService.GetOrderBuyAgain({
  510. orderId: this.btnoRderID
  511. })
  512. .then(response => {
  513. this.handShoppingAgainCart()
  514. })
  515. .catch(error => {
  516. if (error.data && error.data.length > 0) {
  517. this.modal3 = true
  518. this.invalidList = error.data
  519. } else {
  520. this.modal2 = true
  521. }
  522. })
  523. },
  524. handShoppingAgainCart() {
  525. //一键加入购物车
  526. this.ProductService.ShoppingAgainCart({
  527. orderId: this.btnoRderID
  528. })
  529. .then(response => {
  530. this.ProductService.QueryShoppingQuantity({ userId: this.userId })
  531. .then(response => {
  532. this.$api.switchTabTo('/pages/tabBar/cart/index')
  533. })
  534. .catch(error => {
  535. console.log('查询购物车数量错误信息', error)
  536. })
  537. })
  538. .catch(error => {
  539. this.$util.msg(error.msg, 2000)
  540. })
  541. },
  542. handOrderConfirm(id) {
  543. //确认收货
  544. this.OrderService.ConfirmReceipt({ orderId: id })
  545. .then(response => {
  546. this.$util.msg(response.msg, 2000, true, 'success')
  547. setTimeout(() => {
  548. this.GetOrderDatainit(this.currentTab)
  549. }, 2000)
  550. })
  551. .catch(error => {
  552. this.$util.msg(error.msg, 2000)
  553. })
  554. },
  555. handOrderDetele(id) {
  556. //删除订单
  557. this.OrderService.DeleteOrder({ orderId: id })
  558. .then(response => {
  559. this.$util.msg(response.msg, 2000, true, 'success')
  560. setTimeout(() => {
  561. this.GetOrderDatainit(this.currentTab)
  562. }, 2000)
  563. })
  564. .catch(error => {
  565. this.$util.msg(error.msg, 2000)
  566. })
  567. },
  568. handCenceConfirm(id) {
  569. //取消订单
  570. this.OrderService.CancelOrder({ orderId: id })
  571. .then(response => {
  572. this.$util.msg(response.msg, 2000, true, 'success')
  573. setTimeout(() => {
  574. this.GetOrderDatainit(this.currentTab)
  575. }, 2000)
  576. })
  577. .catch(error => {
  578. this.$util.msg(error.msg, 2000)
  579. })
  580. },
  581. handlSearchPath() {
  582. this.$api.navigateTo('/pages/user/order/search-order')
  583. },
  584. setScrollHeight() {
  585. const { windowHeight, pixelRatio } = wx.getSystemInfoSync()
  586. this.windowHeight = windowHeight - 1
  587. this.scrollHeight = windowHeight - 1
  588. },
  589. PromotionsFormat(promo) {
  590. //促销活动类型数据处理
  591. if (promo != null) {
  592. if (promo.type == 1 && promo.mode == 1) {
  593. return true
  594. } else {
  595. return false
  596. }
  597. }
  598. return false
  599. },
  600. StateExpFormat(state) {
  601. //订单状态文字和颜色
  602. var HtmlStateText = '',
  603. stateTextObject = {
  604. 0: '待确认',
  605. 4: '交易完成',
  606. 5: '订单完成',
  607. 6: '已关闭',
  608. 7: '交易全退',
  609. 77: '交易全退',
  610. 11: '待付款待发货',
  611. 12: '待付款部分发货',
  612. 13: '待付款已发货',
  613. 21: '部分付款待发货',
  614. 22: '部分付款部分发货',
  615. 23: '部分付款已发货',
  616. 31: '已付款待发货',
  617. 32: '已付款部分发货',
  618. 33: '已付款已发货',
  619. 111: '待付款待发货'
  620. }
  621. Object.keys(stateTextObject).forEach(function(key) {
  622. if (key == state) {
  623. HtmlStateText = stateTextObject[key]
  624. }
  625. })
  626. return HtmlStateText
  627. }
  628. },
  629. onPageScroll(e) {
  630. this.scrollTop = e.scrollTop
  631. },
  632. onShow() {
  633. this.setScrollHeight()
  634. }
  635. }
  636. </script>
  637. <style lang="scss">
  638. @import '@/uni.scss';
  639. page {
  640. background-color: #f7f7f7 !important;
  641. }
  642. .search {
  643. width: 702rpx;
  644. height: 70rpx;
  645. padding: 12rpx 24rpx;
  646. border-bottom: 1px solid #f0f0f0;
  647. position: fixed;
  648. top: 0;
  649. left: 0;
  650. background: #ffffff;
  651. z-index: 1001;
  652. .search-input {
  653. width: 448rpx;
  654. height: 70rpx;
  655. padding: 0 68rpx;
  656. line-height: 70rpx;
  657. border-radius: 40rpx;
  658. position: relative;
  659. background: #f0f0f0;
  660. float: left;
  661. .icon-sousuo {
  662. font-size: 36rpx;
  663. color: #8a8a8a;
  664. position: absolute;
  665. left: 24rpx;
  666. z-index: 10;
  667. }
  668. .icon-shanchu1 {
  669. font-size: 36rpx;
  670. color: #8a8a8a;
  671. position: absolute;
  672. right: 24rpx;
  673. top: 0;
  674. padding: 0 10rpx;
  675. z-index: 10;
  676. }
  677. input {
  678. width: 448rpx;
  679. height: 70rpx;
  680. background-color: #f0f0f0;
  681. font-size: 26rpx;
  682. }
  683. }
  684. .search-btn {
  685. width: 118rpx;
  686. height: 70rpx;
  687. line-height: 70rpx;
  688. color: $color-system;
  689. font-size: 30rpx;
  690. text-align: center;
  691. float: left;
  692. }
  693. .voice-icon {
  694. width: 36rpx;
  695. height: 36rpx;
  696. padding: 16rpx 20rpx 16rpx 0;
  697. position: absolute;
  698. left: 16rpx;
  699. top: 4rpx;
  700. z-index: 10;
  701. }
  702. }
  703. .search-container {
  704. padding-top: 106rpx;
  705. }
  706. .s-block {
  707. background: #ffffff;
  708. .header {
  709. font-size: 32rpx;
  710. padding: 40rpx 24rpx 22rpx 24rpx;
  711. line-height: 42rpx;
  712. font-size: 30rpx;
  713. font-weight: bold;
  714. position: relative;
  715. .icon-shanchu {
  716. font-size: 36rpx;
  717. color: #333333;
  718. float: right;
  719. padding: 0 10rpx;
  720. z-index: 10;
  721. font-weight: normal;
  722. }
  723. }
  724. .list {
  725. display: flex;
  726. flex-wrap: wrap;
  727. padding-bottom: 40rpx;
  728. view {
  729. color: #8a8a8a;
  730. font-size: 24rpx;
  731. box-sizing: border-box;
  732. text-align: center;
  733. height: 48rpx;
  734. line-height: 48rpx;
  735. border-radius: 24rpx;
  736. margin: 12rpx;
  737. padding: 0 30rpx;
  738. overflow: hidden;
  739. white-space: nowrap;
  740. text-overflow: ellipsis;
  741. background-color: #f3f3f3;
  742. }
  743. }
  744. }
  745. .s-circle {
  746. margin-top: 30rpx;
  747. .header {
  748. font-size: 32rpx;
  749. padding: 30rpx;
  750. border-bottom: 2rpx solid #f9f9f9;
  751. position: relative;
  752. image {
  753. width: 36rpx;
  754. height: 36rpx;
  755. padding: 10rpx;
  756. position: absolute;
  757. right: 40rpx;
  758. top: 24rpx;
  759. }
  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. .wanted-block {
  778. margin-top: 30rpx;
  779. .header {
  780. font-size: 32rpx;
  781. padding: 30rpx;
  782. }
  783. .list {
  784. display: flex;
  785. flex-wrap: wrap;
  786. view {
  787. width: 50%;
  788. color: #8a8a8a;
  789. font-size: 28rpx;
  790. box-sizing: border-box;
  791. text-align: center;
  792. padding: 20rpx 0;
  793. border-top: 2rpx solid #fff;
  794. border-left: 2rpx solid #fff;
  795. background-color: #f7f7f7;
  796. overflow: hidden;
  797. white-space: nowrap;
  798. text-overflow: ellipsis;
  799. }
  800. }
  801. }
  802. .wanted-circle {
  803. margin-top: 30rpx;
  804. .header {
  805. font-size: 32rpx;
  806. padding: 30rpx;
  807. }
  808. .list {
  809. display: flex;
  810. flex-wrap: wrap;
  811. padding: 0 30rpx 20rpx;
  812. view {
  813. padding: 8rpx 30rpx;
  814. margin: 20rpx 30rpx 0 0;
  815. font-size: 28rpx;
  816. color: #8a8a8a;
  817. background-color: #f7f7f7;
  818. box-sizing: border-box;
  819. text-align: center;
  820. border-radius: 20rpx;
  821. }
  822. }
  823. }
  824. .order-container {
  825. scroll-view {
  826. height: 100%;
  827. overflow: scroll;
  828. }
  829. }
  830. .container {
  831. padding-bottom: env(safe-area-inset-bottom);
  832. height: auto;
  833. position: relative;
  834. }
  835. .tui-order-content {
  836. width: 100%;
  837. height: auto;
  838. }
  839. .tui-order-list {
  840. width: 100%;
  841. position: relative;
  842. }
  843. .tui-order-item {
  844. display: flex;
  845. flex-direction: column;
  846. width: 702rpx;
  847. padding: 20rpx 24rpx 0 24rpx;
  848. background: #fff;
  849. border-bottom: 20rpx solid #f7f7f7;
  850. }
  851. .order-title {
  852. width: 100%;
  853. height: auto;
  854. padding-bottom: 20rpx;
  855. .order-title-t {
  856. width: 100%;
  857. height: 48rpx;
  858. float: left;
  859. line-height: 48rpx;
  860. position: relative;
  861. .bage-text {
  862. display: inline-block;
  863. font-size: $font-size-28;
  864. line-height: 48rpx;
  865. text-align: left;
  866. color: $color-system;
  867. .text {
  868. color: #999999;
  869. }
  870. }
  871. }
  872. .order-title-b {
  873. width: 100%;
  874. height: 48rpx;
  875. float: left;
  876. margin-top: 8rpx;
  877. .order-title-btxt {
  878. float: left;
  879. font-size: $font-size-28;
  880. line-height: 48rpx;
  881. color: #999999;
  882. text-align: left;
  883. .text {
  884. color: #999999;
  885. }
  886. }
  887. .order-title-tip {
  888. float: right;
  889. font-size: $font-size-28;
  890. line-height: 48rpx;
  891. text-align: right;
  892. color: #ff457b;
  893. }
  894. }
  895. }
  896. .goods-title {
  897. width: 100%;
  898. height: 56rpx;
  899. float: left;
  900. margin-top: 10rpx;
  901. .title-logo {
  902. width: 56rpx;
  903. height: 56rpx;
  904. float: left;
  905. border-radius: 8rpx;
  906. border: 1px solid #e1e1e1;
  907. margin-right: 8rpx;
  908. image {
  909. border-radius: 8rpx;
  910. width: 56rpx;
  911. height: 56rpx;
  912. }
  913. }
  914. .title-text {
  915. width: 400rpx;
  916. overflow: hidden;
  917. text-overflow: ellipsis;
  918. white-space: nowrap;
  919. float: left;
  920. font-size: $font-size-28;
  921. color: $text-color;
  922. text-align: left;
  923. line-height: 56rpx;
  924. font-weight: bold;
  925. }
  926. }
  927. .goods-item {
  928. width: 100%;
  929. height: auto;
  930. }
  931. .goods-pros-t {
  932. display: flex;
  933. align-items: center;
  934. width: 100%;
  935. height: 217rpx;
  936. padding: 24rpx 0;
  937. .pros-img {
  938. float: left;
  939. width: 210rpx;
  940. height: 100%;
  941. border-radius: 10rpx;
  942. margin: 0 26rpx 0 0;
  943. position: relative;
  944. .tips {
  945. display: inline-block;
  946. width: 80rpx;
  947. height: 40rpx;
  948. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  949. line-height: 40rpx;
  950. text-align: center;
  951. font-size: $font-size-24;
  952. color: #ffffff;
  953. border-radius: 10rpx 0 10rpx 0;
  954. position: absolute;
  955. top: 0;
  956. left: 0;
  957. }
  958. image {
  959. width: 210rpx;
  960. height: 210rpx;
  961. border-radius: 10rpx;
  962. border: 1px solid #f3f3f3;
  963. }
  964. }
  965. }
  966. .pros-product {
  967. width: 468rpx;
  968. height: 100%;
  969. line-height: 36rpx;
  970. font-size: $font-size-26;
  971. position: relative;
  972. .producttitle {
  973. width: 100%;
  974. display: inline-block;
  975. height: auto;
  976. text-overflow: ellipsis;
  977. display: -webkit-box;
  978. word-break: break-all;
  979. -webkit-box-orient: vertical;
  980. -webkit-line-clamp: 2;
  981. overflow: hidden;
  982. margin-bottom: 8rpx;
  983. }
  984. .productspec {
  985. height: 36rpx;
  986. color: #999999;
  987. }
  988. .productprice {
  989. height: 48rpx;
  990. position: absolute;
  991. width: 100%;
  992. bottom: 0;
  993. .price {
  994. line-height: 48rpx;
  995. font-size: $font-size-28;
  996. width: 48%;
  997. color: #ff457b;
  998. float: left;
  999. font-weight: bold;
  1000. &.disabled {
  1001. color: #999999;
  1002. text-decoration: line-through;
  1003. }
  1004. }
  1005. .count {
  1006. height: 100%;
  1007. float: right;
  1008. position: relative;
  1009. .small {
  1010. color: #666666;
  1011. }
  1012. }
  1013. }
  1014. .floor-item-act {
  1015. width: 100%;
  1016. height: 56rpx;
  1017. text-align: center;
  1018. box-sizing: border-box;
  1019. float: left;
  1020. padding: 0 0 10rpx 0;
  1021. .floor-tags {
  1022. height: 28rpx;
  1023. border-radius: 6rpx;
  1024. background-color: #ffffff;
  1025. line-height: 28rpx;
  1026. color: #ff457b;
  1027. text-align: center;
  1028. display: inline-block;
  1029. padding: 0 5rpx;
  1030. font-size: $font-size-20;
  1031. border: 1px solid #ff457b;
  1032. float: left;
  1033. }
  1034. }
  1035. }
  1036. .order-footer {
  1037. width: 100%;
  1038. height: 78rpx;
  1039. float: left;
  1040. .order-footer-top {
  1041. width: 100%;
  1042. height: 34rpx;
  1043. line-height: 34rpx;
  1044. font-size: $font-size-24;
  1045. color: #999999;
  1046. text-align: right;
  1047. }
  1048. .order-footer-bot {
  1049. width: 100%;
  1050. float: left;
  1051. height: 48rpx;
  1052. line-height: 48rpx;
  1053. font-size: $font-size-28;
  1054. font-weight: bold;
  1055. color: $text-color;
  1056. .count {
  1057. width: 50%;
  1058. float: left;
  1059. text-align: left;
  1060. }
  1061. .money {
  1062. width: 50%;
  1063. float: right;
  1064. text-align: right;
  1065. }
  1066. }
  1067. }
  1068. .tui-modal-custom-text {
  1069. min-height: 300rpx;
  1070. margin-bottom: 30rpx;
  1071. .title {
  1072. width: 100%;
  1073. height: auto;
  1074. font-size: $font-size-30;
  1075. text-align: justify;
  1076. color: #333333;
  1077. line-height: 40rpx;
  1078. margin-bottom: 30rpx;
  1079. }
  1080. .tui-modal-custom-list {
  1081. width: 100%;
  1082. height: 350rpx;
  1083. overflow: hidden;
  1084. .custom-list {
  1085. width: 100%;
  1086. height: 117rpx;
  1087. box-sizing: border-box;
  1088. float: left;
  1089. padding: 15rpx 0;
  1090. .custom-list-image {
  1091. width: 86rpx;
  1092. height: 86rpx;
  1093. float: left;
  1094. border-radius: 6rpx;
  1095. box-sizing: border-box;
  1096. border: 1px solid #e1e1e1;
  1097. image {
  1098. width: 84rpx;
  1099. height: 84rpx;
  1100. border-radius: 6rpx;
  1101. display: block;
  1102. }
  1103. }
  1104. .custom-list-name {
  1105. width: 400rpx;
  1106. height: 86rpx;
  1107. float: right;
  1108. line-height: 43rpx;
  1109. font-size: $font-size-26;
  1110. color: #666666;
  1111. text-overflow: ellipsis;
  1112. overflow: hidden;
  1113. display: -webkit-box;
  1114. -webkit-line-clamp: 2;
  1115. line-clamp: 2;
  1116. -webkit-box-orient: vertical;
  1117. }
  1118. }
  1119. }
  1120. }
  1121. .tui-modal-button {
  1122. width: 100%;
  1123. height: 72rpx;
  1124. display: flex;
  1125. .modal-button {
  1126. width: 200rpx;
  1127. height: 72rpx;
  1128. line-height: 72rpx;
  1129. border-radius: 36rpx;
  1130. box-sizing: border-box;
  1131. &.cancel {
  1132. border: 1px solid #b2b2b2;
  1133. background: #ffffff;
  1134. color: #333333;
  1135. }
  1136. &.confirm {
  1137. background: $btn-confirm;
  1138. color: #ffffff;
  1139. }
  1140. }
  1141. }
  1142. </style>