@conecli/cone-render 0.8.20-shop.21 → 0.8.20-shop.211

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 (163) hide show
  1. package/README.md +7 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/assets/icon_blue_info.svg +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/environmentType.ts +1 -0
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.ts +1 -0
  11. package/dist/common/jssdk.ts +1 -0
  12. package/dist/common/pageType.ts +1 -0
  13. package/dist/common/sgmCustomCode.ts +1 -0
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/token/token.ts +1 -1
  17. package/dist/common/wxappApi.jd.ts +1 -0
  18. package/dist/common/wxappApi.ts +1 -1
  19. package/dist/components/ErrorBoundary.tsx +1 -1
  20. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  21. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  22. package/dist/components/base/CountDown/index.module.scss +49 -44
  23. package/dist/components/base/CountDown/index.tsx +1 -1
  24. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  25. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  26. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  27. package/dist/components/base/CustomVideo/common.ts +1 -0
  28. package/dist/components/base/CustomVideo/index.module.scss +1 -1
  29. package/dist/components/base/CustomVideo/index.tsx +1 -1
  30. package/dist/components/base/Dialog/index.module.scss +16 -0
  31. package/dist/components/base/Dialog/index.tsx +1 -1
  32. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  33. package/dist/components/base/ExposureSmart/const.ts +1 -0
  34. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  35. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  36. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  37. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  38. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  39. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.tsx +1 -1
  41. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  42. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  43. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  44. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  45. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  46. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  47. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  48. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  49. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  50. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  51. package/dist/components/base/NetworkDataError/const.ts +1 -1
  52. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  53. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  54. package/dist/components/base/Price/Base/index.module.scss +12 -0
  55. package/dist/components/base/Price/Base/index.tsx +1 -1
  56. package/dist/components/base/Price/Double/index.module.scss +32 -0
  57. package/dist/components/base/Price/Double/index.tsx +1 -1
  58. package/dist/components/base/Price/index.tsx +1 -1
  59. package/dist/components/base/Skeleton/index.tsx +1 -1
  60. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  61. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  62. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  63. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  64. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  65. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  66. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  67. package/dist/components/floorItem.jd.tsx +1 -1
  68. package/dist/components/floorItem.tsx +1 -1
  69. package/dist/components/floorItem.weapp.tsx +1 -1
  70. package/dist/components/isv/Floor/index.tsx +1 -1
  71. package/dist/components/remoteFloorItem.tsx +1 -0
  72. package/dist/interface/common.ts +1 -1
  73. package/dist/interface/component.ts +1 -1
  74. package/dist/interface/jumpEventReport.ts +1 -1
  75. package/dist/interface/service.ts +1 -1
  76. package/dist/interface/utils.ts +1 -1
  77. package/dist/jumpEventReport/base.ts +1 -1
  78. package/dist/jumpEventReport/const.ts +1 -1
  79. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  80. package/dist/jumpEventReport/index.h5.ts +1 -1
  81. package/dist/jumpEventReport/index.jd.ts +1 -1
  82. package/dist/jumpEventReport/index.ts +1 -1
  83. package/dist/jumpEventReport/index.weapp.ts +1 -1
  84. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  85. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  86. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  87. package/dist/jumpEventReport/web/report.ts +1 -1
  88. package/dist/jumpEventReport/web.base.ts +1 -1
  89. package/dist/jumpEventReport/web.jd.ts +1 -1
  90. package/dist/jumpEventReport/web.jdb.ts +1 -1
  91. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  92. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  93. package/dist/jumpEventReport/web.pc.ts +1 -0
  94. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  95. package/dist/jumpEventReport/web.tjm.ts +1 -0
  96. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  97. package/dist/language/en_US.json +178 -0
  98. package/dist/language/zh_CN.json +178 -0
  99. package/dist/language/zh_HK.json +178 -0
  100. package/dist/libs/taroAppReport.js +2 -2
  101. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  102. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  103. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  104. package/dist/open/api/device.ts +1 -1
  105. package/dist/open/api/environment.ts +1 -1
  106. package/dist/open/api/index.ts +1 -1
  107. package/dist/open/api/jump/business.ts +1 -0
  108. package/dist/open/api/jump/index.ts +1 -0
  109. package/dist/open/api/jump/minPath.ts +1 -0
  110. package/dist/open/api/jump/side.ts +1 -0
  111. package/dist/open/api/jump/webUrl.ts +1 -0
  112. package/dist/open/api/jump copy.ts +1 -0
  113. package/dist/open/api/request.ts +1 -1
  114. package/dist/open/api/shopMember.ts +1 -1
  115. package/dist/open/api/track.ts +1 -1
  116. package/dist/open/api/util.ts +1 -1
  117. package/dist/open/components/index.ts +1 -1
  118. package/dist/sass/app.h5.scss +289 -212
  119. package/dist/sass/base.scss +195 -137
  120. package/dist/service/bMallConst.ts +1 -1
  121. package/dist/service/fetchGateway.ts +1 -1
  122. package/dist/service/fetchGateway.weapp.ts +1 -0
  123. package/dist/service/http/colorSign.ts +1 -1
  124. package/dist/service/http/const.ts +1 -1
  125. package/dist/service/http/h5Http.ts +1 -0
  126. package/dist/service/http/index.h5.ts +1 -0
  127. package/dist/service/requestServer.h5.ts +1 -0
  128. package/dist/service/requestServer.ts +1 -1
  129. package/dist/service/requestServer.weapp.ts +1 -0
  130. package/dist/utils/connectNativeJsBridge.ts +1 -1
  131. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  132. package/dist/utils/draExceptionAndProfile.ts +1 -1
  133. package/dist/utils/h5Utils.ts +1 -1
  134. package/dist/utils/index.h5.ts +1 -1
  135. package/dist/utils/index.ts +1 -1
  136. package/dist/utils/index.weapp.ts +1 -1
  137. package/dist/utils/intersectionObserver.ts +1 -1
  138. package/dist/utils/jm-common.js +1 -1
  139. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  140. package/dist/utils/jumpExtMapUtil.ts +1 -0
  141. package/dist/utils/sColor.js +1 -0
  142. package/dist/utils/sgmCodeUtils.ts +1 -0
  143. package/dist/utils/taroRenderUtil.ts +1 -0
  144. package/dist/utils/utils.ts +1 -1
  145. package/dist/wxapp/api/helper.js +1 -0
  146. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  147. package/dist/wxapp/common/user_info.js +1 -1
  148. package/dist/wxapp/components/launch-app/index.js +1 -0
  149. package/dist/wxapp/components/launch-app/index.json +5 -0
  150. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  151. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  152. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  153. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  154. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  155. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  156. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  157. package/package.json +148 -115
  158. package/dist/components/base/Skeleton/old.tsx +0 -1
  159. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  160. package/dist/open/api/jump.ts +0 -1
  161. package/dist/utils/memberFormatUtils.js +0 -1
  162. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  163. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -1 +1 @@
