canteen.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. .bg {
  2. position: relative;
  3. width: 100%;
  4. min-height: 100%;
  5. background-color: #ffffff;
  6. }
  7. .topbox{
  8. padding: 25rpx 0;
  9. }
  10. .add-button{
  11. margin: 15rpx;
  12. background: #eab86a;
  13. padding: 15rpx;
  14. text-align: center;
  15. color: #fff;
  16. border-radius: 15rpx;
  17. width: calc(70% - 30rpx);
  18. display: inline-block;
  19. vertical-align: middle;
  20. }
  21. .scan-button{
  22. width: 33%;
  23. display: inline-block;
  24. text-align: center;
  25. font-size: 30rpx;
  26. color: #eab86a;
  27. vertical-align: middle;
  28. }
  29. .scan-button .image{
  30. width: 60rpx;
  31. height: 60rpx;
  32. display: inline-block;
  33. }
  34. .scan-button .text{
  35. display: block;
  36. }
  37. .list-title{
  38. font-size: 24rpx;
  39. margin: 25rpx;
  40. color: #999;
  41. text-align: left;
  42. }
  43. .order-list{}
  44. .time-box{
  45. background: #eee;
  46. font-size: 28rpx;
  47. padding: 5rpx 25rpx;
  48. color: #666;
  49. }
  50. .order-card{
  51. margin: 15rpx;
  52. padding: 25rpx;
  53. background: #eab86a;
  54. color: #fff;
  55. overflow: hidden;
  56. border-radius: 10rpx;
  57. position: relative;
  58. }
  59. .order-card.unuse{
  60. background: #ececec;
  61. color: #999;
  62. }
  63. .order-card.unuse::after{
  64. content:'失效';
  65. font-size: 50rpx;
  66. position: absolute;
  67. right: 10%;
  68. top: 0;
  69. transform: rotate(-25deg)translateY(35rpx);
  70. padding: 0 30rpx;
  71. border: 1px dashed;
  72. }
  73. .order-card.isuse{
  74. background: #ececec;
  75. color: #999;
  76. }
  77. .order-card.isuse::after{
  78. content:'已使用';
  79. font-size: 50rpx;
  80. position: absolute;
  81. right: 10%;
  82. top: 0;
  83. transform: rotate(-25deg)translateY(35rpx);
  84. padding: 0 30rpx;
  85. border: 1px dashed;
  86. }
  87. .order-card .title{
  88. font-size: 40rpx;
  89. }
  90. .order-card .info{
  91. float: left;
  92. font-size: 24rpx;
  93. }
  94. .order-card .num{
  95. float: right;
  96. font-size: 24rpx;
  97. }
  98. .order-card .num .del{
  99. margin-left: 10rpx;
  100. color: #3F51B5;
  101. text-decoration: underline;
  102. display: inline;
  103. }
  104. /* 遮罩层样式 */
  105. .modalmask {
  106. position: fixed;
  107. top: 0;
  108. left: 0;
  109. width: 100%;
  110. height: 100%;
  111. background: rgba(0, 0, 0, 0.1); /* 半透明黑色背景 */
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. z-index: 999; /* 确保弹出框位于顶层 */
  116. }
  117. /* 弹出框样式 */
  118. .modal {
  119. background: #fff;
  120. border-radius: 5px;
  121. padding: 20px;
  122. width: 75%;
  123. text-align: center;
  124. }
  125. /* 弹出框标题样式 */
  126. .modal-title {
  127. font-size: 38rpx;
  128. font-weight: bold;
  129. margin-bottom: 10px;
  130. }
  131. /* 弹出框内容样式 */
  132. .modal-content {
  133. font-size: 32rpx;
  134. margin-bottom: 20px;
  135. }
  136. /* 弹出框按钮样式 */
  137. .modal-cancel, .modal-confirm {
  138. display: inline-block;
  139. padding: 10px 20px;
  140. margin: 0 10px;
  141. border: 1px solid #eab86a;
  142. border-radius: 5px;
  143. background: #eab86a;
  144. color: #fff;
  145. text-align: center;
  146. cursor: pointer;
  147. font-size: 30rpx;
  148. }
  149. .modal-cancel{
  150. border: 1px solid #999;
  151. background: #999;
  152. }
  153. .modal-tool{
  154. overflow: hidden;
  155. margin-bottom: 25px;
  156. }
  157. .ctorder-numbox{
  158. display: inline-block;
  159. vertical-align: middle;
  160. }
  161. .cartlist_num{float: right;}
  162. .cartlist_num button{
  163. width: 50rpx;
  164. height: 50rpx;
  165. line-height: 40rpx;
  166. text-align: center;
  167. display: inline-block;
  168. border: 1px solid #ddd;
  169. border-radius: 50%;
  170. }
  171. .cartlist_num button.mius{
  172. border:1px solid #eab86a;
  173. color:#eab86a;
  174. }
  175. .cartlist_num button.add{
  176. background: #eab86a;
  177. color: #FFF;
  178. border: 0;
  179. line-height: 45rpx;
  180. }
  181. .cartlist_num input{
  182. width: 50rpx;
  183. height: 40rpx;
  184. text-align: center;
  185. display: inline-block;
  186. border-left: 0;
  187. border-right: 0;
  188. font-size: 40rpx;
  189. margin: 0 10rpx;
  190. }