jufubao-base 1.0.29 → 1.0.30-beta2

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.
@@ -8,11 +8,11 @@
8
8
  */
9
9
  const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
10
  if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
11
+ return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
14
  if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
15
+ return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.29",
3
+ "version": "1.0.30-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -268,6 +268,15 @@ export default {
268
268
  container(value) {
269
269
  this.init(value);
270
270
  },
271
+ "accountForm.verification_code"(value){
272
+ if (value && value.length >= 8 && value.length % 2 === 0) {
273
+ let start = value.slice(0, value.length / 2);
274
+ let end = value.slice(value.length / 2);
275
+ if (start === end) {
276
+ this.accountForm.verification_code = start;
277
+ }
278
+ }
279
+ }
271
280
  },
272
281
 
273
282
  created() {
@@ -118,6 +118,15 @@ export default {
118
118
  container(value) {
119
119
  this.init(value);
120
120
  },
121
+ "resetForm.verification_code"(value) {
122
+ if (value && value.length >= 8 && value.length % 2 === 0) {
123
+ let start = value.slice(0, value.length / 2);
124
+ let end = value.slice(value.length / 2);
125
+ if (start === end) {
126
+ this.accountForm.verification_code = start;
127
+ }
128
+ }
129
+ }
121
130
  },
122
131
  created() {
123
132
  this.init(this.container);
@@ -225,7 +234,7 @@ export default {
225
234
  }
226
235
 
227
236
  .form-group {
228
- padding: 40rpx 70rpx;
237
+ padding: 40rpx 70rpx;
229
238
  }
230
239
 
231
240
  .get_code {
@@ -137,6 +137,15 @@ export default {
137
137
  container(value) {
138
138
  this.init(value);
139
139
  },
140
+ "accountForm.verification_code"(value) {
141
+ if (value && value.length >= 8 && value.length % 2 === 0) {
142
+ let start = value.slice(0, value.length / 2);
143
+ let end = value.slice(value.length / 2);
144
+ if (start === end) {
145
+ this.accountForm.verification_code = start;
146
+ }
147
+ }
148
+ }
140
149
  },
141
150
  created() {
142
151
  this.init(this.container);
@@ -135,12 +135,19 @@
135
135
  watch: {
136
136
  container(value) {
137
137
  this.init(value)
138
+ },
139
+ "accountForm.verification_code"(value) {
140
+ if (value && value.length >= 8 && value.length % 2 === 0) {
141
+ let start = value.slice(0, value.length / 2);
142
+ let end = value.slice(value.length / 2);
143
+ if (start === end) {
144
+ this.accountForm.verification_code = start;
145
+ }
146
+ }
138
147
  }
139
148
  },
140
149
  created() {
141
150
  this.init(this.container);
142
-
143
- //todo
144
151
  },
145
152
  methods: {
146
153
  handlePrivacy(code) {