search-order.vue 23 KB

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