index.vue 5.2 KB

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