search-order.vue 24 KB

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