search-order.vue 25 KB

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