search-order.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  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. skeletonShow: true,
  163. isShareModal: false, // 控制分享弹窗
  164. isCenceModal: false, // 控制取消订单弹窗
  165. isShowDelModal: false, // 控制删除订单弹窗
  166. isModalLayer: false,
  167. loadding: false,
  168. pullUpOn: true,
  169. hasNextPage: false,
  170. pullFlag: true,
  171. navbarHeight:'',
  172. nomoreText: '上拉显示更多',
  173. scrollHeight:'',
  174. beansType:1,
  175. beanNumber:0,
  176. isActivityBean:false,
  177. }
  178. },
  179. onLoad() {
  180. this.initGetSerachRecord()
  181. },
  182. filters:{
  183. NumFormat(value) {//处理金额
  184. return Number(value).toFixed(2);
  185. }
  186. },
  187. methods:{
  188. subMitSearch() {
  189. if (this.listQuery.searchWord == '') {
  190. this.$util.msg('请输入商品关键词',2000);
  191. }else{
  192. this.commodityList =[]
  193. this.getOrderDatainit()
  194. }
  195. },
  196. async initGetSerachRecord(){
  197. const userInfo = await this.$api.getStorage()
  198. this.listQuery.userId = userInfo.userId ? userInfo.userId : 0
  199. this.OrderService.SearchOrderHistory({userId:this.listQuery.userId}).then(response =>{
  200. this.serachRecordList = response.data
  201. if(this.serachRecordList.length>0){
  202. this.isSearchHistory = true
  203. }else{
  204. this.isSearchHistory = false
  205. }
  206. }).catch(error =>{
  207. this.$util.msg(error.msg,2000)
  208. })
  209. },
  210. onShowClose () { //输入框失去焦点时触发
  211. this.inputEmpty(this.listQuery.searchWord)
  212. },
  213. onFocus () { //输入框获取焦点时触发
  214. this.inputEmpty(this.listQuery.searchWord)
  215. this.initGetSerachRecord()
  216. },
  217. delInputText () { //清除输入框内容
  218. this.listQuery.searchWord = ''
  219. this.isShowClose = false
  220. this.isShowWrapper = false
  221. this.inputEmpty(this.listQuery.searchWord)
  222. this.initGetSerachRecord()
  223. },
  224. keywordsClick (item) { //关键词搜索与历史搜索
  225. this.listQuery.searchWord = item;
  226. this.isShowClose = true;
  227. this.subMitSearch();
  228. },
  229. confirmDetele () {//清空历史记录
  230. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  231. this.OrderService.ClearOrderHistory({userId:this.listQuery.userId}).then(response =>{
  232. this.$util.msg('删除记录成功',2000,true,'success')
  233. this.serachRecordList=[]
  234. }).catch(error =>{
  235. this.$util.msg(error.msg,2000)
  236. })
  237. })
  238. },
  239. inputEmpty(val){
  240. this.isShowWrapper = false
  241. if(val != ''){
  242. this.isShowClose = true
  243. }else{
  244. this.isShowClose = false
  245. }
  246. },
  247. getOrderDatainit(index,source){
  248. this.OrderService.SearchOrderInfo(this.listQuery).then(response =>{
  249. this.isShowWrapper = true
  250. this.showSkeleton = true
  251. let data = response.data
  252. if(data && data.list.length > 0){
  253. let filrerData = data.list.filter(item=>{
  254. //添加不同状态下订单的表现形式
  255. item = Object.assign(item, this.StateExpFormat(item.status));
  256. return item;
  257. });
  258. this.orderList =[];
  259. filrerData.forEach(item=>{
  260. this.orderList.push(item);
  261. })
  262. this.hasNextPage = data
  263. if(this.hasNextPage){
  264. this.pullUpOn = false
  265. this.nomoreText = '上拉显示更多'
  266. }else{
  267. if(this.orderList.length < 2){
  268. this.pullUpOn = true
  269. }else{
  270. this.pullUpOn = false
  271. this.nomoreText = '已至底部'
  272. }
  273. }
  274. this.isShowEmpty = false
  275. }else{
  276. this.isShowEmpty = true
  277. }
  278. }).catch(error =>{
  279. this.$util.msg(error.msg,2000)
  280. })
  281. },
  282. getOnReachBottomData(){//上拉加载
  283. this.listQuery.pageNum+=1
  284. this.OrderService.SearchOrderInfo(this.listQuery).then(response =>{
  285. let data = response.data
  286. this.hasNextPage = data.hasNextPage;
  287. this.orderList = this.orderList.concat(data.list)
  288. this.pullFlag = false;// 防上拉暴滑
  289. setTimeout(()=>{this.pullFlag = true;},500)
  290. if(this.hasNextPage){
  291. this.pullUpOn = false
  292. this.nomoreText = '上拉显示更多'
  293. }else{
  294. this.loadding = false
  295. this.pullUpOn = false
  296. this.nomoreText = '已至底部'
  297. }
  298. }).catch(error =>{
  299. this.$util.msg(error.msg,2000)
  300. })
  301. },
  302. scrolltolower() {
  303. if(this.hasNextPage){
  304. this.loadding = true
  305. this.pullUpOn = true
  306. this.showSkeleton = false
  307. this.getOnReachBottomData();
  308. }
  309. },
  310. detail(orderId) {//订单详情跳转
  311. this.isModalLayer = true;
  312. this.$api.navigateTo(`/pages/user/order/order-details?type=search&orderId=${orderId}`)
  313. },
  314. handButtonConfirm(data) {//获取点击
  315. this.handShowAlert(data)
  316. this.btnoRderID = data.orderId
  317. },
  318. handShowAlert(data) {//执行
  319. switch(data.type){
  320. case 'delete':
  321. this.handOrderDetele(data.orderId);
  322. break
  323. case 'cancel':
  324. this.handCenceConfirm(data.orderId)
  325. break
  326. case 'query':
  327. this.isModalLayer = true;
  328. this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+data.orderId)
  329. break
  330. case 'confirm':
  331. this.handOrderConfirm(data.orderId);
  332. break
  333. case 'confirmation':
  334. this.handOrderConfirmation(data.orderId);
  335. break
  336. }
  337. },
  338. handOrderConfirm (orderId){//确认收货
  339. this.$util.modal('提示','是否确认收货','确定','取消',true,() =>{
  340. this.OrderService.ConfirmReceipt({orderId:orderId}).then(response =>{
  341. this.beansType = 7
  342. this.beanNumber = 100
  343. this.isActivityBean = true
  344. }).catch(error =>{
  345. this.$util.msg(error.msg,2000)
  346. })
  347. })
  348. },
  349. handOrderConfirmation (orderId){//确认订单
  350. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  351. this.OrderService.AffirmOrder({orderId:orderId}).then(response =>{
  352. this.$util.msg(response.msg,2000,true,'success');
  353. setTimeout(() => {
  354. this.getOrderDatainit()
  355. },2000)
  356. }).catch(error =>{
  357. this.$util.msg(error.msg,2000)
  358. })
  359. })
  360. },
  361. handOrderDetele(orderId){//删除订单
  362. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  363. this.OrderService.DeleteOrder({orderId:orderId}).then(response =>{
  364. this.$util.msg(response.msg,2000,true,'success');
  365. setTimeout(() => {
  366. this.getOrderDatainit()
  367. },2000)
  368. }).catch(error =>{
  369. this.$util.msg(error.msg,2000)
  370. })
  371. })
  372. },
  373. handCenceConfirm(orderId){//取消订单
  374. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  375. this.OrderService.CancelOrder({orderId:orderId}).then(response =>{
  376. this.$util.msg(response.msg,2000,true,'success');
  377. setTimeout(() => {
  378. this.getOrderDatainit()
  379. },2000)
  380. }).catch(error =>{
  381. this.$util.msg(error.msg,2000)
  382. })
  383. })
  384. },
  385. onShareAppMessage (res){//分享转发
  386. this.isShareModal = false
  387. if (res.from === 'button') {// 来自页面内转发按钮
  388. }
  389. return {
  390. title: '您有新的分享订单,快来查看吧~',
  391. path: `/pages/user/order/order-sharelogin?orderID=${this.btnoRderID}&userId=${this.listQuery.userId}`,
  392. imageUrl:'https://static.caimei365.com/app/img/bg/min-banner.jpg'
  393. }
  394. },
  395. setScrollHeight() {
  396. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  397. this.windowHeight = windowHeight - 1;
  398. this.scrollHeight = windowHeight - 1;
  399. },
  400. PromotionsFormat(promo){//促销活动类型数据处理
  401. if(promo!=null){
  402. if(promo.type == 1 && promo.mode == 1){
  403. return true
  404. }else{
  405. return false
  406. }
  407. }
  408. return false
  409. },
  410. StateExpFormat(state){ //订单状态文字和颜色
  411. var HtmlStateText = '',
  412. stateTextObject={
  413. 0:'待确认',
  414. 4:'交易完成',
  415. 5:'订单完成',
  416. 6:'已关闭',
  417. 7:'交易全退',
  418. 77:'交易全退',
  419. 11:'待付款待发货',
  420. 12:'待付款部分发货',
  421. 13:'待付款已发货',
  422. 21:'部分付款待发货',
  423. 22:'部分付款部分发货',
  424. 23:'部分付款已发货',
  425. 31:'已付款待发货',
  426. 32:'已付款部分发货',
  427. 33:'已付款已发货',
  428. 111:'待付款待发货'
  429. };
  430. Object.keys(stateTextObject).forEach(function(key){
  431. if(key == state){
  432. HtmlStateText = stateTextObject[key]
  433. }
  434. });
  435. return HtmlStateText;
  436. },
  437. handleBeanlClick(){//关闭采美豆弹窗
  438. this.isActivityBean = false
  439. this.getOrderDatainit()
  440. },
  441. },
  442. onPageScroll(e) {
  443. this.scrollTop = e.scrollTop;
  444. },
  445. onShow() {
  446. this.setScrollHeight();
  447. }
  448. }
  449. </script>
  450. <style lang="scss">
  451. @import "@/uni.scss";
  452. page{
  453. background-color: #F7F7F7 !important;
  454. }
  455. .search{
  456. width: 702rpx;
  457. height: 70rpx;
  458. padding: 12rpx 24rpx;
  459. border-bottom: 1px solid #F0F0F0;
  460. position: fixed;
  461. top: 0;
  462. left: 0;
  463. background: #FFFFFF;
  464. z-index: 1001;
  465. .search-input{
  466. width: 448rpx;
  467. height: 70rpx;
  468. padding: 0 68rpx;
  469. line-height: 70rpx;
  470. border-radius: 40rpx;
  471. position: relative;
  472. background: #F0F0F0;
  473. float: left;
  474. .icon-iconfonticonfontsousuo1{
  475. font-size: 36rpx;
  476. color: #8A8A8A;
  477. position: absolute;
  478. left: 24rpx;
  479. z-index: 10;
  480. }
  481. .icon-shanchu1{
  482. font-size: 36rpx;
  483. color: #8A8A8A;
  484. position: absolute;
  485. right: 24rpx;
  486. top: 0;
  487. padding: 0 10rpx;
  488. z-index: 10;
  489. }
  490. input{
  491. width: 448rpx;
  492. height: 70rpx;
  493. background-color: #F0F0F0;
  494. font-size: 26rpx;
  495. }
  496. }
  497. .search-btn{
  498. width: 118rpx;
  499. height: 70rpx;
  500. line-height: 70rpx;
  501. color: $color-system;
  502. font-size: 30rpx;
  503. text-align: center;
  504. float: left;
  505. }
  506. .voice-icon{
  507. width: 36rpx;
  508. height: 36rpx;
  509. padding: 16rpx 20rpx 16rpx 0;
  510. position: absolute;
  511. left: 16rpx;
  512. top: 4rpx;
  513. z-index: 10;
  514. }
  515. }
  516. .search-container{
  517. padding-top: 106rpx;
  518. }
  519. .s-block{
  520. background: #FFFFFF;
  521. .header{
  522. font-size: 32rpx;
  523. padding:40rpx 24rpx 22rpx 24rpx;
  524. line-height: 42rpx;
  525. font-size: 30rpx;
  526. font-weight: bold;
  527. position: relative;
  528. .icon-shanchu{
  529. font-size: 36rpx;
  530. color: #333333;
  531. float: right;
  532. padding: 0 10rpx;
  533. z-index: 10;
  534. font-weight: normal;
  535. }
  536. }
  537. .list{
  538. display: flex;
  539. flex-wrap: wrap;
  540. padding-bottom: 40rpx;
  541. view{
  542. color: #8A8A8A;
  543. font-size: 24rpx;
  544. box-sizing: border-box;
  545. text-align: center;
  546. height: 48rpx;
  547. line-height: 48rpx;
  548. border-radius: 24rpx;
  549. margin:12rpx;
  550. padding:.0 30rpx;
  551. overflow: hidden;
  552. white-space: nowrap;
  553. text-overflow: ellipsis;
  554. background-color: #F3F3F3;
  555. }
  556. }
  557. }
  558. .s-circle{
  559. margin-top: 30rpx;
  560. .header{
  561. font-size: 32rpx;
  562. padding: 30rpx;
  563. border-bottom: 2rpx solid #F9F9F9;
  564. position: relative;
  565. image{
  566. width: 36rpx;
  567. height: 36rpx;
  568. padding: 10rpx;
  569. position: absolute;
  570. right: 40rpx;
  571. top: 24rpx;
  572. }
  573. }
  574. .list{
  575. display: flex;
  576. flex-wrap: wrap;
  577. padding: 0 30rpx 20rpx;
  578. view{
  579. padding: 8rpx 30rpx;
  580. margin: 20rpx 30rpx 0 0;
  581. font-size: 28rpx;
  582. color: #8A8A8A;
  583. background-color: #F7F7F7;
  584. box-sizing: border-box;
  585. text-align: center;
  586. border-radius: 20rpx;
  587. }
  588. }
  589. }
  590. .wanted-block{
  591. margin-top: 30rpx;
  592. .header{
  593. font-size: 32rpx;
  594. padding: 30rpx;
  595. }
  596. .list{
  597. display: flex;
  598. flex-wrap: wrap;
  599. view{
  600. width: 50%;
  601. color: #8A8A8A;
  602. font-size: 28rpx;
  603. box-sizing: border-box;
  604. text-align: center;
  605. padding: 20rpx 0;
  606. border-top: 2rpx solid #FFF;
  607. border-left: 2rpx solid #FFF;
  608. background-color: #F7F7F7;
  609. overflow: hidden;
  610. white-space: nowrap;
  611. text-overflow: ellipsis;
  612. }
  613. }
  614. }
  615. .wanted-circle{
  616. margin-top: 30rpx;
  617. .header{
  618. font-size: 32rpx;
  619. padding: 30rpx;
  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. .order-container {
  638. scroll-view {
  639. height: 100%;
  640. overflow: scroll;
  641. }
  642. }
  643. .container {
  644. padding-bottom: env(safe-area-inset-bottom);
  645. height: auto;
  646. position: relative;
  647. }
  648. .tui-order-content{
  649. width: 100%;
  650. height: auto;
  651. }
  652. .tui-order-list {
  653. width: 100%;
  654. position: relative;
  655. }
  656. .tui-order-item {
  657. display: flex;
  658. flex-direction: column;
  659. width: 702rpx;
  660. padding:20rpx 24rpx 0 24rpx;
  661. background: #fff;
  662. border-bottom: 20rpx solid #F7F7F7;
  663. }
  664. .order-title{
  665. width: 100%;
  666. height: auto;
  667. .order-title-t{
  668. width: 100%;
  669. height: 68rpx;
  670. float: left;
  671. line-height: 68rpx;
  672. position: relative;
  673. .bage-icon{
  674. width: 50rpx;
  675. height: 50rpx;
  676. display: block;
  677. position: absolute;
  678. right: 0;
  679. top: 9rpx;
  680. }
  681. .bage-buss{
  682. display: inline-block;
  683. width: 72rpx;
  684. height: 30rpx;
  685. background:radial-gradient(circle,rgba(255,39,180,1) 0%,rgba(193,77,245,1) 100%);
  686. border-radius: 4rpx;
  687. line-height: 30rpx;
  688. font-size: $font-size-22;
  689. text-align: center;
  690. color: #FFFFFF;
  691. }
  692. .bage-auto{
  693. display: inline-block;
  694. width: 72rpx;
  695. height: 30rpx;
  696. background:radial-gradient(circle,rgba(255,180,39,1) 0%,rgba(245,142,77,1) 100%);
  697. border-radius: 4rpx;
  698. line-height: 30rpx;
  699. font-size: $font-size-22;
  700. text-align: center;
  701. color: #FFFFFF;
  702. }
  703. .bage-text{
  704. display: inline-block;
  705. font-size: $font-size-28;
  706. line-height: 68rpx;
  707. text-align: left;
  708. color: $color-system;
  709. margin-left: 10rpx;
  710. }
  711. }
  712. .order-title-b{
  713. width: 100%;
  714. height: 40rpx;
  715. float: left;
  716. margin-top: 8rpx;
  717. .order-title-btxt{
  718. float: left;
  719. font-size: $font-size-28;
  720. line-height: 40rpx;
  721. color: #999999;
  722. text-align: lef
  723. }
  724. .order-title-tip{
  725. float: right;
  726. font-size: $font-size-28;
  727. line-height: 40rpx;
  728. text-align: right;
  729. color: #FF2A2A;
  730. }
  731. }
  732. }
  733. .goods-title{
  734. width: 100%;
  735. height: 56rpx;
  736. float: left;
  737. margin-top:10rpx;
  738. .floor-item-act{
  739. height: 56rpx;
  740. text-align: center;
  741. box-sizing: border-box;
  742. float: left;
  743. padding: 10rpx 0;
  744. margin-right: 12rpx;
  745. .floor-tags{
  746. height: 28rpx;
  747. border-radius: 6rpx;
  748. background-color: #FFFFFF;
  749. line-height: 28rpx;
  750. color: $color-system;
  751. text-align: center;
  752. display: inline-block;
  753. padding:0 16rpx;
  754. font-size: $font-size-20;
  755. border: 1px solid #E15616;
  756. float: left;
  757. }
  758. }
  759. .title-text{
  760. width: 400rpx;
  761. overflow: hidden;
  762. text-overflow:ellipsis;
  763. white-space: nowrap;
  764. float: left;
  765. font-size: $font-size-28;
  766. color: $text-color;
  767. text-align: left;
  768. line-height: 56rpx;
  769. font-weight: bold;
  770. }
  771. }
  772. .goods-item{
  773. width: 100%;
  774. height: auto;
  775. }
  776. .goods-pros-t{
  777. display: flex;
  778. align-items: center;
  779. width: 100%;
  780. height: 217rpx;
  781. padding:24rpx 0;
  782. .pros-img{
  783. float: left;
  784. width: 210rpx;
  785. height: 100%;
  786. border-radius: 10rpx;
  787. margin:0 26rpx 0 0;
  788. position: relative;
  789. .tips{
  790. display: inline-block;
  791. width: 80rpx;
  792. height: 40rpx;
  793. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  794. line-height: 40rpx;
  795. text-align: center;
  796. font-size: $font-size-24;
  797. color: #FFFFFF;
  798. border-radius:10rpx 0 10rpx 0 ;
  799. position: absolute;
  800. top:0;
  801. left: 0;
  802. }
  803. image{
  804. width: 210rpx;
  805. height: 210rpx;
  806. border-radius: 10rpx;
  807. border:1px solid #f3f3f3;
  808. }
  809. }
  810. }
  811. .pros-product{
  812. width: 468rpx;
  813. height: 100%;
  814. line-height: 36rpx;
  815. font-size: $font-size-26;
  816. position: relative;
  817. .producttitle{
  818. width: 100%;
  819. display: inline-block;
  820. height: auto;
  821. text-overflow:ellipsis;
  822. display: -webkit-box;
  823. word-break: break-all;
  824. -webkit-box-orient: vertical;
  825. -webkit-line-clamp: 2;
  826. overflow: hidden;
  827. margin-bottom: 8rpx;
  828. }
  829. .productspec{
  830. height: 36rpx;
  831. color: #999999;
  832. }
  833. .productprice{
  834. height: 48rpx;
  835. position: absolute;
  836. width: 100%;
  837. bottom: 0;
  838. .price{
  839. line-height: 48rpx;
  840. font-size: $font-size-28;
  841. width: 48%;
  842. color: #FF2A2A;
  843. float: left;
  844. font-weight: bold;
  845. }
  846. .count{
  847. height: 100%;
  848. float: right;
  849. position: relative;
  850. .small{
  851. color: #666666;
  852. }
  853. }
  854. }
  855. .floor-item-act{
  856. width: 100%;
  857. height: 56rpx;
  858. text-align: center;
  859. box-sizing: border-box;
  860. float: left;
  861. padding:0 0 10rpx 0;
  862. .floor-tags{
  863. height: 28rpx;
  864. border-radius: 6rpx;
  865. background-color: #FFFFFF;
  866. line-height: 28rpx;
  867. color: $color-system;
  868. text-align: center;
  869. display: inline-block;
  870. padding:0 16rpx;
  871. font-size: $font-size-20;
  872. border: 1px solid #E15616;
  873. float: left;
  874. }
  875. }
  876. }
  877. .order-footer{
  878. width: 100%;
  879. height: 78rpx;
  880. float: left;
  881. .order-footer-top{
  882. width: 100%;
  883. height: 34rpx;
  884. line-height: 34rpx;
  885. font-size: $font-size-24;
  886. color: #999999;
  887. text-align: right;
  888. }
  889. .order-footer-bot{
  890. width: 100%;
  891. float: left;
  892. height: 48rpx;
  893. line-height: 48rpx;
  894. font-size: $font-size-28;
  895. font-weight: bold;
  896. color: $text-color;
  897. .count{
  898. width: 50%;
  899. float: left;
  900. text-align: left;
  901. }
  902. .money{
  903. width: 50%;
  904. float: right;
  905. text-align: right;
  906. }
  907. }
  908. }
  909. </style>