search-order.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  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 | formatPrice }}</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 | formatPrice
  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 | formatPrice }}</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 | formatPrice }}</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. methods: {
  273. subMitSearch() {
  274. if (this.searchInputVal == '') {
  275. this.$util.msg('请输入商品关键词', 2000)
  276. } else {
  277. this.commodityList = []
  278. this.GetOrderDatainit()
  279. }
  280. },
  281. InitGetSerachRecord() {
  282. this.OrderService.SearchOrderHistory({ userId: this.userId })
  283. .then(response => {
  284. this.serachRecordList = response.data
  285. if (this.serachRecordList.length > 0) {
  286. this.isSearchHistory = true
  287. } else {
  288. this.isSearchHistory = false
  289. }
  290. })
  291. .catch(error => {
  292. this.$util.msg(error.msg, 2000)
  293. })
  294. },
  295. onShowClose() {
  296. //输入框失去焦点时触发
  297. this.inputEmpty(this.searchInputVal)
  298. },
  299. onFocus() {
  300. //输入框获取焦点时触发
  301. this.inputEmpty(this.searchInputVal)
  302. this.InitGetSerachRecord()
  303. },
  304. delInputText() {
  305. //清除输入框内容
  306. this.searchInputVal = ''
  307. this.isShowClose = false
  308. this.isShowWrapper = false
  309. this.inputEmpty(this.searchInputVal)
  310. this.InitGetSerachRecord()
  311. },
  312. keywordsClick(item) {
  313. //关键词搜索与历史搜索
  314. this.searchInputVal = item
  315. this.isShowClose = true
  316. this.subMitSearch()
  317. },
  318. confirmDetele() {
  319. //清空历史记录
  320. this.modal = true
  321. this.contentModalText = '确定删除历史记录?'
  322. this.OperationType = 'history'
  323. },
  324. inputEmpty(val) {
  325. this.isShowWrapper = false
  326. if (val != '') {
  327. this.isShowClose = true
  328. } else {
  329. this.isShowClose = false
  330. }
  331. },
  332. GetOrderDatainit(index, source) {
  333. /**
  334. * @订单初始化加载 仅加载第一页码
  335. * @param:searchWord(搜索关键词)
  336. * @param:userId(用户ID)
  337. * @param:pageNum(页码数)
  338. * @param:pageSize(每页条数)
  339. * @param:userId(全局变量组织ID)
  340. */
  341. this.OrderService.QueryOrderDealerList({
  342. orderState: 0,
  343. orderType: 0,
  344. searchWord: this.searchInputVal,
  345. userId: this.userId,
  346. pageNum: 1,
  347. pageSize: this.pageSize
  348. })
  349. .then(response => {
  350. this.isShowWrapper = true
  351. this.showSkeleton = true
  352. const _responseData = response.data.list
  353. if (_responseData && _responseData.length > 0) {
  354. let filrerData = _responseData.filter(item => {
  355. //添加不同状态下订单的表现形式
  356. item = Object.assign(item, this.StateExpFormat(item.state))
  357. return item
  358. })
  359. this.orderList = []
  360. filrerData.forEach(item => {
  361. this.orderList.push(item)
  362. })
  363. this.hasNextPage = response.data.hasNextPage
  364. if (this.hasNextPage) {
  365. this.pullUpOn = false
  366. this.nomoreText = '上拉显示更多'
  367. } else {
  368. if (this.orderList.length < 2) {
  369. this.pullUpOn = true
  370. } else {
  371. this.pullUpOn = false
  372. this.nomoreText = '已至底部'
  373. }
  374. }
  375. this.isShowEmpty = false
  376. } else {
  377. this.isShowEmpty = true
  378. }
  379. })
  380. .catch(error => {
  381. this.$util.msg(error.msg, 2000)
  382. })
  383. },
  384. getOnReachBottomData(index) {
  385. //上拉加载
  386. this.pageNum += 1
  387. this.OrderService.QueryOrderDealerList({
  388. orderState: 0,
  389. orderType: 0,
  390. searchWord: this.searchInputVal,
  391. userId: this.userId,
  392. pageNum: this.pageNum,
  393. pageSize: this.pageSize
  394. })
  395. .then(response => {
  396. let resData = response.data.list
  397. this.hasNextPage = response.data.hasNextPage
  398. this.orderList = this.orderList.concat(resData)
  399. this.pullFlag = false // 防上拉暴滑
  400. setTimeout(() => {
  401. this.pullFlag = true
  402. }, 500)
  403. if (this.hasNextPage) {
  404. this.pullUpOn = false
  405. this.nomoreText = '上拉显示更多'
  406. } else {
  407. this.loadding = false
  408. this.pullUpOn = false
  409. this.nomoreText = '已至底部'
  410. }
  411. })
  412. .catch(error => {
  413. this.$util.msg(error.msg, 2000)
  414. })
  415. },
  416. scrolltolower() {
  417. if (this.hasNextPage) {
  418. this.loadding = true
  419. this.pullUpOn = true
  420. this.showSkeleton = false
  421. this.getOnReachBottomData()
  422. }
  423. },
  424. detail(id) {
  425. //订单详情跳转
  426. this.isModalLayer = true
  427. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${id}`)
  428. },
  429. handButtonConfirm(data) {
  430. //获取点击
  431. this.hanldOrder = data
  432. this.btnoRderID = data.orderId
  433. this.OperationType = data.type
  434. this.handShowAlert(data)
  435. },
  436. handShowAlert(data) {
  437. //执行
  438. switch (data.type) {
  439. case 'cancel':
  440. this.modal = true
  441. this.contentModalText = '确认取消该订单吗?'
  442. break
  443. case 'delete':
  444. this.modal = true
  445. this.contentModalText = '确认删除该订单吗?'
  446. break
  447. case 'confirm':
  448. this.modal = true
  449. this.contentModalText = '是否确认收货?'
  450. break
  451. case 'query':
  452. this.isModalLayer = true
  453. this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + data.orderId)
  454. break
  455. case 'again':
  456. this.handBuyAgainInfo()
  457. break
  458. case 'pay':
  459. this.miniWxPayFor(data.order)
  460. break
  461. }
  462. },
  463. handleClick(e) {
  464. //用户操作订单
  465. let index = e.index
  466. if (index == 1) {
  467. switch (this.OperationType) {
  468. case 'delete':
  469. this.handOrderDetele(this.btnoRderID)
  470. break
  471. case 'cancel':
  472. this.handCenceConfirm(this.btnoRderID)
  473. break
  474. case 'confirm':
  475. this.handOrderConfirm(this.btnoRderID)
  476. break
  477. }
  478. }
  479. this.modal = false
  480. },
  481. handleClick2() {
  482. this.modal2 = false
  483. },
  484. handleClick3() {
  485. this.handShoppingAgainCart()
  486. this.modal3 = false
  487. },
  488. hideMobel(index) {
  489. switch (index) {
  490. case 1:
  491. this.modal = false
  492. break
  493. case 2:
  494. this.modal2 = false
  495. break
  496. case 3:
  497. this.modal3 = false
  498. break
  499. }
  500. },
  501. handBuyAgainInfo() {
  502. //再次购买初始化查询订单商品信息
  503. this.OrderService.GetOrderBuyAgain({
  504. orderId: this.btnoRderID
  505. })
  506. .then(response => {
  507. this.handShoppingAgainCart()
  508. })
  509. .catch(error => {
  510. if (error.data && error.data.length > 0) {
  511. this.modal3 = true
  512. this.invalidList = error.data
  513. } else {
  514. this.modal2 = true
  515. }
  516. })
  517. },
  518. handShoppingAgainCart() {
  519. //一键加入购物车
  520. this.ProductService.ShoppingAgainCart({
  521. orderId: this.btnoRderID
  522. })
  523. .then(response => {
  524. this.ProductService.QueryShoppingQuantity({ userId: this.userId })
  525. .then(response => {
  526. this.$api.switchTabTo('/pages/tabBar/cart/index')
  527. })
  528. .catch(error => {
  529. console.log('查询购物车数量错误信息', error)
  530. })
  531. })
  532. .catch(error => {
  533. this.$util.msg(error.msg, 2000)
  534. })
  535. },
  536. handOrderConfirm(id) {
  537. //确认收货
  538. this.OrderService.ConfirmReceipt({ orderId: id })
  539. .then(response => {
  540. this.$util.msg(response.msg, 2000, true, 'success')
  541. setTimeout(() => {
  542. this.GetOrderDatainit(this.currentTab)
  543. }, 2000)
  544. })
  545. .catch(error => {
  546. this.$util.msg(error.msg, 2000)
  547. })
  548. },
  549. handOrderDetele(id) {
  550. //删除订单
  551. this.OrderService.DeleteOrder({ orderId: id })
  552. .then(response => {
  553. this.$util.msg(response.msg, 2000, true, 'success')
  554. setTimeout(() => {
  555. this.GetOrderDatainit(this.currentTab)
  556. }, 2000)
  557. })
  558. .catch(error => {
  559. this.$util.msg(error.msg, 2000)
  560. })
  561. },
  562. handCenceConfirm(id) {
  563. //取消订单
  564. this.OrderService.CancelOrder({ orderId: id })
  565. .then(response => {
  566. this.$util.msg(response.msg, 2000, true, 'success')
  567. setTimeout(() => {
  568. this.GetOrderDatainit(this.currentTab)
  569. }, 2000)
  570. })
  571. .catch(error => {
  572. this.$util.msg(error.msg, 2000)
  573. })
  574. },
  575. handlSearchPath() {
  576. this.$api.navigateTo('/pages/user/order/search-order')
  577. },
  578. setScrollHeight() {
  579. const { windowHeight, pixelRatio } = wx.getSystemInfoSync()
  580. this.windowHeight = windowHeight - 1
  581. this.scrollHeight = windowHeight - 1
  582. },
  583. PromotionsFormat(promo) {
  584. //促销活动类型数据处理
  585. if (promo != null) {
  586. if (promo.type == 1 && promo.mode == 1) {
  587. return true
  588. } else {
  589. return false
  590. }
  591. }
  592. return false
  593. },
  594. StateExpFormat(state) {
  595. //订单状态文字和颜色
  596. var HtmlStateText = '',
  597. stateTextObject = {
  598. 0: '待确认',
  599. 4: '交易完成',
  600. 5: '订单完成',
  601. 6: '已关闭',
  602. 7: '交易全退',
  603. 77: '交易全退',
  604. 11: '待付款待发货',
  605. 12: '待付款部分发货',
  606. 13: '待付款已发货',
  607. 21: '部分付款待发货',
  608. 22: '部分付款部分发货',
  609. 23: '部分付款已发货',
  610. 31: '已付款待发货',
  611. 32: '已付款部分发货',
  612. 33: '已付款已发货',
  613. 111: '待付款待发货'
  614. }
  615. Object.keys(stateTextObject).forEach(function(key) {
  616. if (key == state) {
  617. HtmlStateText = stateTextObject[key]
  618. }
  619. })
  620. return HtmlStateText
  621. }
  622. },
  623. onPageScroll(e) {
  624. this.scrollTop = e.scrollTop
  625. },
  626. onShow() {
  627. this.setScrollHeight()
  628. }
  629. }
  630. </script>
  631. <style lang="scss">
  632. @import '@/uni.scss';
  633. page {
  634. background-color: #f7f7f7 !important;
  635. }
  636. .search {
  637. width: 702rpx;
  638. height: 70rpx;
  639. padding: 12rpx 24rpx;
  640. border-bottom: 1px solid #f0f0f0;
  641. position: fixed;
  642. top: 0;
  643. left: 0;
  644. background: #ffffff;
  645. z-index: 1001;
  646. .search-input {
  647. width: 448rpx;
  648. height: 70rpx;
  649. padding: 0 68rpx;
  650. line-height: 70rpx;
  651. border-radius: 40rpx;
  652. position: relative;
  653. background: #f0f0f0;
  654. float: left;
  655. .icon-sousuo {
  656. font-size: 36rpx;
  657. color: #8a8a8a;
  658. position: absolute;
  659. left: 24rpx;
  660. z-index: 10;
  661. }
  662. .icon-shanchu1 {
  663. font-size: 36rpx;
  664. color: #8a8a8a;
  665. position: absolute;
  666. right: 24rpx;
  667. top: 0;
  668. padding: 0 10rpx;
  669. z-index: 10;
  670. }
  671. input {
  672. width: 448rpx;
  673. height: 70rpx;
  674. background-color: #f0f0f0;
  675. font-size: 26rpx;
  676. }
  677. }
  678. .search-btn {
  679. width: 118rpx;
  680. height: 70rpx;
  681. line-height: 70rpx;
  682. color: $color-system;
  683. font-size: 30rpx;
  684. text-align: center;
  685. float: left;
  686. }
  687. .voice-icon {
  688. width: 36rpx;
  689. height: 36rpx;
  690. padding: 16rpx 20rpx 16rpx 0;
  691. position: absolute;
  692. left: 16rpx;
  693. top: 4rpx;
  694. z-index: 10;
  695. }
  696. }
  697. .search-container {
  698. padding-top: 106rpx;
  699. }
  700. .s-block {
  701. background: #ffffff;
  702. .header {
  703. font-size: 32rpx;
  704. padding: 40rpx 24rpx 22rpx 24rpx;
  705. line-height: 42rpx;
  706. font-size: 30rpx;
  707. font-weight: bold;
  708. position: relative;
  709. .icon-shanchu {
  710. font-size: 36rpx;
  711. color: #333333;
  712. float: right;
  713. padding: 0 10rpx;
  714. z-index: 10;
  715. font-weight: normal;
  716. }
  717. }
  718. .list {
  719. display: flex;
  720. flex-wrap: wrap;
  721. padding-bottom: 40rpx;
  722. view {
  723. color: #8a8a8a;
  724. font-size: 24rpx;
  725. box-sizing: border-box;
  726. text-align: center;
  727. height: 48rpx;
  728. line-height: 48rpx;
  729. border-radius: 24rpx;
  730. margin: 12rpx;
  731. padding: 0 30rpx;
  732. overflow: hidden;
  733. white-space: nowrap;
  734. text-overflow: ellipsis;
  735. background-color: #f3f3f3;
  736. }
  737. }
  738. }
  739. .s-circle {
  740. margin-top: 30rpx;
  741. .header {
  742. font-size: 32rpx;
  743. padding: 30rpx;
  744. border-bottom: 2rpx solid #f9f9f9;
  745. position: relative;
  746. image {
  747. width: 36rpx;
  748. height: 36rpx;
  749. padding: 10rpx;
  750. position: absolute;
  751. right: 40rpx;
  752. top: 24rpx;
  753. }
  754. }
  755. .list {
  756. display: flex;
  757. flex-wrap: wrap;
  758. padding: 0 30rpx 20rpx;
  759. view {
  760. padding: 8rpx 30rpx;
  761. margin: 20rpx 30rpx 0 0;
  762. font-size: 28rpx;
  763. color: #8a8a8a;
  764. background-color: #f7f7f7;
  765. box-sizing: border-box;
  766. text-align: center;
  767. border-radius: 20rpx;
  768. }
  769. }
  770. }
  771. .wanted-block {
  772. margin-top: 30rpx;
  773. .header {
  774. font-size: 32rpx;
  775. padding: 30rpx;
  776. }
  777. .list {
  778. display: flex;
  779. flex-wrap: wrap;
  780. view {
  781. width: 50%;
  782. color: #8a8a8a;
  783. font-size: 28rpx;
  784. box-sizing: border-box;
  785. text-align: center;
  786. padding: 20rpx 0;
  787. border-top: 2rpx solid #fff;
  788. border-left: 2rpx solid #fff;
  789. background-color: #f7f7f7;
  790. overflow: hidden;
  791. white-space: nowrap;
  792. text-overflow: ellipsis;
  793. }
  794. }
  795. }
  796. .wanted-circle {
  797. margin-top: 30rpx;
  798. .header {
  799. font-size: 32rpx;
  800. padding: 30rpx;
  801. }
  802. .list {
  803. display: flex;
  804. flex-wrap: wrap;
  805. padding: 0 30rpx 20rpx;
  806. view {
  807. padding: 8rpx 30rpx;
  808. margin: 20rpx 30rpx 0 0;
  809. font-size: 28rpx;
  810. color: #8a8a8a;
  811. background-color: #f7f7f7;
  812. box-sizing: border-box;
  813. text-align: center;
  814. border-radius: 20rpx;
  815. }
  816. }
  817. }
  818. .order-container {
  819. scroll-view {
  820. height: 100%;
  821. overflow: scroll;
  822. }
  823. }
  824. .container {
  825. padding-bottom: env(safe-area-inset-bottom);
  826. height: auto;
  827. position: relative;
  828. }
  829. .tui-order-content {
  830. width: 100%;
  831. height: auto;
  832. }
  833. .tui-order-list {
  834. width: 100%;
  835. position: relative;
  836. }
  837. .tui-order-item {
  838. display: flex;
  839. flex-direction: column;
  840. width: 702rpx;
  841. padding: 20rpx 24rpx 0 24rpx;
  842. background: #fff;
  843. border-bottom: 20rpx solid #f7f7f7;
  844. }
  845. .order-title {
  846. width: 100%;
  847. height: auto;
  848. padding-bottom: 20rpx;
  849. .order-title-t {
  850. width: 100%;
  851. height: 48rpx;
  852. float: left;
  853. line-height: 48rpx;
  854. position: relative;
  855. .bage-text {
  856. display: inline-block;
  857. font-size: $font-size-28;
  858. line-height: 48rpx;
  859. text-align: left;
  860. color: $color-system;
  861. .text {
  862. color: #999999;
  863. }
  864. }
  865. }
  866. .order-title-b {
  867. width: 100%;
  868. height: 48rpx;
  869. float: left;
  870. margin-top: 8rpx;
  871. .order-title-btxt {
  872. float: left;
  873. font-size: $font-size-28;
  874. line-height: 48rpx;
  875. color: #999999;
  876. text-align: left;
  877. .text {
  878. color: #999999;
  879. }
  880. }
  881. .order-title-tip {
  882. float: right;
  883. font-size: $font-size-28;
  884. line-height: 48rpx;
  885. text-align: right;
  886. color: #ff457b;
  887. }
  888. }
  889. }
  890. .goods-title {
  891. width: 100%;
  892. height: 56rpx;
  893. float: left;
  894. margin-top: 10rpx;
  895. .title-logo {
  896. width: 56rpx;
  897. height: 56rpx;
  898. float: left;
  899. border-radius: 8rpx;
  900. border: 1px solid #e1e1e1;
  901. margin-right: 8rpx;
  902. image {
  903. border-radius: 8rpx;
  904. width: 56rpx;
  905. height: 56rpx;
  906. }
  907. }
  908. .title-text {
  909. width: 400rpx;
  910. overflow: hidden;
  911. text-overflow: ellipsis;
  912. white-space: nowrap;
  913. float: left;
  914. font-size: $font-size-28;
  915. color: $text-color;
  916. text-align: left;
  917. line-height: 56rpx;
  918. font-weight: bold;
  919. }
  920. }
  921. .goods-item {
  922. width: 100%;
  923. height: auto;
  924. }
  925. .goods-pros-t {
  926. display: flex;
  927. align-items: center;
  928. width: 100%;
  929. height: 217rpx;
  930. padding: 24rpx 0;
  931. .pros-img {
  932. float: left;
  933. width: 210rpx;
  934. height: 100%;
  935. border-radius: 10rpx;
  936. margin: 0 26rpx 0 0;
  937. position: relative;
  938. .tips {
  939. display: inline-block;
  940. width: 80rpx;
  941. height: 40rpx;
  942. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  943. line-height: 40rpx;
  944. text-align: center;
  945. font-size: $font-size-24;
  946. color: #ffffff;
  947. border-radius: 10rpx 0 10rpx 0;
  948. position: absolute;
  949. top: 0;
  950. left: 0;
  951. }
  952. image {
  953. width: 210rpx;
  954. height: 210rpx;
  955. border-radius: 10rpx;
  956. border: 1px solid #f3f3f3;
  957. }
  958. }
  959. }
  960. .pros-product {
  961. width: 468rpx;
  962. height: 100%;
  963. line-height: 36rpx;
  964. font-size: $font-size-26;
  965. position: relative;
  966. .producttitle {
  967. width: 100%;
  968. display: inline-block;
  969. height: auto;
  970. text-overflow: ellipsis;
  971. display: -webkit-box;
  972. word-break: break-all;
  973. -webkit-box-orient: vertical;
  974. -webkit-line-clamp: 2;
  975. overflow: hidden;
  976. margin-bottom: 8rpx;
  977. }
  978. .productspec {
  979. height: 36rpx;
  980. color: #999999;
  981. }
  982. .productprice {
  983. height: 48rpx;
  984. position: absolute;
  985. width: 100%;
  986. bottom: 0;
  987. .price {
  988. line-height: 48rpx;
  989. font-size: $font-size-28;
  990. width: 48%;
  991. color: #ff457b;
  992. float: left;
  993. font-weight: bold;
  994. &.disabled {
  995. color: #999999;
  996. text-decoration: line-through;
  997. }
  998. }
  999. .count {
  1000. height: 100%;
  1001. float: right;
  1002. position: relative;
  1003. .small {
  1004. color: #666666;
  1005. }
  1006. }
  1007. }
  1008. .floor-item-act {
  1009. width: 100%;
  1010. height: 56rpx;
  1011. text-align: center;
  1012. box-sizing: border-box;
  1013. float: left;
  1014. padding: 0 0 10rpx 0;
  1015. .floor-tags {
  1016. height: 28rpx;
  1017. border-radius: 6rpx;
  1018. background-color: #ffffff;
  1019. line-height: 28rpx;
  1020. color: #ff457b;
  1021. text-align: center;
  1022. display: inline-block;
  1023. padding: 0 5rpx;
  1024. font-size: $font-size-20;
  1025. border: 1px solid #ff457b;
  1026. float: left;
  1027. }
  1028. }
  1029. }
  1030. .order-footer {
  1031. width: 100%;
  1032. height: 78rpx;
  1033. float: left;
  1034. .order-footer-top {
  1035. width: 100%;
  1036. height: 34rpx;
  1037. line-height: 34rpx;
  1038. font-size: $font-size-24;
  1039. color: #999999;
  1040. text-align: right;
  1041. }
  1042. .order-footer-bot {
  1043. width: 100%;
  1044. float: left;
  1045. height: 48rpx;
  1046. line-height: 48rpx;
  1047. font-size: $font-size-28;
  1048. font-weight: bold;
  1049. color: $text-color;
  1050. .count {
  1051. width: 50%;
  1052. float: left;
  1053. text-align: left;
  1054. }
  1055. .money {
  1056. width: 50%;
  1057. float: right;
  1058. text-align: right;
  1059. }
  1060. }
  1061. }
  1062. .tui-modal-custom-text {
  1063. min-height: 300rpx;
  1064. margin-bottom: 30rpx;
  1065. .title {
  1066. width: 100%;
  1067. height: auto;
  1068. font-size: $font-size-30;
  1069. text-align: justify;
  1070. color: #333333;
  1071. line-height: 40rpx;
  1072. margin-bottom: 30rpx;
  1073. }
  1074. .tui-modal-custom-list {
  1075. width: 100%;
  1076. height: 350rpx;
  1077. overflow: hidden;
  1078. .custom-list {
  1079. width: 100%;
  1080. height: 117rpx;
  1081. box-sizing: border-box;
  1082. float: left;
  1083. padding: 15rpx 0;
  1084. .custom-list-image {
  1085. width: 86rpx;
  1086. height: 86rpx;
  1087. float: left;
  1088. border-radius: 6rpx;
  1089. box-sizing: border-box;
  1090. border: 1px solid #e1e1e1;
  1091. image {
  1092. width: 84rpx;
  1093. height: 84rpx;
  1094. border-radius: 6rpx;
  1095. display: block;
  1096. }
  1097. }
  1098. .custom-list-name {
  1099. width: 400rpx;
  1100. height: 86rpx;
  1101. float: right;
  1102. line-height: 43rpx;
  1103. font-size: $font-size-26;
  1104. color: #666666;
  1105. text-overflow: ellipsis;
  1106. overflow: hidden;
  1107. display: -webkit-box;
  1108. -webkit-line-clamp: 2;
  1109. line-clamp: 2;
  1110. -webkit-box-orient: vertical;
  1111. }
  1112. }
  1113. }
  1114. }
  1115. .tui-modal-button {
  1116. width: 100%;
  1117. height: 72rpx;
  1118. display: flex;
  1119. .modal-button {
  1120. width: 200rpx;
  1121. height: 72rpx;
  1122. line-height: 72rpx;
  1123. border-radius: 36rpx;
  1124. box-sizing: border-box;
  1125. &.cancel {
  1126. border: 1px solid #b2b2b2;
  1127. background: #ffffff;
  1128. color: #333333;
  1129. }
  1130. &.confirm {
  1131. background: $btn-confirm;
  1132. color: #ffffff;
  1133. }
  1134. }
  1135. }
  1136. </style>