1
- import global from '../common'
2
1
  objectToUrlEncode,
3
2
  parseQueryUrlString,
4
3
  isH5AndJingGouMini,
5
4
  public jingGouMiniState: boolean
6
5
  private isH5OpenToWxapp: boolean
7
6
  constructor(opt) {
8
7
  super(opt)
9
8
  this.jingGouMiniState = false
10
9
  this.getConfig(opt)
11
10
  console.log(
12
11
  'window.shopGlobalSwitch:',
13
12
  JSON.stringify(window.shopGlobalSwitch),
14
13
  )
15
14
  this.isH5OpenToWxapp =
16
15
  window.shopGlobalSwitch?.openMobileShopToWxApp == 'true'
17
16
  this.init()
18
17
  }
19
18
  getConfig(opt) {
20
19
  return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt)
21
20
  }
22
21
 
23
22
 
24
23
  async init() {
25
24
  if (window.isJingGouMiniViewState) {
26
25
  this.jingGouMiniState = true
27
26
  } else {
28
27
  console.log(
29
28
  '初始化进行小程序环境检查, 当前是否是京购小程序里的H5',
30
29
  isH5AndJingGouMini,
31
30
  )
32
31
  if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
33
32
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if')
34
33
  this.jingGouMiniState = true
35
34
  window.isJingGouMiniViewState = true
36
35
  console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ')
37
36
  global.info.isJingGouMiniViewState = true
38
37
  } else {
39
38
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle')
40
39
  }
41
40
  }
