search-order.vue 21 KB

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