jufubao-base 1.0.157-beta5 → 1.0.157-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.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +4 -4
  3. package/src/components/JfbBaseBack/JfbBaseBack.vue +7 -6
  4. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +14 -14
  5. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +1 -1
  6. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +1 -1
  7. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +5 -4
  8. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +9 -19
  9. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +2 -2
  10. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +1 -1
  11. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +12 -13
  12. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +1 -1
  13. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +1 -1
  14. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +1 -7
  15. package/src/components/JfbBaseEntry/Attr.js +22 -0
  16. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +76 -13
  17. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +2 -2
  18. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +1 -1
  19. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +3 -3
  20. package/src/components/JfbBaseNotice/Attr.js +0 -2
  21. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +8 -9
  22. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +1 -1
  23. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +1 -1
  24. package/src/components/JfbBasePoster/JfbBasePoster.vue +118 -18
  25. package/src/components/JfbBasePoster/MoreScreen.vue +155 -37
  26. package/src/components/JfbBasePosterBigSmall/Attr.js +1 -4
  27. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +184 -42
  28. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +90 -20
  29. package/src/components/JfbBasePosterType/FourScreen.vue +156 -18
  30. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -35
  31. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +2 -1
  32. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +8 -7
  33. package/src/components/JfbBaseVideo/XdVideo.vue +0 -4
  34. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +4 -13
  35. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +2 -2
  36. package/src/mixins/colorCardMixins.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.157-beta5",
3
+ "version": "1.0.157-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -327,7 +327,7 @@ export default {
327
327
  // cancel: false,
328
328
  // showClose: false,
329
329
  // confirmText: "我知道了",
330
- // $vm: this
330
+ // styles: this.styles,
331
331
  // });
332
332
  // return
333
333
  // }
@@ -458,7 +458,7 @@ export default {
458
458
  cancel: false,
459
459
  showClose: false,
460
460
  confirmText: "我知道了",
461
- $vm: this
461
+ styles: this.styles,
462
462
  });
463
463
  return;
464
464
  }
@@ -469,7 +469,7 @@ export default {
469
469
  data: {
470
470
  address_nnid: item.address_nnid,
471
471
  is_select: "Y",
472
- version: this.version
472
+ version: this.version
473
473
  },
474
474
  })
