business.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  1. <template>
  2. <view>
  3. <view :style="statusBarHeight" class="status_bar">
  4. </view>
  5. <view class="top-style">
  6. <view style='background:#fff;border-bottom:1px solid #EEE;padding-bottom:10px;'>
  7. <view class="cu-bar search">
  8. <view style='position:absolute;left:30px;top:50%;transform: translateY(-50%);' @click='status=true'>
  9. {{location}}
  10. <image style='width:10px;height:6px;margin-left:4px;position:relative;top:-2px;'
  11. src='../../static/img/jiaoyi/down.png'></image>
  12. </view>
  13. <u-picker mode="selector" @confirm='locationChange' v-model="status" :range="locationType">
  14. </u-picker>
  15. <!-- <view>
  16. <picker style='display:inline-block;' @change="locationChange" :value="location"
  17. :range="locationType">
  18. <view class="picker">
  19. {{location>-1?locationType[location]:'请选择'}}
  20. </view>
  21. </picker>
  22. <image style='width:10px;height:6px;margin-left:4px;position:relative;top:-2px;'
  23. src='../../static/img/jiaoyi/down.png'></image>
  24. </view> -->
  25. <view class="search-form round" @click="naviageToPage('/pageA/product/lookup?TabCur=')">
  26. <text style='color: #ccc;text-indent:56px;' class="cuIcon-search"></text>
  27. <view class="Medium search-title"> 请输入货名或标题</view>
  28. </view>
  29. </view>
  30. <view style='margin:0 15px;' class="Medium">
  31. <view class='tag radius line-pink' @click="sousuo('玉米')">玉米</view>
  32. <view class='tag radius line-pink' @click="sousuo('大豆')">大豆</view>
  33. <view class='tag radius line-pink' @click="sousuo('小麦')">小麦</view>
  34. <view class='tag radius line-pink' @click="sousuo('水稻')">水稻</view>
  35. <view class='tag radius line-pink' @click="sousuo('高粱')">高粱</view>
  36. </view>
  37. </view>
  38. <view style='background:#fff;padding:0 15px;border-radius:0rpx 0rpx 30rpx 30rpx;' class="Semibold">
  39. <view @click='tabcarchange(0)' class='line' :class='TabCur==0?"active":""'>采购</view>
  40. <view @click='tabcarchange(1)' class='line' :class='TabCur==1?"active":""'>销售</view>
  41. </view>
  42. </view>
  43. <view v-if='buyInfo.length>0' class="introduce-section Semibold">
  44. <view v-for="(item, index) in buyInfo" :key="index" class="guess-item" @click="navToDetailPage(item)">
  45. <view class="price-box">
  46. <view class="title Medium">{{item.title}}</view>
  47. </view>
  48. <view class='flex justify-between align-item-center Regular'>
  49. <view v-if='TabCur==0' class='address'>
  50. {{item.receivePrivate}}{{item.receiveCity}}{{item.receiveArea}}{{item.receiveWarehouse}}
  51. </view>
  52. <view v-if='TabCur==1' class='address'>
  53. {{item.sendPrivate}}{{item.sendCity}}{{item.sendArea}}{{item.sendWarehouse}}
  54. </view>
  55. <view class='price NumberBold' v-if='item.procurementPlanType=="期货"'>
  56. <text class="number-style">{{item.basisPrice}}</text><text style='font-size:13px;color:#333333;'
  57. class="Semibold">元/吨</text></view>
  58. <view class='price NumberBold' v-if='item.procurementPlanType=="现货"'>
  59. <text class="number-style">{{item.procurementPrice}}</text><text style='font-size:13px;color:#333;'
  60. class="Semibold">元/吨</text></view>
  61. <view class='price NumberBold' v-if='item.salePlanType=="期货"'><text class="number-style">+{{item.basisPrice}}</text><text
  62. style='font-size:13px;color:#333333;' class="Semibold">元/吨</text></view>
  63. <view class='price NumberBold' v-if='item.salePlanType=="现货"'><text class="number-style">{{item.salePrice}}</text><text
  64. style='font-size:13px;color:#333;' class="Semibold">元/吨</text></view>
  65. </view>
  66. <view class='flex justify-between Regular'>
  67. <view class="Regular">
  68. <view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="现货"'>现货</view>
  69. <view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="期货"'>期货</view>
  70. <view class='tag1 tag-bule radius line-pink' v-if='item.salePlanType=="现货"'>现货</view>
  71. <view class='tag1 tag-bule radius line-pink' v-if='item.salePlanType=="期货"'>期货</view>
  72. <view class='tag1 tag-yellow radius line-green'>{{item.goodsName}}</view>
  73. <view class='tag1 tag-red radius line-yellow' v-if="TabCur== 0">{{item.plannedPurchaseVolume}}吨
  74. </view>
  75. <view class='tag1 tag-red radius line-yellow' v-if="TabCur== 1">{{item.plannedSaleVolume}}吨
  76. </view>
  77. </view>
  78. <view style='font-size: 12px;color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="期货" && TabCur== 0'>
  79. 今日基差</view>
  80. <view style='font-size: 12px;color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="现货" && TabCur== 0'>
  81. 采购价格</view>
  82. <view style='font-size: 12px;color:#878C9C;padding-top:5px;' v-if='item.salePlanType=="期货" && TabCur== 1'>今日基差
  83. </view>
  84. <view style='font-size: 12px;color:#878C9C;padding-top:5px;' v-if='item.salePlanType=="现货" && TabCur== 1'>销售价格
  85. </view>
  86. </view>
  87. </view>
  88. <view v-show="isLoadMore">
  89. <uni-load-more :status="loadStatus"></uni-load-more>
  90. </view>
  91. </view>
  92. <view style='height:65vh;background:#F5F6FA;line-height:65vh;text-align:center;' v-if='buyInfo.length==0'>
  93. 当前暂无结果
  94. </view>
  95. <u-back-top :scroll-top="scrollTop" tips="顶部" :custom-style="{backgroundColor: '#a0cfff',color: '#2979ff'}"
  96. :iconStyle="{color: '#2979ff',fontSize: '34rpx'}" mode="square" icon="arrow-up"></u-back-top>
  97. </view>
  98. </template>
  99. <script>
  100. export default {
  101. name: "business",
  102. data() {
  103. return {
  104. PageCur: "buy",
  105. buyInfo: [],
  106. limit: 10, //每次取条目数
  107. loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
  108. isLoadMore: false, //是否加载中
  109. showTran: true,
  110. scrollTop: 0,
  111. status: false,
  112. pageSize: 10,
  113. searchKeyWord: '',
  114. receivePrivate: '全国',
  115. currentPage: 1,
  116. categoryList: [{
  117. title: '我要买粮',
  118. id: '0'
  119. }, {
  120. title: '我要卖粮',
  121. id: '1'
  122. }],
  123. TabCur: 0,
  124. current: 1,
  125. location: '全国',
  126. params: {
  127. province: true,
  128. },
  129. locationType: ['全国', '黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古', '四川', '湖南', '湖北', '辽宁',
  130. '江西', '云南', '新疆', '山西', '广西', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
  131. '宁夏', '天津', '海南', '青海', '西藏', '上海', '北京'
  132. ],
  133. statusBarHeight: "height:"
  134. }
  135. },
  136. onShow() {
  137. uni.showTabBar()
  138. uni.hideKeyboard()
  139. var userInfo = uni.getStorageSync("userInfo")
  140. var that = this
  141. console.log("userInfo", userInfo)
  142. // setTimeout(function() {
  143. // that.$api.doRequest('get', '/appVersion/test', {
  144. // userId: "7e83070d05fc4d50aaa46e00a3ee03d8"
  145. // }).then(res => {
  146. // })
  147. // }, 500);
  148. this.$api.doRequest('get', '/salePlanInfo/getTips', {
  149. phone: userInfo.phone
  150. }).then(res => {
  151. if (res.data.data) {
  152. let name = 'myTip';
  153. let value = res.data.data.myTip;
  154. that.$store.commit('$uStore', {
  155. name,
  156. value
  157. });
  158. if (value != 0) {
  159. uni.setTabBarBadge({
  160. index: 4,
  161. text: value + ""
  162. })
  163. }
  164. name = 'taskTip';
  165. value = res.data.data.taskTip;
  166. that.$store.commit('$uStore', {
  167. name,
  168. value
  169. });
  170. name = 'contractTip';
  171. value = res.data.data.contractTip;
  172. that.$store.commit('$uStore', {
  173. name,
  174. value
  175. });
  176. }
  177. })
  178. },
  179. onLoad(options) {
  180. console.log("buy onload")
  181. var that = this
  182. uni.getSystemInfo({
  183. success: function(res) {
  184. console.log("statusBarHeight", res.statusBarHeight)
  185. that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
  186. },
  187. });
  188. this.cateId = options.tid ? options.tid : 0;
  189. this.keywords = options.keywords ? options.keywords : ''
  190. this.loadData();
  191. },
  192. onPageScroll(e) {
  193. this.scrollTop = e.scrollTop;
  194. },
  195. //下拉刷新
  196. onPullDownRefresh() {
  197. this.currentPage = 1
  198. this.isLoadMore = false
  199. this.loadStatus = 'loading'
  200. this.loadData()
  201. setTimeout(function() {
  202. uni.stopPullDownRefresh();
  203. }, 1000);
  204. },
  205. onReachBottom() { //上拉触底函数
  206. if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
  207. this.isLoadMore = true
  208. this.currentPage += 1
  209. this.getIndexBuyData()
  210. }
  211. },
  212. methods: {
  213. sousuo(name) {
  214. var page = '/pageA/product/lookup?TabCur=' + this.TabCur + '&searchKeyWord=' + name
  215. uni.navigateTo({
  216. url: page,
  217. fail() {
  218. uni.switchTab({
  219. url: page
  220. })
  221. }
  222. })
  223. },
  224. tabcarchange(status) {
  225. this.TabCur = status
  226. this.currentPage = 1
  227. this.pageSize = 10
  228. this.loadData()
  229. },
  230. naviageToPage(page) {
  231. page = page + this.TabCur
  232. uni.navigateTo({
  233. url: page,
  234. fail() {
  235. uni.switchTab({
  236. url: page
  237. })
  238. }
  239. })
  240. },
  241. locationChange(e) {
  242. console.log(e)
  243. this.location = this.locationType[e[0]]
  244. this.receivePrivate = this.locationType[e[0]]
  245. this.currentPage = 1
  246. this.loadData()
  247. },
  248. tabSelect(e) {
  249. this.TabCur = e.currentTarget.dataset.id;
  250. this.category = this.TabCur
  251. this.currentPage = 1
  252. this.loadData()
  253. },
  254. fabu() {
  255. uni.showActionSheet({
  256. itemList: ['我要买粮', '我要卖粮'],
  257. success(res) {
  258. console.log(res.tapIndex)
  259. },
  260. fail(res) {
  261. console.log(res.errMsg)
  262. }
  263. })
  264. // uni.navigateTo({
  265. // url: `/pageB/trust/trust`
  266. // })
  267. },
  268. //加载商品 ,带下拉刷新和上滑加载
  269. async loadData(type = 'add', loading) {
  270. const that = this
  271. uni.showLoading({
  272. title: '正在加载'
  273. })
  274. var param1 = ''
  275. if (that.TabCur == 0) {
  276. param1 = '/procurementPlanInfo/selectProcurementPlanInfo'
  277. } else {
  278. param1 = '/salePlanInfo/selectSalePlanInfo'
  279. }
  280. this.$api.doRequest('get', param1, {
  281. pageSize: this.pageSize,
  282. showFlag: 1,
  283. currentPage: this.currentPage,
  284. searchKeyWord: this.searchKeyWord,
  285. receivePrivate: this.receivePrivate
  286. }).then(res => {
  287. uni.hideLoading()
  288. this.buyInfo = res.data.data.records
  289. })
  290. .catch(res => {
  291. uni.hideLoading()
  292. if (res.errmsg) {
  293. uni.showToast({
  294. title: res.errmsg,
  295. icon: 'none',
  296. duration: 2000
  297. })
  298. } else {
  299. uni.showToast({
  300. title: "系统异常,请联系管理员",
  301. icon: 'none',
  302. duration: 2000
  303. })
  304. }
  305. });
  306. // that.$api.request(param1, param2, {
  307. // page: 1,
  308. // limit: 10
  309. // }, failres => {
  310. // that.$api.msg(failres.errmsg)
  311. // that.isLoadMore = false
  312. // that.loadStatus = 'nomore'
  313. // if (that.pages > 1) {
  314. // that.pages -= 1
  315. // }
  316. // uni.hideLoading()
  317. // }).then(res => {
  318. // let data = null
  319. // if (that.TabCur == 0) {
  320. // data = res.data.saleInfo
  321. // } else {
  322. // data = res.data
  323. // }
  324. // uni.stopPullDownRefresh()
  325. // //采购信息
  326. // if (data.length > 0) {
  327. // that.buyInfo = data
  328. // that.isLoadMore = false
  329. // } else {
  330. // if (that.pages > 1) {
  331. // that.pages -= 1
  332. // }
  333. // that.isLoadMore = true
  334. // that.loadStatus = 'nomore'
  335. // }
  336. // uni.hideLoading()
  337. // })
  338. },
  339. //详情
  340. navToDetailPage(item) {
  341. let id = item.id;
  342. if (this.TabCur == 0) {
  343. uni.navigateTo({
  344. url: `/pageA/product/detail?id=${id}&compId=${item.compId}`
  345. })
  346. } else {
  347. uni.navigateTo({
  348. url: `/pageA/product/sales_detail?id=${id}&compId=${item.compId}`
  349. })
  350. }
  351. },
  352. getIndexBuyData() {
  353. const that = this
  354. uni.showLoading({
  355. title: '正在加载'
  356. })
  357. var param1 = ''
  358. if (that.TabCur == 0) {
  359. param1 = '/procurementPlanInfo/selectProcurementPlanInfo'
  360. } else {
  361. param1 = '/salePlanInfo/selectSalePlanInfo'
  362. }
  363. this.$api.doRequest('get', param1, {
  364. pageSize: this.pageSize,
  365. showFlag: 1,
  366. currentPage: this.currentPage,
  367. searchKeyWord: this.searchKeyWord,
  368. receivePrivate: this.receivePrivate
  369. }).then(res => {
  370. uni.hideLoading()
  371. // this.buyInfo = res.data.records
  372. let data = res.data.data.records
  373. //采购信息
  374. if (data.length > 0) {
  375. that.buyInfo = that.buyInfo.concat(data)
  376. that.isLoadMore = false
  377. } else {
  378. if (that.currentPage > 1) {
  379. that.currentPage -= 1
  380. }
  381. that.isLoadMore = true
  382. that.loadStatus = 'nomore'
  383. }
  384. })
  385. .catch(res => {
  386. uni.hideLoading()
  387. if (res.errmsg) {
  388. uni.showToast({
  389. title: res.errmsg,
  390. icon: 'none',
  391. duration: 2000
  392. })
  393. } else {
  394. uni.showToast({
  395. title: "系统异常,请联系管理员",
  396. icon: 'none',
  397. duration: 2000
  398. })
  399. }
  400. });
  401. }
  402. }
  403. }
  404. </script>
  405. <style lang='scss'>
  406. page,
  407. .content {
  408. background: #F5F6FA;
  409. }
  410. .line {
  411. display: inline-block;
  412. padding: 5px;
  413. position: relative;
  414. font-size: 17px;
  415. }
  416. .line.active {
  417. font-size: 19px;
  418. font-weight: 900;
  419. }
  420. .line.active:after {
  421. content: '';
  422. display: block;
  423. position: absolute;
  424. width: 36rpx;
  425. height: 6rpx;
  426. left: 50%;
  427. transform: translateX(-50%);
  428. bottom: 0;
  429. background: #22C572;
  430. /* border-bottom: 1px solid #22C572; */
  431. }
  432. .cu-tag.badge {
  433. right: 26rpx;
  434. }
  435. .cu-item {
  436. height: 80rpx;
  437. display: inline-block;
  438. line-height: 80rpx;
  439. }
  440. .search-form {
  441. background: #F5F6F9;
  442. padding-left: 20rpx;
  443. }
  444. .title-tip {
  445. color: #E63113;
  446. text-align: right;
  447. }
  448. .tag1 {
  449. background: #F5F6F9;
  450. padding: 2px;
  451. color: #333333;
  452. display: inline-flex;
  453. font-size: 22rpx;
  454. border-radius: 3px;
  455. margin: 3px;
  456. }
  457. .tag {
  458. background: #F5F6F9;
  459. padding: 7px 12px;
  460. color: #333333;
  461. display: inline-flex;
  462. font-size: 22rpx;
  463. border-radius: 15px;
  464. margin: 3px;
  465. }
  466. .tag-bule {
  467. background: #EBEEFA;
  468. color: #5C76DF;
  469. }
  470. .tag-green {
  471. background: #C6F7BC;
  472. color: #065112;
  473. }
  474. .tag-yellow {
  475. background: #F9F2EA;
  476. color: #BE9C69;
  477. }
  478. .tag-red {
  479. background: #FEECE6;
  480. color: #FE6430;
  481. }
  482. .text-white {
  483. color: #fff;
  484. }
  485. .text-white text {
  486. position: relative;
  487. z-index: 2;
  488. background: linear-gradient(45deg, #3DC146, #B2D612);
  489. padding: 5px 10px;
  490. border-radius: 38rpx;
  491. }
  492. .guess-section {
  493. padding-bottom: 100upx;
  494. display: flex;
  495. flex-wrap: wrap;
  496. padding: 0 30upx;
  497. background: #fff;
  498. .guess-item {
  499. display: flex;
  500. flex-direction: column;
  501. width: 98%;
  502. border-bottom: 1px solid #ccc;
  503. }
  504. .image-wrapper {
  505. width: 100%;
  506. height: 330upx;
  507. border-radius: 3px;
  508. overflow: hidden;
  509. image {
  510. width: 100%;
  511. height: 100%;
  512. opacity: 1;
  513. }
  514. }
  515. .title {
  516. font-size: $font-lg;
  517. color: #121212;
  518. }
  519. .price-orther {
  520. font-size: $font-sm;
  521. color: $font-color-base;
  522. }
  523. .price {
  524. font-size: 64rpx;
  525. color: #39b54a;
  526. line-height: 1;
  527. padding-right: 10upx;
  528. }
  529. .goods1 {
  530. font-size: $font-sm;
  531. color: $font-color-base;
  532. }
  533. .goods2 {
  534. font-size: $font-sm;
  535. color: $font-color-base;
  536. padding-left: 10%;
  537. }
  538. .goods3 {
  539. font-size: $font-sm;
  540. color: $font-color-base;
  541. padding-left: 10%;
  542. }
  543. .goods4 {
  544. font-size: $font-sm;
  545. color: #ff5500;
  546. }
  547. .goods5 {
  548. font-size: $font-sm;
  549. color: $font-color-base;
  550. }
  551. .view-item {
  552. width: 100%;
  553. // line-height: 40upx;
  554. padding-top: 10upx;
  555. }
  556. .confirm-btn {
  557. margin-left: 20%;
  558. }
  559. .date-time {
  560. margin-left: 30%;
  561. }
  562. .padding-xs-tmp {
  563. padding: 15upx 10upx 10upx 10upx;
  564. }
  565. }
  566. .navbar {
  567. position: fixed;
  568. left: 0;
  569. top: var(--window-top);
  570. display: flex;
  571. width: 100%;
  572. height: 80upx;
  573. background: #fff;
  574. box-shadow: 0 2upx 10upx rgba(0, 0, 0, .06);
  575. z-index: 10;
  576. .nav-item {
  577. flex: 1;
  578. display: flex;
  579. justify-content: center;
  580. align-items: center;
  581. height: 100%;
  582. font-size: 30upx;
  583. color: $font-color-dark;
  584. position: relative;
  585. &.current {
  586. color: $base-color;
  587. &:after {
  588. content: '';
  589. position: absolute;
  590. left: 50%;
  591. bottom: 0;
  592. transform: translateX(-50%);
  593. width: 120upx;
  594. height: 0;
  595. border-bottom: 4upx solid $base-color;
  596. }
  597. }
  598. }
  599. .p-box {
  600. display: flex;
  601. flex-direction: column;
  602. .yticon {
  603. display: flex;
  604. align-items: center;
  605. justify-content: center;
  606. width: 30upx;
  607. height: 14upx;
  608. line-height: 1;
  609. margin-left: 4upx;
  610. font-size: 26upx;
  611. color: #888;
  612. &.active {
  613. color: $base-color;
  614. }
  615. }
  616. .xia {
  617. transform: scaleY(-1);
  618. }
  619. }
  620. .cate-item {
  621. display: flex;
  622. justify-content: center;
  623. align-items: center;
  624. height: 100%;
  625. width: 80upx;
  626. position: relative;
  627. font-size: 44upx;
  628. &:after {
  629. content: '';
  630. position: absolute;
  631. left: 0;
  632. top: 50%;
  633. transform: translateY(-50%);
  634. border-left: 1px solid #ddd;
  635. width: 0;
  636. height: 36upx;
  637. }
  638. }
  639. }
  640. /* 分类 */
  641. .cate-mask {
  642. position: fixed;
  643. left: 0;
  644. top: var(--window-top);
  645. bottom: 0;
  646. width: 100%;
  647. background: rgba(0, 0, 0, 0);
  648. z-index: 95;
  649. transition: .3s;
  650. .cate-content {
  651. width: 630upx;
  652. height: 100%;
  653. background: #fff;
  654. float: right;
  655. transform: translateX(100%);
  656. transition: .3s;
  657. }
  658. &.none {
  659. display: none;
  660. }
  661. &.show {
  662. background: rgba(0, 0, 0, .4);
  663. .cate-content {
  664. transform: translateX(0);
  665. }
  666. }
  667. }
  668. .cate-list {
  669. display: flex;
  670. flex-direction: column;
  671. height: 100%;
  672. .cate-item {
  673. display: flex;
  674. align-items: center;
  675. height: 90upx;
  676. padding-left: 30upx;
  677. font-size: 28upx;
  678. color: #555;
  679. position: relative;
  680. }
  681. .two {
  682. height: 64upx;
  683. color: #303133;
  684. font-size: 30upx;
  685. background: #f8f8f8;
  686. }
  687. .active {
  688. color: $base-color;
  689. }
  690. }
  691. .introduce-section {
  692. padding-top: 135px;
  693. }
  694. .introduce-section .title {
  695. font-size: 17px;
  696. height: 40px;
  697. line-height: 40px;
  698. flex: 2.5;
  699. /* border-bottom: 1px solid #EEEEEE; */
  700. }
  701. .introduce-section .address {
  702. color: #878C9C;
  703. font-size: 12px;
  704. /* padding-left:10px; */
  705. }
  706. .introduce-section .price {
  707. /* padding-left:10px; */
  708. color: #FD714F;
  709. font-size: 19px;
  710. font-weight: 700;
  711. }
  712. .introduce-section .guess-item {
  713. border-radius: 10px;
  714. background: #fff;
  715. padding: 0upx 30upx 20upx;
  716. margin: 18upx;
  717. /* border-bottom: 1px solid #ccc; */
  718. }
  719. /* 销售信息 */
  720. .introduce-section {
  721. .title-tip {
  722. flex: 1;
  723. }
  724. .price-box {
  725. display: flex;
  726. align-items: baseline;
  727. font-size: 26upx;
  728. }
  729. .price {
  730. font-size: $font-lg + 2upx;
  731. }
  732. .m-price {
  733. margin: 0 12upx;
  734. color: $font-color-light;
  735. text-decoration: line-through;
  736. }
  737. .coupon-tip {
  738. align-items: center;
  739. padding: 4upx 10upx;
  740. background: $uni-color-primary;
  741. font-size: $font-sm;
  742. color: #fff;
  743. border-radius: 6upx;
  744. line-height: 1;
  745. transform: translateY(-4upx);
  746. }
  747. .bot-row {
  748. display: flex;
  749. align-items: center;
  750. height: 50upx;
  751. font-size: $font-sm;
  752. color: $font-color-light;
  753. view {
  754. flex: 1;
  755. }
  756. }
  757. }
  758. .side-bg {
  759. position: absolute;
  760. width: 64px;
  761. height: 64px;
  762. z-index: 1;
  763. }
  764. .drag {
  765. position: relative;
  766. display: flex;
  767. justify-content: center;
  768. align-items: center;
  769. color: $uni-text-color-inverse;
  770. width: 64px;
  771. height: 64px;
  772. background: transparent;
  773. font-size: $uni-font-size-sm;
  774. position: fixed;
  775. z-index: 9;
  776. &.transition {
  777. transition: left .3s ease, top .3s ease;
  778. }
  779. }
  780. .top-style {
  781. position: fixed;
  782. width: 100%;
  783. }
  784. .status_bar {
  785. width: 100%;
  786. }
  787. .search-title {
  788. font-size: 28rpx;
  789. color: #AFB3BF;
  790. }
  791. .tag {
  792. font-size: 24rpx;
  793. }
  794. .align-item-center {
  795. align-items: center;
  796. }
  797. .number-style{
  798. font-size: 44rpx;
  799. }
  800. </style>