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