order-search.vue 23 KB

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