search-order.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. <template>
  2. <view class="search-container">
  3. <view class="search-main">
  4. <view class="search">
  5. <view class="search-input">
  6. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  7. <input
  8. maxlength="20"
  9. focus
  10. type="text"
  11. value=""
  12. confirm-type="search"
  13. @focus="onFocus"
  14. @input="onShowClose"
  15. @confirm="subMitSearch()"
  16. placeholder="请输入商品关键词"
  17. v-model.trim="listQuery.searchWord"
  18. />
  19. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  20. </view>
  21. <view class="search-btn" @click="subMitSearch()">搜索</view>
  22. </view>
  23. </view>
  24. <view class="search-container-history" v-if="!isShowWrapper">
  25. <view :class="'s-' + themeClass" v-if="serachRecordList.length > 0">
  26. <view class="header"> 搜索历史<text class="iconfont icon-shanchu" @click="confirmDetele"></text> </view>
  27. <view class="list">
  28. <view
  29. v-for="(item, index) in serachRecordList"
  30. :key="index"
  31. @click="keywordsClick(item.searchWord)"
  32. >{{ item.searchWord }}</view
  33. >
  34. </view>
  35. </view>
  36. </view>
  37. <view
  38. class=" order-container"
  39. v-if="isShowWrapper"
  40. :style="{ overflow: 'auto', height: showSkeleton ? windowHeight + 'px' : 'auto' }"
  41. >
  42. <scroll-view
  43. class="tui-skeleton"
  44. :style="{ height: scrollHeight + 'px' }"
  45. @scrolltolower="scrolltolower"
  46. scroll-y
  47. >
  48. <view :class="{ 'tui-order-list': scrollTop >= 0 }" class="tui-skeleton clearfix">
  49. <!-- 空白页 -->
  50. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  51. <!-- 列表 -->
  52. <view v-else class="tui-order-content">
  53. <view
  54. class="tui-order-item"
  55. v-for="(order, orderIndex) in orderList"
  56. :key="orderIndex"
  57. @click.stop="detail(order)"
  58. >
  59. <view class="order-title">
  60. <view class="order-title-name">
  61. <text>{{ order.clubName ? order.clubName : '' }}</text>
  62. <text class="tags" v-if="order.svipUserFlag == 0 && order.userIdentity === 2 ">VIP</text>
  63. <text class="tags sv" v-if="order.svipUserFlag == 1">SVIP</text>
  64. </view>
  65. <view class="order-title-t">
  66. <text
  67. class="bage buss tui-skeleton-fillet"
  68. v-if="order.orderSubmitType == 3 || order.orderSubmitType == 4"
  69. >服务商</text
  70. >
  71. <text
  72. class="bage auto tui-skeleton-fillet"
  73. v-if="
  74. order.orderSubmitType == 0 ||
  75. order.orderSubmitType == 1 ||
  76. order.orderSubmitType == 2
  77. "
  78. >
  79. 自主
  80. </text>
  81. <view class="order-title-tip tui-skeleton-fillet">
  82. {{ order.status | statusFilters }}
  83. </view>
  84. <image
  85. class="bage-icon"
  86. src="https://static.caimei365.com/app/img/icon/icon-type@3x.png"
  87. mode="widthFix"
  88. v-if="order.secondHandOrderFlag == 1"
  89. >
  90. </image>
  91. </view>
  92. </view>
  93. <view class="goods-title">
  94. <view v-if="order.shopPromotion" class="floor-item-act">
  95. <view class="floor-tags">{{ order.shopPromotion.name }}</view>
  96. </view>
  97. <view class="title-text tui-skeleton-fillet">{{ order.shopName }}</view>
  98. </view>
  99. <view
  100. class="goods-item"
  101. v-for="(pros, prosIndex) in order.orderProductList"
  102. :key="prosIndex"
  103. >
  104. <view class="goods-pros-t">
  105. <view class="pros-img tui-skeleton-fillet">
  106. <image :src="pros.image" alt="" />
  107. <text class="tips" v-if="pros.giftType == 2 || pros.giftType == 1"
  108. >赠品</text
  109. >
  110. </view>
  111. <view class="pros-product clearfix">
  112. <view class="producttitle tui-skeleton-fillet">{{ pros.name }}</view>
  113. <view
  114. class="productspec tui-skeleton-fillet"
  115. v-if="pros.productCategory != 2"
  116. >规格:{{ pros.productUnit }}</view
  117. >
  118. <view class="productprice">
  119. <view
  120. class="price tui-skeleton-fillet"
  121. :class="
  122. pros.svipPriceFlag == 1 ||
  123. PromotionsFormat(pros.productPromotion)
  124. ? 'none'
  125. : ''
  126. "
  127. >
  128. <text>¥{{ pros.price | NumFormat }}</text>
  129. </view>
  130. <view class="count tui-skeleton-fillet">
  131. <text class="small">x</text>{{ pros.num }}
  132. </view>
  133. </view>
  134. <view class="floor-item-act">
  135. <template v-if="pros.productPromotion">
  136. <view
  137. v-if="PromotionsFormat(pros.productPromotion)"
  138. class="floor-tags"
  139. @click.stop="clickPopupShow(pros.productPromotion)"
  140. >
  141. {{ pros.productPromotion.name }}
  142. <text
  143. v-if="
  144. pros.productPromotion != null &&
  145. pros.productPromotion.type != 3
  146. "
  147. >
  148. :¥{{
  149. pros.productPromotion == null
  150. ? '0.00'
  151. : pros.productPromotion.touchPrice | NumFormat
  152. }}
  153. </text>
  154. </view>
  155. <view
  156. v-else-if="pros.productPromotion.type != 3"
  157. class="floor-tags"
  158. @click.stop="clickPopupShow(pros.productPromotion)"
  159. >{{ pros.productPromotion.name }}</view
  160. >
  161. </template>
  162. <template v-if="pros.svipPriceFlag == 1">
  163. <view class="svip-tags">
  164. <view class="tags">SVIP</view>
  165. <view class="price">{{ pros.svipPriceTag }}</view>
  166. </view>
  167. </template>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. <view class="order-footer">
  173. <!-- <view class="order-footer-top" v-if="order.discountFee != 0"
  174. >经理折扣:¥{{ order.discountFee | NumFormat }}</view
  175. > -->
  176. <view class="order-footer-bot">
  177. <view class="count tui-skeleton-fillet">共{{ order.itemCount }}件商品</view>
  178. <view
  179. class="money tui-skeleton-fillet"
  180. v-if="order.status == 31 || order.status == 32 || order.status == 33"
  181. >
  182. 已支付:<label style="color:#f94b4b ;"
  183. >¥{{ order.receiptAmount | NumFormat }}</label
  184. >
  185. </view>
  186. <view class="money tui-skeleton-fillet" v-else>
  187. 待付总额:<label style="color:#f94b4b ;"
  188. >¥{{ order.obligation | NumFormat }}</label
  189. >
  190. </view>
  191. </view>
  192. </view>
  193. <!-- 底部button -->
  194. <cm-list-button
  195. ref="orderButton"
  196. :order="order"
  197. :status="order.status"
  198. :userId="order.userId"
  199. :shopOrderId="order.shopOrderId"
  200. :rechargeGoods="order.rechargeGoods"
  201. :secondHandOrderFlag="order.secondHandOrderFlag"
  202. @buttonConfirm="handButtonConfirm"
  203. />
  204. </view>
  205. <!--加载loadding-->
  206. <tui-loadmore :visible="loadding" :index="3" type="black"/>
  207. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#ffffff'" :text="nomoreText"/>
  208. <!--加载loadding-->
  209. </view>
  210. </view>
  211. </scroll-view>
  212. </view>
  213. <!-- 分享弹窗 -->
  214. <cm-share-popup
  215. :shopOrderId="handleShopOrderId"
  216. :shareType="isShareType"
  217. v-if="isShareModal"
  218. @shareConfirm="onShareAppMessage"
  219. />
  220. <!-- 再来一单弹窗 -->
  221. <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. box-sizing: border-box;
  700. padding: 0 20rpx;
  701. }
  702. .tui-order-list {
  703. width: 100%;
  704. position: relative;
  705. }
  706. .tui-order-item {
  707. display: flex;
  708. flex-direction: column;
  709. width: 100%;
  710. padding: 0rpx 24rpx 0 24rpx;
  711. background: #fff;
  712. box-sizing: border-box;
  713. border-radius: 16rpx;
  714. overflow: hidden;
  715. margin: 20rpx 0;
  716. }
  717. .order-title {
  718. width: 100%;
  719. height: auto;
  720. .order-title-name {
  721. width: 100%;
  722. height: 72rpx;
  723. border-bottom: 1px solid #f7f7f7;
  724. line-height: 72rpx;
  725. text-align: left;
  726. font-size: $font-size-28;
  727. color: #333333;
  728. .tags {
  729. display: inline-block;
  730. width: 60rpx;
  731. height: 32rpx;
  732. border-radius: 16rpx 0;
  733. background: #f0cb72;
  734. font-size: $font-size-22;
  735. color: #4e4539;
  736. text-align: center;
  737. line-height: 32rpx;
  738. margin-left: 10rpx;
  739. &.sv {
  740. background: #333333;
  741. color: #f0cb72;
  742. }
  743. }
  744. }
  745. .order-title-t {
  746. width: 100%;
  747. height: 68rpx;
  748. float: left;
  749. line-height: 68rpx;
  750. position: relative;
  751. display: flex;
  752. .bage-icon {
  753. width: 50rpx;
  754. height: 50rpx;
  755. display: block;
  756. position: absolute;
  757. right: 110rpx;
  758. top: 12rpx;
  759. }
  760. .bage{
  761. display: inline-block;
  762. width: 72rpx;
  763. height: 32rpx;
  764. margin: 19rpx 10rpx 0 0;
  765. border-radius: 4rpx;
  766. line-height: 32rpx;
  767. font-size: $font-size-22;
  768. text-align: center;
  769. color: #ffffff;
  770. float: right;
  771. &.buss{
  772. background: rgb(223, 240, 255);
  773. color: rgb(126, 172, 213);
  774. padding: 0 6rpx;
  775. }
  776. &.auto{
  777. background: #7fba4f;
  778. color: #ffffff;
  779. }
  780. }
  781. .order-title-tip {
  782. font-size: $font-size-24;
  783. line-height: 68rpx;
  784. text-align: right;
  785. color: #ff2a2a;
  786. }
  787. }
  788. }
  789. .goods-title {
  790. width: 100%;
  791. height: 56rpx;
  792. float: left;
  793. margin-top: 10rpx;
  794. .floor-item-act {
  795. height: 56rpx;
  796. text-align: center;
  797. box-sizing: border-box;
  798. float: left;
  799. padding: 10rpx 0;
  800. margin-right: 12rpx;
  801. }
  802. .title-text {
  803. width: 400rpx;
  804. overflow: hidden;
  805. text-overflow: ellipsis;
  806. white-space: nowrap;
  807. float: left;
  808. font-size: $font-size-28;
  809. color: $text-color;
  810. text-align: left;
  811. line-height: 56rpx;
  812. font-weight: bold;
  813. }
  814. }
  815. .goods-item {
  816. width: 100%;
  817. height: auto;
  818. }
  819. .goods-pros-t {
  820. display: flex;
  821. align-items: center;
  822. width: 100%;
  823. height: 217rpx;
  824. padding: 24rpx 0;
  825. .pros-img {
  826. width: 210rpx;
  827. height: 100%;
  828. border-radius: 10rpx;
  829. margin: 0 26rpx 0 0;
  830. border: 1px solid #f3f3f3;
  831. image {
  832. width: 100%;
  833. height: 100%;
  834. border-radius: 10rpx;
  835. }
  836. }
  837. }
  838. .pros-product {
  839. width: 460rpx;
  840. height: 100%;
  841. line-height: 36rpx;
  842. font-size: $font-size-26;
  843. position: relative;
  844. float: left;
  845. .producttitle {
  846. width: 100%;
  847. display: inline-block;
  848. height: auto;
  849. text-overflow: ellipsis;
  850. display: -webkit-box;
  851. word-break: break-all;
  852. -webkit-box-orient: vertical;
  853. -webkit-line-clamp: 2;
  854. overflow: hidden;
  855. margin-bottom: 8rpx;
  856. }
  857. .productspec {
  858. height: 36rpx;
  859. color: #999999;
  860. }
  861. .productprice {
  862. height: 48rpx;
  863. width: 100%;
  864. float: left;
  865. .price {
  866. line-height: 48rpx;
  867. font-size: $font-size-28;
  868. width: 48%;
  869. color: #ff2a2a;
  870. float: left;
  871. font-weight: bold;
  872. &.none {
  873. text-decoration: line-through;
  874. color: #999999;
  875. }
  876. }
  877. .count {
  878. height: 100%;
  879. float: right;
  880. position: relative;
  881. .small {
  882. color: #666666;
  883. }
  884. }
  885. }
  886. .floor-item-act {
  887. width: 100%;
  888. height: 56rpx;
  889. text-align: center;
  890. box-sizing: border-box;
  891. float: left;
  892. padding: 0 0 10rpx 0;
  893. }
  894. }
  895. .order-footer {
  896. width: 100%;
  897. height: 78rpx;
  898. float: left;
  899. .order-footer-top {
  900. width: 100%;
  901. height: 34rpx;
  902. line-height: 34rpx;
  903. font-size: $font-size-24;
  904. color: #999999;
  905. text-align: right;
  906. }
  907. .order-footer-bot {
  908. width: 100%;
  909. float: left;
  910. height: 48rpx;
  911. line-height: 48rpx;
  912. font-size: $font-size-28;
  913. font-weight: bold;
  914. color: $text-color;
  915. .count {
  916. width: 50%;
  917. float: left;
  918. text-align: left;
  919. }
  920. .money {
  921. width: 50%;
  922. float: right;
  923. text-align: right;
  924. }
  925. }
  926. }
  927. .aganBj {
  928. position: fixed;
  929. left: 0;
  930. top: 0;
  931. bottom: 0;
  932. width: 100%;
  933. height: 100%;
  934. background-color: rgba(0, 0, 0, 0.5);
  935. z-index: 999999;
  936. .alertAgan {
  937. position: absolute;
  938. top: 50%;
  939. left: 50%;
  940. transform: translate(-50%, -50%);
  941. width: 580rpx;
  942. background-color: #fff;
  943. border-radius: 16rpx;
  944. .title {
  945. font-size: 30rpx;
  946. color: #333333;
  947. line-height: 42rpx;
  948. padding: 30rpx;
  949. display: block;
  950. }
  951. .goods {
  952. padding: 0 30rpx;
  953. .list {
  954. padding: 10px 0;
  955. border-bottom: 1rpx solid #e1e1e1;
  956. margin: 10rpx 0;
  957. .image-left {
  958. width: 86rpx;
  959. height: 86rpx;
  960. border: 2rpx solid #e1e1e1;
  961. border-radius: 6rpx;
  962. display: inline-block;
  963. vertical-align: middle;
  964. }
  965. .name-right {
  966. display: inline-block;
  967. width: 416rpx;
  968. margin-left: 15rpx;
  969. font-size: 26rpx;
  970. color: #666666;
  971. vertical-align: middle;
  972. word-break: break-all;
  973. overflow: hidden;
  974. text-overflow: ellipsis;
  975. display: -webkit-inline-box;
  976. -webkit-line-clamp: 2;
  977. -webkit-box-orient: vertical;
  978. }
  979. }
  980. }
  981. .BtnAll {
  982. margin-top: 30rpx;
  983. .btn {
  984. display: inline-block;
  985. width: 290rpx;
  986. height: 90rpx;
  987. line-height: 90rpx;
  988. text-align: center;
  989. &.closebtn {
  990. border-radius: 0px 0px 0px 10px;
  991. color: #999999;
  992. background: #efefef;
  993. }
  994. &.cancel {
  995. border-radius: 0px 0px 8px 0px;
  996. background: $btn-confirm;
  997. color: #fff;
  998. }
  999. }
  1000. }
  1001. }
  1002. }
  1003. </style>