search-order.vue 22 KB

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