App.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. const {appContext: {config: {globalProperties}}} = getCurrentInstance();
  11. const userStore = useUserStore();
  12. const user = ref(userStore.getUserInfo);
  13. if (user.value != null) {
  14. globalProperties.$routeActive = true;
  15. }
  16. </script>
  17. <style lang="less">
  18. ion-content {
  19. --background: #fafafa !important;
  20. }
  21. /*顶部导航白色背景主题样式*/
  22. .header-theme2 {
  23. background: white;
  24. text-align: center;
  25. ion-toolbar {
  26. --background: white;
  27. color: #4F4F63;
  28. font-weight: bold;
  29. ion-icon {
  30. padding: 0px 10px;
  31. font-size: 24px !important;
  32. height: 44px !important;
  33. }
  34. }
  35. ion-title {
  36. margin-left: -40px;
  37. font-weight: bold;
  38. }
  39. }
  40. .grid-content {
  41. margin: 10px 10px;
  42. background-color: #f0f2f5;
  43. border-radius: 20px;
  44. position: relative;
  45. #btnDetail {
  46. position: absolute;
  47. top: 50%;
  48. right: 10px;
  49. }
  50. h6 {
  51. text-align: center;
  52. color: #1a1a1a;
  53. }
  54. ion-item::part(native) {
  55. padding-left: 10px;
  56. }
  57. ion-item {
  58. border-radius: 10px;
  59. --border-width: 0px;
  60. --border-style: unset !important;
  61. }
  62. }
  63. .back-icon {
  64. font-size: 24px;
  65. padding-left: 7px;
  66. height: 44px;
  67. }
  68. .panel {
  69. margin: 0px;
  70. .panel-content {
  71. margin-top: 10px;
  72. background-color: white;
  73. border-radius: 10px;
  74. padding: 10px;
  75. }
  76. }
  77. .panel-title2 {
  78. font-size: 16px;
  79. color: #380F0A;
  80. display: flex;
  81. font-weight: bold;
  82. padding-top: 5px;
  83. .item-flag {
  84. height: 20px;
  85. width: 3px;
  86. border-radius: 8px;
  87. margin-top: 1px;
  88. margin-right: 7px;
  89. background: linear-gradient(to bottom, #fff, #0094FF);
  90. }
  91. }
  92. .add-icon {
  93. font-size: 24px;
  94. height: 44px;
  95. }
  96. .edit-del-icon {
  97. padding: 0px 0px;
  98. font-size: 13px;
  99. height: 15px !important;
  100. }
  101. .edit-page {
  102. .edit-content {
  103. margin: 12px;
  104. background: white;
  105. border-radius: 10px;
  106. padding: 7px;
  107. }
  108. ion-item {
  109. --border-style: none;
  110. }
  111. ion-select {
  112. max-width: 75%;
  113. }
  114. .edit-button {
  115. text-align: right;
  116. ion-button {
  117. width: 100px;
  118. --border-radius: 18px !important;
  119. }
  120. }
  121. ion-input {
  122. text-align: right;
  123. }
  124. }
  125. .danger {
  126. color: red;
  127. }
  128. .detail-page {
  129. .detail-content {
  130. margin: 12px;
  131. background: white;
  132. border-radius: 10px;
  133. padding: 7px;
  134. }
  135. ion-list {
  136. padding: 0px;
  137. }
  138. ion-item {
  139. --border-style: none;
  140. }
  141. ion-label {
  142. min-width: 120px;
  143. }
  144. }
  145. .list-page {
  146. --background: #fafafa !important;
  147. .list-content {
  148. margin: 10px 8px;
  149. background-color: #f0f2f5;
  150. border-radius: 20px;
  151. position: relative;
  152. ion-item::part(native) {
  153. padding-left: 10px;
  154. }
  155. ion-item {
  156. border-radius: 10px;
  157. }
  158. }
  159. ion-item {
  160. --border-style: none;
  161. }
  162. ion-grid {
  163. ion-row {
  164. /* ion-col:last-child {
  165. text-align: left;
  166. font-size: 14px;
  167. }
  168. ion-col:last-child {
  169. //display: flex;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. span {
  173. white-space: nowrap;
  174. }
  175. }*/
  176. }
  177. .row-detail {
  178. ion-col {
  179. text-align: left;
  180. color: #333333;
  181. font-size: 14px;
  182. }
  183. }
  184. }
  185. }
  186. ion-grid {
  187. ion-row {
  188. /* ion-col:last-child {
  189. text-align: left;
  190. font-size: 14px;
  191. }
  192. ion-col:last-child {
  193. //display: flex;
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. span {
  197. white-space: nowrap;
  198. }
  199. }*/
  200. }
  201. .row-detail {
  202. ion-col {
  203. text-align: left;
  204. color: #333333;
  205. font-size: 14px;
  206. }
  207. }
  208. }
  209. .ion-buttonLen {
  210. --border-radius: 18px;
  211. --background: #0094FF;
  212. color: #fff;
  213. font-size: 14px;
  214. --border-color: #0094FF;
  215. width: 70%;
  216. }
  217. </style>