price.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. <template>
  2. <div class="hello">
  3. <!-- 库存-->
  4. <div class="priceBox stockBox" @click="priceHide" >
  5. <div class="stockCont" @click.stop="">
  6. <div class="stockTitle">价格
  7. <img src="../assets/img/pop_icon_close.png" alt="" class="stockclose" @click="priceHide">
  8. </div>
  9. <div class="priceBtitleBox">
  10. <div class="priceBk"></div>
  11. <div class="priceBtitle">等级价格</div>
  12. </div>
  13. <div class="priceFlbox">
  14. <div class="priceFl">
  15. <div class="priceFlTitle">最高价</div>
  16. <div class="priceFlNum">989933</div>
  17. </div>
  18. <div class="priceFl">
  19. <div class="priceFlTitle">标准价</div>
  20. <div class="priceFlNum" style="color: #FF4F00;">989933</div>
  21. </div>
  22. <div class="priceFl">
  23. <div class="priceFlTitle">最低价</div>
  24. <div class="priceFlNum">989933</div>
  25. </div>
  26. </div>
  27. <div class="priceBtitleBox">
  28. <div class="priceBk"></div>
  29. <div class="priceBtitle">近3次价格</div>
  30. </div>
  31. <div class="stTable" >
  32. <table class="table" border="1" bordercolor="#EEEEEE" style="border-collapse:collapse;">
  33. <tr>
  34. <td class="ptd1">销售日期</td>
  35. <td class="ptd1">销售价格</td>
  36. <td class="ptd1">销售数量</td>
  37. </tr>
  38. <tr>
  39. <td class="ptd2">2022-01-21</td>
  40. <td class="ptd2">122</td>
  41. <td class="ptd2">122</td>
  42. </tr>
  43. </table>
  44. </div>
  45. <div class="priceBtitleBox">
  46. <div class="priceBk"></div>
  47. <div class="priceBtitle">网点价</div>
  48. </div>
  49. <div class="priceFlbox">
  50. <div class="priceFl">
  51. <div class="priceFlTitle">网点价</div>
  52. <div class="priceFlNum" style="color: #FF4F00;">989933</div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </template>
  59. <script>
  60. export default {
  61. name: 'price',
  62. props: {
  63. msg: String
  64. },
  65. data(){
  66. return{
  67. active:1,
  68. value:'',
  69. showRight:false,
  70. stockShow:false,
  71. tableIndex:1,
  72. priceShow:false,
  73. thjShow:false,
  74. }
  75. },
  76. methods:{
  77. priceHide(){
  78. this.$emit('priceMethod');
  79. },
  80. stTable(index){
  81. this.tableIndex=index;
  82. },
  83. }
  84. }
  85. </script>
  86. <!-- Add "scoped" attribute to limit CSS to this component only -->
  87. <style scoped>
  88. .tihuanj{
  89. display: flex;
  90. }
  91. .tihuanjname{
  92. width: calc(100vw - 3rem);
  93. overflow:hidden;
  94. white-space: nowrap;
  95. text-overflow: ellipsis;
  96. -o-text-overflow:ellipsis;
  97. padding-left: 0.08rem;
  98. color: #3C3C3C;
  99. font-size: 0.26rem;
  100. line-height: 0.3rem;
  101. padding-right: 0.5rem;
  102. }
  103. .chu{
  104. font-weight: 500;
  105. color: #FFFFFF;
  106. font-size: 0.22rem;
  107. width: 0.30rem;
  108. height:0.30rem;
  109. background: #FF0000;
  110. border-radius: 0.04rem;
  111. }
  112. .priceBtitleBox{
  113. padding:0.3rem 0.32rem;
  114. display: flex;
  115. }
  116. .priceBk{
  117. width: 0.06rem;
  118. height: 0.24rem;
  119. background: #3F90F7;
  120. border-radius: 0.04rem;
  121. }
  122. .priceBtitle{
  123. font-weight: 500;
  124. color: #3C3C3C;
  125. font-size: 0.26rem;
  126. line-height: 0.3rem;
  127. padding-left: 0.1rem;
  128. }
  129. .priceFlbox{
  130. display: flex;
  131. padding:0.15rem 0.4rem;
  132. justify-content: space-between;
  133. text-align: center;
  134. }
  135. .priceFlTitle{
  136. font-weight: 400;
  137. color: #999999;
  138. font-size: 0.24rem;
  139. }
  140. .priceFlNum{
  141. font-size: 0.28rem;
  142. font-family: PingFangSC-Medium, PingFang SC;
  143. font-weight: 500;
  144. color: #333333;
  145. padding-top: 0.05rem;
  146. }
  147. .ptd1{
  148. width: 33%;background: #F4F5F7;
  149. }
  150. .ptd2{
  151. width: 33%;
  152. }
  153. .table{
  154. /* border-collapse:collapse; */
  155. font-size: 0.26rem;
  156. width: 100%;
  157. }
  158. .stTable{
  159. padding: 0.25rem;
  160. }
  161. .table tr td{
  162. text-align: center;
  163. padding: 0.15rem 0;
  164. /* border: 1px solid #EEEEEE; */
  165. }
  166. .th1{
  167. width: 70%;background: #F4F5F7;
  168. }
  169. .th2{
  170. width: 30%;background: #F4F5F7;
  171. }
  172. .td{
  173. font-size: 0.26rem;
  174. font-family: PingFangSC-Regular, PingFang SC;
  175. font-weight: 400;
  176. color: #666666;
  177. }
  178. .td2{
  179. font-size: 0.26rem;
  180. font-family: PingFangSC-Regular, PingFang SC;
  181. font-weight: 400;
  182. color: #3F90F7;
  183. }
  184. .stLinebox{
  185. display: flex;
  186. padding: 0.2rem 0.3rem;
  187. font-weight: 400;
  188. font-size: 0.28rem;
  189. color: #3C3C3C;
  190. line-height: 0.4rem;
  191. }
  192. .stLineActive{
  193. font-weight: 500;
  194. }
  195. .stLineKk{
  196. width: 0.40rem;
  197. height: 0.04rem;
  198. background: #3F90F7;
  199. margin: 0 auto;
  200. margin-top: 0.13rem;
  201. }
  202. .stockBox{
  203. width: 100%;height: 100%;
  204. position: fixed;
  205. left: 0;
  206. top: 0;
  207. background: rgba(0, 0, 0, 0.6);
  208. }
  209. .stockCont{
  210. height: 80vh;
  211. margin-top: 20vh;
  212. background: #ffffff;
  213. border-radius: 0.32rem 0.32rem 0px 0px;
  214. }
  215. .stockTitle{
  216. font-size: 0.30rem;
  217. font-family: PingFangSC-Medium, PingFang SC;
  218. font-weight: 500;
  219. color: #3C3C3C;
  220. padding-top: 0.42rem;
  221. padding-left: 0.32rem;
  222. display: flex;
  223. justify-content: space-between;
  224. padding-right: 0.32rem;
  225. }
  226. .stockclose{
  227. width: 0.28rem;height: 0.28rem;margin-top: 0.09rem;
  228. }
  229. .sGoodsName{
  230. font-weight: 400;
  231. color: #333333;
  232. font-size: 0.28rem;
  233. padding-top: 0.29rem;
  234. padding-left: 0.32rem;
  235. padding-right: 0.32rem;
  236. padding-bottom: 0.22rem;
  237. }
  238. .stockLineBox{
  239. display: flex;
  240. justify-content: space-around;
  241. font-size: 0.24rem;
  242. padding-bottom: 0.2rem;
  243. }
  244. .stockLine{
  245. text-align: center;
  246. }
  247. .stockLineTitle{
  248. color: #999999;
  249. }
  250. .stockLineNum{
  251. font-size: 0.28rem;
  252. font-family: PingFangSC-Medium, PingFang SC;
  253. font-weight: 500;
  254. color: #333333;
  255. padding-top: 0.1rem;
  256. }
  257. .categoryTop{
  258. position: fixed;
  259. left: 0;
  260. top: 0;
  261. width: 100%;
  262. }
  263. .flline{
  264. color: #666666;
  265. font-size: 0.26rem;
  266. padding: 0.25rem 0.2rem;
  267. }
  268. .flLineBox{
  269. padding-top: 2rem;
  270. }
  271. .categoryTitle{
  272. color: #333333;font-size: 0.24rem;padding-left: 0.2rem;
  273. padding-top: 0.6rem;
  274. padding-bottom: 0.18rem;
  275. }
  276. .fenleiLine{
  277. color: #3F90F7;font-size: 0.26rem;line-height: 0.88rem;
  278. }
  279. .fenleiJt{
  280. width: 0.13rem;height: 0.19rem;margin-top: 0.35rem;margin-left: 0.05rem;
  281. }
  282. .fenleiBox{
  283. width: 100%;
  284. background:#F4F5F7 ;
  285. display: flex;
  286. }
  287. .again{
  288. color: #666666;font-size: 0.26rem;
  289. padding: 0.18rem 0.3rem;
  290. }
  291. .icon_search{
  292. width: 0.3rem;height: 0.3rem;
  293. margin-top: 0.17rem;
  294. margin-left: 0.24rem;
  295. }
  296. .searchBox{
  297. display: flex;
  298. width: 7.02rem;
  299. height: 0.64rem;
  300. background: #F4F5F7;
  301. border-radius: 0.1rem;
  302. margin: 0 auto;
  303. }
  304. .searchInput{
  305. height: 0.64rem;
  306. line-height: 0.64rem;
  307. width: 6rem;
  308. font-size: 0.24rem;
  309. padding: 0;
  310. border: none;
  311. background: #F4F5F7;
  312. padding-left: 0.16rem;
  313. color: #999999;
  314. }
  315. .typeLine{
  316. display: flex;
  317. }
  318. .typeIcon{
  319. width: 0.24rem;height: 0.24rem;margin-top: 0.07rem;margin-left: 0.06rem;
  320. }
  321. .typeBox{
  322. display: flex;color: #333333;font-size: 0.26rem;
  323. padding: 0.18rem 0.24rem;
  324. }
  325. .goodsLineImg{
  326. width: 0.9rem;height: 0.9rem;
  327. }
  328. .delGoods{
  329. width: 0.5rem;
  330. height: 0.5rem;
  331. }
  332. .goodsName{
  333. color: #3C3C3C;
  334. font-size: 0.26rem;
  335. line-height: 0.37rem;
  336. }
  337. .goodsLine{
  338. display: flex;
  339. padding: 0.24rem;
  340. }
  341. .goodsright{
  342. display: flex;
  343. padding-bottom: 0.29rem;
  344. border-bottom: 1px solid #EEEEEE;
  345. }
  346. .goodsName{
  347. width: calc(100vw - 2.3rem);
  348. padding-right: 0.3rem;
  349. overflow:hidden;
  350. text-overflow:ellipsis;
  351. display:-webkit-box;
  352. -webkit-box-orient:vertical;
  353. -webkit-line-clamp:2;
  354. }
  355. .goodsright{
  356. width: calc(100vw - 1.48rem);
  357. padding-left: 0.2rem;
  358. }
  359. .goodsX{
  360. display: flex;
  361. padding-top: 0.08rem;
  362. }
  363. .goodsXcont{
  364. width: 50%;
  365. font-weight: 400;
  366. color: #999999;
  367. font-size: 0.24rem;
  368. }
  369. .goodsXSpan{
  370. color: #3F90F7;padding-left: 0.1rem;
  371. }
  372. .goodsPrice{
  373. color: #999999;
  374. font-size: 0.22rem;
  375. padding-top: 0.08rem;
  376. }
  377. .goodsPriceNum{
  378. color: #FF4F00;padding-right: 0.16rem;
  379. }
  380. .goodsBottom{
  381. display: flex; padding-top: 0.11rem;
  382. justify-content: space-between;
  383. }
  384. .goodsBottomLeft{
  385. display: flex;
  386. }
  387. .goodsThj{
  388. width: 1.30rem;
  389. height: 0.48rem;
  390. border-radius: 0.24rem;
  391. border: 1px solid #DDDDDD;
  392. line-height: 0.48rem;
  393. text-align: center;
  394. font-size: 0.24rem;
  395. color: #3C3C3C;
  396. }
  397. .transmission{
  398. width: 1.12rem;
  399. height: 0.48rem;
  400. border-radius: 0.24rem;
  401. border: 1px solid #3F90F7;
  402. color: #3F90F7;
  403. font-size: 0.24rem;
  404. text-align: center;
  405. line-height: 0.48rem;
  406. }
  407. </style>