|
@@ -52,6 +52,21 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+ let that = this;
|
|
|
+ uni.getStorage({
|
|
|
+ key: 'session_login_info',
|
|
|
+ success: function (res) {
|
|
|
+ let loginInfo = JSON.parse(res.data);
|
|
|
+ if(loginInfo.officerNo&&loginInfo.loginPwd){
|
|
|
+ that.form.officerNo = loginInfo.officerNo;
|
|
|
+ that.form.loginPwd = loginInfo.loginPwd;
|
|
|
+ }
|
|
|
+ console.log(loginInfo.officerNo);
|
|
|
+ console.log(loginInfo.loginPwd);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
onReady() {
|
|
|
this.$refs.uForm.setRules(this.rules);
|