jufubao-base 1.0.237-beta18 → 1.0.237-beta3

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.
Files changed (131) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBlock/Attr.js +479 -34
  3. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +52 -9
  4. package/src/components/JfbBaseFastLink/Attr.js +1 -12
  5. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +0 -66
  6. package/src/components/JfbBaseHeader/Attr.js +0 -82
  7. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -47
  8. package/src/components/JfbBaseHeaderColumn/Attr.js +0 -82
  9. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -48
  10. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -11
  11. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  12. package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
  13. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +8 -27
  14. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +18 -179
  15. package/src/components/JfbBasePay/Attr.js +0 -52
  16. package/src/components/JfbBasePay/JfbBasePay.vue +4 -14
  17. package/src/components/JfbBasePay/Mock.js +9 -0
  18. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +1 -11
  19. package/src/components/JfbBasePoster/Attr.js +1 -1
  20. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  21. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -12
  22. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -12
  23. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -12
  24. package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
  25. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -2
  26. package/src/components/JfbBaseUserInfo/Attr.js +11 -175
  27. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +115 -337
  28. package/src/components/JfbBaseUserOrder/Attr.js +0 -16
  29. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +2 -11
  30. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +0 -10
  31. package/src/mixins/componentsMixins.js +117 -28
  32. package/src/components/JfbBaseBalance/Api.js +0 -46
  33. package/src/components/JfbBaseBalance/Attr.js +0 -316
  34. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -334
  35. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
  36. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
  37. package/src/components/JfbBaseBalance/Mock.js +0 -9
  38. package/src/components/JfbBaseCodeOpenVip/Api.js +0 -35
  39. package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
  40. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -251
  41. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
  42. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
  43. package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
  44. package/src/components/JfbBaseConsumpCode/Api.js +0 -133
  45. package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
  46. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -1017
  47. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
  48. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
  49. package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
  50. package/src/components/JfbBaseNoticeGroup/Api.js +0 -23
  51. package/src/components/JfbBaseNoticeGroup/Attr.js +0 -237
  52. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +0 -174
  53. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +0 -79
  54. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +0 -30
  55. package/src/components/JfbBaseNoticeGroup/Mock.js +0 -13
  56. package/src/components/JfbBaseOpenVip/Api.js +0 -39
  57. package/src/components/JfbBaseOpenVip/Attr.js +0 -331
  58. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -457
  59. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
  60. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
  61. package/src/components/JfbBaseOpenVip/Mock.js +0 -7
  62. package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -131
  63. package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
  64. package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
  65. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
  66. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
  67. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
  68. package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
  69. package/src/components/JfbBaseOpenVipDetail/Api.js +0 -35
  70. package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
  71. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -234
  72. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
  73. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
  74. package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -15
  75. package/src/components/JfbBasePersonalData/Api.js +0 -26
  76. package/src/components/JfbBasePersonalData/Attr.js +0 -13
  77. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -200
  78. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
  79. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
  80. package/src/components/JfbBasePersonalData/Mock.js +0 -13
  81. package/src/components/JfbBasePointsCard/Api.js +0 -18
  82. package/src/components/JfbBasePointsCard/Attr.js +0 -187
  83. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -212
  84. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
  85. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
  86. package/src/components/JfbBasePointsCard/Mock.js +0 -5
  87. package/src/components/JfbBasePointsDetail/Api.js +0 -48
  88. package/src/components/JfbBasePointsDetail/Attr.js +0 -305
  89. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
  90. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
  91. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
  92. package/src/components/JfbBasePointsDetail/Mock.js +0 -6
  93. package/src/components/JfbBasePosterGroup/Api.js +0 -22
  94. package/src/components/JfbBasePosterGroup/Attr.js +0 -156
  95. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -268
  96. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
  97. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
  98. package/src/components/JfbBasePosterGroup/Mock.js +0 -13
  99. package/src/components/JfbBaseSavingDetail/Api.js +0 -41
  100. package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
  101. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -710
  102. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
  103. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
  104. package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
  105. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
  106. package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
  107. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
  108. package/src/components/JfbBaseShare/Api.js +0 -20
  109. package/src/components/JfbBaseShare/Attr.js +0 -14
  110. package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -273
  111. package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
  112. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
  113. package/src/components/JfbBaseShare/Mock.js +0 -16
  114. package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
  115. package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
  116. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -354
  117. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
  118. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
  119. package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
  120. package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
  121. package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
  122. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
  123. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
  124. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
  125. package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
  126. package/src/components/JfbBaseWithdraw/Api.js +0 -48
  127. package/src/components/JfbBaseWithdraw/Attr.js +0 -328
  128. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -272
  129. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
  130. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
  131. package/src/components/JfbBaseWithdraw/Mock.js +0 -7
