jufubao-forms 1.0.0-beta3 → 1.0.0-beta4

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-beta3",
3
+ "version": "1.0.0-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -77,6 +77,11 @@
77
77
  >{{ marketToolText }}</view>
78
78
  </view>
79
79
  </view>
80
+ <view v-if="form_status === 'error'" class="form_status form_error">
81
+ <xd-font-icon icon="iconshibai" color="#ff5235" :size="64"></xd-font-icon>
82
+ <view class="status_tip error_tip">{{ err_msg }}</view>
83
+ <view class="status_name">{{ formName }}</view>
84
+ </view>
80
85
  </view>
81
86
 
82
87
  </view>
@@ -111,6 +116,7 @@
111
116
  loaded: false,
112
117
  isPreview: false,
113
118
  form_status: "content",
119
+ err_msg: "",
114
120
  formName: "",
115
121
  marketing_tool: "",
116
122
  activity_page_url: "",
@@ -240,6 +246,11 @@
240
246
  this.loaded = true;
241
247
  this.formList = res.list;
242
248
  this.formName = res.form_name;
249
+ this.err_msg = res.message;
250
+ if(res.message){
251
+ this.form_status = "error";
252
+ return;
253
+ }
243
254
  }).catch(err => {
244
255
  this.$xdHideLoading();
245
256
  })