index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="quick-task" style="padding-bottom: 150upx">
  3. <cu-custom class="home-custom" bgColor=".bg-sancolor"
  4. bgImage="https://ahwgh.oss-cn-hangzhou.aliyuncs.com/enterprise/6525f808df760.png" :isBack="true">
  5. <block slot="content">胶体金检测</block>
  6. </cu-custom>
  7. <view class="content">
  8. <view v-if="step === 'first'" class="first-step">
  9. <image src="../../static/icons/reagent.png" mode="aspectFit"></image>
  10. <button class="cu-btn bg-green lg margin-top-sm shadow-blur" type="" @tap="startCheck">
  11. 开始检测
  12. </button>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. step: 'first',
  22. };
  23. },
  24. created() {
  25. },
  26. methods: {
  27. startCheck() {
  28. uni.navigateTo({
  29. url: "/pages/quick-task/camera"
  30. });
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped>
  36. .quick-task{
  37. background: #fff;
  38. height: 100%;
  39. width: 100%;
  40. }
  41. .content{
  42. height: 80vh;
  43. }
  44. .first-step{
  45. height: 100%;
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: center;
  49. align-items: center;
  50. padding-top: 20vh;
  51. }
  52. .first-step button {
  53. width: 90%;
  54. margin-top: 20vh;
  55. }
  56. .first-step image {
  57. width: 60vw;
  58. margin-left: 10vw;
  59. }
  60. </style>