common.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. body{font-size: 28rpx;font-family: PingFangSC-Medium, PingFang SC;color: #333;}
  2. page{background-color: #FBFBFC;}
  3. uni-input{font-size: 28rpx;}
  4. input{outline: 0!important;}
  5. uni-button[type=primary]{background-color: #6BBC6D;}
  6. .wrap{margin: 0 40rpx;}
  7. .wrap24{margin: 0 24rpx;}
  8. .page-wrap{padding: 24rpx;}
  9. /* 轮播 */
  10. .appAdv{position: relative;height:400rpx;background-color: #fff;}
  11. .appAdv .adv-item{height:100%;}
  12. .appAdv .adv-item .pic{width:750rpx;height:100%;}
  13. .appAdv .swiper{height:100%;}
  14. .appAdv .swiper >>> .uni-swiper-dots-horizontal{bottom:25rpx;}
  15. .appAdv >>> .uni-swiper-dot-active{background-color: #90c0ef;}
  16. /* 图片 */
  17. .full-img{width: 100%;height: auto;}
  18. /* 对齐 */
  19. .f-tac{text-align: center;}
  20. /* 内容块 */
  21. .write-radius{background-color: #fff;border-radius: 24rpx;padding: 24rpx;margin-bottom: 24rpx;}
  22. /* 浮底按钮 */
  23. .bottom-btn-wrap{height: 110rpx;margin-top: 80rpx;}
  24. .bottom-btn{height: 110rpx;line-height: 110rpx;position: fixed;left: 24rpx;bottom: 24rpx;right: 24rpx;z-index: 99;}
  25. /* 浮底多个按钮 */
  26. .bottom-flex-btn-wrap{box-sizing: border-box;height: 148rpx;margin-top: 80rpx;;}
  27. .bottom-flex-btn-content{display: flex;align-items: center;padding: 0 24rpx;border-top: 1px solid #eee;height: 148rpx;position: fixed;left: 0;bottom: 0;right: 0;background-color: #fff;}
  28. .bottom-flex-btn{flex: 1;height: 99rpx;line-height: 99rpx;}
  29. .bottom-flex-btn + .bottom-flex-btn{margin-left: 24rpx;}
  30. .bottom-flex-btn.primary{background-color: #6BBC6D;border: 0;color: #fff;}
  31. /* 页面大按钮 */
  32. .big-btn{display: block;margin: 24rpx;padding: 24rpx 0;border-radius: 8rpx;text-align: center;font-size: 36rpx;line-height: 50rpx;font-weight: 400;}
  33. .big-btn.primary{background-color: #6BBC6D;color: #fff;}
  34. .big-btn-hollow{border: 1px solid #E5E5E5;color: #333;}
  35. /* 常规间距 */
  36. .nomal-top{margin-top: 24rpx;}
  37. .nomal-bottom{margin-bottom: 24rpx;}
  38. /* 搜索 */
  39. .full-search{display: flex;overflow: hidden;background-color: #fff;border: 1px solid #cecece;border-radius: 100rpx;}
  40. .full-search-btn{margin: 0;outline: none;border: 0;}
  41. .full-search-btn:after{border: 0;border-radius: 0;}
  42. .full-search-btn,
  43. .full-search-input{height: 80rpx;line-height: 80rpx;}
  44. .full-search-input{flex: 1;padding-left: 10rpx;}
  45. /* 表单样式 */
  46. .form-item-type{margin: 24rpx 0;}
  47. .form-item{position: relative;display: flex;min-height: 96rpx;justify-content: space-between;align-items: center;margin: 0 0 0 24rpx;border-bottom: 1px solid #eee;}
  48. .form-item.arrow::after{content: '';width: 20rpx;height: 20rpx;margin-top: -10rpx;right: 24rpx;position: absolute;top: 50%;border-top: 1px solid #ccc;border-right: 1px solid #ccc;transform: rotate(45deg);}
  49. .form-item.required::before{content: '*';position: absolute;left: -15rpx;top: 50%;line-height: 1;margin-top: -12rpx;color: red;}
  50. .form-item-til,
  51. .form-item-con{padding: 20rpx 0;}
  52. .form-item-til{padding-right: 15rpx;font-size: 34rpx;}
  53. .form-item-con{display: flex;text-align: right;padding-right: 24rpx;color: #999;font-size: 30rpx;min-width: 70%;justify-content: flex-end;flex: 1;}
  54. .form-item.arrow .form-item-con{padding-right: 65rpx;}
  55. .form-item-con input{width: 100%;box-sizing: border-box;}
  56. .form-item-chooseIMGs-wrap .choosedIMG{width: 128rpx;height: 128rpx;margin-left: 20rpx;}
  57. .chooseIMG-btn{width: 128rpx;height: 128rpx;margin-left: 40rpx;box-sizing: border-box;padding: 10rpx;background-color: #F4F4F5;}
  58. .chooseIMG-btn .chooseIMG-btn-img{width: 100%;height: 100%;}
  59. .form-item.upfile{display: block;text-align: left;}
  60. .form-item.upfile .form-item-con{justify-content: flex-start;}
  61. .chooseIMG-btn-havetxt{width: 180rpx;height: 180rpx;margin-left: 40rpx;box-sizing: border-box;padding: 10rpx;background-color: #F4F4F5;display: flex;flex-wrap: wrap;align-items: center;justify-content: center;}
  62. .chooseIMG-btn-havetxt .chooseIMG-btn-img{width: 80rpx;height: 80rpx;}
  63. .chooseIMG-txt{font-size: 12rpx;font-weight: 400;color: #D8D8D8;line-height: 17rpx;}
  64. .form-item-til-tip{font-size: 12rpx;color: #999;margin-left: 10rpx;}
  65. /* 截取隐藏 */
  66. .f-ellipsis{overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
  67. /* 页面大标题 */
  68. .big-til{font-size: 40rpx;margin: 24rpx 0;font-weight: 500;color: #333;line-height: 56rpx;}
  69. /* 图标 标题 右箭头 */
  70. .select-bar{display: flex;margin-bottom: 8rpx;align-items: center;box-sizing: border-box;height: 96rpx;border-radius: 16rpx;background-color: #fff;padding: 0 24rpx 0 30rpx;}
  71. .select-bar-icon{width: 56rpx;height: 56rpx;}
  72. .select-bar-text{flex: 1;margin: 0 24rpx;font-size: 34rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #333;line-height: 48rpx;}
  73. .select-bar-arrow{width: 30rpx;height: 30rpx;margin-left: auto;border-top: 2rpx solid #ccc;border-right: 2rpx solid #ccc;transform: rotate(45deg);transition: all .3s;}
  74. .open .select-bar-arrow{transform: rotate(135deg);}
  75. .select-bar-img-wrap{width: 56rpx;height: 56rpx;border-radius: 50%;overflow: hidden;}
  76. .select-bar-img{width: 100%;height: 100%;}
  77. /* 内容全屏 */
  78. /* top:calc(44px + env(safe-area-inset-top)); 头部导航时 */
  79. .fix-content{position: fixed;left: 0;right: 0;top:calc(44px + env(safe-area-inset-top));bottom: 0;overflow-y: auto;}
  80. /* 隐藏弹出 */
  81. .fix-content.translate{transition: all .3s;background-color: #fff;z-index: 100;transform: translateX(100%);}
  82. .fix-content.translate.open{transform: translateX(0);}
  83. .fix-content-nav{padding: 24rpx;background: #e6e6e6;}
  84. /* 圆角带边框左对齐搜索 */
  85. .search-left-color >>> .uni-searchbar__box{justify-content: left!important;border-color: #6BBC6D!important;border-radius: 50rpx!important;background-color: #fff!important;}
  86. /* 产品列表 */
  87. .product-wrap{background-color: #fff;border-radius: 16rpx;margin: 24rpx;padding: 24rpx;}
  88. .product-wrap .product-item:last-of-type{border-bottom: 0;}
  89. .product-item{display: flex;border-bottom: 1px solid #eee;padding-bottom: 24rpx;margin-bottom: 24rpx;}
  90. .product-item-info{flex: 1;}
  91. .product-item-img-wrap{width: 160rpx;max-height: 160rpx;overflow: hidden;margin-right: 24rpx;}
  92. .product-item-img{width: 100%;height: 100%;}
  93. .product-item-til{font-size: 30rpx;font-weight: 500;color: #333;line-height: 42rpx;margin-bottom: 13rpx;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;}
  94. .product-item-brand{margin-bottom: 14rpx;font-size: 26rpx;font-weight: 400;color: #999;line-height: 37rpx;}
  95. .product-item-brand .postage{margin-left: 24rpx;padding: 2rpx 12rpx;font-size: 20rpx;font-weight: 400;color: #6BBC6D;line-height: 1;background-color: #E1F2E2;border-radius: 24rpx;}
  96. .product-item-addr{font-size: 26rpx;font-weight: 400;color: #999;line-height: 37rpx;margin-bottom: 8rpx;}
  97. .product-item-price {font-size: 24rpx;font-weight: 400;color: #999;line-height: 33rpx;}
  98. .product-item-price .price{font-size: 36rpx;font-weight: 500;color: #FF5030;line-height: 50rpx;margin-right: 5rpx;}
  99. .product-item-price .price.noprice{font-size: 28rpx;}
  100. .product-item-price .rmb{font-size: 28rpx;font-weight: 500;color: #FF5030;line-height: 40rpx;margin-right: 8rpx;}
  101. .product-item-price {font-size: 24rpx;font-weight: 400;color: #999;line-height: 33rpx;}
  102. /* 页面提示信息 */
  103. .page-tip{margin: 24rpx 40rpx;font-size: 32rpx;color: #999;line-height: 45rpx;}
  104. .page-tip-til{color: #6BBC6D;}
  105. .step-wrap{padding: 43rpx 86rpx 92rpx 74rpx;margin-bottom: 24rpx;display: flex;background-color: #fff;border-radius: 16rpx;}
  106. .step-item{position: relative;flex: 1;height: 2rpx;background-color: #E5E5E5;}
  107. .step-item::before{content: '';width: 16rpx;height: 16rpx;background-color: #E5E5E5;border-radius: 50%;position: absolute;left: 0;top: -8rpx;}
  108. .step-item.active{background-color: #6BBC6D;}
  109. .step-item.active::before{background-color: #6BBC6D;}
  110. .step-item::after{content: attr(data-text);position: absolute;bottom: -60rpx;left: -30rpx;font-size: 24rpx;}
  111. .step-wrap .step-item:last-of-type{flex: unset;width: 0;}
  112. .step-wrap .step-item:last-of-type::after{width: 100rpx;}
  113. /* 订单信息 */
  114. .bill-info{margin-top: 24rpx;margin-bottom: 24rpx;padding: 24rpx;padding-bottom: 0;background-color: #fff;border-radius: 16rpx;}
  115. .bill-product{display: flex;align-items: center;margin-bottom: 57rpx;}
  116. .bill-product-imgwrap{width: 160rpx;height: 160rpx;overflow: hidden;display: flex;align-items: center;margin-right: 24rpx;}
  117. .bill-product-img{width: 100%;height: 100%;text-align: center;max-width: 100%;}
  118. .bill-product-name{font-size: 30rpx;color: #333;line-height: 42rpx;margin-bottom: 8rpx;}
  119. .bill-product-info{flex: 1;}
  120. .bill-product-price-wrap{display: flex;justify-content: space-between;}
  121. .bill-product-price-wrap .left{font-size: 28rpx;color: #FF5030;}
  122. .bill-product-number{width: 150rpx;text-align: right;}
  123. .bill-product-price{font-size: 36rpx;color: #FF5030;line-height: 50rpx;font-weight: bold;margin-left: 8rpx;margin-right: 5rpx;}
  124. .bill-product-unit{font-size: 24rpx;color: #999;}
  125. .bill-product-number{font-size: 24rpx;color: #999;}
  126. .bill-info .form-item:last-of-type{border-bottom: 0;}
  127. .bill-info .amount{color: #FF5030;font-weight: bold;}
  128. .main-body{margin-bottom: 24rpx;background-color: #fff;border-radius: 16rpx;}
  129. .main-body-til{display: flex;justify-content: space-between;align-items: center;padding: 24rpx;border-bottom: 1px solid #ddd;}
  130. .main-body-til.color .til,
  131. .main-body-til.color .con
  132. {color: #6BBC6D;}
  133. .main-body-til.noborder{border-bottom: 0;}
  134. .main-body-til .til{font-size: 30rpx;font-weight: 600;color: #333;}
  135. .main-body-til .con{display: flex;align-items: center;font-size: 24rpx;color: #666;}
  136. /*图片铺满从中间显示*/
  137. .cover-img >>> div{background-size: cover!important;background-position: center!important;}
  138. /* 搜索结果页 专题列表 */
  139. .results-item{display: flex;margin-bottom: 24rpx;padding-bottom: 29rpx;border-bottom: 1px solid #eee;}
  140. .results-item:last-of-type{border-bottom: 0;}
  141. .results-item-img-wrap{width: 220rpx;height: 220rpx;margin-right: 24rpx;overflow: hidden;border-radius: 12rpx;}
  142. .results-item-img-wrap .results-item-img{width: 100%;height: 100%;}
  143. .results-item-info{flex: 1;}
  144. .results-item-info-til{margin-bottom: 10rpx;}
  145. .results-item-info-brand{color: #999;margin-bottom: 10rpx;}
  146. .results-item-info-addr{color: #666;margin-bottom: 10rpx;font-size: 24rpx;}
  147. .results-item-info-label .postage{height: 24rpx;padding: 0 14rpx;margin-left: 16rpx;line-height: 24rpx;display: inline-block;font-size: 20rpx;background-color: #E1F2E2;border-radius: 12rpx;}
  148. .results-item-info-price .rmb{font-size: 28rpx;font-weight: 500;color: #FF5030;line-height: 40rpx;}
  149. .results-item-info-price .price{font-size: 36rpx;font-weight: 500;color: #FF5030;line-height: 50rpx;}
  150. .results-item-info-price .minsell{font-size: 24rpx;font-weight: 400;color: #999999;line-height: 33rpx;}