|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- <template>
- <view>
- <view class="input">
- <view class="zcasfdasf">设置密码</view>
- <view class="tejHdgasd">设置密码后,就可以使用手机号码与密码登录了~</view>
- <view style="margin-top:60rpx" class="cwjs-cells item-flex">
- <view class="cwjs-item center">
- <input class="cwjs-item cwjs-input" v-model="username" password="true" placeholder="请设置6~12位的登录密码"
- placeholder-style='color:#AAAAAA' maxlength="12" />
- </view>
- </view>
-
- </view>
- <view class="button" @tap="bindWxBLogin">确认</view>
- </view>
- </template>
- <script>
- var util = require("../../utils/util.js");
- var config = require("../../config");
- var app = getApp();
- var WXB_SESSION_LOGIN_DATA = 'weapp_session_login_data';
- export default {
- data() {
- return {
- username: '', //获取到的密码
- phone: ''
- }
- },
- onLoad: function(options) {
- this.phone = options.username
- },
- methods: {
- bindWxBLogin() {
- if (this.username.length < 6) {
- util.showNone("密码小于6位,请重试");
- return false;
- } else {
- var loginParams = {
- name: this.phone, //手机号
- newPassword: this.username, //密码
- }
- uni.request({
- url: config.service.forgotPassword,
- header: {
- 'content-type': 'application/json'
- },
- data: loginParams,
- method: "POST",
- success: function(result) {
- if (result.data.code == 10000) {
- uni.reLaunch({
- url: '/pages/login/index',
- })
- } else {
- util.showNone(result.data.message);
- return false;
- }
- }
- })
-
-
- }
- }
- }
- };
- </script>
-
- <style lang="scss">
- .cwjs-logo {
- display: block;
- width: 219rpx;
- height: 158rpx;
- margin: 54rpx auto 66rpx;
- }
-
- .cwjs-tips {
- font-size: 24rpx;
- padding: 80rpx 0;
- color: #8a8a8a;
- }
-
- .cwjs-form {
- position: relative;
- margin: 0;
- background-color: #fff;
- border-radius: 10px;
- padding: 20rpx 40rpx 113rpx;
- }
-
- .zcasfdasf {
- height: 48rpx;
- font-size: 48rpx;
- font-weight: 400;
- color: #303030;
- line-height: 48rpx;
- margin-top: 80rpx;
- }
-
- .tejHdgasd {
- height: 28rpx;
- font-size: 26rpx;
- font-weight: 400;
- color: #303030;
- line-height: 28rpx;
- margin-top: 28rpx;
-
- }
-
- .cwjs-cells {
- width: 600rpx;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin: 0 auto;
- height: 88rpx;
- overflow: hidden;
- border-bottom: 1rpx solid #BFC7D3;
- position: relative;
- }
-
- .center {
- flex: 1;
- display: flex;
- }
-
- .texteasda {
- height: 88rpx;
- line-height: 88rpx;
- font-size: 28rpx;
- color: #000;
- }
-
- .cwjs-input {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- font-size: 28rpx;
- color: #000;
- }
-
- .images {
- display: block;
- width: 40rpx;
- height: 21rpx;
- margin-right: 30rpx;
- margin-top: 33.5rpx;
- }
-
- .mod-btn {
- position: absolute;
- bottom: -80rpx;
- left: 50%;
- margin-left: -80rpx;
- }
-
- .mod-btn .button {
- width: 160rpx;
- height: 160rpx;
- background: linear-gradient(180deg, rgba(116, 197, 230, 1) 0%, rgba(64, 147, 201, 1) 100%);
- border: 10rpx solid rgba(255, 255, 255, 1);
- border-radius: 100%;
- font-size: 36rpx;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
-
- }
-
- .mod-btn .button::after {
- content: ""
- }
-
- .retPassword {
- display: inline;
- width: auto;
- font-size: 28rpx;
- color: rgba(64, 147, 201, 1);
- line-height: 40rpx;
- float: right;
- }
-
- .retPassword:active {
- background-color: #fff;
- }
-
- .appliyAdmin {
- position: absolute;
- left: 50%;
- margin-left: -57rpx;
- bottom: 100rpx;
- width: 114rpx;
- font-size: 28rpx;
- color: rgba(255, 255, 255, 1);
- line-height: 40rpx;
- }
-
- /* 头部 */
-
- .head {
- width: 750rpx;
- height: 355rpx;
- }
-
- .background {
- width: 750rpx;
- height: 400rpx;
- position: absolute;
- top: -3rpx;
- left: 0;
- }
-
- .logo {
- width: 123rpx;
- height: 107rpx;
- display: block;
- position: absolute;
- top: 84rpx;
- left: 313.5rpx;
- }
-
- .head text {
- font-size: 34rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #2343BD;
- position: absolute;
- top: 222rpx;
- left: 203rpx;
- }
-
- /* 输入框 */
- .input {
- width: 100%;
- height: auto;
- padding: 0 90rpx;
- box-sizing: border-box;
- }
-
- .logo_input {
- width: 34rpx;
- height: 38rpx;
- position: absolute;
- top: 25rpx;
- left: 0;
- }
-
- /* 登录 */
- .button {
- width: 603rpx;
- height: 89rpx;
- background: rgba(72, 149, 255, 1);
- box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(151, 192, 255, 1);
- border-radius: 45rpx;
- text-align: center;
- line-height: 89rpx;
- color: #fff;
- margin: 0 auto;
- margin-top: 239rpx;
- font-size: 34rpx;
- }
-
- .footer {
- width: 100%;
- height: 157rpx;
- position: absolute;
- bottom: 0;
- left: 0;
- }
-
- .agreeBox {
- /* text-align: center; */
- /* width: 450rpx; */
- /* padding-left: 145rpx; */
- font-size: 28rpx;
- color: #88909E;
- margin: 0 auto;
- margin-top: 30rpx;
- position: relative;
- display: flex;
-
- }
-
- checkbox {
- transform: scale(0.5);
- }
-
- checkbox-group {
- display: inline;
- }
-
- navigator {
- display: inline
- }
-
- .agreeBox image {
- width: 26rpx;
- height: 26rpx;
- display: block;
- position: absolute;
- top: 9rpx;
- left: 18rpx;
- margin-right: 19rpx;
- }
-
- .imagesBox {
- width: 80rpx;
- height: 88rpx;
- }
-
- .chooseBox {
- width: 60rpx;
- height: 60rpx;
- }
-
- .login {
- text-decoration: underline;
- text-align: center;
- margin-top: 40px;
- color: #88909E;
- font-size: 28rpx;
- }
-
- .textbox {
- width: 569rpx;
- display: flex;
- margin-top: 40rpx;
- }
-
- .textbox-1 {
- width: 30%;
- font-size: 30rpx;
- color: #999999;
- }
-
- .textbox-11 {
- width: 30%;
- text-align: right;
- font-size: 30rpx;
- color: #999999;
- }
-
- .textbox-2 {
- width: 40%;
- }
- </style>
|