42
41
  }
43
42
 
44
43
  jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
45
44
  this.jdNavigateToNative(
46
45
  pageUrl,
47
46
  logEventInfo,
48
47
  () => {
49
48
  wx?.miniProgram[type] &&
50
49
  wx?.miniProgram[type]({
51
50
  url: pageUrl,
52
51
  })
53
52
  },
54
53
  () => {
55
54
  wx?.miniProgram[type] &&
56
55
  wx?.miniProgram[type]({
57
56
  url: pageUrl,
58
57
  })
59
58
  },
60
59
  )
61
60
  }
62
61
 
63
62
  jdJumpToWeb(url, logEventInfo) {
64
63
  if (this.jingGouMiniState) {
65
64
  const encodeUrl = `${
66
65
  this.jumpMiniPath.h5
67
66
  }?encode_url=${encodeURIComponent(url)}`
68
67
  this.jdJumpToMiniPage(encodeUrl, logEventInfo)
69
68
  } else {
70
69
  super.jdJumpToWeb(url, logEventInfo)
71
70
  }
72
71
  }
73
72
 
74
73
  jdJumpToWebInner(url, logEventInfo) {
75
74
  super.jdJumpToWeb(url, logEventInfo)
76
75
  }
77
76
 
78
77
  jdJumpToProduct(skuIds, logEventInfo) {
79
78
  if (this.jingGouMiniState) {
80
79
  const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`
81
80
  this.jdJumpToMiniPage(detailUrl, logEventInfo)
82
81
  } else {
83
82
  super.jdJumpToProduct(skuIds, logEventInfo)
84
83
  }
85
84
  }
86
85
 
87
86
  jdJumpToShopHome(params) {
88
87
  console.log('[降级H5] jdJumpToShopHome web.wxapp')
89
88
  const { type = 'navigateTo', ...otherShopInfo } = params
90
89
  if (this.jingGouMiniState) {
91
90
  let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`
92
91
  if (/\/shop\/(samCenter|samCard)/.test(window.location.pathname)) {
93
92
  shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
94
93
  this.getShopIdsInfo(otherShopInfo),
95
94
  )}`
96
95
  }
97
96
  this.jdJumpToMiniPage(shopUrl, otherShopInfo, type)
98
97
  } else {
99
98
  super.jdJumpToShopHome(otherShopInfo)
100
99
  }
101
100
  }
102
101
 
103
102
  jdJumpToShopCategory(params) {
104
103
  console.log('[降级H5] jdJumpToShopCategory web.wxapp')
105
104
  const { type = 'navigateTo', ...otherShopInfo } = params
106
105
  if (this.jingGouMiniState) {
107
106
  let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`
108
107
  this.jdJumpToMiniPage(shopUrl, otherShopInfo, type)
109
108
  } else {
110
109
  super.jdJumpToShopCategory(otherShopInfo)
111
110
  }
112
111
  }
113
112
 
114
113
  jdJumpToLive(liveInfo, logEventInfo = {}) {
115
114
  if (liveInfo?.liveId) {
116
115
  this.jdJumpToWeb(
117
116
  `${this.jumpWebUrl.mLive}/${liveInfo?.liveId}?${
118
117
  this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
119
118
  }`,
120
119
  logEventInfo,
121
120
  )
122
121
  }
123
122
  }
124
123
 
125
124
  jdJumpToShopLight(shopInfo) {
126
125
  if (this.jingGouMiniState) {
127
126
  this.jdJumpToMiniPage(
128
127
  `${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
129
128
  this.getShopIdOrVenderIdParams(shopInfo),
130
129
  )}`,
131
130
  {
132
131
  ...shopInfo,
133
132
  },
134
133
  )
135
134
  } else {
136
135
  this.jdNavigateToNative(
137
136
  `${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
138
137
  this.getShopIdOrVenderIdParams(shopInfo),
139
138
  )}`,
140
139
  {
141
140
  ...shopInfo,
142
141
  },
143
142
  )
144
143
  }
145
144
  }