@@ -21,21 +21,6 @@ export default {
21
21
  groupKey:'advanced',
22
22
  },
23
23
  {
24
- label: '是否展示我的订单:',
25
- ele: 'xd-radio',
26
- valueKey: 'isShowMyOrder',
27
- value: data['isShowMyOrder'] || 'Y',
28
- placeholder: '请选择是否展示我的订单',
29
- groupKey:'content',
30
- multiple: false,
31
- labelInline:true,
32
- className: 'input80',
33
- list: [
34
- {label: '展示', value: 'Y'},
35
- {label: '隐藏', value: 'N'},
36
- ]
37
- },
38
- data['isShowMyOrder']==='Y'&&{
39
24
  label: '我的订单自定义名称:',
40
25
  ele: 'el-input',
41
26
  type: 'text',
@@ -116,7 +101,6 @@ export default {
116
101
  {"label": "待收货", "value": 'unreceived'},
117
102
  {"label": "已取消", "value": 'cancel'},
118
103
  {"label": "已完成", "value": 'com'},
119
- {"label": "售后", "value": 'afterSale'},
120
104
  ])
121
105
  }
122
106
  },
@@ -16,9 +16,8 @@
16
16
  <view class="jfb-base-user-order__body">
17
17
  <view class="x-line"></view>
18
18
  <view :style="[bodyStyleComp]" v-if="list.length > 0">
19
- <view v-if="isShowMyOrder==='Y'||isShowBtn === 'Y'" class="my-order__add" :style="[titleMarginComp]">
20
- <view v-if="isShowMyOrder==='Y'" :style="[titleStyleComp]">{{myOrderName}}</view>
21
- <view v-else></view>
19
+ <view class="my-order__add" :style="[titleMarginComp]">
20
+ <view :style="[titleStyleComp]">{{myOrderName}}</view>
22
21
  <view
23
22
  v-if="isShowBtn === 'Y'"
24
23
  @click="handleToLink(afterUrl)"
@@ -180,7 +179,6 @@
180
179
  cardNameColor: '#333',
181
180
  titleStyle: {},
182
181
  titleMargin:{},
183
- isShowMyOrder: '',
184
182
 
185
183
  //售后订单
186
184
  isShowBtn:'Y',
@@ -276,7 +274,6 @@
276
274
 
277
275
 
278
276
  //标题
279
- this.isShowMyOrder = getContainerPropsValue(container, 'content.isShowMyOrder', 'Y');
280
277
  this.myOrderName = getContainerPropsValue(container, 'content.myOrderName', '我的订单')
281
278
  this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
282
279
  this.titleMargin = getContainerPropsValue(container,'content.titleMargin', {})
@@ -336,12 +333,6 @@
336
333
 
337
334
  handleToLink(path, type) {
338
335
  if (this.$configProject['isPreview']) return;
339
- if(type==='afterSale'){
340
- this.$xdUniHelper.navigateTo({
341
- url: this.afterUrl
342
- })
343
- return
344
- }
345
336
  this.$xdUniHelper.navigateTo({
346
337
  url: type ? `${path}?type=${type}` : path
347
338
  })
@@ -95,7 +95,6 @@
95
95
  policyContent: "",
96
96
  policyTitle: "",
97
97
  policyList: [],
98
- share_code: "",
99
98
 
100
99
  //面板
101
100
  bgImage: '', //背景图片
@@ -180,7 +179,6 @@
180
179
  raw_data,
181
180
  auth_code: this.auth_code,
182
181
  provider_id: this.provider_id,
183
- share_code: this.share_code,
184
182
  }
