index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <!-- @format -->
  2. <template>
  3. <view class="content">
  4. <view class="titleBg">
  5. <image
  6. style="width: 100%; border-radius: 10px; height: 400rpx"
  7. src="../static/images/ad.png"
  8. mode=""
  9. >
  10. </image>
  11. </view>
  12. <view class="itemsContent">
  13. <view class="left">
  14. <view class="tz" @click="handleLedger">
  15. <view class="title"> 台账管理 </view>
  16. <view class="cicle"> </view>
  17. </view>
  18. </view>
  19. <view class="right">
  20. <view @click="handleAssay" class="ba">
  21. <text
  22. style="font-size: 36rpx; font-weight: bold; color: rgb(255, 127, 0)"
  23. >备案申请</text
  24. >
  25. <view class="cicleIcon"> </view>
  26. </view>
  27. <view @click="handleVer" class="jd">
  28. <text
  29. style="
  30. font-size: 36rpx;
  31. font-weight: bold;
  32. color: rgb(23, 219, 205);
  33. "
  34. >检定申报</text
  35. >
  36. <view class="cicleIcon"> </view>
  37. </view>
  38. </view>
  39. </view>
  40. <image
  41. class="aiImg"
  42. style="width: 130rpx; position: fixed; right: 20rpx; bottom: 10rpx"
  43. src="../static/images/ai.png"
  44. mode="aspectFit"
  45. >
  46. </image>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {};
  53. },
  54. methods: {
  55. handleAssay() {
  56. uni.navigateTo({
  57. url: "/pages/assay/index",
  58. success: (res) => {},
  59. fail: () => {},
  60. complete: () => {},
  61. });
  62. },
  63. handleLedger() {
  64. uni.navigateTo({
  65. url: "/pages/Ledger/list",
  66. success: (res) => {},
  67. fail: () => {},
  68. complete: () => {},
  69. });
  70. },
  71. handleVer() {
  72. uni.navigateTo({
  73. url: "/pages/verification/list",
  74. success: (res) => {},
  75. fail: () => {},
  76. complete: () => {},
  77. });
  78. },
  79. },
  80. onLoad: function () {},
  81. };
  82. </script>
  83. <style lang="scss">
  84. .aiImg {
  85. animation: shakeX 7s infinite ease-in-out;
  86. }
  87. @keyframes shakeX {
  88. from,
  89. to {
  90. transform: scale(1);
  91. }
  92. 10%,
  93. 30%,
  94. 50%,
  95. 70%,
  96. 90% {
  97. transform: scale(0.8);
  98. }
  99. 20%,
  100. 40%,
  101. 60%,
  102. 80% {
  103. transform: scale(0.9);
  104. }
  105. }
  106. .shakeX {
  107. animation-name: shakeX;
  108. animation-duration: 1s;
  109. }
  110. .cicle {
  111. margin-top: 6rpx;
  112. border-top-left-radius: 50%;
  113. border-top-right-radius: 50%;
  114. border-bottom-left-radius: 50%;
  115. border-bottom-right-radius: 50%;
  116. width: 40rpx;
  117. height: 40rpx;
  118. background: rgb(160, 173, 217);
  119. margin-left: 30rpx;
  120. }
  121. .itemsContent {
  122. width: 95%;
  123. margin: 0 auto;
  124. display: flex;
  125. .left {
  126. .tz {
  127. display: flex;
  128. border-raduis: 10px;
  129. width: 340rpx;
  130. height: 400rpx;
  131. background-image: url("../static/images/tzBg.png");
  132. background-size: 100% 100%;
  133. padding-top: 40rpx;
  134. padding-left: 40rpx;
  135. .title {
  136. font-size: 38rpx;
  137. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
  138. "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
  139. "Helvetica Neue", sans-serif;
  140. font-weight: bold;
  141. }
  142. }
  143. }
  144. .right {
  145. margin-left: 24rpx;
  146. & > * {
  147. }
  148. .ba {
  149. display: flex;
  150. align-items: center;
  151. padding-left: 30rpx;
  152. .cicleIcon {
  153. width: 80rpx;
  154. height: 80rpx;
  155. margin-left: 40rpx;
  156. background-image: url("../static/images/cicle2.png");
  157. background-size: 100% 100%;
  158. }
  159. border-top-left-radius: 10px;
  160. border-top-right-radius: 10px;
  161. border-bottom-left-radius: 10px;
  162. border-bottom-right-radius: 10px;
  163. width: 340rpx;
  164. height: 190rpx;
  165. background: rgb(255, 232, 210);
  166. }
  167. .jd {
  168. display: flex;
  169. align-items: center;
  170. padding-left: 30rpx;
  171. .cicleIcon {
  172. width: 80rpx;
  173. height: 80rpx;
  174. margin-left: 40rpx;
  175. background-image: url("../static/images/cicle1.png");
  176. background-size: 100% 100%;
  177. }
  178. border-top-left-radius: 10px;
  179. border-top-right-radius: 10px;
  180. border-bottom-left-radius: 10px;
  181. border-bottom-right-radius: 10px;
  182. margin-top: 20rpx;
  183. width: 340rpx;
  184. height: 190rpx;
  185. background: rgb(209, 248, 245);
  186. }
  187. }
  188. }
  189. .titleBg {
  190. width: 95%;
  191. margin: 20rpx auto 20rpx;
  192. }
  193. .content {
  194. padding: 20rpx 0;
  195. height: 100vh;
  196. background: rgb(248, 249, 250);
  197. }
  198. .items {
  199. box-shadow: rgba(238, 244, 250, 1) 0px 3px 5px;
  200. display: flex;
  201. align-items: center;
  202. justify-content: space-between;
  203. background: #fff;
  204. margin: 40rpx auto;
  205. width: 95%;
  206. padding: 70rpx 50rpx;
  207. }
  208. .items text {
  209. font-size: 36rpx;
  210. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
  211. "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
  212. sans-serif;
  213. font-weight: bold;
  214. }
  215. </style>