examineDialog.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <div class="dialog">
  3. <div class="dialog-header">
  4. <img src="@/assets/可可乐博logo.jpg" alt="logo" class="search-icon" />
  5. <div class="dialog-title">
  6. <h1>可可智慧教育平台账号申请</h1>
  7. </div>
  8. <div class="dialog-main">
  9. <div class="dialog-content">
  10. <div class="dialog-content-item">
  11. <div class="dialog-content-item-content1">
  12. <span>
  13. <img src="@/assets/红色特殊字符.png" alt="字符" class="search-icon2">
  14. 学校&nbsp;&nbsp;(组织) &nbsp;&nbsp;名称
  15. </span>
  16. </div>
  17. <input v-model="schoolName" type="text" placeholder="请输入学校名称" class="input"/>
  18. <div class="dialog-content-item-content2">
  19. <span>
  20. <img src="@/assets/红色特殊字符.png" alt="字符" class="search-icon2">
  21. 姓名
  22. </span>
  23. </div>
  24. <input v-model="Name" type="text" placeholder="请输入名称" class="input"/>
  25. </div>
  26. <div class="dialog-content-item-content3">
  27. <span>
  28. <img src="@/assets/红色特殊字符.png" alt="字符" class="search-icon2">
  29. 联系电话
  30. </span>
  31. </div>
  32. <input v-model="phonenumber" type="text" placeholder="请输入联系电话" class="input"/>
  33. <div class="dialog-content-item-content4">
  34. <span>
  35. <img src="@/assets/红色特殊字符.png" alt="字符" class="search-icon2">
  36. 其他备注(如联系人或组织)
  37. </span>
  38. </div>
  39. <p style="color: gray; font-size: 15px;margin-left: -45%;margin-top: 10px;">此项用于审核认证,如有请说明。</p>
  40. <input v-model="remark" type="text" placeholder="请输入备注" class="input"/>
  41. <div class="dialog-content-item">
  42. </div>
  43. </div>
  44. </div>
  45. <div class="user_p">
  46. <p style="color:#535353; font-size:15px; " >请填写以上申请信息,我们将在工作日24小时内回复您,您的信息将被严格</p>
  47. <p style="color:#535353; font-size:15px;margin-left: -308px; ">保密,不会被用于其他用途</p>
  48. </div>
  49. <button @click="submitForm" class="button">确认提交</button>
  50. </div>
  51. </div>
  52. </template>
  53. <script>
  54. // @ is an alias to /src
  55. export default {
  56. name: 'HomeView',
  57. components: {},
  58. data() {
  59. return {
  60. schoolName: '', // 定义 schoolName 在 data 中
  61. Name: '', // 定义 Name 在 data 中
  62. phonenumber: '', // 定义 phonenumber 在 data 中
  63. remark: '', // 定义 remark 在 data 中
  64. };
  65. },
  66. methods: {
  67. submitForm() {
  68. alert('提交的学校名称: ' + this.schoolName); // 处理按钮点击事件
  69. alert('提交的姓名:'+ this.Name); // 处理按钮点击事件
  70. alert('提交的联系电话:'+ this.phonenumber); // 处理按钮点击事件
  71. alert('提交的邮箱:'+ this.remark); // 处理按钮点击事件
  72. },
  73. },
  74. };
  75. </script>
  76. <style scoped>
  77. /* 通过设置body为flex布局来保证居中 */
  78. html,
  79. body {
  80. height: 100%;
  81. margin: 0;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. }
  86. /* 弹窗整体大小 */
  87. .dialog {
  88. width: 600px;
  89. height: 800px;
  90. background-color: #fff;
  91. position: fixed; /* 使用fixed,避免被其他父容器影响 */
  92. top: 50%;
  93. left: 50%;
  94. transform: translate(-50%, -50%);
  95. border-radius: 15px 15px 15px 15px;
  96. }
  97. /* 弹窗内部的一些样式,可以根据需要修改 */
  98. .dialog-header,
  99. .dialog-title,
  100. .dialog-main {
  101. padding: 20px;
  102. }
  103. .search-icon{
  104. width: 170px;
  105. height: 50px;
  106. margin-left: -70%;
  107. }
  108. .search-icon2{
  109. width: 20px;
  110. height: 20px;
  111. position: relative;
  112. top: 3px; /* 调整位置,向下移动3px */
  113. }
  114. .dialog-title h1{
  115. font-size: 28px;
  116. }
  117. /* 弹窗内容 */
  118. .dialog-content-item-content1{
  119. font-size: 15px;
  120. font-weight: 550;
  121. margin-left: -61%;
  122. }
  123. .dialog-content-item-content2{
  124. font-size: 15px;
  125. font-weight: 550;
  126. margin-left: -79%;
  127. margin-top: 20px;
  128. }
  129. .dialog-content-item-content3{
  130. font-size: 15px;
  131. font-weight: 550;
  132. margin-left: -73%;
  133. margin-top: 20px;
  134. }
  135. .dialog-content-item-content4{
  136. font-size: 15px;
  137. font-weight: 550;
  138. margin-left: -51%;
  139. margin-top: 20px;
  140. }
  141. /* input输入框样式 */
  142. .input {
  143. width: 89%;
  144. padding: 8px;
  145. margin-top: 10px;
  146. border: 1px solid #ccc;
  147. border-radius: 4px;
  148. background-color: #f0f2f5;
  149. height: 36px;
  150. margin-left: 22px;
  151. }
  152. /* 用户协议框架 */
  153. .user_p{
  154. width: 500px;
  155. height: 50px;
  156. /* border: 1px solid black; */
  157. margin-left: 40px;
  158. margin-top: 10px;
  159. }
  160. /* 提交按钮样式 */
  161. .button{
  162. width: 460px;
  163. height: 60px;
  164. background-color: #3681fc;
  165. color: white; /* 设置字体颜色为白色 */
  166. border: none; /* 去掉按钮的边框 */
  167. border-radius: 5px; /* 可选:添加圆角样式,提升外观 */
  168. font-size: 16px; /* 可选:设置字体大小 */
  169. cursor: pointer; /* 设置鼠标悬停时显示为指针 */
  170. text-align: center; /* 确保文本居中对齐 */
  171. display: flex;
  172. justify-content: center; /* 居中对齐内容(水平) */
  173. align-items: center; /* 居中对齐内容(垂直) */
  174. margin-left: 50px;
  175. }
  176. </style>