475
475
  .then((res) => {
@@ -525,7 +525,7 @@ export default {
525
525
  handleDel(item) {
526
526
  console.log("handleDel", item);
527
527
  this.$xdConfirm({
528
- $vm: this,
528
+ styles: this.styles,
529
529
  content: "确定删除当前配送地址吗?",
530
530
  width: "80%",
531
531
  success: (res) => {
@@ -66,7 +66,7 @@
66
66
  this.init(this.container);
67
67
  },
68
68
  methods: {
69
-
69
+
70
70
  /**
71
71
  * @description 监听事件变化
72
72
  * @param container {object} 业务组件对象自己
@@ -80,7 +80,7 @@
80
80
  this.shadow = (e.scrollTop > this.height ? this.height : e.scrollTop)/100;
81
81
  this.opacity = opacity < this.minOpacity ? this.minOpacity : opacity;
82
82
  },
83
-
83
+
84
84
  onJfbBack() {
85
85
  this.$xdUniHelper.navigateBack();
86
86
  }
@@ -102,7 +102,7 @@
102
102
  height: unit(90, rpx);
103
103
  padding: 0 unit(10, rpx);
104
104
  position: relative;
105
-
105
+
106
106
  &-icon {
107
107
  width: 1em;
108
108
  height: 1em;
@@ -112,12 +112,13 @@
112
112
  display: flex;
113
113
  justify-content: center;
114
114
  align-content: center;
115
+ align-items: center;
115
116
  flex-shrink: 0;
116
117
  position: relative;
117
118
  z-index: 2;
118
119
  background: #fff;
119
120
  }
120
-
121
+
121
122
  &-text {
122
123
  font-size: unit(54, rpx);
123
124
  padding-right: 1em;
@@ -125,7 +126,7 @@
125
126
  position: relative;
126
127
  z-index: 2;
127
128
  color: #666;
128
-
129
+
129
130
  & > view {
130
131
  width: 100%;
131
132
  text-align: center;
@@ -133,7 +134,7 @@
133
134
  font-size: unit(32, rpx);
134
135
  }
135
136
  }
136
-
137
+
137
138
  &-bg {
138
139
  background: #fff;
139
140
  position: absolute;
@@ -126,7 +126,7 @@ export default {
126
126
  data() {
127
127
  return {
128
128
  userInfo: null, //用户信息(暂时不可用)
129
-
129
+
130
130
  info: null,
131
131
  valueKey: [
132
132
  {
@@ -169,7 +169,7 @@ export default {
169
169
  brandLogo:
170
170
  "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsSAAALEgHS3X78AAAAAXNSR0IArs4c6QAADe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Tl5eLnYGo2ICuDeDpSUkHBeNEiASdTmkFvEgdLehcTxcZVYXHrdDO+3NwCmxKgENKmF35EwAJ74/J5CMZN9ne5eoywvLJN3ucTA8X6pp4y1xqEjwxvs6u/arYGk55YeKhKu6Rng0ze4n2akES6UeeePw4crA2QZ4tuPOCQRSxuR1FjOXTLUP0RQT5+h8cxjyrlb07KTYultj2RqN7V/iD0bkUqcu3hTuhI0HDx60z2J+luucQHIapTxcVa1P8boleV2gzUWSL/YL3vpQQ0p1IBhmqSl5A/xbf5aov2fSeoPYb1sdmr7LkvK5w361TJpigKZrDeMMudflZFngeOB7D9B+bqB6gdgvKVWwcq2EFd+WBh7/uYOrz/z1AmnSKK2bMi1vYVn5qvr8yPkYWy8Qu2MAzPMRWH1/o74g9Z3/vI3/1YD8GzZW034Elz4yAAAAAElFTkSuQmCC",
171
171
  isBrandLogo: false,
172
-
172
+
173
173
  isShowUnbind: false, //是否启动绑定按钮
174
174
  };
175
175
  },
@@ -184,11 +184,11 @@ export default {
184
184
  console.warn(options["x-params"]);
185
185
  }
186
186
  }
187
-
187
+
188
188
  this.$nextTick(() => {
189
189
  this.card_number = options.card_number;
190
190
  this.init();
191
-
191
+
192
192
  // if (card_number) {
193
193
  // this.card_number = card_number;
194
194
  // if (this.brandInfo['is_enable_pay_password'] === 'N') {
@@ -245,7 +245,7 @@ export default {
245
245
  // }
246
246
  // }
247
247
  },
248
-
248
+
249
249
  onJfbUnload() {
250
250
  this.timeStr = ""
251
251
  if (this.timeer) {
@@ -265,7 +265,7 @@ export default {
265
265
  clearTimeout(this.refrushTimeer);
266
266
  }
267
267
  },
268
-
268
+
269
269
  onJfbBack(options) {
270
270
  if (this.timeer) {
271
271
  clearTimeout(this.timeer);
@@ -275,7 +275,7 @@ export default {
275
275
  }
276
276
  this.$xdUniHelper.navigateBack();
277
277
  },
278
-
278
+
279
279
  setInval(time) {
280
280
  console.log("pppppp", time);
281
281
  this.timeer = setInterval(() => {
@@ -293,10 +293,10 @@ export default {
293
293
  }
294
294
  }, 1000);
295
295
  },
296
-
296
+
297
297
  handleUnBindCard() {
298
298
  this.$xdConfirm({
299
- $vm: this,
299
+ styles: this.styles,
300
300
  content: "您确定要解除绑定卡券吗",
301
301
  title: "系统提示",
302
302
  width: "80%",
@@ -333,7 +333,7 @@ export default {
333
333
  },
334
334
  });
335
335
  },
336
-
336
+
337
337
  refrush() {
338
338
  if (this.stopTimer) return;
339
339
  if (this.time >= this.maxTime) {
@@ -377,7 +377,7 @@ export default {
377
377
  .catch();
378
378
  }, time);
379
379
  },
380
-
380
+
381
381
  init() {
382
382
  this.detail();
383
383
  this.refrush();
@@ -386,7 +386,7 @@ export default {
386
386
  }
387
387
  this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
388
388
  },
389
-
389
+
390
390
  /**
391
391
  * @description 获取卡详情
392
392
  */
@@ -412,7 +412,7 @@ export default {
412
412
  if (res["is_show_qrcode_logo"] === "Y") {
413
413
  this.isBrandLogo = true;
414
414
  }
415
-
415
+
416
416
  this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
417
417
  })
418
418
  .catch((err) => {
@@ -423,7 +423,7 @@ export default {
423
423
  handleOnClose() {
424
424
  this.editShow = false;
425
425
  },
426
-
426
+
427
427
  handlePwdOnSubmit(val) {
428
428
  this.password = val;
429
429
  this.init();
@@ -439,7 +439,7 @@ export default {
439
439
  },
440
440
  handleUnBindCard() {
441
441
  this.$xdConfirm({
442
- $vm: this,
442
+ styles: this.styles,
443
443
  content: "您确定要解除绑定票券吗",
444
444
  title: "系统提示",
445
445
  width: "80%",
@@ -160,7 +160,7 @@ export default {
160
160
  },
161
161
  handleUnBindCard(item) {
162
162
  this.$xdConfirm({
163
- $vm: this,
163
+ styles: this.styles,
164
164
  content: "您确定要解除绑定票券吗",
165
165
  title: "系统提示",
166
166
  width: "80%",
@@ -11,7 +11,7 @@
11
11
  v-if="isEditx && active"
12
12
  >
13
13
  <view class="jfb-base-card-disabled-entry__edit-icon" @click="delEdit"
14
- >删除</view
14
+ >删除</view
15
15
  >
16
16
  </view>
17
17
  <!-- #endif -->
@@ -88,6 +88,7 @@
88
88
  </view>
89
89
  </view>
90
90
  </view>
91
+ {{cardList }} --- {{cardList.length}}
91
92
  </view>
92
93
  <view class="computed-height">
93
94
  <view
@@ -178,7 +179,7 @@ export default {
178
179
  return this.fixedStyle({height: 0, zIndex: 111});
179
180
  },
180
181
  emptyBg() {
181
- return this.getNoData();
182
+ return this.getNoData();
182
183
  },
183
184
  },
184
185
  watch: {
@@ -226,7 +227,7 @@ export default {
226
227
 
227
228
  handleAllUnBindCard(){
228
229
  this.$xdConfirm({
229
- $vm: this,
230
+ styles: this.styles,
230
231
  content: "您确定要解除绑定所有票券吗?",
231
232
  title: "系统提示",
232
233
  width: "80%",
@@ -259,7 +260,7 @@ export default {
259
260
 
260
261
  handleUnBindCard(item) {
261
262
  this.$xdConfirm({
262
- $vm: this,
263
+ styles: this.styles,
263
264
  content: "您确定要解除绑定票券吗?",
264
265
  title: "系统提示",
265
266
  width: "80%",
@@ -37,15 +37,13 @@
37
37
  :placeholder="card_pwd_placeholder"
38
38
  />
39
39
  <xd-font-icon
40
- @click="isPassword = !isPassword"
40
+ @click="handleIcon()"
41
41
  :icon="isPassword ? 'iconbiyan' : 'iconchakan'"
42
42
  ></xd-font-icon>
43
43
  </view>
44
44
  </view>
45
45
  <view class="jfb-base-card-info__body-footer" :style="prod_bottom">
46
- <xd-button type="primary" width="360rpx" @click="handleGetInfo"
47
- >确认</xd-button
48
- >
46
+ <xd-button type="primary" width="360rpx" @click="handleGetInfo">确认</xd-button>
49
47
  </view>
50
48
  </view>
51
49
 
@@ -78,15 +76,12 @@
78
76
  <view
79
77
  v-if="info.other_card_point && info.card_point_type !== 1"
80
78
  class="jfb-base-card-info__body-residue-reach"
81
- >购买其他物品可抵:{{ info.other_card_point }}</view
82
- >
79
+ >购买其他物品可抵:{{ info.other_card_point }}</view>
83
80
  </view>
84
81
  <view
85
82
  class="jfb-base-card-info__body-residue-business"
86
83
  v-if="info.card_point_type !== 1"
87
- >
88
- 所属业务线:{{ info.main_business_code_name }}
89
- </view>
84
+ >所属业务线:{{ info.main_business_code_name }}</view>
90
85
  </view>
91
86
  <view :style="{ height: '100rpx' }"></view>
92
87
  </view>
@@ -129,18 +124,10 @@ export default {
129
124
  label: "票券号码",
130
125
  key: "card_number",
131
126
  },
132
- // {
133
- // label: "票券类型",
134
- // key: "unit",
135
- // },
136
127
  {
137
128
  label: "票券状态",
138
129
  key: "card_status_name",
139
130
  },
140
- // {
141
- // label: "票券转换",
142
- // key: "is_exchange_name",
143
- // },
144
131
  {
145
132
  label: "有效期",
146
133
  key: "end_time",
@@ -177,7 +164,7 @@ export default {
177
164
  return true;
178
165
  },
179
166
  showValueKey(){
180
- if(this.info.is_expired === "Y"){
167
+ if(this.info && this.info.is_expired === "Y"){
181
168
  return this.valueKey.filter(item => item.key !== "end_time");
182
169
  }
183
170
  return this.valueKey;
@@ -185,6 +172,9 @@ export default {
185
172
  },
186
173
  created() {},
187
174
  methods: {
175
+ handleIcon(){
176
+ this.isPassword = !this.isPassword
177
+ },
188
178
  toShowCouponDialog(){
189
179
  if(this.info){
190
180
  jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.info.card_number})
@@ -256,7 +246,7 @@ export default {
256
246
  //卡券已被自己绑定时的弹框
257
247
  handleBindConfirm(){
258
248
  this.$xdConfirm({
259
- $vm: this,
249
+ styles: this.styles,
260
250
  width: '90%',
261
251
  content: '您已绑定该票券,无需再次绑定',
262
252
  confirmText: '我的票券',
@@ -194,7 +194,7 @@ export default {
194
194
  handleToLink() {
195
195
  if(this.info.card_point===0) {
196
196
  this.$xdConfirm({
197
- $vm: this,
197
+ styles: this.styles,
198
198
  content: "票券余额为0,是否确认绑定?",
199
199
  width: "80%",
200
200
  success: (res) => {
@@ -269,7 +269,7 @@ export default {
269
269
  //卡券已被自己绑定时的弹框
270
270
  handleBindConfirm(){
271
271
  this.$xdConfirm({
272
- $vm: this,
272
+ styles: this.styles,
273
273
  width: '90%',
274
274
  content: '您已绑定该票券,无需再次绑定',
275
275
  confirmText: '我的票券',
@@ -203,7 +203,7 @@ export default {
203
203
  this.$xdConfirm({
204
204
  title: "是否确认合并卡",
205
205
  isHtml: true,
206
- $vm: this,
206
+ styles: this.styles,
207
207
  content: `转出卡号:${
208
208
  this.mergeForm.from_card_number
209
209
  }(剩余点数:${this.$xdUniHelper.divisionFloatNumber(
@@ -40,8 +40,8 @@
40
40
  </view>
41
41
  </view>
42
42
  <view class="merge-item" :style="{background: themeInStyle['color']}">
43
- <view class="merge-item-box" :style="{backgroundImage: `url(${themeInStyle})`}">
44
- <view class="merge-item-title">
43
+ <view class="merge-item-box" :style="{backgroundImage: `url(//img.jufubao.cn/component/card/mergbg.jpg)`}">
44
+ <view class="merge-item-title" :style="{background: themeOutStyle['color']}">
45
45
  <xd-font-icon icon="iconzhuanru"></xd-font-icon>
46
46
  <view>转入的票券</view>
47
47
  </view>
@@ -137,9 +137,10 @@ export default {
137
137
  toList: [],
138
138
  fromSelect: null,
139
139
  toSelect: null,
140
- randomKey: Date.now(),
140
+ randomKey:'randomKey',
141
141
  valid_code:'',
142
142
  valid_token: 'valid_token',
143
+ toListLoading: true,
143
144
 
144
145
 
145
146
  content: "",
@@ -251,14 +252,6 @@ export default {
251
252
  },
252
253
 
253
254
  handleToSubmit() {
254
- // if (!this.valid_code) {
255
- // uni.showToast({
256
- // title: "验证码不能为空!",
257
- // icon: "none",
258
- // });
259
- // return;
260
- // }
261
-
262
255
  let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
263
256
  let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
264
257
  let inPrice = this.$xdUniHelper.divisionFloatNumber(this.toSelect.card_point, 100);
@@ -266,7 +259,7 @@ export default {
266
259
  this.$xdConfirm({
267
260
  title: "是否确认合并票券",
268
261
  isHtml: true,
269
- $vm: this,
262
+ styles: this.styles,
270
263
  content: `<div class="label-value"><div><span>转出票券:</span><span>${outHtml}</span></div><div><span>转入票券:</span><span>${inHtml}</span></div></div>`,
271
264
  success: (action) => {
272
265
  let params = {
@@ -295,6 +288,8 @@ export default {
295
288
  });
296
289
  },
297
290
  handleChangeFrom(select) {
291
+ this.toListLoading = false;
292
+ this.randomKey = null;
298
293
  this.fromSelect = select.item;
299
294
  jfbRootExec("toCardListEntry", {vm: this, data: {card_number: select.item.value,},})
300
295
  .then((res) => {
@@ -308,7 +303,11 @@ export default {
308
303
  name: item.card_type_name
309
304
  };
310
305
  });
311
- this.randomKey = Date.now();
306
+ this.randomKey = this.$xdUniHelper.randomChar(20);
307
+ setTimeout(()=>{
308
+ this.toListLoading = true;
309
+ },50)
310
+
312
311
  })
313
312
  .catch((err) => {
314
313
  this.$xdLog.catch(err)
@@ -159,7 +159,7 @@ export default {
159
159
  this.$xdConfirm({
160
160
  title: "是否确认转换",
161
161
  isHtml: true,
162
- $vm: this,
162
+ styles: this.styles,
163
163
  content:content,
164
164
  success:(action)=>{
165
165
  if(action.confirm) {
@@ -219,7 +219,7 @@ export default {
219
219
  this.$xdConfirm({
220
220
  title: "是否确认转换",
221
221
  isHtml: true,
222
- $vm: this,
222
+ styles: this.styles,
223
223
  content:content,
224
224
  success:(action)=>{
225
225
  if(action.confirm) {
@@ -20,7 +20,7 @@
20
20
  <view>
21
21
  <view
22
22
  class="jfb-base-card-sweep-info__body-info"
23
- v-for="(item, index) in showValueKey"
23
+ v-for="(item, index) in valueKey"
24
24
  :key="index"
25
25
  >
26
26
  <view class="jfb-base-card-sweep-info__body-info-label">{{item.label}}</view>
@@ -129,12 +129,6 @@ export default {
129
129
  return this.is_show_balance === "Y";
130
130
  }
131
131
  return true;
132
- },
133
- showValueKey(){
134
- if(this.info.is_expired === "Y"){
135
- return this.valueKey.filter(item => item.key !== "end_time");
136
- }
137
- return this.valueKey;
138
132
  }
139
133
  },
140
134
  created() {
@@ -7,6 +7,28 @@ export default {
7
7
  style: [],
8
8
  content: (data) => {
9
9
  return [
10
+ {
11
+ label: '选择综合入口类型:',
12
+ ele: 'xd-site-select-list',
13
+ valueKey: 'entryType',
14
+ value: data['entryType'],
15
+ placeholder: '请选择综合入口类型',
16
+ multiple: false,
17
+ groupKey:'content',
18
+ className: 'input50',
19
+ rules: [
20
+ {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
21
+ ],
22
+ handleCustom({action, data}) {
23
+ XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
24
+ .then(res => {
25
+ data.cb(res.list)
26
+ })
27
+ .catch(error => {
28
+ console.error(error);
29
+ });
30
+ },
31
+ },
10
32
  {
11
33
  label: '每行显示数量',
12
34
  ele: 'xd-radio',
@@ -49,7 +49,7 @@
49
49
  import componentsMixins from "@/mixins/componentsMixins";
50
50
  import extsMixins from "@/mixins/extsMixins";
51
51
  import getServiceUrl from "@/common/getServiceUrl";
52
- import {base64} from 'js-base64';
52
+ import {mapState} from "vuex";
53
53
  export default {
54
54
  name: "JfbBaseEntry",
55
55
  components: {
@@ -66,9 +66,11 @@
66
66
  paddingInput: 20,
67
67
  loadingList: true,
68
68
  margin: {},
69
+ entryType: '',
69
70
  }
70
71
  },
71
72
  computed: {
73
+ ...mapState(['brandInfo']),
72
74
  bodyStyle(){
73
75
  return {
74
76
  backgroundColor: this.bgcolor,
@@ -111,17 +113,67 @@
111
113
  this.rowNum = getContainerPropsValue(container, 'content.rowNum', 1);
112
114
  this.paddingInput = getContainerPropsValue(container, 'content.paddingInput', 20);
113
115
  this.margin = getContainerPropsValue(container, 'content.margin', {});
116
+ this.entryType = getContainerPropsValue(container, 'content.entryType', 'default');
117
+ },
118
+
119
+ getCardPath(custom_redirect_data = {}){
120
+ //#ifdef H5
121
+ return null;
122
+ //#endif
123
+ //#ifdef MP-WEIXIN
124
+ const dir = custom_redirect_data.dir;
125
+ const actDir = this.projectAttr['deploy_dir'];
126
+ if(custom_redirect_data.appType === 'wxmp') {
127
+ if(dir === actDir) {
128
+ return {
129
+ cardPath: custom_redirect_data.path,
130
+ cardSelf: 'wxmp',
131
+ };
132
+ }
133
+ else return null;
134
+ }
135
+ else if(custom_redirect_data.appType === 'h5'){
136
+ return {
137
+ cardPath: custom_redirect_data.site_url,
138
+ cardSelf: 'h5',
139
+ };
140
+ }
141
+ else return null;
142
+ //#endif
114
143
  },
115
144
  getEntrySetting(){
116
145
  this.$xdShowLoading({});
117
146
  jfbRootExec("getEntrySetting", {
118
147
  vm: this,
119
- data: {}
148
+ data: {
149
+ group_id:this.entryType || 'default'
150
+ }
120
151
  }).then(res => {
121
152
  this.loadingList = false;
122
153
  this.$xdHideLoading();
123
- this.entryList = res.list.map(item => {
124
- const {dir, path, host} = item['redirect_data'];
154
+ let isH5FilterEntryList = [];
155
+ let isMpFilterEntryList = [];
156
+ this.entryList = res.list.filter(item=>{
157
+ //#ifdef H5
158
+ //在H5平台应用中不可跳转到微信小程序应用
159
+ if(item.redirect_data.appType === 'wxmp'){
160
+ isH5FilterEntryList.push(item)
161
+ }
162
+ return item.redirect_data.appType !== 'wxmp';
163
+ //#endif
164
+
165
+ //#ifdef MP-WEIXIN
166
+ const dir = item['redirect_data'].dir;
167
+ const actDir = this.projectAttr['deploy_dir'];
168
+ if(item.redirect_data.appType === 'wxmp') {
169
+ if(dir !== actDir) isMpFilterEntryList.push(item)
170
+ return dir === actDir;
171
+ }
172
+ return true
173
+ //#endif
174
+ }).map(item => {
175
+ const {dir, path, host,appType} = item['redirect_data'];
176
+ if(appType === undefined) item.redirect_data.appType = 'h5';
125
177
  item['image_url'] = getServiceUrl(item.image_url);
126
178
  item['image_url2'] = item.image_url2 ? getServiceUrl(item.image_url2) : "";
127
179
  item['image_url3'] = item.image_url3 ? getServiceUrl(item.image_url3) : "";
@@ -139,24 +191,35 @@
139
191
  let jumpUrl = path;
140
192
 
141
193
  //域名相同并且应用路径不相同时候处理
142
- if(host === this.projectAttr.host
143
- && this.projectAttr['deploy_dir'] !== dir
144
- ){
194
+ if(host === this.projectAttr.host && this.projectAttr['deploy_dir'] !== dir){
145
195
  jumpUrl = `//${host}/${dir}${path}`;
146
196
  //#ifdef MP-WEIXIN
147
197
  jumpUrl = `https:${jumpUrl}`;
148
198
  //#endif
149
199
  }
150
200
 
151
- if(item['redirect_data']['fixed_business_code'] === '') {
152
- item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
153
- }
154
- else{
155
- item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
201
+ //获取自定义卡券登录地址(微信小程序跳转到H5平台起作用)
202
+ let cardPathStr = '';
203
+ //#ifdef MP-WEIXIN
204
+ if(item.redirect_data.appType === 'h5') {
205
+ const custom_redirect_data = this.$xdUniHelper.checkVarType(item['custom_redirect_data']) === 'object'?item['custom_redirect_data']:{};
206
+ const cardPathObject = this.getCardPath(custom_redirect_data);
207
+ if(cardPathObject !== null) {
208
+ const {cardPath, cardSelf} =cardPathObject
209
+ if(cardPath) cardPathStr = `&card-login=${encodeURIComponent(cardPath)}&cardSelf=${cardSelf}`
210
+ }
156
211
  }
212
+ //#endif
213
+ item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
157
214
  return item;
158
215
  });
159
- console.log( this.entryList)
216
+ //#ifdef MP-WEIXIN
217
+ console.warn(`微信小程序端被过滤的入口列表:${JSON.stringify(isMpFilterEntryList.map(item=> `${item.redirect_data.appType}:${item.entry_name}:${item.redirect_data['frontPath']}`),null,2)}`)
218
+ //#endif
219
+ //#ifdef H5
220
+ console.warn(`H5端被过滤的入口列表:${JSON.stringify(isH5FilterEntryList.map(item=> `${item.redirect_data.appType}:${item.entry_name}:${item.redirect_data['frontPath']}`),null,2)}`)
221
+ //#endif
222
+ console.warn(`福利入口链接列表:${JSON.stringify(this.entryList.map(item=> `${item.redirect_data.appType}:${item.redirect_data['path']}`),null,2)}`);
160
223
  if(res.list.length === 1) this.toLink(this.entryList[0]);
161
224
  if(res.list.length === 0) {
162
225
  this.$xdAlert({content: '当前票券暂无支持服务'})