0元购项目,Web调用原生的demo

common.css 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. body {
  2. margin: 0;
  3. display: flex;
  4. flex-direction: column;
  5. height: 100vh;
  6. /*width: 100vh;*/
  7. background-color:#F3F3F3;
  8. }
  9. .toobar {
  10. height: 5%;
  11. display: flex;
  12. align-items: center;
  13. background-color: white;
  14. }
  15. .toobar img {
  16. width: 10px;
  17. height: 20px;
  18. padding-left: 5px;
  19. padding-right: 5px;
  20. margin-left: 10px;
  21. }
  22. .toobar font {
  23. position: relative;
  24. left: 50%;
  25. transform: translate(-100%, 0);
  26. }
  27. .up {
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: center;
  31. /*padding-left: 20px;*/
  32. padding-bottom: 20px;
  33. width: 100%;
  34. /*height: 23%;*/
  35. /*设置上边框*/
  36. background: #FFFFFF;
  37. border-top: #F3F3F3 2px;
  38. border-top-style: solid;
  39. box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.05);
  40. border-radius: 0px 0px 4px 4px;
  41. font-weight: 600;
  42. font-family: PingFangSC-Semibold, PingFang SC;
  43. }
  44. .up font{
  45. margin-left: 20px;
  46. }
  47. .upFont0{
  48. color: black;
  49. }
  50. .upFont1{
  51. color: black;
  52. margin-top: 10px;
  53. }
  54. .upFont2{
  55. color: #2D5FEE;
  56. margin-top: 20px;
  57. }
  58. .upFont3{
  59. color: black;
  60. margin-top: 20px;
  61. }
  62. .middle {
  63. width: 100%;
  64. height: 57%;
  65. background-color:transparent;
  66. /*padding: 20px;*/
  67. display: flex;
  68. flex-direction: column;
  69. }
  70. .middle font{
  71. color: #999999;
  72. margin-left: 20px;
  73. margin-right: 20px;
  74. }
  75. .bottom {
  76. display: flex;
  77. flex-grow: 1;
  78. width: 100%;
  79. /*height: 15%;*/
  80. background-color: white;
  81. justify-content: center;
  82. align-items: center;
  83. }
  84. .bottom button{
  85. font-size: 16px;
  86. font-family: PingFangSC-Semibold, PingFang SC;
  87. font-weight: 600;
  88. color: white;
  89. width: 90%;
  90. height: 50px;
  91. background-color: #FB4645;
  92. border: none;
  93. border-radius: 3px;
  94. }