search-order.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. <template>
  2. <view class="search-container">
  3. <!-- <or-search :theme="themeClass" @getSearchText="getSearchText"></or-search> -->
  4. <view class="search-main">
  5. <view class="search">
  6. <view class="search-input">
  7. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  8. <input maxlength="20" focus type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入商品关键词" v-model.trim="listQuery.searchWord"/>
  9. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  10. </view>
  11. <view class="search-btn" @click="subMitSearch()">搜索</view>
  12. </view>
  13. </view>
  14. <view class="search-container-history" v-if="!isShowWrapper">
  15. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  16. <view class="header">
  17. 搜索历史
  18. <text class="iconfont icon-shanchu" @click="confirmDetele"></text>
  19. </view>
  20. <view class="list">
  21. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item.searchWord)">{{item.searchWord}}</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class=" order-container" v-if="isShowWrapper" :style="{'overflow' : 'auto','height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  26. <scroll-view class="tui-skeleton" :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower" scroll-y >
  27. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  28. <!-- 空白页 -->
  29. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  30. <!-- 列表 -->
  31. <view v-else class="tui-order-content">
  32. <view class="tui-order-item" v-for="(order,orderIndex) in orderList" :key="orderIndex" @click.stop="detail(order.orderId)">
  33. <view class="order-title">
  34. <view class="order-title-t">
  35. <text class="bage-buss tui-skeleton-fillet" v-if="order.orderSubmitType == 3 || order.orderSubmitType == 4">协销</text>
  36. <text class="bage-auto tui-skeleton-fillet" v-if="order.orderSubmitType == 0 || order.orderSubmitType == 1 || order.orderSubmitType == 2">自主</text>
  37. <text class="bage-text tui-skeleton-fillet">订单编号:{{order.orderNo}}</text>
  38. <image class="bage-icon" src="https://static.caimei365.com/app/img/icon/icon-type@3x.png" mode="widthFix" v-if="order.secondHandOrderFlag == 1"></image>
  39. </view>
  40. <view class="order-title-b">
  41. <view class="order-title-btxt tui-skeleton-fillet">下单时间:{{order.orderTime}}</view>
  42. <view class="order-title-tip tui-skeleton-fillet">{{ StateExpFormat(order.status) }}</view>
  43. </view>
  44. </view>
  45. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  46. <view class="goods-title">
  47. <view v-if="shop.shopPromotion" class="floor-item-act">
  48. <view class="floor-tags">{{shop.shopPromotion.name}}</view>
  49. </view>
  50. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  51. </view>
  52. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  53. <view class="goods-pros-t">
  54. <view class="pros-img tui-skeleton-fillet">
  55. <image :src="pros.image" alt="" />
  56. <text class="tips" v-if="pros.productType ==2 || pros.productType ==1">赠品</text>
  57. </view>
  58. <view class="pros-product">
  59. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  60. <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2">规格:{{pros.productUnit}}</view>
  61. <view class="productprice">
  62. <view class="price tui-skeleton-fillet">
  63. <text>¥{{pros.price | NumFormat}}</text>
  64. </view>
  65. <view class="count tui-skeleton-fillet">
  66. <text class="small">x</text>{{pros.num}}
  67. </view>
  68. </view>
  69. <view class="floor-item-act" v-if="pros.productPromotion!=null">
  70. <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
  71. {{pros.productPromotion.name}}
  72. <text v-if ="pros.productPromotion!=null && pros.productPromotion.type !=3">
  73. :¥{{ pros.productPromotion == null ? '0.00' : pros.productPromotion.touchPrice | NumFormat}}
  74. </text>
  75. </view>
  76. <view v-else-if="pros.productPromotion.type !=3" class="floor-tags">{{pros.productPromotion.name}}</view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </block>
  82. <view class="order-footer">
  83. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{ order.discountFee | NumFormat }}</view>
  84. <view class="order-footer-bot">
  85. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  86. <view class="money tui-skeleton-fillet" v-if="order.status==31||order.status==32||order.status==33">
  87. 已支付:<label style="color:#f94b4b ;">¥{{ order.receiptAmount | NumFormat }}</label>
  88. </view>
  89. <view class="money tui-skeleton-fillet" v-else>
  90. 待付总额:<label style="color:#f94b4b ;">¥{{ order.pendingPayments | NumFormat }}</label>
  91. </view>
  92. </view>
  93. </view>
  94. <!-- 底部button -->
  95. <order-button ref="orderButton"
  96. :status="order.status"
  97. :order="order"
  98. :onlinePayFlag = "order.onlinePayFlag"
  99. @buttonConfirm="handButtonConfirm">
  100. </order-button>
  101. </view>
  102. <!--加载loadding-->
  103. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  104. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#ffffff'" :text='nomoreText'></tui-nomore>
  105. <!--加载loadding-->
  106. </view>
  107. </view>
  108. </scroll-view>
  109. </view>
  110. <!-- 分享弹窗 -->
  111. <share-alert v-if="isShareModal"
  112. :orderId="btnoRderID"
  113. @shareConfirm ='onShareAppMessage'>
  114. </share-alert>
  115. <!-- 透明模态层 -->
  116. <modal-layer v-if='isModalLayer'></modal-layer>
  117. <!-- 采美豆提示弹窗 -->
  118. <activityBean v-if="isActivityBean" :show="isActivityBean" :beansType="beansType" :beanNumber="beanNumber" @cancel="handleBeanlClick"></activityBean>
  119. </view>
  120. </template>
  121. <script>
  122. import orSearch from '@/components/uni-search/or-search.vue'
  123. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  124. import tuiNomore from "@/components/tui-components/nomore/nomore"
  125. import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
  126. import modalLayer from "@/components/modal-layer"
  127. import empty from "@/components/empty";
  128. import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
  129. import authorize from '@/common/config/authorize.js'
  130. import activityBean from '@/components/cm-module/activity/activityBean.vue'
  131. const defaultListQuery = {
  132. pageNum:1, // 页码
  133. pageSize:10, // 每页条数
  134. userId:0, // 用户Id
  135. searchWord:'' // 搜索关键词
  136. };
  137. export default {
  138. components: {
  139. orSearch,
  140. tuiLoadmore,
  141. tuiNomore,
  142. orderButton,
  143. empty,
  144. shareAlert,
  145. activityBean
  146. },
  147. data() {
  148. return {
  149. listQuery:Object.assign({}, defaultListQuery),
  150. themeClass: 'block',
  151. isShowClose:false, //是否显示清空输入框图标
  152. isSearchHistory:false, //是都显示搜索历史
  153. serachRecordList:[],
  154. isShowWrapper:false,
  155. isModallayer:false,
  156. isShowEmpty:false,
  157. windowHeight: '',
  158. showSkeleton: true,
  159. orderList: [],
  160. btnoRderID: 0, //点击按钮传入的的订单ID
  161. scrollTop: 0,
  162. deteleType:'',
  163. skeletonShow: true,
  164. isShareModal: false,//控制分享弹窗
  165. isCenceModal: false,//控制取消订单弹窗
  166. isShowDelModal: false,//控制删除订单弹窗
  167. isModalLayer: false,
  168. loadding: false,
  169. pullUpOn: true,
  170. hasNextPage: false,
  171. pullFlag: true,
  172. navbarHeight:'',
  173. nomoreText: '上拉显示更多',
  174. scrollHeight:'',
  175. beansType:1,
  176. beanNumber:0,
  177. isActivityBean:false,
  178. }
  179. },
  180. onLoad() {
  181. this.initGetSerachRecord()
  182. },
  183. filters:{
  184. NumFormat(value) {//处理金额
  185. return Number(value).toFixed(2);
  186. }
  187. },
  188. methods:{
  189. subMitSearch() {
  190. if (this.listQuery.searchWord == '') {
  191. this.$util.msg('请输入商品关键词',2000);
  192. }else{
  193. this.commodityList =[]
  194. this.getOrderDatainit()
  195. }
  196. },
  197. initGetSerachRecord(){
  198. this.$api.getStorage().then((resolve) =>{
  199. this.listQuery.userId = resolve.userId ? resolve.userId : 0
  200. this.OrderService.SearchOrderHistory({userId:this.listQuery.userId}).then(response =>{
  201. this.serachRecordList = response.data
  202. if(this.serachRecordList.length>0){
  203. this.isSearchHistory = true
  204. }else{
  205. this.isSearchHistory = false
  206. }
  207. }).catch(error =>{
  208. this.$util.msg(error.msg,2000)
  209. })
  210. })
  211. },
  212. onShowClose () { //输入框失去焦点时触发
  213. this.inputEmpty(this.listQuery.searchWord)
  214. },
  215. onFocus () { //输入框获取焦点时触发
  216. this.inputEmpty(this.listQuery.searchWord)
  217. this.initGetSerachRecord()
  218. },
  219. delInputText () { //清除输入框内容
  220. this.listQuery.searchWord = ''
  221. this.isShowClose = false
  222. this.isShowWrapper = false
  223. this.inputEmpty(this.listQuery.searchWord)
  224. this.initGetSerachRecord()
  225. },
  226. keywordsClick (item) { //关键词搜索与历史搜索
  227. this.listQuery.searchWord = item;
  228. this.isShowClose = true;
  229. this.subMitSearch();
  230. },
  231. confirmDetele () {//清空历史记录
  232. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  233. this.OrderService.ClearOrderHistory({userId:this.listQuery.userId}).then(response =>{
  234. this.$util.msg('删除记录成功',2000,true,'success')
  235. this.serachRecordList=[]
  236. }).catch(error =>{
  237. this.$util.msg(error.msg,2000)
  238. })
  239. })
  240. },
  241. inputEmpty(val){
  242. this.isShowWrapper = false
  243. if(val != ''){
  244. this.isShowClose = true
  245. }else{
  246. this.isShowClose = false
  247. }
  248. },
  249. getOrderDatainit(index,source){
  250. /**
  251. * @订单初始化加载 仅加载第一页码
  252. * @param:searchWord(搜索关键词)
  253. * @param:userId(用户ID)
  254. * @param:pageNum(页码数)
  255. * @param:pageSize(每页条数)
  256. * @param:organizeID(全局变量组织ID)
  257. */
  258. this.OrderService.SearchOrderInfo(this.listQuery).then(response =>{
  259. this.isShowWrapper = true
  260. this.showSkeleton = true
  261. let data = response.data
  262. if(data && data.list.length > 0){
  263. let filrerData = data.list.filter(item=>{
  264. //添加不同状态下订单的表现形式
  265. item = Object.assign(item, this.StateExpFormat(item.status));
  266. return item;
  267. });
  268. this.orderList =[];
  269. filrerData.forEach(item=>{
  270. this.orderList.push(item);
  271. })
  272. this.hasNextPage = data
  273. if(this.hasNextPage){
  274. this.pullUpOn = false
  275. this.nomoreText = '上拉显示更多'
  276. }else{
  277. if(this.orderList.length < 2){
  278. this.pullUpOn = true
  279. }else{
  280. this.pullUpOn = false
  281. this.nomoreText = '已至底部'
  282. }
  283. }
  284. this.isShowEmpty = false
  285. }else{
  286. this.isShowEmpty = true
  287. }
  288. }).catch(error =>{
  289. this.$util.msg(error.msg,2000)
  290. })
  291. },
  292. getOnReachBottomData(index){//上拉加载
  293. this.listQuery.pageNum+=1
  294. this.OrderService.SearchOrderInfo(this.listQuery).then(response =>{
  295. let data = response.data
  296. this.hasNextPage = data.hasNextPage;
  297. this.orderList = this.orderList.concat(data.list)
  298. this.pullFlag = false;// 防上拉暴滑
  299. setTimeout(()=>{this.pullFlag = true;},500)
  300. if(this.hasNextPage){
  301. this.pullUpOn = false
  302. this.nomoreText = '上拉显示更多'
  303. }else{
  304. this.loadding = false
  305. this.pullUpOn = false
  306. this.nomoreText = '已至底部'
  307. }
  308. }).catch(error =>{
  309. this.$util.msg(error.msg,2000)
  310. })
  311. },
  312. scrolltolower() {
  313. if(this.hasNextPage){
  314. this.loadding = true
  315. this.pullUpOn = true
  316. this.showSkeleton = false
  317. this.getOnReachBottomData();
  318. }
  319. },
  320. detail(orderId) {//订单详情跳转
  321. this.isModalLayer = true;
  322. this.$api.navigateTo(`/pages/user/order/order-details?type=search&orderId=${orderId}`)
  323. },
  324. handButtonConfirm(data) {//获取点击
  325. this.handShowAlert(data)
  326. this.btnoRderID = data.orderId
  327. },
  328. handShowAlert(data) {//执行
  329. switch(data.type){
  330. case 'delete':
  331. this.handOrderDetele(data.orderId);
  332. break
  333. case 'cancel':
  334. this.handCenceConfirm(data.orderId)
  335. break
  336. case 'query':
  337. this.isModalLayer = true;
  338. this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+data.orderId)
  339. break
  340. case 'confirm':
  341. this.handOrderConfirm(data.orderId);
  342. break
  343. case 'confirmation':
  344. this.handOrderConfirmation(data.orderId);
  345. break
  346. }
  347. },
  348. handOrderConfirm (orderId){//确认收货
  349. this.$util.modal('提示','是否确认收货','确定','取消',true,() =>{
  350. this.OrderService.ConfirmReceipt({orderId:orderId}).then(response =>{
  351. this.beansType = 7
  352. this.beanNumber = 100
  353. this.isActivityBean = true
  354. }).catch(error =>{
  355. this.$util.msg(error.msg,2000)
  356. })
  357. })
  358. },
  359. handOrderConfirmation (orderId){//确认订单
  360. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  361. this.OrderService.AffirmOrder({orderId:orderId}).then(response =>{
  362. this.$util.msg(response.msg,2000,true,'success');
  363. setTimeout(() => {
  364. this.getOrderDatainit()
  365. },2000)
  366. }).catch(error =>{
  367. this.$util.msg(error.msg,2000)
  368. })
  369. })
  370. },
  371. handOrderDetele(orderId){//删除订单
  372. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  373. this.OrderService.DeleteOrder({orderId:orderId}).then(response =>{
  374. this.$util.msg(response.msg,2000,true,'success');
  375. setTimeout(() => {
  376. this.getOrderDatainit()
  377. },2000)
  378. }).catch(error =>{
  379. this.$util.msg(error.msg,2000)
  380. })
  381. })
  382. },
  383. handCenceConfirm(orderId){//取消订单
  384. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  385. this.OrderService.CancelOrder({orderId:orderId}).then(response =>{
  386. this.$util.msg(response.msg,2000,true,'success');
  387. setTimeout(() => {
  388. this.getOrderDatainit()
  389. },2000)
  390. }).catch(error =>{
  391. this.$util.msg(error.msg,2000)
  392. })
  393. })
  394. },
  395. onShareAppMessage (res){//分享转发
  396. this.isShareModal = false
  397. if (res.from === 'button') {// 来自页面内转发按钮
  398. }
  399. return {
  400. title: '您有新的分享订单,快来查看吧~',
  401. path: `/pages/user/order/order-sharelogin?orderID=${this.btnoRderID}&userId=${this.listQuery.userId}`,
  402. imageUrl:'https://static.caimei365.com/app/img/bg/min-banner.jpg'
  403. }
  404. },
  405. setScrollHeight() {
  406. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  407. this.windowHeight = windowHeight - 1;
  408. this.scrollHeight = windowHeight - 1;
  409. },
  410. PromotionsFormat(promo){//促销活动类型数据处理
  411. if(promo!=null){
  412. if(promo.type == 1 && promo.mode == 1){
  413. return true
  414. }else{
  415. return false
  416. }
  417. }
  418. return false
  419. },
  420. StateExpFormat(state){ //订单状态文字和颜色
  421. var HtmlStateText = '',
  422. stateTextObject={
  423. 0:'待确认',
  424. 4:'交易完成',
  425. 5:'订单完成',
  426. 6:'已关闭',
  427. 7:'交易全退',
  428. 77:'交易全退',
  429. 11:'待付款待发货',
  430. 12:'待付款部分发货',
  431. 13:'待付款已发货',
  432. 21:'部分付款待发货',
  433. 22:'部分付款部分发货',
  434. 23:'部分付款已发货',
  435. 31:'已付款待发货',
  436. 32:'已付款部分发货',
  437. 33:'已付款已发货',
  438. 111:'待付款待发货'
  439. };
  440. Object.keys(stateTextObject).forEach(function(key){
  441. if(key == state){
  442. HtmlStateText = stateTextObject[key]
  443. }
  444. });
  445. return HtmlStateText;
  446. },
  447. handleBeanlClick(){//关闭采美豆弹窗
  448. this.isActivityBean = false
  449. this.getOrderDatainit()
  450. },
  451. },
  452. onPageScroll(e) {
  453. this.scrollTop = e.scrollTop;
  454. },
  455. onShow() {
  456. this.setScrollHeight();
  457. }
  458. }
  459. </script>
  460. <style lang="scss">
  461. @import "@/uni.scss";
  462. page{
  463. background-color: #F7F7F7 !important;
  464. }
  465. .search{
  466. width: 702rpx;
  467. height: 70rpx;
  468. padding: 12rpx 24rpx;
  469. border-bottom: 1px solid #F0F0F0;
  470. position: fixed;
  471. top: 0;
  472. left: 0;
  473. background: #FFFFFF;
  474. z-index: 1001;
  475. .search-input{
  476. width: 448rpx;
  477. height: 70rpx;
  478. padding: 0 68rpx;
  479. line-height: 70rpx;
  480. border-radius: 40rpx;
  481. position: relative;
  482. background: #F0F0F0;
  483. float: left;
  484. .icon-iconfonticonfontsousuo1{
  485. font-size: 36rpx;
  486. color: #8A8A8A;
  487. position: absolute;
  488. left: 24rpx;
  489. z-index: 10;
  490. }
  491. .icon-shanchu1{
  492. font-size: 36rpx;
  493. color: #8A8A8A;
  494. position: absolute;
  495. right: 24rpx;
  496. top: 0;
  497. padding: 0 10rpx;
  498. z-index: 10;
  499. }
  500. input{
  501. width: 448rpx;
  502. height: 70rpx;
  503. background-color: #F0F0F0;
  504. font-size: 26rpx;
  505. }
  506. }
  507. .search-btn{
  508. width: 118rpx;
  509. height: 70rpx;
  510. line-height: 70rpx;
  511. color: $color-system;
  512. font-size: 30rpx;
  513. text-align: center;
  514. float: left;
  515. }
  516. .voice-icon{
  517. width: 36rpx;
  518. height: 36rpx;
  519. padding: 16rpx 20rpx 16rpx 0;
  520. position: absolute;
  521. left: 16rpx;
  522. top: 4rpx;
  523. z-index: 10;
  524. }
  525. }
  526. .search-container{
  527. padding-top: 106rpx;
  528. }
  529. .s-block{
  530. background: #FFFFFF;
  531. .header{
  532. font-size: 32rpx;
  533. padding:40rpx 24rpx 22rpx 24rpx;
  534. line-height: 42rpx;
  535. font-size: 30rpx;
  536. font-weight: bold;
  537. position: relative;
  538. .icon-shanchu{
  539. font-size: 36rpx;
  540. color: #333333;
  541. float: right;
  542. padding: 0 10rpx;
  543. z-index: 10;
  544. font-weight: normal;
  545. }
  546. }
  547. .list{
  548. display: flex;
  549. flex-wrap: wrap;
  550. padding-bottom: 40rpx;
  551. view{
  552. color: #8A8A8A;
  553. font-size: 24rpx;
  554. box-sizing: border-box;
  555. text-align: center;
  556. height: 48rpx;
  557. line-height: 48rpx;
  558. border-radius: 24rpx;
  559. margin:12rpx;
  560. padding:.0 30rpx;
  561. overflow: hidden;
  562. white-space: nowrap;
  563. text-overflow: ellipsis;
  564. background-color: #F3F3F3;
  565. }
  566. }
  567. }
  568. .s-circle{
  569. margin-top: 30rpx;
  570. .header{
  571. font-size: 32rpx;
  572. padding: 30rpx;
  573. border-bottom: 2rpx solid #F9F9F9;
  574. position: relative;
  575. image{
  576. width: 36rpx;
  577. height: 36rpx;
  578. padding: 10rpx;
  579. position: absolute;
  580. right: 40rpx;
  581. top: 24rpx;
  582. }
  583. }
  584. .list{
  585. display: flex;
  586. flex-wrap: wrap;
  587. padding: 0 30rpx 20rpx;
  588. view{
  589. padding: 8rpx 30rpx;
  590. margin: 20rpx 30rpx 0 0;
  591. font-size: 28rpx;
  592. color: #8A8A8A;
  593. background-color: #F7F7F7;
  594. box-sizing: border-box;
  595. text-align: center;
  596. border-radius: 20rpx;
  597. }
  598. }
  599. }
  600. .wanted-block{
  601. margin-top: 30rpx;
  602. .header{
  603. font-size: 32rpx;
  604. padding: 30rpx;
  605. }
  606. .list{
  607. display: flex;
  608. flex-wrap: wrap;
  609. view{
  610. width: 50%;
  611. color: #8A8A8A;
  612. font-size: 28rpx;
  613. box-sizing: border-box;
  614. text-align: center;
  615. padding: 20rpx 0;
  616. border-top: 2rpx solid #FFF;
  617. border-left: 2rpx solid #FFF;
  618. background-color: #F7F7F7;
  619. overflow: hidden;
  620. white-space: nowrap;
  621. text-overflow: ellipsis;
  622. }
  623. }
  624. }
  625. .wanted-circle{
  626. margin-top: 30rpx;
  627. .header{
  628. font-size: 32rpx;
  629. padding: 30rpx;
  630. }
  631. .list{
  632. display: flex;
  633. flex-wrap: wrap;
  634. padding: 0 30rpx 20rpx;
  635. view{
  636. padding: 8rpx 30rpx;
  637. margin: 20rpx 30rpx 0 0;
  638. font-size: 28rpx;
  639. color: #8A8A8A;
  640. background-color: #F7F7F7;
  641. box-sizing: border-box;
  642. text-align: center;
  643. border-radius: 20rpx;
  644. }
  645. }
  646. }
  647. .order-container {
  648. scroll-view {
  649. height: 100%;
  650. overflow: scroll;
  651. }
  652. }
  653. .container {
  654. padding-bottom: env(safe-area-inset-bottom);
  655. height: auto;
  656. position: relative;
  657. }
  658. .tui-order-content{
  659. width: 100%;
  660. height: auto;
  661. }
  662. .tui-order-list {
  663. width: 100%;
  664. position: relative;
  665. }
  666. .tui-order-item {
  667. display: flex;
  668. flex-direction: column;
  669. width: 702rpx;
  670. padding:20rpx 24rpx 0 24rpx;
  671. background: #fff;
  672. border-bottom: 20rpx solid #F7F7F7;
  673. }
  674. .order-title{
  675. width: 100%;
  676. height: auto;
  677. .order-title-t{
  678. width: 100%;
  679. height: 68rpx;
  680. float: left;
  681. line-height: 68rpx;
  682. position: relative;
  683. .bage-icon{
  684. width: 50rpx;
  685. height: 50rpx;
  686. display: block;
  687. position: absolute;
  688. right: 0;
  689. top: 9rpx;
  690. }
  691. .bage-buss{
  692. display: inline-block;
  693. width: 72rpx;
  694. height: 30rpx;
  695. background:radial-gradient(circle,rgba(255,39,180,1) 0%,rgba(193,77,245,1) 100%);
  696. border-radius: 4rpx;
  697. line-height: 30rpx;
  698. font-size: $font-size-22;
  699. text-align: center;
  700. color: #FFFFFF;
  701. }
  702. .bage-auto{
  703. display: inline-block;
  704. width: 72rpx;
  705. height: 30rpx;
  706. background:radial-gradient(circle,rgba(255,180,39,1) 0%,rgba(245,142,77,1) 100%);
  707. border-radius: 4rpx;
  708. line-height: 30rpx;
  709. font-size: $font-size-22;
  710. text-align: center;
  711. color: #FFFFFF;
  712. }
  713. .bage-text{
  714. display: inline-block;
  715. font-size: $font-size-28;
  716. line-height: 68rpx;
  717. text-align: left;
  718. color: $color-system;
  719. margin-left: 10rpx;
  720. }
  721. }
  722. .order-title-b{
  723. width: 100%;
  724. height: 40rpx;
  725. float: left;
  726. margin-top: 8rpx;
  727. .order-title-btxt{
  728. float: left;
  729. font-size: $font-size-28;
  730. line-height: 40rpx;
  731. color: #999999;
  732. text-align: lef
  733. }
  734. .order-title-tip{
  735. float: right;
  736. font-size: $font-size-28;
  737. line-height: 40rpx;
  738. text-align: right;
  739. color: #FF2A2A;
  740. }
  741. }
  742. }
  743. .goods-title{
  744. width: 100%;
  745. height: 56rpx;
  746. float: left;
  747. margin-top:10rpx;
  748. .floor-item-act{
  749. height: 56rpx;
  750. text-align: center;
  751. box-sizing: border-box;
  752. float: left;
  753. padding: 10rpx 0;
  754. margin-right: 12rpx;
  755. .floor-tags{
  756. height: 28rpx;
  757. border-radius: 6rpx;
  758. background-color: #FFFFFF;
  759. line-height: 28rpx;
  760. color: $color-system;
  761. text-align: center;
  762. display: inline-block;
  763. padding:0 16rpx;
  764. font-size: $font-size-20;
  765. border: 1px solid #E15616;
  766. float: left;
  767. }
  768. }
  769. .title-text{
  770. width: 400rpx;
  771. overflow: hidden;
  772. text-overflow:ellipsis;
  773. white-space: nowrap;
  774. float: left;
  775. font-size: $font-size-28;
  776. color: $text-color;
  777. text-align: left;
  778. line-height: 56rpx;
  779. font-weight: bold;
  780. }
  781. }
  782. .goods-item{
  783. width: 100%;
  784. height: auto;
  785. }
  786. .goods-pros-t{
  787. display: flex;
  788. align-items: center;
  789. width: 100%;
  790. height: 217rpx;
  791. padding:24rpx 0;
  792. .pros-img{
  793. float: left;
  794. width: 210rpx;
  795. height: 100%;
  796. border-radius: 10rpx;
  797. margin:0 26rpx 0 0;
  798. position: relative;
  799. .tips{
  800. display: inline-block;
  801. width: 80rpx;
  802. height: 40rpx;
  803. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  804. line-height: 40rpx;
  805. text-align: center;
  806. font-size: $font-size-24;
  807. color: #FFFFFF;
  808. border-radius:10rpx 0 10rpx 0 ;
  809. position: absolute;
  810. top:0;
  811. left: 0;
  812. }
  813. image{
  814. width: 210rpx;
  815. height: 210rpx;
  816. border-radius: 10rpx;
  817. border:1px solid #f3f3f3;
  818. }
  819. }
  820. }
  821. .pros-product{
  822. width: 468rpx;
  823. height: 100%;
  824. line-height: 36rpx;
  825. font-size: $font-size-26;
  826. position: relative;
  827. .producttitle{
  828. width: 100%;
  829. display: inline-block;
  830. height: auto;
  831. text-overflow:ellipsis;
  832. display: -webkit-box;
  833. word-break: break-all;
  834. -webkit-box-orient: vertical;
  835. -webkit-line-clamp: 2;
  836. overflow: hidden;
  837. margin-bottom: 8rpx;
  838. }
  839. .productspec{
  840. height: 36rpx;
  841. color: #999999;
  842. }
  843. .productprice{
  844. height: 48rpx;
  845. position: absolute;
  846. width: 100%;
  847. bottom: 0;
  848. .price{
  849. line-height: 48rpx;
  850. font-size: $font-size-28;
  851. width: 48%;
  852. color: #FF2A2A;
  853. float: left;
  854. font-weight: bold;
  855. }
  856. .count{
  857. height: 100%;
  858. float: right;
  859. position: relative;
  860. .small{
  861. color: #666666;
  862. }
  863. }
  864. }
  865. .floor-item-act{
  866. width: 100%;
  867. height: 56rpx;
  868. text-align: center;
  869. box-sizing: border-box;
  870. float: left;
  871. padding:0 0 10rpx 0;
  872. .floor-tags{
  873. height: 28rpx;
  874. border-radius: 6rpx;
  875. background-color: #FFFFFF;
  876. line-height: 28rpx;
  877. color: $color-system;
  878. text-align: center;
  879. display: inline-block;
  880. padding:0 16rpx;
  881. font-size: $font-size-20;
  882. border: 1px solid #E15616;
  883. float: left;
  884. }
  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. </style>