business.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917
  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. }
  444. .line.active {
  445. font-size: 19px;
  446. font-weight: 900;
  447. }
  448. .line.active:after {
  449. content: '';
  450. display: block;
  451. position: absolute;
  452. width: 36rpx;
  453. height: 6rpx;
  454. left: 50%;
  455. transform: translateX(-50%);
  456. bottom: 0;
  457. background: #22C572;
  458. /* border-bottom: 1px solid #22C572; */
  459. }
  460. .cu-tag.badge {
  461. right: 26rpx;
  462. }
  463. .cu-item {
  464. height: 80rpx;
  465. display: inline-block;
  466. line-height: 80rpx;
  467. }
  468. .search-form {
  469. background: #F5F6F9;
  470. padding-left: 20rpx;
  471. }
  472. .title-tip {
  473. color: #E63113;
  474. text-align: right;
  475. }
  476. .tag1 {
  477. background: #F5F6F9;
  478. padding: 2px;
  479. color: #333333;
  480. display: inline-flex;
  481. font-size: 22rpx;
  482. border-radius: 3px;
  483. margin: 3px;
  484. }
  485. .tag {
  486. background: #F5F6F9;
  487. padding: 7px 12px;
  488. color: #333333;
  489. display: inline-flex;
  490. font-size: 22rpx;
  491. border-radius: 15px;
  492. margin: 3px;
  493. }
  494. .tag-bule {
  495. background: #EBEEFA;
  496. color: #5C76DF;
  497. }
  498. .tag-green {
  499. background: #C6F7BC;
  500. color: #065112;
  501. }
  502. .tag-yellow {
  503. background: #F9F2EA;
  504. color: #BE9C69;
  505. }
  506. .tag-red {
  507. background: #FEECE6;
  508. color: #FE6430;
  509. }
  510. .text-white {
  511. color: #fff;
  512. }
  513. .text-white text {
  514. position: relative;
  515. z-index: 2;
  516. background: linear-gradient(45deg, #3DC146, #B2D612);
  517. padding: 5px 10px;
  518. border-radius: 38rpx;
  519. }
  520. .guess-section {
  521. padding-bottom: 100upx;
  522. display: flex;
  523. flex-wrap: wrap;
  524. padding: 0 30upx;
  525. background: #fff;
  526. .guess-item {
  527. display: flex;
  528. flex-direction: column;
  529. width: 98%;
  530. border-bottom: 1px solid #ccc;
  531. }
  532. .image-wrapper {
  533. width: 100%;
  534. height: 330upx;
  535. border-radius: 3px;
  536. overflow: hidden;
  537. image {
  538. width: 100%;
  539. height: 100%;
  540. opacity: 1;
  541. }
  542. }
  543. .title {
  544. font-size: $font-lg;
  545. color: #121212;
  546. }
  547. .price-orther {
  548. font-size: $font-sm;
  549. color: $font-color-base;
  550. }
  551. .price {
  552. font-size: 64rpx;
  553. color: #39b54a;
  554. line-height: 1;
  555. padding-right: 10upx;
  556. }
  557. .goods1 {
  558. font-size: $font-sm;
  559. color: $font-color-base;
  560. }
  561. .goods2 {
  562. font-size: $font-sm;
  563. color: $font-color-base;
  564. padding-left: 10%;
  565. }
  566. .goods3 {
  567. font-size: $font-sm;
  568. color: $font-color-base;
  569. padding-left: 10%;
  570. }
  571. .goods4 {
  572. font-size: $font-sm;
  573. color: #ff5500;
  574. }
  575. .goods5 {
  576. font-size: $font-sm;
  577. color: $font-color-base;
  578. }
  579. .view-item {
  580. width: 100%;
  581. // line-height: 40upx;
  582. padding-top: 10upx;
  583. }
  584. .confirm-btn {
  585. margin-left: 20%;
  586. }
  587. .date-time {
  588. margin-left: 30%;
  589. }
  590. .padding-xs-tmp {
  591. padding: 15upx 10upx 10upx 10upx;
  592. }
  593. }
  594. .navbar {
  595. position: fixed;
  596. left: 0;
  597. top: var(--window-top);
  598. display: flex;
  599. width: 100%;
  600. height: 80upx;
  601. background: #fff;
  602. box-shadow: 0 2upx 10upx rgba(0, 0, 0, .06);
  603. z-index: 10;
  604. .nav-item {
  605. flex: 1;
  606. display: flex;
  607. justify-content: center;
  608. align-items: center;
  609. height: 100%;
  610. font-size: 30upx;
  611. color: $font-color-dark;
  612. position: relative;
  613. &.current {
  614. color: $base-color;
  615. &:after {
  616. content: '';
  617. position: absolute;
  618. left: 50%;
  619. bottom: 0;
  620. transform: translateX(-50%);
  621. width: 120upx;
  622. height: 0;
  623. border-bottom: 4upx solid $base-color;
  624. }
  625. }
  626. }
  627. .p-box {
  628. display: flex;
  629. flex-direction: column;
  630. .yticon {
  631. display: flex;
  632. align-items: center;
  633. justify-content: center;
  634. width: 30upx;
  635. height: 14upx;
  636. line-height: 1;
  637. margin-left: 4upx;
  638. font-size: 26upx;
  639. color: #888;
  640. &.active {
  641. color: $base-color;
  642. }
  643. }
  644. .xia {
  645. transform: scaleY(-1);
  646. }
  647. }
  648. .cate-item {
  649. display: flex;
  650. justify-content: center;
  651. align-items: center;
  652. height: 100%;
  653. width: 80upx;
  654. position: relative;
  655. font-size: 44upx;
  656. &:after {
  657. content: '';
  658. position: absolute;
  659. left: 0;
  660. top: 50%;
  661. transform: translateY(-50%);
  662. border-left: 1px solid #ddd;
  663. width: 0;
  664. height: 36upx;
  665. }
  666. }
  667. }
  668. /* 分类 */
  669. .cate-mask {
  670. position: fixed;
  671. left: 0;
  672. top: var(--window-top);
  673. bottom: 0;
  674. width: 100%;
  675. background: rgba(0, 0, 0, 0);
  676. z-index: 95;
  677. transition: .3s;
  678. .cate-content {
  679. width: 630upx;
  680. height: 100%;
  681. background: #fff;
  682. float: right;
  683. transform: translateX(100%);
  684. transition: .3s;
  685. }
  686. &.none {
  687. display: none;
  688. }
  689. &.show {
  690. background: rgba(0, 0, 0, .4);
  691. .cate-content {
  692. transform: translateX(0);
  693. }
  694. }
  695. }
  696. .cate-list {
  697. display: flex;
  698. flex-direction: column;
  699. height: 100%;
  700. .cate-item {
  701. display: flex;
  702. align-items: center;
  703. height: 90upx;
  704. padding-left: 30upx;
  705. font-size: 28upx;
  706. color: #555;
  707. position: relative;
  708. }
  709. .two {
  710. height: 64upx;
  711. color: #303133;
  712. font-size: 30upx;
  713. background: #f8f8f8;
  714. }
  715. .active {
  716. color: $base-color;
  717. }
  718. }
  719. .introduce-section {
  720. padding-top: 135px;
  721. }
  722. .introduce-section .title {
  723. font-size: 17px;
  724. height: 40px;
  725. line-height: 40px;
  726. flex: 2.5;
  727. /* border-bottom: 1px solid #EEEEEE; */
  728. }
  729. .introduce-section .address {
  730. color: #878C9C;
  731. font-size: 12px;
  732. /* padding-left:10px; */
  733. }
  734. .introduce-section .price {
  735. /* padding-left:10px; */
  736. color: #FD714F;
  737. font-size: 19px;
  738. font-weight: 700;
  739. }
  740. .introduce-section .guess-item {
  741. border-radius: 10px;
  742. background: #fff;
  743. padding: 0upx 30upx 20upx;
  744. margin: 18upx;
  745. /* border-bottom: 1px solid #ccc; */
  746. }
  747. /* 销售信息 */
  748. .introduce-section {
  749. .title-tip {
  750. flex: 1;
  751. }
  752. .price-box {
  753. display: flex;
  754. align-items: baseline;
  755. font-size: 26upx;
  756. }
  757. .price {
  758. font-size: $font-lg + 2upx;
  759. }
  760. .m-price {
  761. margin: 0 12upx;
  762. color: $font-color-light;
  763. text-decoration: line-through;
  764. }
  765. .coupon-tip {
  766. align-items: center;
  767. padding: 4upx 10upx;
  768. background: $uni-color-primary;
  769. font-size: $font-sm;
  770. color: #fff;
  771. border-radius: 6upx;
  772. line-height: 1;
  773. transform: translateY(-4upx);
  774. }
  775. .bot-row {
  776. display: flex;
  777. align-items: center;
  778. height: 50upx;
  779. font-size: $font-sm;
  780. color: $font-color-light;
  781. view {
  782. flex: 1;
  783. }
  784. }
  785. }
  786. .side-bg {
  787. position: absolute;
  788. width: 64px;
  789. height: 64px;
  790. z-index: 1;
  791. }
  792. .drag {
  793. position: relative;
  794. display: flex;
  795. justify-content: center;
  796. align-items: center;
  797. color: $uni-text-color-inverse;
  798. width: 64px;
  799. height: 64px;
  800. background: transparent;
  801. font-size: $uni-font-size-sm;
  802. position: fixed;
  803. z-index: 9;
  804. &.transition {
  805. transition: left .3s ease, top .3s ease;
  806. }
  807. }
  808. .top-style {
  809. position: fixed;
  810. width: 100%;
  811. }
  812. .status_bar {
  813. width: 100%;
  814. }
  815. .search-title {
  816. font-size: 28rpx;
  817. color: #AFB3BF;
  818. }
  819. .tag {
  820. font-size: 24rpx;
  821. }
  822. .align-item-center {
  823. align-items: center;
  824. }
  825. .number-style{
  826. font-size: 44rpx;
  827. }
  828. .fabu{
  829. position:fixed;
  830. bottom:60px;right:0;
  831. width:64px;
  832. height:64px;
  833. }
  834. .back{
  835. position:fixed;
  836. bottom:130px;right:7px;
  837. width:52px;
  838. height:52px;
  839. }
  840. </style>