25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

326 lines
5.1 KiB

  1. <template>
  2. <view>
  3. <view class="input">
  4. <view class="zcasfdasf">设置密码</view>
  5. <view class="tejHdgasd">设置密码后,就可以使用手机号码与密码登录了~</view>
  6. <view style="margin-top:60rpx" class="cwjs-cells item-flex">
  7. <view class="cwjs-item center">
  8. <input class="cwjs-item cwjs-input" v-model="username" password="true" placeholder="请设置6~12位的登录密码"
  9. placeholder-style='color:#AAAAAA' maxlength="12" />
  10. </view>
  11. </view>
  12. </view>
  13. <view class="button" @tap="bindWxBLogin">确认</view>
  14. </view>
  15. </template>
  16. <script>
  17. var util = require("../../utils/util.js");
  18. var config = require("../../config");
  19. var app = getApp();
  20. export default {
  21. data() {
  22. return {
  23. username: '', //获取到的密码
  24. phone: ''
  25. }
  26. },
  27. onLoad: function(options) {
  28. this.phone = options.username
  29. },
  30. methods: {
  31. bindWxBLogin() {
  32. if (this.username.length < 6) {
  33. util.showNone("密码小于6位,请重试");
  34. return false;
  35. } else {
  36. uni.reLaunch({
  37. url: '/pages/login/index',
  38. })
  39. }
  40. }
  41. }
  42. };
  43. </script>
  44. <style lang="scss">
  45. .cwjs-logo {
  46. display: block;
  47. width: 219rpx;
  48. height: 158rpx;
  49. margin: 54rpx auto 66rpx;
  50. }
  51. .cwjs-tips {
  52. font-size: 24rpx;
  53. padding: 80rpx 0;
  54. color: #8a8a8a;
  55. }
  56. .cwjs-form {
  57. position: relative;
  58. margin: 0;
  59. background-color: #fff;
  60. border-radius: 10px;
  61. padding: 20rpx 40rpx 113rpx;
  62. }
  63. .zcasfdasf {
  64. height: 48rpx;
  65. font-size: 48rpx;
  66. font-weight: 400;
  67. color: #303030;
  68. line-height: 48rpx;
  69. margin-top: 80rpx;
  70. }
  71. .tejHdgasd {
  72. height: 28rpx;
  73. font-size: 26rpx;
  74. font-weight: 400;
  75. color: #303030;
  76. line-height: 28rpx;
  77. margin-top: 28rpx;
  78. }
  79. .cwjs-cells {
  80. width: 600rpx;
  81. display: flex;
  82. flex-direction: row;
  83. justify-content: space-between;
  84. align-items: center;
  85. margin: 0 auto;
  86. height: 88rpx;
  87. overflow: hidden;
  88. border-bottom: 1rpx solid #BFC7D3;
  89. position: relative;
  90. }
  91. .center {
  92. flex: 1;
  93. display: flex;
  94. }
  95. .texteasda {
  96. height: 88rpx;
  97. line-height: 88rpx;
  98. font-size: 28rpx;
  99. color: #000;
  100. }
  101. .cwjs-input {
  102. width: 100%;
  103. height: 88rpx;
  104. line-height: 88rpx;
  105. font-size: 28rpx;
  106. color: #000;
  107. }
  108. .images {
  109. display: block;
  110. width: 40rpx;
  111. height: 21rpx;
  112. margin-right: 30rpx;
  113. margin-top: 33.5rpx;
  114. }
  115. .mod-btn {
  116. position: absolute;
  117. bottom: -80rpx;
  118. left: 50%;
  119. margin-left: -80rpx;
  120. }
  121. .mod-btn .button {
  122. width: 160rpx;
  123. height: 160rpx;
  124. background: linear-gradient(180deg, rgba(116, 197, 230, 1) 0%, rgba(64, 147, 201, 1) 100%);
  125. border: 10rpx solid rgba(255, 255, 255, 1);
  126. border-radius: 100%;
  127. font-size: 36rpx;
  128. color: #fff;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. }
  133. .mod-btn .button::after {
  134. content: ""
  135. }
  136. .retPassword {
  137. display: inline;
  138. width: auto;
  139. font-size: 28rpx;
  140. color: rgba(64, 147, 201, 1);
  141. line-height: 40rpx;
  142. float: right;
  143. }
  144. .retPassword:active {
  145. background-color: #fff;
  146. }
  147. .appliyAdmin {
  148. position: absolute;
  149. left: 50%;
  150. margin-left: -57rpx;
  151. bottom: 100rpx;
  152. width: 114rpx;
  153. font-size: 28rpx;
  154. color: rgba(255, 255, 255, 1);
  155. line-height: 40rpx;
  156. }
  157. /* 头部 */
  158. .head {
  159. width: 750rpx;
  160. height: 355rpx;
  161. }
  162. .background {
  163. width: 750rpx;
  164. height: 400rpx;
  165. position: absolute;
  166. top: -3rpx;
  167. left: 0;
  168. }
  169. .logo {
  170. width: 123rpx;
  171. height: 107rpx;
  172. display: block;
  173. position: absolute;
  174. top: 84rpx;
  175. left: 313.5rpx;
  176. }
  177. .head text {
  178. font-size: 34rpx;
  179. font-family: PingFangSC-Medium, PingFang SC;
  180. font-weight: 500;
  181. color: #2343BD;
  182. position: absolute;
  183. top: 222rpx;
  184. left: 203rpx;
  185. }
  186. /* 输入框 */
  187. .input {
  188. width: 100%;
  189. height: auto;
  190. padding: 0 90rpx;
  191. box-sizing: border-box;
  192. }
  193. .logo_input {
  194. width: 34rpx;
  195. height: 38rpx;
  196. position: absolute;
  197. top: 25rpx;
  198. left: 0;
  199. }
  200. /* 登录 */
  201. .button {
  202. width: 603rpx;
  203. height: 89rpx;
  204. background: rgba(72, 149, 255, 1);
  205. box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(151, 192, 255, 1);
  206. border-radius: 45rpx;
  207. text-align: center;
  208. line-height: 89rpx;
  209. color: #fff;
  210. margin: 0 auto;
  211. margin-top: 239rpx;
  212. font-size: 34rpx;
  213. }
  214. .footer {
  215. width: 100%;
  216. height: 157rpx;
  217. position: absolute;
  218. bottom: 0;
  219. left: 0;
  220. }
  221. .agreeBox {
  222. /* text-align: center; */
  223. /* width: 450rpx; */
  224. /* padding-left: 145rpx; */
  225. font-size: 28rpx;
  226. color: #88909E;
  227. margin: 0 auto;
  228. margin-top: 30rpx;
  229. position: relative;
  230. display: flex;
  231. }
  232. checkbox {
  233. transform: scale(0.5);
  234. }
  235. checkbox-group {
  236. display: inline;
  237. }
  238. navigator {
  239. display: inline
  240. }
  241. .agreeBox image {
  242. width: 26rpx;
  243. height: 26rpx;
  244. display: block;
  245. position: absolute;
  246. top: 9rpx;
  247. left: 18rpx;
  248. margin-right: 19rpx;
  249. }
  250. .imagesBox {
  251. width: 80rpx;
  252. height: 88rpx;
  253. }
  254. .chooseBox {
  255. width: 60rpx;
  256. height: 60rpx;
  257. }
  258. .login {
  259. text-decoration: underline;
  260. text-align: center;
  261. margin-top: 40px;
  262. color: #88909E;
  263. font-size: 28rpx;
  264. }
  265. .textbox {
  266. width: 569rpx;
  267. display: flex;
  268. margin-top: 40rpx;
  269. }
  270. .textbox-1 {
  271. width: 30%;
  272. font-size: 30rpx;
  273. color: #999999;
  274. }
  275. .textbox-11 {
  276. width: 30%;
  277. text-align: right;
  278. font-size: 30rpx;
  279. color: #999999;
  280. }
  281. .textbox-2 {
  282. width: 40%;
  283. }
  284. </style>