search-order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  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?type=seacrch&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(data.orderId);
  299. break
  300. case 'cancel':
  301. this.handCenceConfirm(data.orderId)
  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()
  314. },2000)
  315. }).catch(response =>{
  316. this.$util.msg(response.msg,2000)
  317. })
  318. })
  319. },
  320. handOrderDetele(id){//删除订单
  321. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  322. deleteOrder({orderID:id}).then(response =>{
  323. this.$util.msg(response.msg,2000,true,'success');
  324. setTimeout(() => {
  325. this.getOrderDatainit()
  326. },2000)
  327. }).catch(response =>{
  328. this.$util.msg(response.msg,2000)
  329. })
  330. })
  331. },
  332. handCenceConfirm(id){//取消订单
  333. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  334. cancelOrder({orderID:id}).then(response =>{
  335. this.$util.msg(response.msg,2000,true,'success');
  336. setTimeout(() => {
  337. this.getOrderDatainit()
  338. },2000)
  339. }).catch(response =>{
  340. this.$util.msg(response.msg,2000)
  341. })
  342. })
  343. },
  344. onShareAppMessage (res){//分享转发
  345. this.isShareModal = false
  346. if (res.from === 'button') {// 来自页面内转发按钮
  347. }
  348. return {
  349. title: '您有新的分享订单,快来查看吧~',
  350. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.btnClubUserID}&serviceProviderId=${this.serviceProviderId}`,
  351. imageUrl:'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  352. }
  353. },
  354. //订单状态文字和颜色
  355. orderStateExp (state){
  356. let stateText = '',
  357. stateTextObject={
  358. 4:'交易完成',
  359. 5:'订单完成',
  360. 6:'已关闭',
  361. 7:'交易全退',
  362. 77:'交易全退',
  363. 11:'待付款待发货',
  364. 12:'待付款部分发货',
  365. 13:'待付款已发货',
  366. 21:'部分付款待发货',
  367. 22:'部分付款部分发货',
  368. 23:'部分付款已发货',
  369. 31:'已付款待发货',
  370. 32:'已付款部分发货',
  371. 33:'已付款已发货',
  372. 111:'待付款待发货',
  373. }
  374. Object.keys(stateTextObject).forEach(key => {
  375. if(key == state){
  376. stateText = stateTextObject[key]
  377. }
  378. })
  379. return stateText;
  380. },
  381. orderPriceToFixed (n){
  382. let price ='';
  383. price = n.toFixed(2);
  384. return price
  385. },
  386. setScrollHeight() {
  387. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  388. this.windowHeight = windowHeight - 1;
  389. this.scrollHeight = windowHeight - 1;
  390. }
  391. },
  392. onPageScroll(e) {
  393. this.scrollTop = e.scrollTop;
  394. },
  395. onShow() {
  396. this.setScrollHeight();
  397. this.$api.getStorage().then((resolve) =>{
  398. this.serviceProviderId = resolve.serviceProviderID
  399. })
  400. }
  401. }
  402. </script>
  403. <style lang="scss">
  404. @import "@/uni.scss";
  405. page{
  406. background-color: #F7F7F7 !important;
  407. }
  408. .search{
  409. width: 702rpx;
  410. height: 80rpx;
  411. padding: 12rpx 24rpx;
  412. border-bottom: 1px solid #F0F0F0;
  413. position: fixed;
  414. top: 0;
  415. left: 0;
  416. background: #FFFFFF;
  417. z-index: 1001;
  418. .search-input{
  419. width: 448rpx;
  420. height: 80rpx;
  421. padding: 0 68rpx;
  422. line-height: 80rpx;
  423. border-radius: 40rpx;
  424. position: relative;
  425. background: #F0F0F0;
  426. float: left;
  427. .icon-iconfonticonfontsousuo1{
  428. font-size: 36rpx;
  429. color: #8A8A8A;
  430. position: absolute;
  431. left: 24rpx;
  432. z-index: 10;
  433. }
  434. .icon-shanchu1{
  435. font-size: 36rpx;
  436. color: #8A8A8A;
  437. position: absolute;
  438. right: 24rpx;
  439. top: 0;
  440. padding: 0 10rpx;
  441. z-index: 10;
  442. }
  443. input{
  444. width: 448rpx;
  445. height: 80rpx;
  446. background-color: #F0F0F0;
  447. font-size: 26rpx;
  448. }
  449. }
  450. .search-btn{
  451. width: 118rpx;
  452. height: 80rpx;
  453. line-height: 80rpx;
  454. color: $color-system;
  455. font-size: 30rpx;
  456. text-align: center;
  457. float: left;
  458. }
  459. .voice-icon{
  460. width: 36rpx;
  461. height: 36rpx;
  462. padding: 16rpx 20rpx 16rpx 0;
  463. position: absolute;
  464. left: 16rpx;
  465. top: 4rpx;
  466. z-index: 10;
  467. }
  468. }
  469. .search-container{
  470. padding-top: 106rpx;
  471. }
  472. .s-block{
  473. background: #FFFFFF;
  474. .header{
  475. font-size: 32rpx;
  476. padding:40rpx 24rpx 22rpx 24rpx;
  477. line-height: 42rpx;
  478. font-size: 30rpx;
  479. font-weight: bold;
  480. position: relative;
  481. .icon-shanchu{
  482. font-size: 36rpx;
  483. color: #333333;
  484. float: right;
  485. padding: 0 10rpx;
  486. z-index: 10;
  487. font-weight: normal;
  488. }
  489. }
  490. .list{
  491. display: flex;
  492. flex-wrap: wrap;
  493. padding-bottom: 40rpx;
  494. view{
  495. color: #8A8A8A;
  496. font-size: 24rpx;
  497. box-sizing: border-box;
  498. text-align: center;
  499. height: 48rpx;
  500. line-height: 48rpx;
  501. border-radius: 24rpx;
  502. margin:12rpx;
  503. padding:.0 30rpx;
  504. overflow: hidden;
  505. white-space: nowrap;
  506. text-overflow: ellipsis;
  507. background-color: #F3F3F3;
  508. }
  509. }
  510. }
  511. .s-circle{
  512. margin-top: 30rpx;
  513. .header{
  514. font-size: 32rpx;
  515. padding: 30rpx;
  516. border-bottom: 2rpx solid #F9F9F9;
  517. position: relative;
  518. image{
  519. width: 36rpx;
  520. height: 36rpx;
  521. padding: 10rpx;
  522. position: absolute;
  523. right: 40rpx;
  524. top: 24rpx;
  525. }
  526. }
  527. .list{
  528. display: flex;
  529. flex-wrap: wrap;
  530. padding: 0 30rpx 20rpx;
  531. view{
  532. padding: 8rpx 30rpx;
  533. margin: 20rpx 30rpx 0 0;
  534. font-size: 28rpx;
  535. color: #8A8A8A;
  536. background-color: #F7F7F7;
  537. box-sizing: border-box;
  538. text-align: center;
  539. border-radius: 20rpx;
  540. }
  541. }
  542. }
  543. .wanted-block{
  544. margin-top: 30rpx;
  545. .header{
  546. font-size: 32rpx;
  547. padding: 30rpx;
  548. }
  549. .list{
  550. display: flex;
  551. flex-wrap: wrap;
  552. view{
  553. width: 50%;
  554. color: #8A8A8A;
  555. font-size: 28rpx;
  556. box-sizing: border-box;
  557. text-align: center;
  558. padding: 20rpx 0;
  559. border-top: 2rpx solid #FFF;
  560. border-left: 2rpx solid #FFF;
  561. background-color: #F7F7F7;
  562. overflow: hidden;
  563. white-space: nowrap;
  564. text-overflow: ellipsis;
  565. }
  566. }
  567. }
  568. .wanted-circle{
  569. margin-top: 30rpx;
  570. .header{
  571. font-size: 32rpx;
  572. padding: 30rpx;
  573. }
  574. .list{
  575. display: flex;
  576. flex-wrap: wrap;
  577. padding: 0 30rpx 20rpx;
  578. view{
  579. padding: 8rpx 30rpx;
  580. margin: 20rpx 30rpx 0 0;
  581. font-size: 28rpx;
  582. color: #8A8A8A;
  583. background-color: #F7F7F7;
  584. box-sizing: border-box;
  585. text-align: center;
  586. border-radius: 20rpx;
  587. }
  588. }
  589. }
  590. .order-container {
  591. scroll-view {
  592. height: 100%;
  593. overflow: scroll;
  594. }
  595. }
  596. .container {
  597. padding-bottom: env(safe-area-inset-bottom);
  598. height: auto;
  599. position: relative;
  600. }
  601. .tui-order-content{
  602. width: 100%;
  603. height: auto;
  604. }
  605. .tui-order-list {
  606. width: 100%;
  607. position: relative;
  608. }
  609. .tui-order-item {
  610. display: flex;
  611. flex-direction: column;
  612. width: 702rpx;
  613. padding:20rpx 24rpx 0 24rpx;
  614. background: #fff;
  615. border-bottom: 20rpx solid #F7F7F7;
  616. }
  617. .order-title{
  618. width: 100%;
  619. height: auto;
  620. .order-title-t{
  621. width: 100%;
  622. height: 40rpx;
  623. float: left;
  624. font-size: $font-size-28;
  625. line-height: 40rpx;
  626. font-weight: bold;
  627. .order-title-num{
  628. float: left;
  629. text-align: left;
  630. color: $color-system;
  631. }
  632. .order-title-tip{
  633. float: right;
  634. text-align: right;
  635. color: #FF2A2A;
  636. }
  637. }
  638. .order-title-b{
  639. width: 100%;
  640. height: 40rpx;
  641. float: left;
  642. margin-top: 8rpx;
  643. font-size: $font-size-28;
  644. line-height: 40rpx;
  645. color: #999999;
  646. text-align: left;
  647. }
  648. }
  649. .goods-title{
  650. width: 100%;
  651. height: 48rpx;
  652. float: left;
  653. margin-top: 24rpx;
  654. .title-logo{
  655. width: 48rpx;
  656. height: 48rpx;
  657. float: left;
  658. image{
  659. width: 48rpx;
  660. height: 48rpx;
  661. }
  662. }
  663. .title-text{
  664. float: left;
  665. margin-left: 16rpx;
  666. font-size: $font-size-28;
  667. color: $text-color;
  668. text-align: left;
  669. line-height: 48rpx;
  670. font-weight: bold;
  671. }
  672. }
  673. .goods-item{
  674. width: 100%;
  675. height: auto;
  676. }
  677. .goods-pros-t{
  678. display: flex;
  679. align-items: center;
  680. width: 100%;
  681. height: 217rpx;
  682. padding:24rpx 0;
  683. .pros-img{
  684. width: 210rpx;
  685. height: 100%;
  686. border-radius: 10rpx;
  687. margin:0 26rpx 0 0;
  688. border:1px solid #f3f3f3;
  689. image{
  690. width: 100%;
  691. height: 100%;
  692. border-radius: 10rpx;
  693. }
  694. }
  695. }
  696. .pros-product{
  697. width: 468rpx;
  698. height: 100%;
  699. line-height: 36rpx;
  700. font-size: $font-size-26;
  701. position: relative;
  702. .producttitle{
  703. width: 100%;
  704. display: inline-block;
  705. height: auto;
  706. text-overflow:ellipsis;
  707. display: -webkit-box;
  708. word-break: break-all;
  709. -webkit-box-orient: vertical;
  710. -webkit-line-clamp: 2;
  711. overflow: hidden;
  712. margin-bottom: 8rpx;
  713. }
  714. .productspec{
  715. height: 36rpx;
  716. color: #999999;
  717. }
  718. .productprice{
  719. height: 48rpx;
  720. position: absolute;
  721. width: 100%;
  722. bottom: 0;
  723. .price{
  724. line-height: 48rpx;
  725. font-size: $font-size-28;
  726. width: 48%;
  727. color: #FF2A2A;
  728. float: left;
  729. font-weight: bold;
  730. }
  731. .count{
  732. height: 100%;
  733. float: right;
  734. position: relative;
  735. .small{
  736. color: #666666;
  737. }
  738. }
  739. }
  740. }
  741. .order-footer{
  742. width: 100%;
  743. height: 78rpx;
  744. float: left;
  745. .order-footer-top{
  746. width: 100%;
  747. height: 34rpx;
  748. line-height: 34rpx;
  749. font-size: $font-size-24;
  750. color: #999999;
  751. text-align: right;
  752. }
  753. .order-footer-bot{
  754. width: 100%;
  755. float: left;
  756. height: 48rpx;
  757. line-height: 48rpx;
  758. font-size: $font-size-28;
  759. font-weight: bold;
  760. color: $text-color;
  761. .count{
  762. width: 50%;
  763. float: left;
  764. text-align: left;
  765. }
  766. .money{
  767. width: 50%;
  768. float: right;
  769. text-align: right;
  770. }
  771. }
  772. }
  773. </style>