examineDialog.vue 5.6 KB

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