business.vue 21 KB

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