search-order.vue 24 KB

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