jufubao-forms 1.0.0-beta11 → 1.0.0-beta12

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-forms",
3
- "version": "1.0.0-beta11",
3
+ "version": "1.0.0-beta12",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -188,6 +188,7 @@
188
188
  dynamicFormList: [],
189
189
  renderForm: "renderForm",
190
190
  form_id: "",
191
+ foreign_id: "",
191
192
  isShowDialog: false,
192
193
  validImageAPIUrl: "",
193
194
  valid_token: "",
@@ -236,6 +237,7 @@
236
237
  });
237
238
  }
238
239
  this.form_id = options.form_id;
240
+ this.foreign_id = options.foreign_id;
239
241
  }else{
240
242
  this.form_id = 1;
241
243
  }
@@ -247,7 +249,8 @@
247
249
  vm: this,
248
250
  data: {
249
251
  form_id: this.form_id,
250
- bucket: this.bucket
252
+ bucket: this.bucket,
253
+ foreign_id: this.foreign_id
251
254
  }
252
255
  }).then(res => {
253
256
  this.$xdHideLoading();
@@ -429,6 +432,7 @@
429
432
  contents,
430
433
  form_id: this.form_id,
431
434
  bucket: this.bucket,
435
+ foreign_id: this.foreign_id
432
436
  }
433
437
  }).then(res => {
434
438
  this.$xdHideLoading();
@@ -119,6 +119,7 @@
119
119
  data() {
120
120
  return {
121
121
  form_id: '',
122
+ foreign_id: "",
122
123
  loaded: false,
123
124
  isPreview: false,
124
125
  form_status: "content",
@@ -240,12 +241,14 @@
240
241
  this.form_id = '123';
241
242
  }else{
242
243
  this.form_id = options.form_id;
244
+ this.foreign_id = options.foreign_id;
243
245
  }
244
246
  this.$xdShowLoading({});
245
247
  jfbRootExec("getDynamicForm", {
246
248
  vm: this,
247
249
  data: {
248
250
  form_id: this.form_id,
251
+ foreign_id: this.foreign_id
249
252
  }
250
253
  }).then(res => {
251
254
  this.$xdHideLoading();
@@ -302,6 +305,7 @@
302
305
  vm: this,
303
306
  data: {
304
307
  form_id: this.form_id,
308
+ foreign_id: this.foreign_id,
305
309
  contents: this.formList.map(item => {
306
310
  let content = Array.isArray(item.value) ? item.value : (item.value ? [item.value] : []);
307
311
  return {
@@ -330,7 +334,7 @@
330
334
  if(url){
331
335
  if(this.marketing_tool === 'prize') url = url + '?id=' + this.activity_id;
332
336
  if(this.marketing_tool === 'coupon') url = url + '?activity_id=' + this.activity_id;
333
- else url = url + `?id=${this.activity_id}&activity_id=${this.activity_id}`;
337
+ else url = url + `?id=${this.activity_id}&activity_id=${this.activity_id}&foreign_id=${this.foreign_id}`;
334
338
  this.$xdUniHelper.navigateTo({
335
339
  url: url
336
340
  })