jufubao-forms 1.0.0-beta11 → 1.0.0-beta13

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-beta13",
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,18 +237,26 @@
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
  }
242
244
  let getFormFn = "getDynamicForm"; //加盟商营销动态表单fn
243
245
  // if(this.formBe == 2) getFormFn = "getSaasDynamicForm"
244
246
 
247
+ let activity_range = 2;
248
+ // #ifdef MP
249
+ activity_range = 4;
250
+ // #endif
251
+
245
252
  this.$xdShowLoading({});
246
253
  jfbRootExec(getFormFn, {
247
254
  vm: this,
248
255
  data: {
249
256
  form_id: this.form_id,
250
- bucket: this.bucket
257
+ bucket: this.bucket,
258
+ foreign_id: this.foreign_id,
259
+ activity_range: activity_range
251
260
  }
252
261
  }).then(res => {
253
262
  this.$xdHideLoading();
@@ -429,6 +438,7 @@
429
438
  contents,
430
439
  form_id: this.form_id,
431
440
  bucket: this.bucket,
441
+ foreign_id: this.foreign_id
432
442
  }
433
443
  }).then(res => {
434
444
  this.$xdHideLoading();
@@ -130,11 +130,17 @@
130
130
  this.qaDetailPath = getContainerPropsValue(container, 'content.qaDetailPath', {value: ""}).value;
131
131
  },
132
132
  getList(){
133
+ let activity_show_terminal = 2;
134
+
135
+ // #ifdef MP
136
+ activity_show_terminal = 4;
137
+ // #endif
133
138
  let data = {
134
139
  page_token: this.page_token+'',
135
140
  page_size: this.page_size,
136
141
  bucket: this.bucket,
137
- base_type: this.base_type
142
+ base_type: this.base_type,
143
+ activity_range: activity_show_terminal
138
144
  }
139
145
  jfbRootExec("getSaasFormList", {
140
146
  vm: this,
@@ -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,19 @@
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
  }
246
+ let activity_range = 2;
247
+ // #ifdef MP
248
+ activity_range = 4;
249
+ // #endif
244
250
  this.$xdShowLoading({});
245
251
  jfbRootExec("getDynamicForm", {
246
252
  vm: this,
247
253
  data: {
248
254
  form_id: this.form_id,
255
+ foreign_id: this.foreign_id,
256
+ activity_range: activity_range
249
257
  }
250
258
  }).then(res => {
251
259
  this.$xdHideLoading();
@@ -302,6 +310,7 @@
302
310
  vm: this,
303
311
  data: {
304
312
  form_id: this.form_id,
313
+ foreign_id: this.foreign_id,
305
314
  contents: this.formList.map(item => {
306
315
  let content = Array.isArray(item.value) ? item.value : (item.value ? [item.value] : []);
307
316
  return {
@@ -330,7 +339,7 @@
330
339
  if(url){
331
340
  if(this.marketing_tool === 'prize') url = url + '?id=' + this.activity_id;
332
341
  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}`;
342
+ else url = url + `?id=${this.activity_id}&activity_id=${this.activity_id}&foreign_id=${this.foreign_id}`;
334
343
  this.$xdUniHelper.navigateTo({
335
344
  url: url
336
345
  })