146
145
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
147
146
  if (this.jingGouMiniState) {
148
147
  const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`
149
148
  this.jdJumpToMiniPage(detailUrl, logEventInfo)
150
149
  } else {
151
150
  super.jdJumpToCouponSearchProductList(couponId, logEventInfo)
152
151
  }
153
152
  }
153
+ import global from '../common';
154
154
  objectToUrlEncode,
155
155
  isH5AndJingGouMini,
156
156
  public jingGouMiniState: boolean;
157
157
  private isH5OpenToWxapp: boolean;
158
158
  constructor(opt) {
159
159
  super(opt);
160
160
  this.jingGouMiniState = false;
161
161
  this.getConfig(opt);
162
162
  console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch));
163
163
  this.isH5OpenToWxapp = window.shopGlobalSwitch?.openMobileShopToWxApp == 'true';
164
164
  this.init();
165
165
  }
166
166
  getConfig(opt) {
167
167
  return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt);
168
168
  }
169
169
 
170
170
 
171
171
  async init() {
172
172
  if (window.isJingGouMiniViewState) {
173
173
  this.jingGouMiniState = true;
174
174
  } else {
175
175
  console.log('初始化进行小程序环境检查, 当前是否是京购小程序里的H5', isH5AndJingGouMini);
176
176
  if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
177
177
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if');
178
178
  this.jingGouMiniState = true;
179
179
  window.isJingGouMiniViewState = true;
180
180
  console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ');
181
181
  global.info.isJingGouMiniViewState = true;
182
182
  } else {
183
183
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle');
184
184
  }
185
185
  }
186
186
  }
187
187
 
188
188
  jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
189
189
  this.jdNavigateToNative(
190
190
  pageUrl,
191
191
  logEventInfo,
192
192
  () => {
193
193
  console.log('JD.wxappext.goto');
194
194
  wx?.miniProgram[type] &&
195
195
  wx?.miniProgram[type]({
196
196
  url: pageUrl,
197
197
  });
198
198
  },
199
199
  () => {
200
200
  console.log('JD.wxappext.goto2');
201
201
  wx?.miniProgram[type] &&
202
202
  wx?.miniProgram[type]({
203
203
  url: pageUrl,
204
204
  });
205
205
  },
206
206
  );
207
207
  }
208
208
 
209
209
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
210
210
  console.log('web.wxapp.ts - jdJumpToTabAllProduct');
211
211
  if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
212
212
  if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
213
213
  if (this.jingGouMiniState) {
214
214
  const param = {
215
215
  shopId,
216
216
  venderId,
217
217
  tabActive: SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_PRODUCT],
218
218
  };
219
219
  const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
220
220
  this.jdJumpToMiniPage(url, logEventInfo);
221
221
  } else {
222
222
  super.jdJumpToTabAllProduct(shopId, venderId, logEventInfo);
223
223
  }
224
224
  }
225
225
 
226
226
  jdJumpToTopTabBase(type, shopInfo = {}) {
227
227
  const getInfo = Object.assign(
228
228
  {},
229
229
  {
230
230
  shopId: global.info.queryInfo.shopId,
231
231
  venderId: global.info.queryInfo.venderId,
232
232
  },
233
233
  shopInfo,
234
234
  );
235
235
  if (this.jingGouMiniState) {
236
236
  const { shopId, venderId, ...otherInfo } = getInfo;
237
237
  const param = {
238
238
  shopId,
239
239
  venderId,
240
240
  tabActive: type,
241
241
  };
242
242
  const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
243
243
  this.jdJumpToMiniPage(url, otherInfo);
244
244
  } else {
245
245
  super.jdJumpToTopTabBase(type, shopInfo);
246
246
  }
247
247
  }
248
248
 
249
249
  jdJumpToWeb(url, logEventInfo) {
250
250
  console.log('web.wxapp.ts - jdJumpToWeb', url);
251
251
  console.log('jingGouMiniState', this.jingGouMiniState);
252
252
  if (this.jingGouMiniState) {
253
253
  const encodeUrl = `${this.jumpMiniPath.h5}?encode_url=${encodeURIComponent(url)}`;
254
254
  this.jdJumpToMiniPage(encodeUrl, logEventInfo);
255
255
  } else {
256
256
  super.jdJumpToWeb(url, logEventInfo);
257
257
  }
258
258
  }
259
259
 
260
260
  jdJumpToWebInner(url, logEventInfo) {
261
261
  super.jdJumpToWeb(url, logEventInfo);
262
262
  }
263
263
 
264
264
  jdJumpToProduct(skuIds, logEventInfo) {
265
265
  if (this.jingGouMiniState) {
266
266
  const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`;
267
267
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
268
268
  } else {
269
269
  super.jdJumpToProduct(skuIds, logEventInfo);
270
270
  }