185
183
  }).then(res=>{
186
184
  if(this.jfbAuthorize !== null) {
@@ -227,7 +225,6 @@
227
225
  raw_data,
228
226
  third_auth_code: loginRes.code,
229
227
  provider_id: this.provider_id,
230
- share_code: this.share_code,
231
228
  }
232
229
  }).then(res => {
233
230
  this.$xdUniHelper.redirectTo({
@@ -256,13 +253,6 @@
256
253
  this.auth_code = options.auth_code;
257
254
  this.provider_id = options.provider_id;
258
255
  if(options.url) this.nextUrl = Base64.decode(options.url);
259
- if(options['x-common']){
260
- let decodeParams = Base64.decode(options['x-common']);
261
- try{
262
- let commonParams = JSON.parse(decodeParams);
263
- this.share_code = commonParams.share_code;
264
- }catch(e){}
265
- }
266
256
  }
267
257
  jfbRootExec("getContentInfo", {
268
258
  vm: this,
@@ -5,6 +5,7 @@ import {mapActions,mapState, mapMutations} from "vuex";
5
5
  import helper from "@/utils/helper";
6
6
  import store from "@/store/index";
7
7
  import getServiceUrl from "@/common/getServiceUrl"
8
+ import {parsePath} from "@/utils/linkUrl";
8
9
 
9
10
 
10
11
  export default {
@@ -136,7 +137,11 @@ export default {
136
137
  "op_user_id": "",
137
138
  "created_time": 0,
138
139
  "updated_time": 0
139
- }
140
+ },
141
+
142
+ //全局样式
143
+ gStyleValue:{},
144
+ gOrgStyleValue:{},
140
145
  }
141
146
  },
142
147
 
@@ -164,6 +169,12 @@ export default {
164
169
  if (this.$vnode && this.$vnode.tag) tag = this.$vnode.tag;
165
170
  this.$xdLog.setProject('App.components.start', `App.components.vnode.name.${tag}`);
166
171
 
172
+ //全局样式处理
173
+ if(this.pageAttr['configs']['default_style']) {
174
+ this.gOrgStyleValue = this.$xdUniHelper.cloneDeep(this.pageAttr['configs']['default_style']);
175
+ this.setGStyleValue(this.pageAttr['configs']['default_style']);
176
+ }
177
+
167
178
  //设置插件cid
168
179
  if (this.cid) {
169
180
  this.containerId = this.cid;
@@ -285,7 +296,8 @@ export default {
285
296
  computed:{
286
297
  ...mapState({
287
298
  pageNamespace: state=> state.pageBusinessCode,
288
- })
299
+ jfbAuthorize: state=> state.jfbAuthorize,
300
+ }),
289
301
  },
290
302
 
291
303
  watch:{
@@ -298,6 +310,48 @@ export default {
298
310
  ...mapActions(['setXNamespace','setStyleCommon','wxCodeForGetAppId']),
299
311
  ...mapMutations(['setCurrentStyle']),
300
312
 
313
+ /**
314
+ * @description 设置全局样式
315
+ * @param data
316
+ */
317
+ setGStyleValue(data){
318
+
319
+ function objFn(mpObj){
320
+ if(mpObj['type'] === 'D') return {top: 0, left: 20, right: 20, bottom:20};
321
+ else {
322
+ Object.keys(mpObj['custom']).map(key=>{
323
+ if(mpObj['custom'][key] === -999999) mpObj['custom'][key] = 0;
324
+ })
325
+ }
326
+ return mpObj['custom'];
327
+ }
328
+ let temp = {};
329
+ Object.keys(data).map(key=>{
330
+ if(key === 'padding' || key === 'margin') {
331
+ temp[key] = objFn(data[key]);
332
+ }
333
+ else if(key === 'shadow') {
334
+ if(data['type'] === 'D') temp['shadow'] = 'none';
335
+ else {
336
+ if(data[key]['custom'] && data[key]['custom']['color']) {
337
+ temp['shadow'] = `0 0 ${data[key]['custom']['width']}rpx ${data[key]['custom']['color']}`
338
+ }
339
+ else temp['shadow'] = 'none';
340
+ }
341
+ }
342
+ else if(key === 'background') {
343
+ if(data['type'] === 'D') temp['background'] = 'none';
344
+ else {
345
+ if(data[key]['custom']) {
346
+ temp['background'] = data[key]['custom']
347
+ }
348
+ else temp['background'] = 'none';
349
+ }
350
+ }
351
+ });
352
+ this.gStyleValue = this.$xdUniHelper.cloneDeep(temp);
353
+ },
354
+
301
355
  /**
302
356
  * @description 自动生成调试模式
303
357
  */
@@ -315,8 +369,6 @@ export default {
315
369
  }
316
370
  },
317
371
 
318
-
319
-
320
372
  /**
321
373
  * @description 检查是否同域名
322
374
  * @param url
@@ -459,12 +511,14 @@ export default {
459
511
  * @description 点击选择插件显示边框
460
512
  */
461
513
  handleEditxSelect() {
514
+
462
515
  //加载本地业务插件库
463
516
  if (this.noBorder) return;
464
517
 
465
518
  //#ifdef H5
466
519
  if (this.active) return;
467
520
  this.active = true;
521
+
468
522
  let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
469
523
  this.$xdUniHelper.customClone(this.Attr) : {style: [], advanced: [], content: []};
470
524
 
@@ -474,10 +528,16 @@ export default {
474
528
  if (type === 'style' || type === 'advanced' || type === 'content') {
475
529
  if (typeof AttrObj[type] === "function") {
476
530
  let params = getContainerFnPropsValue(this.container, `${type}`);
531
+ //默认样式设置
532
+ let defaultGValue = this.$xdUniHelper.cloneDeep(this.gStyleValue);
533
+ //是否为添加组件操作
534
+ defaultGValue['isAdd'] = this.container.isAdd === true;
535
+ //面板首次加载
536
+ defaultGValue['isFirst'] = true;
477
537
  let Attr = this.$xdUniHelper.customClone(this.Attr);
478
538
  AttrObj[`${type}.isFn`] = true;
479
539
  AttrObj[`${type}.Fn`] = Attr[type];
480
- AttrObj[type] = Attr[type](params);
540
+ AttrObj[type] = Attr[type](params, defaultGValue);
481
541
  } else {
482
542
  AttrObj[type].map(item => {
483
543
  if (item.value !== undefined) {
@@ -493,10 +553,12 @@ export default {
493
553
  });
494
554
 
495
555
  //发送点击组件事件
556
+ let sendContainer = this.$xdUniHelper.cloneDeep(this.container);
557
+ sendContainer.defaultData = this.$xdUniHelper.cloneDeep(this.gStyleValue||{});//设置全局默认值
496
558
  XdBus.send('onSelectPackage', {
497
559
  containerId: this.containerId,
498
560
  Attr: this.$xdUniHelper.customClone(AttrObj),
499
- container: this.$xdUniHelper.cloneDeep(this.container)
561
+ container: sendContainer
500
562
  });
501
563
 
502
564
  //绑定选中插件事件
@@ -735,6 +797,7 @@ export default {
735
797
  let showActivityPrice = getContainerPropsValue(container, "content.showActivityPrice", "N");
736
798
  let isShowTag = getContainerPropsValue(container, "content.isShowTag", "Y");
737
799
  let isAddCart = getContainerPropsValue(container, "content.isAddCart", "N");
800
+ let showFreeShipping = getContainerPropsValue(container, "content.showFreeShipping", "N");
738
801
  return {
739
802
  isShowDiscount: isShowDiscount,
740
803
  isPrice: isPrice,
@@ -743,6 +806,7 @@ export default {
743
806
  showActivityPrice:showActivityPrice,
744
807
  isShowTag : isShowTag,
745
808
  differ: differ,
809
+ showFreeShipping: showFreeShipping
746
810
  }
747
811
  },
748
812
 
@@ -907,30 +971,55 @@ export default {
907
971
  }
908
972
  },
909
973
 
910
- handleH5ToMP(app_id,url,params){
911
- debugger
974
+ getProductTagsParams(conf=null,data={}){
975
+ var temp = [];
976
+ let defaultValue = {
977
+ isShowTag:"market",
978
+ showActivityPrice:"flashsale",
979
+ showTag: "market",
980
+ }
981
+ try{
982
+ if(conf) {
983
+ conf = JSON.parse(conf).value;
984
+ conf={
985
+ ...defaultValue,
986
+ ...conf,
987
+ }
988
+ Object.keys(data).map(key=>{
989
+ if(data[key] === 'Y') {
990
+ temp.push(conf[key]);
991
+ }
992
+ })
993
+ }
994
+ else {
995
+ temp = [];
996
+ }
997
+ }catch(e){
998
+ temp = []
999
+ }
1000
+ return temp
912
1001
  },
913
-
914
- handleMpToMP(app_id,url,params){
915
-
1002
+ getProductTagsKeys(conf=null,container,type='productList'){
1003
+ let defaultValue
1004
+ if(type==='productList' ){
1005
+ defaultValue = ["isShowTag","showActivityPrice"]
1006
+ } else {
1007
+ defaultValue = ["showTag","showActivityPrice"]
1008
+ }
1009
+ try{
1010
+ if(conf) conf = JSON.parse(conf).keys;
1011
+ else conf = []
1012
+ }catch(e){
1013
+ conf = []
1014
+ }
1015
+ conf = conf.concat(defaultValue)
1016
+ let tagList = {}
1017
+ conf.map(item=>{
1018
+ tagList[item] = getContainerPropsValue(container, `content.${item}`, "N");
1019
+ })
1020
+ return tagList
916
1021
  },
917
- /**
918
- * @description 处理站点应用内部跳转微信小程序处理
919
- * @param code {string} 站点内部微信小程序aopen_app_code
920
- * @param type {string} h5|wxmp
921
- * @param url {string} 内部链接地址
922
- * @param params {string} 自定义参数 例如:id=1&cid=1234
923
- */
924
- codeForGetAppId(code, type, url,params){
925
- this.wxCodeForGetAppId({app_code: code})
926
- .then(app_id=>{
927
- if(type === 'h5') this.handleH5ToMP(app_id,url, params || '');
928
- if(type === 'wxmp') this.handleMpToMP( app_id, url, params || '')
929
- })
930
- .catch(err=>{
931
- console.error(err)
932
- })
933
- }
1022
+
934
1023
  }
935
1024
  }
936
1025
 
@@ -1,46 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Points
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
10
- title: '获取内容',
11
- path: '/cms/v1/news-content',
12
- isRule: false,
13
- params: {
14
- scene: ['使用场景', 'String', '选填'],
15
- container_id: ['插件ID', 'String', '必填'],
16
- page_id: ['页面ID', 'String', '必填'],
17
- page_size: ['记录条数', 'Number', '必填', 1],
18
- code: ['业务线id', 'String', '选填'],
19
- },
20
- isConsole: true,
21
- disabled: true,
22
- },
23
- {
24
- mapFnName: 'getBalanceDetail',
25
- title: '用户资产 - 获取钱包(或积分)余额详情',
26
- path: '/pay/v1/property/wallet-detail',
27
- isRule: false,
28
- params: {
29
- method: ['wallet 余额; score 积分;', 'Number', '非必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- mapFnName: 'getBalanceWalletTradeList',
36
- title: '用户资产 - 获取钱包(或积分)交易记录列表',
37
- path: '/pay/v1/property/wallet-trade/list',
38
- isRule: false,
39
- params: {
40
- wallet_type: ['钱包类型', 'Number', '必选'],
41
- page_size: ['每页条数', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- ];