querylist.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  1. <template>
  2. <view class="content">
  3. <scroll-view scroll-x class="bg-white nav">
  4. <view class="flex text-center">
  5. <view class="cu-item flex-sub" :class="0==TabCur?'text-orange cur':''" @tap="tabSelect" data-id="0">
  6. <text class="cuIcon-text"></text> 销售信息
  7. </view>
  8. <view class="cu-item flex-sub" :class="1==TabCur?'text-orange cur':''" @tap="tabSelect" data-id="1">
  9. <text class="cuIcon-cartfill"></text> 采购信息
  10. </view>
  11. <!-- <view v-if="showTran" class="cu-item flex-sub" :class="2==TabCur?'text-orange cur':''" @tap="tabSelect" data-id="2">
  12. <text class="cuIcon-deliver"></text> 货源信息
  13. </view>
  14. <view v-if="showTran" class="cu-item flex-sub" :class="3==TabCur?'text-orange cur':''" @tap="tabSelect" data-id="3">
  15. <text class="cuIcon-group"></text> 车辆信息
  16. </view> -->
  17. </view>
  18. </scroll-view>
  19. <swiper :current="TabCur" class="swiper-box" duration="300" @change="tabSelect">
  20. <swiper-item class="tab-content" data-id="1">
  21. <scroll-view class="list-scroll-content" scroll-y @scrolltolower="onReachBottomTmp">
  22. <block v-if="TabCur==0">
  23. <view class="introduce-section">
  24. <view v-for="(item, index) in saleInfo" :key="index" class="guess-item" @click="navToDetailPage(item)">
  25. <view class="price-box">
  26. <view class="title">{{item.title}}</view>
  27. <view class="title-tip" v-if='item.isFutures==0'>
  28. <text class="price-tip">¥</text>
  29. <text class="price">{{item.price}}</text>
  30. <text class="price-tip">元/吨</text>
  31. </view>
  32. <view class="title-tip" v-if='item.isFutures==1'>
  33. <text class="price-tip">今日基差</text>&nbsp;
  34. <text class="price-tip">¥</text>
  35. <text class="price">{{item.basis}}</text>
  36. </view>
  37. </view>
  38. <view class='cu-tag radius line-pink' v-if='item.isFutures==0'>现货</view>
  39. <view class='cu-tag radius line-pink' v-if='item.isFutures==1'>期货</view>
  40. <view class='cu-tag radius line-green'>{{item.goodsName}}</view>
  41. <view class='cu-tag radius line-yellow'>易粮易运</view>
  42. </view>
  43. <view v-show="isLoadMore">
  44. <uni-load-more :status="loadStatus"></uni-load-more>
  45. </view>
  46. </view>
  47. </block>
  48. </scroll-view>
  49. </swiper-item>
  50. <swiper-item class="tab-content" data-id="2">
  51. <scroll-view class="list-scroll-content" scroll-y @scrolltolower="onReachBottomTmp">
  52. <block v-if="TabCur==1">
  53. <view class="introduce-section">
  54. <view v-for="(item, index) in buyInfo" :key="index" class="guess-item" @click="navToDetailPage(item)">
  55. <view class="price-box">
  56. <view class="title">{{item.title}}</view>
  57. <template v-if='item.isFutures==0'>
  58. <view v-if="item.price !== 0" class="title-tip">
  59. <text class="price-tip">¥</text>
  60. <text class="price">{{item.price}}</text>
  61. <text class="price-tip">元/吨</text>
  62. </view>
  63. <view v-else class="title-tip">
  64. <text>市场价</text>
  65. </view>
  66. </template>
  67. <view class="title-tip" v-if='item.isFutures==1'>
  68. <text class="price-tip">今日基差</text>&nbsp;
  69. <text class="price-tip">¥</text>
  70. <text class="price">{{item.basis}}</text>
  71. </view>
  72. </view>
  73. <view class='cu-tag radius line-pink' v-if='item.isFutures==0'>现货</view>
  74. <view class='cu-tag radius line-pink' v-if='item.isFutures==1'>期货</view>
  75. <view class='cu-tag radius line-green'>{{item.goodsName}}</view>
  76. <view class='cu-tag radius line-yellow'>易粮易运</view>
  77. </view>
  78. <view v-show="isLoadMore">
  79. <uni-load-more :status="loadStatus"></uni-load-more>
  80. </view>
  81. </view>
  82. </block>
  83. </scroll-view>
  84. </swiper-item>
  85. </swiper>
  86. </view>
  87. </template>
  88. <script>
  89. export default {
  90. data() {
  91. return {
  92. titleNViewBackground: '',
  93. swiperCurrent: 0,
  94. swiperLength: 0,
  95. carouselList: [],
  96. windowSpuList: [],
  97. keywords:'',
  98. categoryPickList: [],
  99. categoryButtomList: [],
  100. salesTop: [],
  101. saleInfo: [],
  102. buyInfo: [],
  103. tranInfo:[],
  104. carInfo:[],
  105. banner: undefined,
  106. isVip: false,
  107. pageSize:10,
  108. currentPage:1,
  109. loadStatus:'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
  110. isLoadMore:false ,//是否加载中
  111. TabCur: 0,
  112. swiperHeight:'',
  113. showTran:true
  114. };
  115. },
  116. onShow() {
  117. this.showTran = uni.getStorageSync("showTran")
  118. },
  119. //下拉刷新
  120. onPullDownRefresh() {
  121. this.pages = 1
  122. this.isLoadMore = false
  123. this.loadStatus = 'loading'
  124. this.loadData()
  125. },
  126. onLoad(options) {
  127. // #ifdef H5
  128. this.headerTop = document.getElementsByTagName('uni-page-head')[0].offsetHeight + 'px';
  129. // #endif
  130. this.cateId = options.tid ? options.tid : 0;
  131. this.keywords = options.keywords ? options.keywords : ''
  132. this.TabCur = options.TabCur
  133. this.loadData();
  134. },
  135. onPageScroll(e) {
  136. //兼容iOS端下拉时顶部漂移
  137. if (e.scrollTop >= 0) {
  138. this.headerPosition = "fixed";
  139. } else {
  140. this.headerPosition = "absolute";
  141. }
  142. },
  143. //下拉刷新
  144. onPullDownRefresh() {
  145. this.pages = 1
  146. this.isLoadMore = false
  147. this.loadStatus = 'loading'
  148. this.loadData()
  149. },
  150. onReachBottom(){ //上拉触底函数
  151. if(!this.isLoadMore){ //此处判断,上锁,防止重复请求
  152. this.isLoadMore=true
  153. this.pages += 1
  154. this.getIndexSaleData()
  155. }
  156. },
  157. methods: {
  158. numFilter (value) {
  159. if(!value){
  160. return 0
  161. }
  162. // 截取当前数据到小数点后两位
  163. let realVal = parseFloat(value).toFixed(2)
  164. return realVal
  165. },
  166. tabSelect(e) {
  167. if(e.currentTarget.dataset.id){
  168. this.TabCur = e.currentTarget.dataset.id;
  169. }
  170. else{
  171. this.TabCur = e.target.current;
  172. }
  173. this.pages = 1
  174. this.isLoadMore = false
  175. this.loadData()
  176. },
  177. //加载商品 ,带下拉刷新和上滑加载
  178. async loadData() {
  179. uni.setNavigationBarTitle({
  180. title:"搜索关键字:"+this.keywords
  181. });
  182. const that = this
  183. uni.showLoading({
  184. title: '正在加载',
  185. mask:true
  186. })
  187. if(this.TabCur == 0){
  188. that.$api.request('goods', 'getSaleInfo',{
  189. keywords: this.keywords,
  190. page: this.pages,
  191. limit:this.limit
  192. }, failres => {
  193. if(failres.errmsg){
  194. uni.showToast({
  195. title: failres.errmsg,
  196. icon: 'none',
  197. duration: 2000
  198. })
  199. }
  200. else{
  201. uni.showToast({
  202. title: "系统异常,请联系管理员",
  203. icon: 'none',
  204. duration: 2000
  205. })
  206. }
  207. this.isLoadMore = false
  208. this.loadStatus = 'nomore'
  209. if(this.pages>1){this.pages=1}
  210. uni.hideLoading()
  211. uni.stopPullDownRefresh()
  212. }).then(res => {
  213. let data = res.data
  214. //销售信息
  215. if(data.saleInfo){
  216. that.saleInfo = data.saleInfo
  217. }
  218. uni.hideLoading()
  219. uni.stopPullDownRefresh()
  220. })
  221. }
  222. else if(this.TabCur == 1){
  223. that.$api.request('buy', 'getBuyListInfo',{
  224. keywords: this.keywords,
  225. page: this.pages,
  226. limit:this.limit
  227. }, failres => {
  228. if(failres.errmsg){
  229. uni.showToast({
  230. title: failres.errmsg,
  231. icon: 'none',
  232. duration: 2000
  233. })
  234. }
  235. else{
  236. uni.showToast({
  237. title: "系统异常,请联系管理员",
  238. icon: 'none',
  239. duration: 2000
  240. })
  241. }
  242. this.isLoadMore = false
  243. this.loadStatus = 'nomore'
  244. if(this.pages>1){this.pages=1}
  245. uni.hideLoading()
  246. uni.stopPullDownRefresh()
  247. }).then(res => {
  248. let data = res.data
  249. //销售信息
  250. if(data){
  251. that.buyInfo = data
  252. }
  253. uni.hideLoading()
  254. uni.stopPullDownRefresh()
  255. })
  256. }
  257. else if(this.TabCur == 2){
  258. that.$api.request('tran', 'getTranListInfo',{
  259. keywords: this.keywords,
  260. page: this.pages,
  261. limit:this.limit
  262. }, failres => {
  263. if(failres.errmsg){
  264. uni.showToast({
  265. title: failres.errmsg,
  266. icon: 'none',
  267. duration: 2000
  268. })
  269. }
  270. else{
  271. uni.showToast({
  272. title: "系统异常,请联系管理员",
  273. icon: 'none',
  274. duration: 2000
  275. })
  276. }
  277. this.isLoadMore = false
  278. this.loadStatus = 'nomore'
  279. if(this.pages>1){this.pages=1}
  280. uni.hideLoading()
  281. uni.stopPullDownRefresh()
  282. }).then(res => {
  283. let data = res.data
  284. console.log(data.tranInfo)
  285. //销售信息
  286. if(data.tranInfo){
  287. that.tranInfo = data.tranInfo
  288. }
  289. uni.hideLoading()
  290. uni.stopPullDownRefresh()
  291. })
  292. }
  293. else if(this.TabCur == 3){
  294. that.$api.request('tran', 'getCarListInfo',{
  295. keywords: this.keywords,
  296. page: this.pages,
  297. limit:this.limit
  298. }, failres => {
  299. if(failres.errmsg){
  300. uni.showToast({
  301. title: failres.errmsg,
  302. icon: 'none',
  303. duration: 2000
  304. })
  305. }
  306. else{
  307. uni.showToast({
  308. title: "系统异常,请联系管理员",
  309. icon: 'none',
  310. duration: 2000
  311. })
  312. }
  313. this.isLoadMore = false
  314. this.loadStatus = 'nomore'
  315. if(this.pages>1){this.pages=1}
  316. uni.hideLoading()
  317. uni.stopPullDownRefresh()
  318. }).then(res => {
  319. let data = res.data
  320. console.log(data.carInfo)
  321. //销售信息
  322. if(data.carInfo){
  323. that.carInfo = data.carInfo
  324. }
  325. uni.hideLoading()
  326. uni.stopPullDownRefresh()
  327. })
  328. }
  329. },
  330. //详情
  331. navToDetailPage(item) {
  332. //测试数据没有写id,用title代替
  333. let id = item.id;
  334. if(this.TabCur == 0){
  335. uni.navigateTo({
  336. url: `/pageA/product/buydetails?id=${id}`
  337. })
  338. }
  339. else if(this.TabCur == 1){
  340. uni.navigateTo({
  341. url: `/pageA/product/buydetails?id=${id}`
  342. })
  343. }
  344. // else if(this.TabCur == 2){
  345. // uni.navigateTo({
  346. // url: `/pages/tran/tran_detail?id=${id}`
  347. // })
  348. // }
  349. // else if(this.TabCur == 3){
  350. // uni.navigateTo({
  351. // url: `/pages/tran/car_detail?id=${id}`
  352. // })
  353. // }
  354. },
  355. onReachBottomTmp(){ //上拉触底函数
  356. if(!this.isLoadMore){ //此处判断,上锁,防止重复请求
  357. this.isLoadMore=true
  358. this.pages += 1
  359. this.getIndexSaleData()
  360. }
  361. },
  362. getIndexSaleData(){
  363. const that = this
  364. var pages=that.pages
  365. var limit=that.limit
  366. uni.showLoading({
  367. title: '正在加载',
  368. mask:true
  369. })
  370. if(this.TabCur == 0){
  371. that.$api.request('goods', 'getSaleListInfo', {
  372. keywords: this.keywords,
  373. page: pages,
  374. limit:limit
  375. },failres => {
  376. if(failres.errmsg){
  377. uni.showToast({
  378. title: failres.errmsg,
  379. icon: 'none',
  380. duration: 2000
  381. })
  382. }
  383. else{
  384. uni.showToast({
  385. title: "系统异常,请联系管理员",
  386. icon: 'none',
  387. duration: 2000
  388. })
  389. }
  390. that.isLoadMore=false
  391. that.loadStatus = 'nomore'
  392. if(that.pages>1){that.pages-=1}
  393. uni.hideLoading()
  394. }).then(res => {
  395. let data = res.data
  396. //销售信息
  397. if(data.saleInfo.length > 0){
  398. that.saleInfo = that.saleInfo.concat(data.saleInfo)
  399. that.isLoadMore=false
  400. }
  401. else{
  402. if(that.pages>1){that.pages-=1}
  403. that.isLoadMore=true
  404. that.loadStatus = 'nomore'
  405. }
  406. uni.hideLoading()
  407. })
  408. }
  409. else if(this.TabCur == 1){
  410. this.$api.doRequest('get', '/procurementPlanInfo/selectProcurementPlanInfo',{pageSize:this.pageSize,
  411. currentPage:this.currentPage,keywords:this.keywords}).then(res => {
  412. })
  413. .catch(res => {
  414. if(res.errmsg){
  415. uni.showToast({
  416. title: res.errmsg,
  417. icon: 'none',
  418. duration: 2000
  419. })
  420. }
  421. else{
  422. uni.showToast({
  423. title: "系统异常,请联系管理员",
  424. icon: 'none',
  425. duration: 2000
  426. })
  427. }
  428. });
  429. }
  430. else if(this.TabCur == 2){
  431. that.$api.request('tran', 'getTranListInfo', {
  432. keywords: this.keywords,
  433. page: pages,
  434. limit:limit
  435. },failres => {
  436. if(failres.errmsg){
  437. uni.showToast({
  438. title: failres.errmsg,
  439. icon: 'none',
  440. duration: 2000
  441. })
  442. }
  443. else{
  444. uni.showToast({
  445. title: "系统异常,请联系管理员",
  446. icon: 'none',
  447. duration: 2000
  448. })
  449. }
  450. that.isLoadMore=false
  451. that.loadStatus = 'nomore'
  452. if(that.pages>1){that.pages-=1}
  453. uni.hideLoading()
  454. }).then(res => {
  455. let data = res.data
  456. //销售信息
  457. if(data.tranInfo.length > 0){
  458. that.tranInfo = that.tranInfo.concat(data.tranInfo)
  459. that.isLoadMore=false
  460. }
  461. else{
  462. if(that.pages>1){that.pages-=1}
  463. that.isLoadMore=true
  464. that.loadStatus = 'nomore'
  465. }
  466. uni.hideLoading()
  467. })
  468. }
  469. else if(this.TabCur == 3){
  470. that.$api.request('tran', 'getCarListInfo', {
  471. keywords: this.keywords,
  472. page: pages,
  473. limit:limit
  474. },failres => {
  475. if(failres.errmsg){
  476. uni.showToast({
  477. title: failres.errmsg,
  478. icon: 'none',
  479. duration: 2000
  480. })
  481. }
  482. else{
  483. uni.showToast({
  484. title: "系统异常,请联系管理员",
  485. icon: 'none',
  486. duration: 2000
  487. })
  488. }
  489. that.isLoadMore=false
  490. that.loadStatus = 'nomore'
  491. if(that.pages>1){that.pages-=1}
  492. uni.hideLoading()
  493. }).then(res => {
  494. let data = res.data
  495. //销售信息
  496. if(data.carInfo.length > 0){
  497. that.carInfo = that.carInfo.concat(data.carInfo)
  498. that.isLoadMore=false
  499. }
  500. else{
  501. if(that.pages>1){that.pages-=1}
  502. that.isLoadMore=true
  503. that.loadStatus = 'nomore'
  504. }
  505. uni.hideLoading()
  506. })
  507. }
  508. }
  509. },
  510. }
  511. </script>
  512. <style lang="scss" scoped>
  513. page,
  514. .content {
  515. background: $page-color-base;
  516. height: 100%;
  517. }
  518. .navbar {
  519. position: fixed;
  520. left: 0;
  521. top: var(--window-top);
  522. display: flex;
  523. width: 100%;
  524. height: 80upx;
  525. background: #fff;
  526. box-shadow: 0 2upx 10upx rgba(0, 0, 0, .06);
  527. z-index: 10;
  528. .nav-item {
  529. flex: 1;
  530. display: flex;
  531. justify-content: center;
  532. align-items: center;
  533. height: 100%;
  534. font-size: 30upx;
  535. color: $font-color-dark;
  536. position: relative;
  537. &.current {
  538. color: $base-color;
  539. &:after {
  540. content: '';
  541. position: absolute;
  542. left: 50%;
  543. bottom: 0;
  544. transform: translateX(-50%);
  545. width: 120upx;
  546. height: 0;
  547. border-bottom: 4upx solid $base-color;
  548. }
  549. }
  550. }
  551. .p-box {
  552. display: flex;
  553. flex-direction: column;
  554. .yticon {
  555. display: flex;
  556. align-items: center;
  557. justify-content: center;
  558. width: 30upx;
  559. height: 14upx;
  560. line-height: 1;
  561. margin-left: 4upx;
  562. font-size: 26upx;
  563. color: #888;
  564. &.active {
  565. color: $base-color;
  566. }
  567. }
  568. .xia {
  569. transform: scaleY(-1);
  570. }
  571. }
  572. .cate-item {
  573. display: flex;
  574. justify-content: center;
  575. align-items: center;
  576. height: 100%;
  577. width: 80upx;
  578. position: relative;
  579. font-size: 44upx;
  580. &:after {
  581. content: '';
  582. position: absolute;
  583. left: 0;
  584. top: 50%;
  585. transform: translateY(-50%);
  586. border-left: 1px solid #ddd;
  587. width: 0;
  588. height: 36upx;
  589. }
  590. }
  591. }
  592. /* 分类 */
  593. .cate-mask {
  594. position: fixed;
  595. left: 0;
  596. top: var(--window-top);
  597. bottom: 0;
  598. width: 100%;
  599. background: rgba(0, 0, 0, 0);
  600. z-index: 95;
  601. transition: .3s;
  602. .cate-content {
  603. width: 630upx;
  604. height: 100%;
  605. background: #fff;
  606. float: right;
  607. transform: translateX(100%);
  608. transition: .3s;
  609. }
  610. &.none {
  611. display: none;
  612. }
  613. &.show {
  614. background: rgba(0, 0, 0, .4);
  615. .cate-content {
  616. transform: translateX(0);
  617. }
  618. }
  619. }
  620. .cate-list {
  621. display: flex;
  622. flex-direction: column;
  623. height: 100%;
  624. .cate-item {
  625. display: flex;
  626. align-items: center;
  627. height: 90upx;
  628. padding-left: 30upx;
  629. font-size: 28upx;
  630. color: #555;
  631. position: relative;
  632. }
  633. .two {
  634. height: 64upx;
  635. color: #303133;
  636. font-size: 30upx;
  637. background: #f8f8f8;
  638. }
  639. .active {
  640. color: $base-color;
  641. }
  642. }
  643. /* 商品列表 */
  644. .goods-list {
  645. display: flex;
  646. flex-wrap: wrap;
  647. padding: 0 30upx;
  648. background: #fff;
  649. .goods-item {
  650. display: flex;
  651. flex-direction: column;
  652. width: 48%;
  653. padding-bottom: 40upx;
  654. &:nth-child(2n+1) {
  655. margin-right: 4%;
  656. }
  657. }
  658. .image-wrapper {
  659. width: 100%;
  660. height: 330upx;
  661. border-radius: 3px;
  662. overflow: hidden;
  663. image {
  664. width: 100%;
  665. height: 100%;
  666. opacity: 1;
  667. }
  668. }
  669. .title {
  670. font-size: $font-lg;
  671. color: $font-color-dark;
  672. line-height: 80upx;
  673. }
  674. .price-box {
  675. display: flex;
  676. align-items: center;
  677. justify-content: space-between;
  678. padding-right: 10upx;
  679. font-size: 24upx;
  680. color: $font-color-light;
  681. }
  682. .price {
  683. font-size: $font-lg;
  684. color: $uni-color-primary;
  685. line-height: 1;
  686. &:before {
  687. content: '¥';
  688. font-size: 26upx;
  689. }
  690. }
  691. }
  692. .guess-section{
  693. display:flex;
  694. flex-wrap:wrap;
  695. padding: 0 30upx;
  696. background: #fff;
  697. .guess-item{
  698. display:flex;
  699. flex-direction: column;
  700. width: 98%;
  701. border-bottom:1px solid #ccc;
  702. }
  703. .image-wrapper{
  704. width: 100%;
  705. height: 330upx;
  706. border-radius: 3px;
  707. overflow: hidden;
  708. image{
  709. width: 100%;
  710. height: 100%;
  711. opacity: 1;
  712. }
  713. }
  714. .title{
  715. font-size: $font-lg;
  716. color: #121212;
  717. }
  718. .price-orther{
  719. font-size: $font-sm;
  720. color:$font-color-base;
  721. }
  722. .price{
  723. font-size: 64rpx;
  724. color: #39b54a;
  725. line-height: 1;
  726. padding-right: 10upx;
  727. }
  728. .goods1{
  729. font-size: $font-sm;
  730. color: $font-color-base;
  731. }
  732. .goods2{
  733. font-size: $font-sm;
  734. color: $font-color-base;
  735. padding-left: 10%;
  736. }
  737. .goods3{
  738. font-size: $font-sm;
  739. color: $font-color-base;
  740. padding-left: 10%;
  741. }
  742. .goods4{
  743. font-size: $font-sm;
  744. color: #ff5500;
  745. }
  746. .goods5{
  747. font-size: $font-sm;
  748. color: $font-color-base;
  749. }
  750. .view-item{
  751. width: 100%;
  752. // line-height: 40upx;
  753. padding-top: 10upx;
  754. }
  755. .confirm-btn {
  756. margin-left: 20%;
  757. }
  758. .date-time {
  759. margin-left: 30%;
  760. }
  761. .padding-xs-tmp {
  762. padding: 15upx 10upx 10upx 10upx;
  763. }
  764. }
  765. .swiper-box {
  766. height: calc(100% - 40px);
  767. }
  768. .list-scroll-content {
  769. height: 100%;
  770. }
  771. .uni-swiper-item {
  772. height: auto;
  773. }
  774. /* 销售信息 */
  775. .introduce-section {
  776. background: #fff;
  777. padding: 20upx 30upx;
  778. padding-bottom: 100upx;
  779. .guess-item {
  780. padding-bottom: 20upx;
  781. border-bottom: 1px solid #ccc;
  782. }
  783. .title {
  784. font-size: 28upx;
  785. color: $font-color-dark;
  786. font-weight:bold;
  787. height: 50upx;
  788. line-height: 50upx;
  789. flex:2.5;
  790. }
  791. .title-tip {
  792. flex:1;
  793. }
  794. .price-box {
  795. display: flex;
  796. align-items: baseline;
  797. height: 70upx;
  798. padding: 10upx 0;
  799. font-size: 26upx;
  800. color: $uni-color-primary;
  801. }
  802. .price {
  803. font-size: $font-lg + 2upx;
  804. }
  805. .m-price {
  806. margin: 0 12upx;
  807. color: $font-color-light;
  808. text-decoration: line-through;
  809. }
  810. .coupon-tip {
  811. align-items: center;
  812. padding: 4upx 10upx;
  813. background: $uni-color-primary;
  814. font-size: $font-sm;
  815. color: #fff;
  816. border-radius: 6upx;
  817. line-height: 1;
  818. transform: translateY(-4upx);
  819. }
  820. .bot-row {
  821. display: flex;
  822. align-items: center;
  823. height: 50upx;
  824. font-size: $font-sm;
  825. color: $font-color-light;
  826. view {
  827. flex: 1;
  828. }
  829. }
  830. }
  831. </style>