App.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. <template>
  2. <ion-app style="z-index: 1">
  3. <ion-router-outlet/>
  4. </ion-app>
  5. </template>
  6. <script setup lang="ts">
  7. import {IonApp, IonRouterOutlet} from '@ionic/vue';
  8. import {getCurrentInstance, ref} from "vue";
  9. import {useUserStore} from "@/store/modules/user";
  10. import {useRouter} from "vue-router";
  11. const {appContext: {config: {globalProperties}}} = getCurrentInstance();
  12. const userStore = useUserStore();
  13. const router = useRouter();
  14. const user = ref(userStore.getUserInfo);
  15. if (user.value != null) {
  16. globalProperties.$routeActive = true;
  17. }
  18. </script>
  19. <style lang="less">
  20. ion-content {
  21. --background: #fafafa !important;
  22. }
  23. /*顶部导航白色背景主题样式*/
  24. .header-theme2 {
  25. border-bottom: 1px solid #f1f5f7;
  26. background: white;
  27. text-align: center;
  28. ion-toolbar {
  29. --background: white;
  30. color: #4F4F63;
  31. font-weight: bold;
  32. ion-icon {
  33. padding: 0px 10px;
  34. font-size: 24px !important;
  35. height: 44px !important;
  36. }
  37. }
  38. ion-title {
  39. margin-left: -40px;
  40. font-weight: bold;
  41. }
  42. }
  43. .header-theme2::after {
  44. background-image: none !important;
  45. }
  46. .grid-content {
  47. margin: 10px 10px;
  48. background-color: #f0f2f5;
  49. border-radius: 20px;
  50. position: relative;
  51. #btnDetail {
  52. position: absolute;
  53. top: 50%;
  54. right: 10px;
  55. }
  56. h6 {
  57. text-align: center;
  58. color: #1a1a1a;
  59. }
  60. ion-item::part(native) {
  61. padding-left: 10px;
  62. }
  63. ion-item {
  64. border-radius: 10px;
  65. --border-width: 0px;
  66. --border-style: unset !important;
  67. }
  68. }
  69. .back-icon {
  70. font-size: 24px;
  71. padding-left: 7px;
  72. height: 44px;
  73. }
  74. .panel {
  75. margin: 0px;
  76. .panel-content {
  77. margin-top: 10px;
  78. background-color: white;
  79. border-radius: 10px;
  80. padding: 10px;
  81. }
  82. }
  83. .panel-title2 {
  84. font-size: 16px;
  85. color: #380F0A;
  86. display: flex;
  87. font-weight: bold;
  88. padding-top: 5px;
  89. .item-flag {
  90. height: 20px;
  91. width: 3px;
  92. border-radius: 8px;
  93. margin-top: 1px;
  94. margin-right: 7px;
  95. background: linear-gradient(to bottom, #fff, #0094FF);
  96. }
  97. }
  98. .add-icon {
  99. font-size: 24px;
  100. height: 44px;
  101. }
  102. .edit-del-icon {
  103. padding: 0px 0px;
  104. font-size: 13px;
  105. height: 15px !important;
  106. }
  107. .edit-page {
  108. .edit-content {
  109. margin: 12px;
  110. background: white;
  111. border-radius: 10px;
  112. padding: 7px;
  113. }
  114. ion-item {
  115. --border-style: none;
  116. }
  117. ion-select {
  118. max-width: 75%;
  119. }
  120. .edit-button {
  121. text-align: right;
  122. ion-button {
  123. width: 100px;
  124. --border-radius: 18px !important;
  125. }
  126. }
  127. ion-input {
  128. text-align: right;
  129. }
  130. }
  131. .danger {
  132. color: red;
  133. }
  134. .detail-page {
  135. .detail-content {
  136. margin: 12px;
  137. background: white;
  138. border-radius: 10px;
  139. padding: 7px;
  140. }
  141. ion-list {
  142. padding: 0px;
  143. }
  144. ion-item {
  145. --border-style: none;
  146. }
  147. ion-label {
  148. min-width: 120px;
  149. }
  150. }
  151. .list-page {
  152. --background: #fafafa !important;
  153. .custom {
  154. --placeholder-color: gray;
  155. --placeholder-opacity: 0.5;
  156. }
  157. .container {
  158. display: flex;
  159. justify-content: center; /* 水平居中 */
  160. align-items: center; /* 垂直居中 */
  161. }
  162. .list-content {
  163. margin: 10px 8px;
  164. background-color: #f0f2f5;
  165. border-radius: 20px;
  166. position: relative;
  167. ion-item::part(native) {
  168. padding-left: 10px;
  169. }
  170. ion-item {
  171. border-radius: 10px;
  172. }
  173. }
  174. ion-item {
  175. --border-style: none;
  176. }
  177. ion-grid {
  178. ion-row {
  179. /* ion-col:last-child {
  180. text-align: left;
  181. font-size: 14px;
  182. }
  183. ion-col:last-child {
  184. //display: flex;
  185. overflow: hidden;
  186. text-overflow: ellipsis;
  187. span {
  188. white-space: nowrap;
  189. }
  190. }*/
  191. }
  192. .row-detail {
  193. ion-col {
  194. text-align: left;
  195. color: #333333;
  196. font-size: 14px;
  197. }
  198. }
  199. }
  200. }
  201. ion-grid {
  202. ion-row {
  203. /* ion-col:last-child {
  204. text-align: left;
  205. font-size: 14px;
  206. }
  207. ion-col:last-child {
  208. //display: flex;
  209. overflow: hidden;
  210. text-overflow: ellipsis;
  211. span {
  212. white-space: nowrap;
  213. }
  214. }*/
  215. }
  216. .row-detail {
  217. ion-col {
  218. text-align: left;
  219. color: #333333;
  220. font-size: 14px;
  221. }
  222. }
  223. }
  224. .ion-buttonLen {
  225. --border-radius: 18px;
  226. --background: #0094FF;
  227. color: #fff;
  228. font-size: 14px;
  229. --border-color: #0094FF;
  230. width: 70%;
  231. }
  232. .bw-vue-form {
  233. .form-title {
  234. padding: 10px;
  235. font-size: 18px;
  236. font-weight: bold;
  237. }
  238. .form-input {
  239. padding: 10px;
  240. ion-input {
  241. border-bottom: 1px solid #f1f5f7;
  242. color: #8c8f93;
  243. --padding-start: 0px;
  244. }
  245. ion-textarea {
  246. border-bottom: 1px solid #f1f5f7;
  247. color: #8c8f93;
  248. --padding-start: 0px;
  249. }
  250. }
  251. .form-select {
  252. padding: 10px;
  253. ion-select {
  254. border-bottom: 1px solid #f1f5f7;
  255. color: #8c8f93;
  256. --padding-start: 0px;
  257. }
  258. ion-select::part(icon) {
  259. display: none;
  260. }
  261. ion-select::after {
  262. content: "选择";
  263. color: #02a6f1;
  264. }
  265. ion-item {
  266. ion-select {
  267. border-bottom: 1px solid #f1f5f7;
  268. color: #8c8f93;
  269. --padding-start: 0px;
  270. }
  271. ion-select::part(icon) {
  272. display: none;
  273. }
  274. ion-select::after {
  275. content: "选择";
  276. color: #02a6f1;
  277. }
  278. }
  279. }
  280. .form-detail {
  281. padding: 10px;
  282. display: flex;
  283. justify-content: space-between;
  284. vertical-align: middle;
  285. color: #8c8f93;
  286. ion-label {
  287. min-width: 80px;
  288. padding: 0 5px 0 0;
  289. }
  290. }
  291. }
  292. .bw-vue-list {
  293. .list-title {
  294. padding: 10px;
  295. font-size: 18px;
  296. font-weight: bold;
  297. }
  298. .list-content {
  299. ion-item {
  300. --inner-border-width: 0;
  301. //--inner-padding-end: 0px;
  302. margin: 0 10px;
  303. border-bottom: 1px solid #f1f5f7;
  304. border-radius: 0px;
  305. ion-label {
  306. .multi-title {
  307. display: flex;
  308. justify-content: space-between;
  309. }
  310. p {
  311. font-size: 12px;
  312. color: #8c8f93;
  313. }
  314. }
  315. }
  316. ion-item::part(native) {
  317. padding: 0px;
  318. }
  319. }
  320. }
  321. .b-badge {
  322. padding: 8px;
  323. margin-right: 8px;
  324. }
  325. .b-badge-dange {
  326. background-color: #D9001B;
  327. }
  328. .b-badge-warning {
  329. background-color: #F59A23;
  330. }
  331. .b-badge-default {
  332. background-color: #008080;
  333. }
  334. .cascade-model {
  335. --height: 50%;
  336. --border-radius: 16px;
  337. --box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  338. ::part(backdrop) {
  339. background: rgba(209, 213, 219);
  340. opacity: 1;
  341. }
  342. ion-toolbar {
  343. --background: white;
  344. --color: white;
  345. padding-left: 0 !important;
  346. padding-right: 0 !important;
  347. --padding-start: 0;
  348. --padding-end: 0;
  349. }
  350. ion-toolbar ion-item:first-child {
  351. --inner-border-width: 0 0 0 0;
  352. text-align: center;
  353. }
  354. ion-toolbar ion-item:last-child {
  355. --padding-start: 0;
  356. --inner-padding-end: 0;
  357. }
  358. ion-segment {
  359. width: 100%;
  360. --background: #ffffff;
  361. }
  362. ion-segment-button {
  363. --indicator-color: rgba(254, 255, 255, 0.97);
  364. --color: #000000;
  365. --color-checked: #1a65eb;
  366. --background-hover: rgba(47, 107, 215, 0.98);
  367. --border-width: 0 0 0 0;
  368. --indicator-box-shadow: 0 0 0 0;
  369. }
  370. /*!* Material Design styles *!*/
  371. /*ion-segment-button.md {*/
  372. /* --color: #000;*/
  373. /* --color-checked: #1a65eb;*/
  374. /* --border-radius: 0px;*/
  375. /* --border-width: 0 0 0 0;*/
  376. /*}*/
  377. /*!* iOS styles *!*/
  378. /*ion-segment-button.ios {*/
  379. /* --color: #000;*/
  380. /* --color-checked: #1a65eb;*/
  381. /* --border-radius: 0px;*/
  382. /* --border-width: 0 0 0 0;*/
  383. /*}*/
  384. .custom-scroll {
  385. overflow-y: auto; /* 显示垂直滚动条 */
  386. max-height: 200px; /* 设置最大高度,超出部分会出现滚动条 */
  387. }
  388. /* 可以根据需要自定义滚动条的样式 */
  389. .custom-scroll::-webkit-scrollbar {
  390. width: 8px;
  391. }
  392. .custom-scroll::-webkit-scrollbar-thumb {
  393. background-color: #888;
  394. border-radius: 4px;
  395. }
  396. .custom-scroll::-webkit-scrollbar-thumb:hover {
  397. background-color: #555;
  398. }
  399. }
  400. .b-select {
  401. display: flex;
  402. justify-content: space-between;
  403. border-bottom: 1px solid #f1f5f7;
  404. align-items: center;
  405. .select-placeholder {
  406. color: #8c8f93;
  407. }
  408. .select-text {
  409. color: #8c8f93;
  410. }
  411. a {
  412. color: #02a6f1;
  413. font-size: 16px;
  414. padding: 10px 0px 10px 16px;
  415. }
  416. }
  417. </style>