problemReminder.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <Popup v-model:show="show" class="problem-reminder-popup">
  3. <div class="problem-reminder">
  4. <!-- 标题区域 -->
  5. <div class="problem-reminder-header">
  6. <div class="title-section">
  7. <div class="main-title">填写以下问题</div>
  8. <div class="sub-title">为您定制农事提醒</div>
  9. </div>
  10. <img class="header-icon" src="@/assets/img/home/file-icon.png" alt="" />
  11. </div>
  12. <div class="question-section-wrapper">
  13. <span class="question-text">在白点期,您当前农场是否出现白点?</span>
  14. <div class="img"></div>
  15. <div class="options-section">
  16. <span class="options-label">您可以选择</span>
  17. <div class="options-buttons">
  18. <div class="option-btn">拍照识别</div>
  19. <div class="option-btn">咨询专家</div>
  20. </div>
  21. </div>
  22. </div>
  23. <!-- 底部按钮区域 -->
  24. <div class="bottom-buttons">
  25. <div class="bottom-btn no-btn" @click="noClick">否</div>
  26. <div class="bottom-btn yes-btn" @click="yesClick">是</div>
  27. </div>
  28. </div>
  29. </Popup>
  30. <Popup v-model:show="noShow" class="no-popup">
  31. <div class="no-popup-title">
  32. <span>感谢您的配合</span>
  33. <div class="no-popup-title-sub">飞鸟将会记录下您当前的农场情况</div>
  34. </div>
  35. <div class="no-popup-btn" @click="noShow = false">我知道了</div>
  36. </Popup>
  37. </template>
  38. <script setup>
  39. import { Popup } from "vant";
  40. import { ref } from "vue";
  41. const show = ref(true);
  42. const noShow = ref(false);
  43. const noClick = () => {
  44. show.value = false;
  45. noShow.value = true;
  46. }
  47. const yesClick = () => {
  48. console.log("yesClick");
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .problem-reminder-popup {
  53. width: 100%;
  54. border-radius: 14px;
  55. padding: 20px 15px;
  56. box-sizing: border-box;
  57. background-image: linear-gradient(180deg, #d1e7fd 0%, #ffffff 25%);
  58. .problem-reminder {
  59. display: flex;
  60. flex-direction: column;
  61. // 标题区域样式
  62. .problem-reminder-header {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: flex-start;
  66. gap: 15px;
  67. .title-section {
  68. flex: 1;
  69. font-size: 22px;
  70. color: #1d1e1f;
  71. line-height: 1.2;
  72. div {
  73. font-family: "PangMenZhengDao";
  74. }
  75. }
  76. .header-icon {
  77. width: 88px;
  78. height: 88px;
  79. margin-top: -10px;
  80. margin-right: -5px;
  81. }
  82. }
  83. .question-section-wrapper {
  84. border: 1px solid #ececec;
  85. border-radius: 8px;
  86. padding: 10px 8px;
  87. margin-top: -10px;
  88. background-color: #fff;
  89. .question-text {
  90. font-size: 16px;
  91. color: #252525;
  92. font-weight: 500;
  93. }
  94. .img{
  95. margin: 12px 0;
  96. width: 100%;
  97. height: 140px;
  98. border-radius: 6px;
  99. background-color: green;
  100. }
  101. .options-section {
  102. display: flex;
  103. align-items: center;
  104. justify-content: space-between;
  105. background-color: rgba(33, 153, 248, 0.1);
  106. border-radius: 8px;
  107. padding: 7px 8px;
  108. font-weight: 500;
  109. .options-label {
  110. font-size: 14px;
  111. color: #2199F8;
  112. }
  113. .options-buttons {
  114. display: flex;
  115. flex-wrap: wrap;
  116. gap: 10px;
  117. .option-btn {
  118. padding: 5px 14px;
  119. border-radius: 20px;
  120. background: #fff;
  121. color: #252525;
  122. flex: 1;
  123. }
  124. }
  125. }
  126. }
  127. // 底部按钮区域样式
  128. .bottom-buttons {
  129. display: flex;
  130. gap: 12px;
  131. margin-top: 10px;
  132. .bottom-btn {
  133. flex: 1;
  134. padding: 8px 0;
  135. border-radius: 25px;
  136. font-size: 16px;
  137. font-weight: 500;
  138. text-align: center;
  139. background: #fff;
  140. border: 1px solid #e5e5e5;
  141. &.yes-btn {
  142. background-image: linear-gradient(180deg, #76c3ff 0%, #2199f8 100%);
  143. color: #fff;
  144. border: none;
  145. }
  146. }
  147. }
  148. }
  149. }
  150. .no-popup {
  151. width: 76%;
  152. border-radius: 14px;
  153. padding: 28px 15px 20px;
  154. box-sizing: border-box;
  155. .no-popup-title {
  156. font-size: 24px;
  157. font-weight: 500;
  158. text-align: center;
  159. .no-popup-title-sub{
  160. font-size: 16px;
  161. margin-top: 8px;
  162. }
  163. }
  164. .no-popup-btn {
  165. background-color: #2199F8;
  166. padding: 8px;
  167. border-radius: 20px;
  168. color: #fff;
  169. font-size: 16px;
  170. margin-top: 32px;
  171. text-align: center;
  172. }
  173. }
  174. </style>