jufubao-forms 1.0.0-beta5 → 1.0.0-beta6

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-beta5",
3
+ "version": "1.0.0-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -202,6 +202,9 @@
202
202
  ...mapState({
203
203
  brandInfo: state => state.brandInfo
204
204
  }),
205
+ bucket(){
206
+ return this.formBe == 1 ? 'default' : 'saas';
207
+ }
205
208
  },
206
209
  watch: {
207
210
  container(value, oldValue) {
@@ -230,14 +233,14 @@
230
233
  this.form_id = 1;
231
234
  }
232
235
  let getFormFn = "getDynamicForm"; //加盟商营销动态表单fn
233
- if(this.formBe == 2) getFormFn = "getSaasDynamicForm"
234
-
236
+ // if(this.formBe == 2) getFormFn = "getSaasDynamicForm"
235
237
 
236
238
  this.$xdShowLoading({});
237
239
  jfbRootExec(getFormFn, {
238
240
  vm: this,
239
241
  data: {
240
242
  form_id: this.form_id,
243
+ bucket: this.bucket
241
244
  }
242
245
  }).then(res => {
243
246
  this.$xdHideLoading();
@@ -409,14 +412,15 @@
409
412
  console.log(contents, "contents")
410
413
 
411
414
  let submitFormFn = "submitDynamicForm"; //加盟商营销动态表单fn
412
- if(this.formBe == 2) submitFormFn = "submitSaasDynamicForm"
415
+ // if(this.formBe == 2) submitFormFn = "submitSaasDynamicForm"
413
416
 
414
417
  this.$xdShowLoading({});
415
418
  jfbRootExec(submitFormFn, {
416
419
  vm: this,
417
420
  data: {
418
421
  contents,
419
- form_id: this.form_id
422
+ form_id: this.form_id,
423
+ bucket: this.bucket,
420
424
  }
421
425
  }).then(res => {
422
426
  this.$xdHideLoading();
@@ -23,7 +23,7 @@
23
23
  <view class="result_total">共{{ formList.length }}道题</view>
24
24
  <view class="btn_wrap">
25
25
  <view class="btn" @click="toHomePage">返回首页</view>
26
- <view class="btn primary" @click="isShowAnalysis=true">答案解析</view>
26
+ <view v-if="is_show_error_answer_analysis==='Y'" class="btn primary" @click="isShowAnalysis=true">答案解析</view>
27
27
  </view>
28
28
  </view>
29
29
 
@@ -117,6 +117,8 @@
117
117
 
118
118
  isShowAnalysis: false, //是否显示解析
119
119
  isOnlyError: false, //是否只看错题
120
+
121
+ is_show_error_answer_analysis: "", //创建表单是创建的是否展示错误答案解析Y/N
120
122
  //todo
121
123
 
122
124
  returnHomePath: "",
@@ -155,6 +157,7 @@
155
157
  'radio': '单选',
156
158
  'checkbox': '多选'
157
159
  }
160
+ this.is_show_error_answer_analysis = res.is_show_error_answer_analysis;
158
161
  this.formList = res.list.map((item, index) => {
159
162
  let defaultValue = JSON.parse(item.default);
160
163
  item.rightValue = item.answer;
@@ -70,8 +70,8 @@
70
70
  <view class="status_tip">您已成功提交</view>
71
71
  <view class="status_name">{{ formName }}</view>
72
72
  <view class="status_btn_wrap">
73
- <view class="status_btn">关闭</view>
74
- <view class="status_btn" v-if="marketToolText"
73
+ <view class="status_btn" @click="doClose">关闭</view>
74
+ <view class="status_btn" v-if="marketToolText"
75
75
  style="background:#FE7A63;"
76
76
  @click="handleMarketToolBtn"
77
77
  >{{ marketToolText }}</view>
@@ -81,6 +81,7 @@
81
81
  <xd-font-icon icon="iconshibai" color="#ff5235" :size="64"></xd-font-icon>
82
82
  <view class="status_tip error_tip">{{ err_msg }}</view>
83
83
  <view class="status_name">{{ formName }}</view>
84
+ <view class="status_btn" @click="doClose" style="border-radius: 8rpx;">关闭</view>
84
85
  </view>
85
86
  </view>
86
87
 
@@ -276,6 +277,10 @@
276
277
  this.curIndex++;
277
278
  }
278
279
  },
280
+ doClose(){
281
+ window.location.href = 'about:blank';
282
+ window.close();
283
+ },
279
284
  p_submitQaForm(){
280
285
  uni.showModal({
281
286
  title: '提示',