271
271
  }
272
272
 
273
273
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
274
274
  const getSkuId = skuInfo?.skuId;
275
275
  this.jdJumpToProduct(getSkuId, logEventInfo);
276
276
  }
277
277
 
278
278
  jdJumpToShopHome(shopInfo) {
279
279
  console.log('[降级H5] jdJumpToShopHome web.wxapp', shopInfo);
280
280
  console.log(
281
281
  'global.info.queryInfo.shopId',
282
282
  global.info.queryInfo.shopId,
283
283
  global.info.queryInfo.venderId,
284
284
  );
285
285
  const currentShopInfo = {
286
286
  shopId: global.info.queryInfo.shopId,
287
287
  venderId: global.info.queryInfo.venderId,
288
288
  };
289
289
  const restParams =
290
290
  (shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
291
291
  (shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
292
292
  ? {}
293
293
  : currentShopInfo;
294
294
  const getInfo = Object.assign({}, restParams, shopInfo);
295
295
  const { type = 'navigateTo', ...otherShopInfo } = getInfo;
296
296
  if (this.jingGouMiniState) {
297
297
  let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`;
298
298
  if (
299
299
  /(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
300
300
  ) {
301
301
  shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
302
302
  this.getShopIdsInfo(otherShopInfo),
303
303
  )}`;
304
304
  }
305
305
  this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
306
306
  } else {
307
307
  super.jdJumpToShopHome(otherShopInfo);
308
308
  }
309
309
  }
310
310
 
311
311
  jdJumpToShopCategory(params) {
312
312
  console.log('[降级H5] jdJumpToShopCategory web.wxapp');
313
313
  const { type = 'navigateTo', ...otherShopInfo } = params;
314
314
  console.log('获取分类跳转参数', params);
315
315
  if (this.jingGouMiniState) {
316
316
  this.jdJumpToTopTabBase('classify', otherShopInfo);
317
317
  } else {
318
318
  super.jdJumpToShopCategory(otherShopInfo);
319
319
  }
320
320
  }
321
321
 
322
322
  jdJumpToLive(liveInfo, logEventInfo = {}) {
323
323
  if (liveInfo?.liveId) {
324
324
  if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
325
325
  this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
326
326
  logEventInfo,
327
327
  });
328
328
  } else {
329
329
  this.jdJumpToWeb(
330
330
  `${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
331
331
  this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
332
332
  }`,
333
333
  logEventInfo,
334
334
  );
335
335
  }
336
336
  }
337
337
  }
338
338
 
339
339
  jdJumpToShopLight(shopInfo) {
340
340
  if (this.jingGouMiniState) {
341
341
  this.jdJumpToMiniPage(
342
342
  `${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
343
343
  this.getShopIdOrVenderIdParams(shopInfo),
344
344
  )}`,
345
345
  {
346
346
  ...shopInfo,
347
347
  },
348
348
  );
349
349
  } else {
350
350
  this.jdNavigateToNative(
351
351
  `${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
352
352
  this.getShopIdOrVenderIdParams(shopInfo),
353
353
  )}`,
354
354
  {
355
355
  ...shopInfo,
356
356
  },
357
357
  );
358
358
  }
359
359
  }
360
360
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
361
361
  if (this.jingGouMiniState) {
362
362
  const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
363
363
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
364
364
  } else {
365
365
  super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
366
366
  }
367
367
  }
