search-order.vue 20 KB

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