jufubao-movie 1.0.68-beta2 → 1.0.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.68-beta2",
3
+ "version": "1.0.68",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -173,7 +173,8 @@ export default {
173
173
  //面板
174
174
  scanPath: "", //扫一扫
175
175
  jhdPath: "", //聚好兑
176
- qpPath: "", //快捷码 scheduleChoosePath: "",
176
+ qpPath: "", //快捷码
177
+ scheduleChoosePath: "",
177
178
  codeChoosePath: "",
178
179
  choseCityPath: "",
179
180
  sort_consume_mode: "",
@@ -362,8 +363,7 @@ export default {
362
363
  color: distanceColor,
363
364
  },
364
365
  };
365
-
366
- this.scheduleChoosePath = gCPVal(container, "scheduleChoosePath", {
366
+ this.scheduleChoosePath = gCPVal(container, "schedule_choose_path", {
367
367
  value: "",
368
368
  }).value;
369
369
  this.codeChoosePath = gCPVal(container, "codeChoosePath", {
@@ -196,6 +196,32 @@ export default (data, gValue, gColor, oldData = {}) => {
196
196
  { value: 'code', label: '电子码', input: '', def: '电子码', check: false, placeholder: '电子码' },
197
197
  ])
198
198
  },
199
+ rules: [{
200
+ validator: (rule, value, callback) => {
201
+ let errorStr = '';
202
+ //设置为空
203
+ if (!value || (value && value.length === 0)) {
204
+ callback();
205
+ return;
206
+ }
207
+ //非空,判断设置的名称长度不能大于4
208
+ if (value && value.length > 0) {
209
+ let len = value.length;
210
+ for (let i = 0; i < len; i++) {
211
+ if (value[i].input.length > 4) {
212
+ errorStr = `${value[i].label}名称最大长度不能超过4个汉字`;
213
+ break
214
+ }
215
+ }
216
+ }
217
+ if (errorStr) {
218
+ callback(errorStr)
219
+ return
220
+ }
221
+
222
+ callback()
223
+ }, message: '输入名称内容最多4字', trigger: ['blur', 'change']
224
+ }]
199
225
  },
200
226
  { ele: 'group_end' },
201
227
  ].filter(i => i)