@@ -0,0 +1,178 @@
1
+ {
2
+ "memberUniqueCoupon": "Member-only coupon",
3
+ "failFollow": "Please retry later",
4
+ "memberInstructionDetail": "Rules",
5
+ "joinMemberFail": "Please retry later",
6
+ "failBusy": "Please retry later",
7
+ "mobileNumber": "Phone",
8
+ "discount": "discount",
9
+ "cancelMemberCard": "Cancel membership card",
10
+ "joinGifts": "入会礼包",
11
+ "paidMemberCoupon": "品牌订阅尊享券",
12
+ "allLoaded": "All loaded\n",
13
+ "openCardSuccessAndReturn": "Success",
14
+ "lv0Star": "LV0",
15
+ "shopDetail": "Detail",
16
+ "viewAllProducts": "View all",
17
+ "joinMemberSuccess2": "Join successfully",
18
+ "cancelBtnMsg": "Cancel",
19
+ "failLoad": "Please retry later",
20
+ "collapsePrivilege": "收起特权",
21
+ "failCode": "Please retry later",
22
+ "cancelMemberConfirmText": "Cancel membership",
23
+ "memberFranchise": "Privilege",
24
+ "memberAddMemberInfo": "Membership rules and benefits",
25
+ "memberSprintNoStandardTip": "Sorry,not up to standard",
26
+ "authorize": "Authorize",
27
+ "noProductNew": "This store has not yet listed any products for sale.",
28
+ "goToShop": "Visit",
29
+ "contentUnavailable": "The content you're looking for is unavailable",
30
+ "successReceive": "Success",
31
+ "allPrivilege": "全部特权",
32
+ "successAddShopList": "Success",
33
+ "edit": "edit",
34
+ "fansChat": "Fans' group chat",
35
+ "verifyCodeError": "Wrong code",
36
+ "belowProductAvailable": "The following products are available",
37
+ "reachTo": "Reach to",
38
+ "myPoints": "我的积分",
39
+ "loading": "Loading",
40
+ "failNetwork": "Please retry later",
41
+ "sgBonus": "Bonus",
42
+ "newReleaseSeason": "Season release",
43
+ "newRelease": "New release",
44
+ "cancelMemberlFailMsg": "Unbinding membership failed, please try again later.",
45
+ "timeUnitDay": "d",
46
+ "5Star": "Five_star",
47
+ "memberCardAgreement": "Member Authorization Agreement",
48
+ "timeUnitSecond": "s",
49
+ "pointsExchangeTask": "积分兑换任务",
50
+ "memberGiftReceiveTip": "Success",
51
+ "memberCoupon": "会员专享券",
52
+ "sendCodeFail": "Send failed, please try again later.",
53
+ "successMsg": "Success",
54
+ "noProduct": "No products~",
55
+ "shopYearDescText": "Achieve annual 5-Star honors, with ratings exceeding 99% of stores",
56
+ "newWareCalendar": "上新日历",
57
+ "joinYouToMember": "Invite you to join brand member",
58
+ "recommendOrder": "Recommended",
59
+ "checkNetwork": "Check network settings",
60
+ "rightsDesc": "权益说明",
61
+ "memberBalance": "Balance",
62
+ "memberSprintConfirmTip": "Sorry,not up to standard",
63
+ "cancelMemberCardContent": "Note: After canceling the membership card, you will no longer be able to enjoy exclusive member coupons, member points benefits, and member-only prices.",
64
+ "sorryNoProduct": "Sorry, there is no product available.",
65
+ "2Star": "Two_star",
66
+ "joinReceive": "Join now",
67
+ "filterCriteriaMsg": "Filter criteria",
68
+ "memberSearchShop": "View this store",
69
+ "improveMemberInfo": "Authorize phone number",
70
+ "pointsExchange": "积分兑换",
71
+ "memberPointsFranchise": "Member points benefits",
72
+ "loseNetwork": "Network connection lost",
73
+ "memberGiftCongrats": "Success",
74
+ "simplifiedMode": "Simplified mode",
75
+ "ReceiveNow": "Receive",
76
+ "pleaseInput": "Please input",
77
+ "resetBtnMsg": "Reset",
78
+ "sendSuccess": "Sent",
79
+ "failReceive": "Please retry later",
80
+ "unFollowMsg": "Unfollow",
81
+ "welcomeToSageShop": "Welcome",
82
+ "highTraffic": "High traffic",
83
+ "cancelMemberCloseText": "I'll think about it again",
84
+ "newlyFirst": "Newly first",
85
+ "pleaseInputCode": "Please input code",
86
+ "verifyCode": "code",
87
+ "more": "More",
88
+ "searchBtn": "Search",
89
+ "deleteAll": "Delete all",
90
+ "payPrivilege": "尊享特权",
91
+ "birthdayGift": "会员生日礼",
92
+ "starMember": "_star",
93
+ "hotSearch": "Hot Search",
94
+ "joinGiftsDesc": "新会员专享,礼品有限,以实际使用为准",
95
+ "chat": "Chat",
96
+ "ReceiveCouponNow": "Receive",
97
+ "searchHistory": "Search History",
98
+ "validity": "Expiration Date",
99
+ "complete": "Complete",
100
+ "upgradeSubMember": "Upgrade to Subscription Members",
101
+ "fullMode": "Full mode",
102
+ "timeUnitHour": "h",
103
+ "newReleaseToday": "New release today",
104
+ "allProductUseable": "All items available",
105
+ "unlimitedAmount": "Unlimited",
106
+ "available": "Available",
107
+ "memberCardInstruction": "Card Instructions",
108
+ "mobileNumberErrorInput": "Wrong phone number",
109
+ "fansBenefits": "Fans' rewarding",
110
+ "timeUnitMinute": "m",
111
+ "memberFilter": "Conditions",
112
+ "openCardDelayTip": "Please retry later",
113
+ "isCancelMemberContent": "You will miss out on exclusive benefits for premium members.",
114
+ "failAddShopList": "Please retry later",
115
+ "ensureBtnMsg": "Confirm",
116
+ "viewReplay": "View replay",
117
+ "reserveNow": "Reserve now",
118
+ "failReceiveGift": "Please retry later",
119
+ "noPriceTip": "Unpriced",
120
+ "officialReduction": "Official reduction",
121
+ "successAddCart": "Success",
122
+ "updateCardMemberAndEnjoy": "升级开卡会员领好礼",
123
+ "4Star": "Four_star",
124
+ "failSubscribe": "Please retry later",
125
+ "manyPeoleFollow": "Followers",
126
+ "pageLoadFailed": "Page load failed, please try again later",
127
+ "viewAll": "View all",
128
+ "successFollow": "Success",
129
+ "followers": "followers",
130
+ "noShopTip": "No shop available",
131
+ "failCancel": "Please retry later",
132
+ "memberRules": "会员规则",
133
+ "joinMemberDesc": "0元入会,享专属会员权益",
134
+ "successSubscribe": "Success",
135
+ "memberRule": "Membership Rules",
136
+ "failMsg": "Please retry later",
137
+ "pleaseInputMobileNumber": "Please input phone number",
138
+ "loadDataFailed": "Failed to load",
139
+ "ensureMemberAuthorize": "Confirm authorization",
140
+ "joinIn": "Join now",
141
+ "cancelMsg": "Canceled",
142
+ "reveivedRights": "已领权益",
143
+ "buyers": "buyers",
144
+ "sendCode": "send",
145
+ "payPrivilegeDesc": "品牌付费订阅说明",
146
+ "globalShopDetail": "Shop Details",
147
+ "successCode": "Success",
148
+ "reload": "Reload",
149
+ "3Star": "Three_star",
150
+ "globalShare": "Share",
151
+ "memberUniquePrice": "Member exclusive price",
152
+ "someProductUseable": "Some items available",
153
+ "hasSent": "Has sent",
154
+ "joinEnjoyGifts": "Join and enjoy gifts",
155
+ "memberAnd": "and",
156
+ "failAddCart": "Please retry later",
157
+ "retryLater": "retryLater",
158
+ "successJoinIn": "Success",
159
+ "joinMember": "License and registration",
160
+ "globalMessage": "Message",
161
+ "useNow": "Use Now",
162
+ "emailError": "Wrong email",
163
+ "mobileNumberError": "Wrong phone number",
164
+ "isCancelMemberTitle": "Are you really going to cancel your membership?",
165
+ "globalHome": "Home",
166
+ "brandActivity": "品牌活动",
167
+ "joinMemberRightNow": "立即加入品牌会员",
168
+ "follow": "Follow",
169
+ "followed": "Following",
170
+ "shopPopularity": "Popularity",
171
+ "joinMemberSuccess": "Join successfully",
172
+ "mobileNumberErrorFill": "Wrong phone number",
173
+ "joinNow": "Join now",
174
+ "watchNow": "Watch now",
175
+ "1Star": "One_star",
176
+ "fansMember": "Members",
177
+ "pleaseTryAgainLater": "Please try again later"
178
+ }