search-order.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-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.productType == 2 || pros.productType == 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. loadding: false,
  292. pullUpOn: true,
  293. hasNextPage: false,
  294. pullFlag: true,
  295. navbarHeight: '',
  296. nomoreText: '上拉显示更多',
  297. scrollHeight: '',
  298. showAgan: false,
  299. failList: [], // 再来一单可购买商品
  300. promptitle: ''
  301. }
  302. },
  303. onLoad() {
  304. this.initGetSerachRecord()
  305. },
  306. methods: {
  307. subMitSearch() {
  308. if (this.listQuery.searchWord == '') {
  309. this.$util.msg('请输入订单编号', 2000)
  310. } else {
  311. this.commodityList = []
  312. this.getOrderDatainit()
  313. }
  314. },
  315. async initGetSerachRecord() {
  316. try{
  317. const userInfo = await this.$api.getStorage()
  318. this.listQuery.serviceProviderId = userInfo.serviceProviderId
  319. this.userId = userInfo.userId
  320. const res = await this.OrderService.SearchOrderHistory({ userId: this.userId })
  321. const data = res.data
  322. this.serachRecordList = data
  323. if (this.serachRecordList.length > 0) {
  324. this.isSearchHistory = true
  325. } else {
  326. this.isSearchHistory = false
  327. }
  328. }catch(error){
  329. this.$util.msg(error.msg, 2000)
  330. }
  331. },
  332. //清空历史记录
  333. async confirmDetele() {
  334. try{
  335. const res = await this.OrderService.ClearOrderHistory({ userId: this.userId })
  336. this.$util.msg(res.msg, 2000, true, 'success')
  337. this.serachRecordList = []
  338. }catch(error){
  339. this.$util.msg(error.msg, 2000)
  340. }
  341. },
  342. // 搜索订单列表
  343. async getOrderDatainit() {
  344. try{
  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-shanchu1 {
  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-shanchu {
  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: 72rpx;
  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>