search-order.vue 20 KB

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