system-phone 1.2.21 → 1.2.22-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.gradle CHANGED
@@ -10,7 +10,7 @@ buildscript {
10
10
  }
11
11
  }
12
12
 
13
- version = '1.2.20'
13
+ version = '1.3.0'
14
14
 
15
15
  apply plugin: 'java'
16
16
  apply plugin: 'docker'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "1.2.21",
3
+ "version": "1.2.22-1",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -0,0 +1,18 @@
1
+ /* 字体 */
2
+ @font-face {
3
+ font-family: Pingfhs;
4
+ src: url("./pingheizhun.ttf");
5
+ }
6
+ @font-face {
7
+ font-family: Pingfzhs;
8
+ src: url("./pingheizhong.ttf");
9
+ }
10
+ @font-face {
11
+ font-family: Pingfzcs;
12
+ src: url("./pingheicu.ttf");
13
+ }
14
+ @font-face {
15
+ font-family: Pingfzqs;
16
+ src: url("./pingheiqian.ttf");
17
+ }
18
+
@@ -11,8 +11,8 @@
11
11
  <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
12
12
  </p>
13
13
  <div class="row">
14
- <img src="../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"@click="showoff()">
15
- <img src="../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave" @click="showon()">
14
+ <img src="../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave == '1'"@click="showoff()">
15
+ <img src="../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave == '0'" @click="showon()">
16
16
  <span class="text-left font">记住密码</span>
17
17
  <p></p>
18
18
  <span class="devicetext">设备码:{{deviceIemi}}</span>
@@ -72,7 +72,7 @@
72
72
  config:{},
73
73
  ename: '',
74
74
  password: '',
75
- showsave:true,
75
+ showsave:'0',
76
76
  deviceIemi:'无法获取该设备码,请联系管理员',
77
77
  loginSafe:false,
78
78
  margintop: document.documentElement.clientHeight * 0.1
@@ -82,6 +82,10 @@
82
82
  ready () {
83
83
  if(Vue.android) {
84
84
  let userPp1 = this.$androidUtil.getPreference('login_user_cache')
85
+ let passwordshowsave = this.$androidUtil.getPreference('password_issave')
86
+ if(passwordshowsave){
87
+ this.showsave = passwordshowsave
88
+ }
85
89
  if(userPp1){
86
90
  console.log(`1返回值是:${userPp1}`)
87
91
  userPp1 = userPp1.replace(/\'/g,'\"')
@@ -102,10 +106,10 @@
102
106
  methods: {
103
107
  // 记住密码选中/未选中
104
108
  showoff(){
105
- this.showsave = false
109
+ this.showsave = '0'
106
110
  },
107
111
  showon(){
108
- this.showsave = true
112
+ this.showsave = '1'
109
113
  },
110
114
  async confirm() {
111
115
  console.log('Vue.android:' + Vue.android)
@@ -148,6 +152,7 @@
148
152
  this.$androidUtil.setPreference('login_user_cache', userStr)
149
153
  this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
150
154
  this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
155
+ this.$androidUtil.setPreference('password_issave', this.showsave)
151
156
  }
152
157
  Vue.$login = {jwt: ret.data.id}
153
158
  // 获取参数
@@ -155,9 +160,9 @@
155
160
  asyncReady(this,this.$androidUtil.getProxyUrl())
156
161
  console.log('获取参数结束')
157
162
 
158
- // console.log('登陆验证成功时装载业务数据')
159
- // asyncLoadData()
160
- // console.log('装载业务数据结束')
163
+ console.log('登陆验证成功时装载业务数据')
164
+ asyncLoadData()
165
+ console.log('装载业务数据结束')
161
166
 
162
167
  this.$goto('nav-bottom')
163
168
  }catch (e) {
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  ready () {
45
- this.$refs.route.init('repair-first')
45
+ // this.$refs.route.init('repair-first')
46
46
  },
47
47
  methods: {
48
48
  imgback(val){
package/src/main.js CHANGED
@@ -9,7 +9,7 @@ systemphonegrid()
9
9
  // systemphone()
10
10
  require('./android-bootstrap/less/bootstrap.less')
11
11
  require('./expandcssAndroid.less')
12
- // require('./assets/fonttype/fontAndroid.less')
12
+ require('./assets/fonttype/fontAndroid.less')
13
13
 
14
14
  Vue.config.silent = true
15
15
  Vue.android = false
Binary file
package/.npmignore DELETED
@@ -1,9 +0,0 @@
1
- .idea/
2
- .DS_Store
3
- node_modules/
4
- dist/static/*.map
5
- npm-debug.log
6
- selenium-debug.log
7
- test/unit/coverage
8
- test/e2e/reports
9
- dist/