search-order.vue 22 KB

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