common.scss 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. html, body, div, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, fieldset, input{padding: 0; margin: 0;}
  2. h1, h2, h3, h4, h5, h6, pre, code, address, caption, cite, code, em, strong, table, th, td{font-size: 1em; font-style: normal; font-weight: normal;}
  3. ul, ol{list-style: none outside none;}
  4. fieldset, img{border: medium none; vertical-align: middle;}
  5. caption, th{ text-align: left;}
  6. table{border-collapse: collapse; border-spacing: 0;}
  7. i, cite, em{font-style: normal;}
  8. input,button,select,textarea{ outline:none}
  9. input{border:0}
  10. a{text-decoration: none}
  11. html,body{font-family: Helvetica, Tahoma, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", STXihei, STHeiti, "Microsoft YaHei", Heiti, SimSun, sans-serif;background: #f5f5f5;}
  12. #app {-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;color: #333;position:absolute;z-index: 1;top:0;bottom:0;right:0;left:0;}
  13. .mt-5{margin-top:.5rem!important;}
  14. .mt-10{margin-top:1rem!important;}
  15. .mt-20{margin-top:2rem!important;}
  16. .mt-30{margin-top:3rem!important;}
  17. .mt-50{margin-top:5rem!important;}
  18. .ml-5{margin-left:.5rem!important;}
  19. .ml-10{margin-left:1rem!important;}
  20. .mr-5{margin-right:.5rem!important;}
  21. .mr-10{margin-right:1rem!important;}
  22. .mb-5{margin-bottom:.5rem!important;}
  23. .mb-10{margin-bottom: 1rem!important;}
  24. .pb-5{padding-bottom:.5rem!important;}
  25. .pb-10{padding-bottom:1rem!important;}
  26. .pb-30{padding-bottom:3rem!important;}
  27. .pt-5{padding-top:.5rem!important;}
  28. .pt-10{padding-top:1rem!important;}
  29. .pl-5{padding-left:.5rem!important;}
  30. .common-btn{display: inline-block;text-align:center;padding:0 0.7rem;font-size:$fontSize;height: 1.2rem;line-height: 1.2rem;border-radius:1.2rem;white-space: nowrap;}
  31. .ds-button-large{font-size:$h2;background: $primaryGradualColor;color:#fff;height: 2rem;line-height: 2rem;display: block}
  32. .ds-button-small{font-size:$fontSize;background: $primaryGradualColor;color:#fff;height: 1.5rem;line-height: 1.5rem;display: block}
  33. .ds-button-large.default{background:#fff;color:$primaryColor;border:1px solid $primaryColor}
  34. .ds-button-small.default{background:#fff;color:$primaryColor;border:1px solid $primaryColor}
  35. .common-add-btn-wrapper{position: fixed;bottom: 0rem;background: #fff;padding: .4rem $pageSpace;box-sizing: border-box;width: 100%;text-align: center;}
  36. .common-add-btn{background: $primaryColor;color: #fff;width: 88%;height: unset;line-height: unset;padding: .5rem 0;font-size: .8rem;}
  37. .common-header-wrap{
  38. .common-header-holder{height:$headerHeight;}
  39. .common-header-fixed{z-index:99;position:fixed;width:100%;top:0;padding-top:var(--status-bar-height);background:#fff;
  40. .common-header{height:$headerHeight;line-height: $headerHeight;color:#000;box-shadow: 0px 4px 4px #f7f7f7;
  41. .left-btn{font-size: .65rem;
  42. .iconfont{color:#b1b1b1;display: block;width:1.2rem;height: 1.2rem;text-align: center;line-height: 1.2rem;border-radius: 1.2rem;border:1px solid #e4e4e4}
  43. .i{display: block;position: absolute;right:0;top:.4rem;width:.4rem;height: .4rem;background:#e93b3d;border-radius: 50%;}
  44. }
  45. .right-btn{color:#e93b3d;font-size: $fontSize}
  46. }
  47. }
  48. }
  49. .common-footer-wrap{height: $footerHeight;padding-bottom: constant(safe-area-inset-bottom);/*兼容 IOS<11.2*/padding-bottom: env(safe-area-inset-bottom);/*兼容 IOS>11.2*/box-sizing: content-box;
  50. .common-footer{height: $footerHeight;background:#fff;z-index:1;display: flex;position: fixed;padding-bottom: constant(safe-area-inset-bottom);/*兼容 IOS<11.2*/padding-bottom: env(safe-area-inset-bottom);/*兼容 IOS>11.2*/box-sizing: content-box;bottom:0;left:0;right:0;
  51. .item-wrap{flex:1;display: flex;justify-content: center;align-items: center;
  52. .item{color:#666;display: flex;flex-direction:column;justify-content: center;align-items: center;
  53. .iconfont{display: block;width:1.5rem;height: 1.5rem;line-height: 1.5rem;font-size: 1.2rem;text-align: center;margin: 0 auto;}
  54. .text{font-size: .6rem;line-height: .6rem;text-align: center;}
  55. }
  56. }
  57. .item-wrap.is-selected{background: none;
  58. }
  59. .item-wrap.active{background: none;
  60. .item{color:#e93b3d;}
  61. }
  62. }
  63. }
  64. .page-loadmore-wrapper {
  65. overflow: scroll;
  66. }
  67. .bmap-pan-control{font-size:1.8rem;width:1.8rem;height:1.8rem;line-height:1.8rem;color:#b1b1b1;opacity: .8}
  68. .bmap-pan-control.pan-left{transform: rotate(90deg);top:50% !important;margin-top: -18px}
  69. .bmap-pan-control.pan-top{transform: rotate(180deg);left:50% !important;margin-left: -18px}
  70. .bmap-pan-control.pan-right{transform: rotate(270deg);top:50% !important;margin-top: -18px}
  71. .bmap-pan-control.pan-bottom{left:50% !important;margin-left: -18px}
  72. .common-popup-wrapper{position: relative;height: 100%;padding-top:var(--status-bar-height);box-sizing: border-box;display: flex;flex-direction: column;}
  73. .common-popup-content{background:#fff;flex:1;position: relative;}
  74. .common-order-detail{flex:1;
  75. .info-wraper{border-bottom: .5rem solid #eee;
  76. .info-header{color:#000;font-size: .8rem;padding:.5rem;border-bottom: 1px solid #eee}
  77. .info-content{font-size: .7rem;padding:.5rem;
  78. .seller-info{padding-bottom: .5rem;margin-bottom: .5rem;border-bottom: 1px solid #eee}
  79. .item{margin-bottom: .5rem;
  80. .content-flex{display: flex;
  81. .flex-left{flex:1;}
  82. .flex-right{flex:1;text-align: right;}
  83. }
  84. .name{color:#000;font-size: .75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  85. .phone{color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  86. .address{color:#666}
  87. .pickup{color:#e93b3d}
  88. .deliver{color:#f31c47}
  89. .goods-info{display: flex;flex: 4 !important}
  90. .goods-image{width:3rem;height: 3rem;margin-right: .5rem;vertical-align: top;}
  91. .goods-name{color:#666;flex: 1}
  92. .goods-count{color:#999}
  93. }
  94. .item:last-child{margin-bottom: 0}
  95. }
  96. }
  97. .info-wraper:last-child{border-bottom: 0}
  98. .btn{width:5rem;height: 2rem;line-height: 2rem;text-align: center;color:#fff;font-size: .8rem;margin:1rem auto;border-radius: .2rem}
  99. .btn.pickup{background:#e93b3d }
  100. .btn.deliver{background:#f31c47 }
  101. }
  102. .common-map-wrapper{position: absolute;top:$headerHeight;bottom: 0;left: 0;right:0;
  103. .common-map-content{width:100%;height: 100%}
  104. }
  105. .common-score-wrapper{position:relative;height:1rem;width:4rem;display:inline-block;vertical-align:middle;
  106. .i{position:absolute;line-height:1rem;font-size:.8rem;overflow:hidden;color:#ffc107;}
  107. .front{z-index:2}
  108. .front:before{content:"\e642\e642\e642\e642\e642";}
  109. .back{z-index:1;display:none}
  110. .back:after{content:"\e618\e618\e618\e618\e618";}
  111. }
  112. .common-empty-record{font-size:.8rem;color:#999;text-align:center;padding-top:40%;
  113. .i{font-size:3rem;}
  114. }
  115. .common-no-more{text-align: center;font-size: .6rem;padding:.5rem 0;color:gray}
  116. .common-voucher {width: 16rem;height:5.5rem;padding: 0 0.4rem;position: relative;overflow: hidden;}
  117. .common-voucher:before {content: '';position: absolute;top:0;bottom:0;left:0.4rem;right:0.4rem;z-index: -1;}
  118. .common-voucher:after {content: '';position: absolute;left:0.4rem;top:0.4rem;right:0.4rem;bottom:0.4rem;box-shadow: 0 0 1rem 1px rgba(0, 0, 0, 0.5);z-index: -2;}
  119. .common-voucher .i{position: absolute;left: 20%;top:2.25rem;height:9.5rem;width:19.5rem;background-color: rgba(255,255,255,.15);transform: rotate(-30deg);}
  120. .common-voucher .par{background: #D24161;float: left;padding:1.25rem 0.75rem;width: 60%;height:100%;box-sizing:border-box;border-right:0.1rem dashed rgba(255,255,255,.3);text-align: left;}
  121. .common-voucher .par .p{color:#fff;font-size:0.8rem;margin-bottom:0.4rem;}
  122. .common-voucher .par .span{font-size:2rem;color:#fff;margin-right:0.25rem;}
  123. .common-voucher .par .sign{font-size:1rem;}
  124. .common-voucher .par .sub{position: relative;top:-0.25rem;color:rgba(255,255,255,.8);}
  125. .common-voucher .copy{display: inline-block;height:100%;padding:.5rem 0.7rem 0;width:40%;box-sizing:border-box;vertical-align: text-bottom;font-size:0.8rem;color:rgb(255,255,255);background: #D24161;}
  126. .common-voucher .copy .p{font-size:0.6rem;margin-top:0.35rem;white-space: nowrap}
  127. .common-voucher02{background: #D24161;background: radial-gradient(transparent 0, transparent 0.25rem, #D24161 0.25rem);background-size:0.765rem 0.75rem;background-position:0.45rem 0.15rem;}
  128. .common-voucher02:before{background-color:#D24161;}
  129. .common-voucher.disable{ -webkit-filter: grayscale(100%);
  130. -moz-filter: grayscale(100%);
  131. -ms-filter: grayscale(100%);
  132. -o-filter: grayscale(100%);
  133. filter: grayscale(100%);
  134. filter: gray;opacity: .5}
  135. /*标签样式*/
  136. .tag-icon {display: inline-block;line-height: .8rem;border: 1px solid #e93b3d;border-radius: .1rem;padding: 0 .1rem;font-size: .55rem;color: #e93b3d; margin-right: .2rem;}
  137. .tag-icon-bg {display: inline-block;line-height: .8rem;border: 1px solid #e93b3d;background:#e93b3d;border-radius: .1rem;padding: 0 .1rem;font-size: .55rem;color: #fff; margin-right: .2rem;}
  138. .flex-line{
  139. .left{
  140. .line-name{min-width: 4rem}
  141. }
  142. }
  143. .field-line{
  144. .left{flex:unset !important;
  145. .field-name{width: 4rem}
  146. }
  147. .right{flex:1;
  148. .field-line-right{flex:1;display: flex;
  149. .field-input{flex:1;font-size:$subFontSize;text-align: right;color: #333;}
  150. }
  151. }
  152. }
  153. .status-holder {
  154. /* #ifndef APP-PLUS-NVUE */
  155. height: var(--status-bar-height);
  156. /* #endif */
  157. }