jufubao-base 1.0.40-beta9 → 1.0.40

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-base",
3
- "version": "1.0.40-beta9",
3
+ "version": "1.0.40",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -126,6 +126,7 @@ export default {
126
126
  prod_bottom() {
127
127
  return this.fixedStyle({ height: 0, zIndex: 111 });
128
128
  },
129
+ ...mapState(["jfbAuthorize"]),
129
130
  },
130
131
  created() {
131
132
  this.init(this.container);
@@ -149,7 +149,7 @@
149
149
  this.timer = null
150
150
  }
151
151
  setTimeout(() => {
152
- this.init(value)
152
+ if (this.$configProject['isPreview']) this.onJfbLoad()
153
153
  }, 400)
154
154
 
155
155
  },
@@ -159,12 +159,12 @@
159
159
  this.timer = null
160
160
  }
161
161
  setTimeout(() => {
162
- this.onJfbLoad();
162
+ if (this.$configProject['isPreview']) this.onJfbLoad()
163
163
  }, 400)
164
164
 
165
165
  },
166
166
  style() {
167
- this.onJfbLoad()
167
+ if(this.$configProject['isPreview']) this.onJfbLoad()
168
168
  },
169
169
  speed(){
170
170
  if(this.timer) {
@@ -187,17 +187,17 @@ export default {
187
187
  },
188
188
  inline: false,
189
189
  },
190
- {
191
- label: '查看单个包裹物流路径:', //label
192
- ele: 'xd-select-pages-path', //package 名称
193
- valueKey: 'logisticsPath', //form[valueKey]
194
- placeholder: '请选择查看单个包裹物流路径',
195
- value: data['logisticsPath'] || null,
196
- setting: {
197
- router: XdBus.getParentApi('getPagesTree'),
198
- },
199
- inline: false,
200
- },
190
+ // {
191
+ // label: '查看单个包裹物流路径:', //label
192
+ // ele: 'xd-select-pages-path', //package 名称
193
+ // valueKey: 'logisticsPath', //form[valueKey]
194
+ // placeholder: '请选择查看单个包裹物流路径',
195
+ // value: data['logisticsPath'] || null,
196
+ // setting: {
197
+ // router: XdBus.getParentApi('getPagesTree'),
198
+ // },
199
+ // inline: false,
200
+ // },
201
201
  {
202
202
  label: '查看包裹列表路径:', //label
203
203
  ele: 'xd-select-pages-path', //package 名称
@@ -704,7 +704,7 @@ export default {
704
704
  codeSrc: "",
705
705
  packageListPath: "", //包裹列表路径
706
706
  payPath: "", //支付路径
707
- logisticsPath: "", //物流详情路径
707
+ // logisticsPath: "", //物流详情路径
708
708
  webViewPath: "", //容器路径
709
709
  viewStatus: "", //业务类型预览
710
710
  isPreview: false, //是否预览
@@ -922,11 +922,11 @@ export default {
922
922
  this.payPath = getContainerPropsValue(container, "content.payPath", {
923
923
  value: "",
924
924
  }).value;
925
- this.logisticsPath = getContainerPropsValue(
926
- container,
927
- "content.logisticsPath",
928
- { value: "" }
929
- ).value;
925
+ // this.logisticsPath = getContainerPropsValue(
926
+ // container,
927
+ // "content.logisticsPath",
928
+ // { value: "" }
929
+ // ).value;
930
930
  this.packageListPath = getContainerPropsValue(
931
931
  container,
932
932
  "content.packageListPath",
@@ -1070,18 +1070,21 @@ export default {
1070
1070
  },
1071
1071
  handleAction(item) {
1072
1072
  if (item.action === "view_logistics") {
1073
- if (
1074
- this.info.extras.first_logistics_package_id &&
1075
- this.info.extras.logistics_count === 1
1076
- ) {
1077
- this.$xdUniHelper.navigateTo({
1078
- url: `${this.logisticsPath}?package_id=${this.info.extras.first_logistics_package_id}`,
1079
- });
1080
- } else {
1081
- this.$xdUniHelper.navigateTo({
1082
- url: `${this.packageListPath}?order_id=${this.main_order_id}`,
1083
- });
1084
- }
1073
+ // if (
1074
+ // this.info.extras.first_logistics_package_id &&
1075
+ // this.info.extras.logistics_count === 1
1076
+ // ) {
1077
+ // this.$xdUniHelper.navigateTo({
1078
+ // url: `${this.logisticsPath}?package_id=${this.info.extras.first_logistics_package_id}`,
1079
+ // });
1080
+ // } else {
1081
+ // this.$xdUniHelper.navigateTo({
1082
+ // url: `${this.packageListPath}?order_id=${this.main_order_id}`,
1083
+ // });
1084
+ // }
1085
+ this.$xdUniHelper.navigateTo({
1086
+ url: `${this.packageListPath}?order_id=${this.main_order_id}`,
1087
+ });
1085
1088
  } else {
1086
1089
  this.$xdConfirm({
1087
1090
  $vm: this,
@@ -256,7 +256,7 @@
256
256
  this.init(value);
257
257
  if(this.timer) clearTimeout(this.timer);
258
258
  this.timer = setTimeout(()=>{
259
- this.onJfbLoad(this.params);
259
+ if (this.$configProject['isPreview']) this.onJfbLoad()
260
260
  }, 400)
261
261
  }
262
262
  },
@@ -125,7 +125,7 @@
125
125
  },
126
126
  watch: {
127
127
  container(value) {
128
- this.init(value)
128
+ if (this.$configProject['isPreview']) this.init(value)
129
129
  }
130
130
  },
131
131
  created() {
@@ -139,7 +139,7 @@
139
139
  this.init(value);
140
140
  if(this.timer) clearTimeout(this.timer);
141
141
  this.timer = setTimeout(()=>{
142
- this.onJfbLoad(this.params);
142
+ if (this.$configProject['isPreview']) this.onJfbLoad(this.params);
143
143
  }, 400)
144
144
  }
145
145
  },