workAddress.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="switch-roles">
  3. <nav-bar title="工作地址" color="#000"></nav-bar>
  4. <view class="roles-content">
  5. <view class="content">
  6. <view class="title">工作地址</view>
  7. <view class="title-desc">您需要拍摄该地址的工作环境,完成认证</view>
  8. <!-- <u-input
  9. placeholder="公司信息将被审核,请确保您输入的信息真实有效"
  10. v-model="companyMsg"
  11. type="textarea"
  12. clearable
  13. class="custom-textarea"
  14. >
  15. <template #prefix>
  16. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  17. </template>
  18. </u-input> -->
  19. <view class="form-item">
  20. <view class="item-label"> 工作地址 </view>
  21. <u-input
  22. placeholder="请输入办公大楼名称,例:碧桂园凤凰智谷"
  23. v-model="address"
  24. clearable
  25. class="custom-input"
  26. :customStyle="{ padding: '8rpx 24rpx ' }"
  27. >
  28. <template #prefix>
  29. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  30. </template>
  31. </u-input>
  32. </view>
  33. <view class="form-item">
  34. <view class="item-label"> 楼层/单元室 </view>
  35. <u-input
  36. placeholder="楼层/单元室/门牌号,例:3层302室"
  37. v-model="addressDetail"
  38. clearable
  39. class="custom-input"
  40. :customStyle="{ padding: '8rpx 24rpx ' }"
  41. >
  42. <template #prefix>
  43. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  44. </template>
  45. </u-input>
  46. </view>
  47. <view class="title-desc">注意事项:</view>
  48. <view class="title-desc">1.工作地址请精确到楼层或者门牌号;如:未来大厦A座601</view>
  49. <view class="title-desc">2.确保您本人已到达当前填写地址所在位置</view>
  50. <view class="title-desc">3.保持网络环境稳定</view>
  51. <view class="title-desc">4.若上述情况均满足无法进入认证环节,请重启手机后再试</view>
  52. </view>
  53. </view>
  54. <view class="submit-btn" @click="goBack">确定</view>
  55. </view>
  56. </template>
  57. <script>
  58. import navBar from "@/components/nav-bar/index.vue";
  59. export default {
  60. data() {
  61. return {
  62. address: "",
  63. addressDetail: "",
  64. companyMsg: "",
  65. companyName: "",
  66. };
  67. },
  68. components: {
  69. navBar,
  70. },
  71. onLoad(options) {
  72. if (options.text) {
  73. this.text = options.text;
  74. }
  75. },
  76. methods: {
  77. onInput(e) {
  78. // console.log(e);
  79. // 如果需要额外的输入控制
  80. // this.text = e.detail.value;
  81. },
  82. goBack() {
  83. uni.navigateBack();
  84. },
  85. },
  86. };
  87. </script>
  88. <style lang="scss" scoped>
  89. .switch-roles {
  90. background-color: #fff;
  91. position: absolute;
  92. left: 0;
  93. right: 0;
  94. top: 0;
  95. bottom: 0;
  96. display: flex;
  97. flex-direction: column;
  98. .roles-content {
  99. width: 100%;
  100. flex: 1;
  101. overflow: hidden;
  102. overflow-y: auto;
  103. .content {
  104. padding: 40rpx;
  105. box-sizing: border-box;
  106. display: flex;
  107. flex-direction: column;
  108. align-items: center;
  109. justify-content: center;
  110. .title {
  111. color: #333;
  112. width: 100%;
  113. font-family: DM Sans;
  114. font-size: 40rpx;
  115. font-weight: 600;
  116. }
  117. }
  118. }
  119. .submit-btn {
  120. flex-shrink: 0;
  121. border-radius: 999px;
  122. background: #FF6600;
  123. color: rgba(255, 255, 255, 1);
  124. font-family: DM Sans;
  125. font-size: 32rpx;
  126. font-weight: 400;
  127. line-height: 48rpx;
  128. display: flex;
  129. justify-content: center;
  130. align-items: center;
  131. padding: 16rpx 32rpx;
  132. box-sizing: border-box;
  133. margin: 60rpx 20rpx;
  134. }
  135. }
  136. .form-item {
  137. margin-bottom: 32rpx;
  138. width: 100%;
  139. }
  140. .title-desc{
  141. color: #666666;
  142. font-family: DM Sans;
  143. font-size: 24rpx;
  144. font-weight: 400;
  145. line-height: 32rpx;
  146. width: 100%;
  147. margin-top: 22rpx;
  148. }
  149. .item-label {
  150. color: rgba(18, 26, 44, 1);
  151. font-family: Roboto;
  152. font-size: 32rpx;
  153. font-weight: 400;
  154. line-height: 51.2rpx;
  155. letter-spacing: 0px;
  156. text-align: left;
  157. padding-bottom: 6rpx;
  158. padding: 10rpx 0;
  159. box-sizing: border-box;
  160. }
  161. .custom-input {
  162. box-sizing: border-box;
  163. border: 2rpx solid rgba(158, 161, 168, 1);
  164. border-radius: 100rpx;
  165. background: rgba(255, 255, 255, 1);
  166. padding: 8rpx 24rpx !important;
  167. }
  168. .custom-textarea {
  169. width: 100%;
  170. margin-top: 22rpx;
  171. }
  172. ::v-deep .u-input {
  173. text-align: left !important;
  174. }
  175. </style>