search-order.vue 23 KB

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