|
@@ -77,7 +77,7 @@
|
|
autocomplete="new-password"
|
|
autocomplete="new-password"
|
|
:rules="[{ trigger: 'onBlur', required: true, message: '请填写用户名' }]"
|
|
:rules="[{ trigger: 'onBlur', required: true, message: '请填写用户名' }]"
|
|
label-class="filed-label"
|
|
label-class="filed-label"
|
|
- style="border-radius:40px 40px 0 0;height:auto;display:block;font-size:16px"
|
|
|
|
|
|
+ style="border-radius:40px 40px 0 0;height:auto;display:block;font-size:16px;padding:10px 16px !important;"
|
|
/>
|
|
/>
|
|
<van-field
|
|
<van-field
|
|
label="密码"
|
|
label="密码"
|
|
@@ -87,7 +87,7 @@
|
|
placeholder="请输入密码"
|
|
placeholder="请输入密码"
|
|
autocomplete="new-password"
|
|
autocomplete="new-password"
|
|
label-class="filed-label"
|
|
label-class="filed-label"
|
|
- style="border-radius:0 0 40px 40px;height:auto;display:block;font-size:16px"
|
|
|
|
|
|
+ style="border-radius:0 0 40px 40px;height:auto;display:block;font-size:16px;padding:10px 16px !important;"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div style="margin:36px 10%;width:80%">
|
|
<div style="margin:36px 10%;width:80%">
|
|
@@ -114,10 +114,9 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { login, getDDConfig, getDDUserID, getWXUserID } from "@/api/login";
|
|
|
|
|
|
+import { login, getDDConfig, getDDUserID, getWXUserID,getIPC } from "@/api/login";
|
|
import { getHeadPic } from '@/api/userinfo.js'
|
|
import { getHeadPic } from '@/api/userinfo.js'
|
|
import { setToken, getToken } from "@/utils/cookie_ctrl";
|
|
import { setToken, getToken } from "@/utils/cookie_ctrl";
|
|
-import {ICPNumber,safetyRecordNumber,textColor} from "../../../static/recordNumber.json"
|
|
|
|
export default {
|
|
export default {
|
|
name: "Login",
|
|
name: "Login",
|
|
data() {
|
|
data() {
|
|
@@ -140,7 +139,7 @@ export default {
|
|
console.log(
|
|
console.log(
|
|
"==============================Login created=============================="
|
|
"==============================Login created=============================="
|
|
);
|
|
);
|
|
- this.getRecordData()
|
|
|
|
|
|
+ this.getRecordData();
|
|
this.token = getToken();
|
|
this.token = getToken();
|
|
console.log("-Login- token: ", this.token);
|
|
console.log("-Login- token: ", this.token);
|
|
console.log("-Login- token's type: ", typeof this.token);
|
|
console.log("-Login- token's type: ", typeof this.token);
|
|
@@ -171,9 +170,11 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getRecordData(){
|
|
getRecordData(){
|
|
- this.recordData.ICPNumber = ICPNumber
|
|
|
|
- this.recordData.safetyRecordNumber = safetyRecordNumber
|
|
|
|
- this.recordData.textColor = textColor
|
|
|
|
|
|
+ getIPC().then(rs=>{
|
|
|
|
+ this.recordData.ICPNumber = rs.data.ICPNumber
|
|
|
|
+ this.recordData.safetyRecordNumber = rs.data.safetyRecordNumber
|
|
|
|
+ this.recordData.textColor = rs.data.textColor
|
|
|
|
+ })
|
|
},
|
|
},
|
|
/** Request: 登录请求 */
|
|
/** Request: 登录请求 */
|
|
create_login(data, callback) {
|
|
create_login(data, callback) {
|