nc-member.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. .container {
  2. height: 100%;
  3. }
  4. .header {
  5. height: 0.66rem;
  6. line-height: 0.66rem;
  7. text-align: left;
  8. border-bottom: 0.01rem solid #e6e6e6;
  9. color: #303133;
  10. font-size: 0.14rem;
  11. }
  12. .search-wrap {
  13. .search-box {
  14. padding-top: 2rem;
  15. display: flex;
  16. align-items: center;
  17. height: calc(100% - 0.86rem);
  18. flex-direction: column;
  19. justify-content: center;
  20. .search-title {
  21. font-size: 0.18rem;
  22. color: #303133;
  23. }
  24. .search-content {
  25. width: 100%;
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. margin-top: 0.3rem;
  30. input {
  31. height: 0.5rem;
  32. width: 45%;
  33. max-width: 5rem;
  34. background: #ffffff;
  35. padding-left: 0.2rem;
  36. border: 0.01rem solid #cccccc;
  37. box-sizing: border-box;
  38. font-size: 0.18rem;
  39. }
  40. button {
  41. margin: 0;
  42. width: 1.2rem;
  43. height: 0.5rem;
  44. font-size: 0.18rem;
  45. text-align: center;
  46. line-height: 0.5rem;
  47. margin-right: 0.15rem;
  48. }
  49. }
  50. .search-desc {
  51. color: #909399;
  52. font-size: 0.14rem;
  53. margin-top: 0.3rem;
  54. }
  55. .search-tips {
  56. color: $primary-color;
  57. font-size: 0.14rem;
  58. margin-top: 0.15rem;
  59. }
  60. }
  61. }
  62. .info-wrap {
  63. display: flex;
  64. flex-direction: column;
  65. height: 100%;
  66. .headimg-content {
  67. display: flex;
  68. align-items: center;
  69. margin-top: 0.2rem;
  70. .headimg {
  71. width: 0.7rem;
  72. height: 0.7rem;
  73. border-radius: 50%;
  74. overflow: hidden;
  75. image {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. }
  80. .header-info {
  81. margin-left: 0.15rem;
  82. width: calc(100% - 0.85rem);
  83. .name {
  84. font-size: 0.16rem;
  85. color: #303133;
  86. text {
  87. background: #ffffff;
  88. border: 0.01rem solid $primary-color;
  89. border-radius: 0.02rem;
  90. font-size: 0.12rem;
  91. color: $primary-color;
  92. margin-left: 0.15rem;
  93. padding: 0.01rem 0.04rem;
  94. }
  95. }
  96. .header-info-item {
  97. display: flex;
  98. align-items: center;
  99. margin-top: 0.1rem;
  100. justify-content: space-between;
  101. view {
  102. text-align: left;
  103. font-size: 0.14rem;
  104. color: #303133;
  105. opacity: 0.9;
  106. }
  107. }
  108. }
  109. }
  110. .content-data {
  111. display: flex;
  112. align-items: flex-start;
  113. justify-content: space-around;
  114. margin-top: 0.2rem;
  115. border: 0.01rem solid #e6e6e6;
  116. padding: 0.25rem 0.3rem;
  117. .content-data-item {
  118. width: 25%;
  119. .item-title {
  120. font-size: 0.14rem;
  121. font-weight: 400;
  122. color: #303133;
  123. opacity: 0.9;
  124. }
  125. .item-value {
  126. font-size: 0.2rem;
  127. color: #303133;
  128. margin-top: 0.1rem;
  129. }
  130. .item-btn {
  131. font-size: 0.14rem;
  132. color: $primary-color;
  133. margin-top: 0.05rem;
  134. cursor: pointer;
  135. }
  136. }
  137. }
  138. .table-data-list {
  139. padding: 0 0.15rem;
  140. margin-top: 0.2rem;
  141. }
  142. }
  143. // 优惠券
  144. .coupon-box {
  145. position: relative;
  146. padding-top: 0.3rem;
  147. .iconfont {
  148. position: absolute;
  149. right: 0.2rem;
  150. top: 0.2rem;
  151. font-size: 0.24rem;
  152. cursor: pointer;
  153. }
  154. .content-list {
  155. padding: 0.2rem 0rem;
  156. box-sizing: border-box;
  157. display: flex;
  158. flex-wrap: wrap;
  159. .content-item {
  160. width: calc((100% - 0.2rem) / 3);
  161. position: relative;
  162. background-color: #fff;
  163. box-shadow: 0 0 0.15rem rgba(0, 0, 0, 0.1);
  164. display: flex;
  165. flex-direction: column;
  166. align-items: baseline;
  167. border-radius: 0.05rem;
  168. border: 0.01rem solid #eee !important;
  169. margin-right: 0.1rem;
  170. box-sizing: border-box;
  171. margin-bottom: 0.1rem;
  172. .item-title {
  173. color: #000;
  174. font-size: 0.15rem;
  175. padding: 0.15rem 0 0 0.15rem;
  176. }
  177. .item-content {
  178. color: #fe2278;
  179. font-size: 0.24rem;
  180. padding: 0.15rem 0.1rem;
  181. width: 100%;
  182. text-align: center;
  183. box-sizing: border-box;
  184. font-weight: 600;
  185. }
  186. .item-line {
  187. height: 0.01rem;
  188. width: 100%;
  189. border-top: 0.01rem dashed rgba(0, 0, 0, 0.2);
  190. position: relative;
  191. }
  192. .item-line:before {
  193. content: ' ';
  194. position: absolute;
  195. top: -0.13rem;
  196. left: -0.01rem;
  197. box-sizing: border-box;
  198. height: 0;
  199. width: 0;
  200. border-bottom: solid 0.12rem transparent;
  201. border-top: solid 0.12rem transparent;
  202. border-left: solid 0.08rem #f2f2f2;
  203. }
  204. .item-line:after {
  205. content: ' ';
  206. position: absolute;
  207. top: -0.13rem;
  208. right: -0.01rem;
  209. box-sizing: border-box;
  210. height: 0;
  211. width: 0;
  212. border-bottom: solid 0.12rem transparent;
  213. border-top: solid 0.12rem transparent;
  214. border-right: solid 0.08rem #f2f2f2;
  215. }
  216. .item-bottom {
  217. width: 100%;
  218. padding: 0.05rem 0.15rem;
  219. color: #999;
  220. font-size: 0.12rem;
  221. box-sizing: border-box;
  222. }
  223. }
  224. .content-item:nth-child(3n) {
  225. margin-right: 0;
  226. }
  227. }
  228. }
  229. .empty {
  230. text-align: center;
  231. padding-top: 1.2rem;
  232. margin: 0 auto;
  233. image {
  234. width: 2rem;
  235. }
  236. .tips {
  237. color: #999;
  238. margin-top: 0.15rem;
  239. }
  240. }
  241. // 录入会员
  242. .form-box {
  243. .form-content {
  244. margin-top: 0.2rem;
  245. .form-item {
  246. margin-bottom: 0.1rem;
  247. display: flex;
  248. .form-label {
  249. width: 1.3rem;
  250. text-align: right;
  251. padding-right: 0.1rem;
  252. box-sizing: border-box;
  253. height: 0.32rem;
  254. line-height: 0.32rem;
  255. .required {
  256. color: red;
  257. margin-right: 0.03rem;
  258. }
  259. }
  260. .form-inline {
  261. width: 2.4rem;
  262. line-height: 0.32rem;
  263. margin-right: 0.1rem;
  264. box-sizing: border-box;
  265. .form-input {
  266. border-width: 0.01rem;
  267. border-style: solid;
  268. background-color: #fff;
  269. color: rgba(0, 0, 0, 0.85);
  270. border-radius: 0.02rem;
  271. padding-left: 0.1rem;
  272. height: 0.32rem;
  273. line-height: 0.32rem;
  274. font-size: 0.14rem;
  275. border-color: #e6e6e6;
  276. border-radius: 0.02rem;
  277. }
  278. .form-textarea {
  279. border-width: 0.01rem;
  280. border-style: solid;
  281. background-color: #fff;
  282. color: rgba(0, 0, 0, 0.85);
  283. border-radius: 0.02rem;
  284. padding-left: 0.1rem;
  285. line-height: 0.32rem;
  286. font-size: 0.14rem;
  287. border-color: #e6e6e6;
  288. height: 1rem;
  289. }
  290. button {
  291. width: calc(50% - 0.05rem);
  292. display: inline-block;
  293. margin-right: 0.1rem;
  294. &:nth-child(2) {
  295. margin-right: 0;
  296. }
  297. }
  298. .upload-box {
  299. width: 0.7rem;
  300. height: 0.7rem;
  301. cursor: pointer;
  302. .upload-img {
  303. width: 100%;
  304. height: 100%;
  305. border: 0.01rem solid #e6e6e6;
  306. image {
  307. width: 100%;
  308. height: 100%;
  309. }
  310. }
  311. .upload-icon {
  312. width: 100%;
  313. height: 100%;
  314. border: 0.01rem solid #e6e6e6;
  315. align-items: center;
  316. text-align: center;
  317. line-height: 1.2;
  318. display: flex;
  319. flex-direction: column;
  320. justify-content: center;
  321. color: #999;
  322. .iconfont {
  323. font-size: 0.3rem;
  324. }
  325. view {
  326. font-size: 0.12rem;
  327. }
  328. }
  329. }
  330. }
  331. .search-wrap {
  332. position: relative;
  333. i {
  334. position: absolute;
  335. top: 50%;
  336. right: 0.1rem;
  337. transform: translateY(-50%);
  338. border-left: 0.01rem solid #e6e6e6;
  339. line-height: 0.3rem;
  340. padding-left: 0.1rem;
  341. cursor: pointer;
  342. }
  343. }
  344. .label-list {
  345. width: calc(100% - 1.35rem);
  346. display: flex;
  347. align-items: center;
  348. flex-wrap: wrap;
  349. .label-item {
  350. border: 0.01rem solid #e6e6e6;
  351. padding: 0.07rem 0.1rem;
  352. line-height: 1;
  353. margin-right: 0.1rem;
  354. border-radius: 0.03rem;
  355. cursor: pointer;
  356. position: relative;
  357. margin-bottom: 0.1rem;
  358. i {
  359. position: absolute;
  360. right: -0.01rem;
  361. bottom: -0.01rem;
  362. color: $primary-color;
  363. display: none;
  364. }
  365. &.active {
  366. border-color: $primary-color;
  367. i {
  368. display: block;
  369. }
  370. }
  371. }
  372. }
  373. }
  374. }
  375. }
  376. .member-card-wrap {
  377. flex: 1;
  378. margin-top: 0.2rem;
  379. height: 0;
  380. display: flex;
  381. flex-direction: column;
  382. .common-tab-wrap {
  383. padding: 0;
  384. }
  385. .card-wrap {
  386. flex: 1;
  387. height: 0;
  388. display: flex;
  389. padding: 0.2rem 0;
  390. }
  391. .card-list {
  392. width: 3rem;
  393. border: 0.01rem solid #e6e6e6;
  394. margin-right: 0.2rem;
  395. padding-top: 0.1rem;
  396. .card-item {
  397. width: calc(100% - 0.2rem);
  398. height: 1.3rem;
  399. background-color: #fff;
  400. border: 0.01rem solid $primary-color;
  401. margin: 0 0.1rem 0.1rem 0.1rem;
  402. box-sizing: border-box;
  403. border-radius: 0.05rem;
  404. cursor: pointer;
  405. padding: 0.15rem 0.1rem;
  406. display: flex;
  407. flex-direction: column;
  408. justify-content: space-between;
  409. background-color: rgba($primary-color, $alpha: 0.1);
  410. &.active {
  411. background-color: $primary-color;
  412. color: #fff;
  413. .card-name {
  414. color: #fff;
  415. }
  416. .info {
  417. color: #fff;
  418. }
  419. }
  420. .card-name {
  421. font-weight: bold;
  422. }
  423. .info {
  424. display: flex;
  425. justify-content: space-between;
  426. color: #999;
  427. & > view {
  428. font-size: 0.13rem;
  429. }
  430. }
  431. }
  432. }
  433. .item-list {
  434. flex: 1;
  435. border: 0.01rem solid #e6e6e6;
  436. display: flex;
  437. flex-direction: column;
  438. width: 0;
  439. .empty {
  440. padding-top: 0.8rem;
  441. }
  442. .title {
  443. line-height: 0.3rem;
  444. padding: 0.1rem;
  445. display: flex;
  446. justify-content: space-between;
  447. .num {
  448. color: $primary-color;
  449. margin: 0 0.02rem;
  450. }
  451. }
  452. .button-wrap {
  453. display: flex;
  454. background-color: #fff;
  455. height: 0.5rem;
  456. line-height: 0.5rem;
  457. align-items: center;
  458. justify-content: flex-end;
  459. box-shadow: 0 0.04rem 0.12rem 0 rgba(0, 0, 0, 0.1);
  460. padding: 0.1rem 0;
  461. button {
  462. height: 0.4rem;
  463. line-height: 0.4rem;
  464. margin: 0 0.1rem 0 0;
  465. }
  466. }
  467. .item-wrap {
  468. flex: 1;
  469. height: 0;
  470. display: flex;
  471. .uni-flex {
  472. flex-wrap: wrap;
  473. }
  474. }
  475. .card-item {
  476. display: flex;
  477. width: 100%;
  478. padding: 0.1rem;
  479. border: 0.01rem solid #eee;
  480. margin: 0 0.1rem 0.1rem 0.1rem;
  481. border-radius: 0.03rem;
  482. cursor: pointer;
  483. transition: all 0.3s;
  484. &.item-mum-2 {
  485. width: calc((100% - 0.8rem) / 2);
  486. margin-right: 0;
  487. }
  488. &.item-mum-3 {
  489. width: calc((100% - 1.1rem) / 3);
  490. margin-right: 0;
  491. }
  492. .image {
  493. width: 0.7rem;
  494. height: 0.7rem;
  495. margin-right: 0.1rem;
  496. overflow: hidden;
  497. image {
  498. width: 100%;
  499. }
  500. }
  501. .info {
  502. flex: 1;
  503. display: flex;
  504. flex-direction: column;
  505. justify-content: space-between;
  506. width: 0;
  507. .num {
  508. margin-top: 0.05rem;
  509. color: #999;
  510. font-size: 0.12rem;
  511. }
  512. .price {
  513. font-size: 0.14rem;
  514. color: #fe2278;
  515. line-height: 1;
  516. .util {
  517. font-size: 0.12rem;
  518. }
  519. }
  520. .name {
  521. word-break: break-all;
  522. text-overflow: ellipsis;
  523. overflow: hidden;
  524. display: -webkit-box;
  525. -webkit-line-clamp: 2;
  526. -webkit-box-orient: vertical;
  527. line-height: 1.5;
  528. .tag {
  529. border-radius: 0.02rem;
  530. padding: 0.01rem 0.05rem;
  531. color: #fff;
  532. background-color: rgba($primary-color, $alpha: 0.1);
  533. color: #8558fa;
  534. font-size: 0.12rem;
  535. margin-right: 0.05rem;
  536. }
  537. }
  538. }
  539. }
  540. .operation-wrap {
  541. display: flex;
  542. justify-content: space-between;
  543. align-items: center;
  544. font-size: 0.12rem;
  545. margin-top: 0.05rem;
  546. height: 0.25rem;
  547. }
  548. .number-wrap {
  549. display: none;
  550. height: 0.25rem;
  551. border: 0.01rem solid #e6e6e6;
  552. border-radius: 0.02rem;
  553. overflow: hidden;
  554. input {
  555. height: 0.25rem;
  556. line-height: 0.25rem;
  557. width: 0.25rem;
  558. border: 0 0.01rem 0 0.01rem solid #e6e6e6;
  559. text-align: center;
  560. background: #fff;
  561. font-size: 0.12rem;
  562. }
  563. .iconfont {
  564. height: 0.25rem;
  565. width: 0.25rem;
  566. text-align: center;
  567. line-height: 0.25rem;
  568. background: #f5f5f5;
  569. }
  570. }
  571. .card-item.active {
  572. background-color: rgba($primary-color, $alpha: 0.8);
  573. .num {
  574. color: #fff;
  575. }
  576. .price {
  577. color: #fff;
  578. }
  579. .name {
  580. color: #fff;
  581. .tag {
  582. background-color: #fff;
  583. }
  584. }
  585. .number-wrap {
  586. display: flex;
  587. }
  588. }
  589. .not-select {
  590. background: #eee;
  591. cursor: not-allowed;
  592. }
  593. }
  594. }