search-order.vue 24 KB

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