search-order.vue 23 KB

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