search-order.vue 20 KB

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