search-order.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  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"></modal-layer>
  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: 8rpx;
  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: 4rpx;
  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: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  770. }
  771. }
  772. .order-title-tip {
  773. float: left;
  774. font-size: $font-size-28;
  775. line-height: 68rpx;
  776. text-align: right;
  777. color: #ff2a2a;
  778. }
  779. }
  780. }
  781. .goods-title {
  782. width: 100%;
  783. height: 56rpx;
  784. float: left;
  785. margin-top: 10rpx;
  786. .floor-item-act {
  787. height: 56rpx;
  788. text-align: center;
  789. box-sizing: border-box;
  790. float: left;
  791. padding: 10rpx 0;
  792. margin-right: 12rpx;
  793. }
  794. .title-text {
  795. width: 400rpx;
  796. overflow: hidden;
  797. text-overflow: ellipsis;
  798. white-space: nowrap;
  799. float: left;
  800. font-size: $font-size-28;
  801. color: $text-color;
  802. text-align: left;
  803. line-height: 56rpx;
  804. font-weight: bold;
  805. }
  806. }
  807. .goods-item {
  808. width: 100%;
  809. height: auto;
  810. }
  811. .goods-pros-t {
  812. display: flex;
  813. align-items: center;
  814. width: 100%;
  815. height: 217rpx;
  816. padding: 24rpx 0;
  817. .pros-img {
  818. width: 210rpx;
  819. height: 100%;
  820. border-radius: 10rpx;
  821. margin: 0 26rpx 0 0;
  822. border: 1px solid #f3f3f3;
  823. image {
  824. width: 100%;
  825. height: 100%;
  826. border-radius: 10rpx;
  827. }
  828. }
  829. }
  830. .pros-product {
  831. width: 460rpx;
  832. height: 100%;
  833. line-height: 36rpx;
  834. font-size: $font-size-26;
  835. position: relative;
  836. float: left;
  837. .producttitle {
  838. width: 100%;
  839. display: inline-block;
  840. height: auto;
  841. text-overflow: ellipsis;
  842. display: -webkit-box;
  843. word-break: break-all;
  844. -webkit-box-orient: vertical;
  845. -webkit-line-clamp: 2;
  846. overflow: hidden;
  847. margin-bottom: 8rpx;
  848. }
  849. .productspec {
  850. height: 36rpx;
  851. color: #999999;
  852. }
  853. .productprice {
  854. height: 48rpx;
  855. width: 100%;
  856. float: left;
  857. .price {
  858. line-height: 48rpx;
  859. font-size: $font-size-28;
  860. width: 48%;
  861. color: #ff2a2a;
  862. float: left;
  863. font-weight: bold;
  864. &.none {
  865. text-decoration: line-through;
  866. color: #999999;
  867. }
  868. }
  869. .count {
  870. height: 100%;
  871. float: right;
  872. position: relative;
  873. .small {
  874. color: #666666;
  875. }
  876. }
  877. }
  878. .floor-item-act {
  879. width: 100%;
  880. height: 56rpx;
  881. text-align: center;
  882. box-sizing: border-box;
  883. float: left;
  884. padding: 0 0 10rpx 0;
  885. }
  886. }
  887. .order-footer {
  888. width: 100%;
  889. height: 78rpx;
  890. float: left;
  891. .order-footer-top {
  892. width: 100%;
  893. height: 34rpx;
  894. line-height: 34rpx;
  895. font-size: $font-size-24;
  896. color: #999999;
  897. text-align: right;
  898. }
  899. .order-footer-bot {
  900. width: 100%;
  901. float: left;
  902. height: 48rpx;
  903. line-height: 48rpx;
  904. font-size: $font-size-28;
  905. font-weight: bold;
  906. color: $text-color;
  907. .count {
  908. width: 50%;
  909. float: left;
  910. text-align: left;
  911. }
  912. .money {
  913. width: 50%;
  914. float: right;
  915. text-align: right;
  916. }
  917. }
  918. }
  919. .aganBj {
  920. position: fixed;
  921. left: 0;
  922. top: 0;
  923. bottom: 0;
  924. width: 100%;
  925. height: 100%;
  926. background-color: rgba(0, 0, 0, 0.5);
  927. z-index: 999999;
  928. .alertAgan {
  929. position: absolute;
  930. top: 50%;
  931. left: 50%;
  932. transform: translate(-50%, -50%);
  933. width: 580rpx;
  934. background-color: #fff;
  935. border-radius: 16rpx;
  936. .title {
  937. font-size: 30rpx;
  938. color: #333333;
  939. line-height: 42rpx;
  940. padding: 30rpx;
  941. display: block;
  942. }
  943. .goods {
  944. padding: 0 30rpx;
  945. .list {
  946. padding: 10px 0;
  947. border-bottom: 1rpx solid #e1e1e1;
  948. margin: 10rpx 0;
  949. .image-left {
  950. width: 86rpx;
  951. height: 86rpx;
  952. border: 2rpx solid #e1e1e1;
  953. border-radius: 6rpx;
  954. display: inline-block;
  955. vertical-align: middle;
  956. }
  957. .name-right {
  958. display: inline-block;
  959. width: 416rpx;
  960. margin-left: 15rpx;
  961. font-size: 26rpx;
  962. color: #666666;
  963. vertical-align: middle;
  964. word-break: break-all;
  965. overflow: hidden;
  966. text-overflow: ellipsis;
  967. display: -webkit-inline-box;
  968. -webkit-line-clamp: 2;
  969. -webkit-box-orient: vertical;
  970. }
  971. }
  972. }
  973. .BtnAll {
  974. margin-top: 30rpx;
  975. .btn {
  976. display: inline-block;
  977. width: 290rpx;
  978. height: 90rpx;
  979. line-height: 90rpx;
  980. text-align: center;
  981. &.closebtn {
  982. border-radius: 0px 0px 0px 10px;
  983. color: #999999;
  984. background: #efefef;
  985. }
  986. &.cancel {
  987. border-radius: 0px 0px 8px 0px;
  988. background: $btn-confirm;
  989. color: #fff;
  990. }
  991. }
  992. }
  993. }
  994. }
  995. </style>