@conecli/cone-render 0.9.1-shop2.16 → 0.9.1-shop2.19

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 (38) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/environmentType.ts +1 -1
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  9. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  10. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  11. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  12. package/dist/components/floorItem.tsx +1 -1
  13. package/dist/interface/common.ts +1 -1
  14. package/dist/interface/component.ts +1 -1
  15. package/dist/interface/jumpEventReport.ts +1 -1
  16. package/dist/interface/service.ts +1 -1
  17. package/dist/jumpEventReport/base.ts +1 -1
  18. package/dist/jumpEventReport/const.ts +1 -1
  19. package/dist/jumpEventReport/index.jd.ts +1 -1
  20. package/dist/jumpEventReport/index.weapp.ts +1 -1
  21. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  22. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  23. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  24. package/dist/jumpEventReport/web.base.ts +1 -1
  25. package/dist/jumpEventReport/web.jd.ts +1 -1
  26. package/dist/jumpEventReport/web.tjm.ts +1 -1
  27. package/dist/modules/ContainerFloorList/index.h5.module.scss +1 -1
  28. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  29. package/dist/open/api/device.ts +1 -1
  30. package/dist/sass/base.scss +45 -0
  31. package/dist/service/requestServer.ts +1 -1
  32. package/dist/utils/connectNativeJsBridge.ts +1 -1
  33. package/dist/utils/h5Utils.ts +1 -1
  34. package/dist/utils/index.h5.ts +1 -1
  35. package/dist/utils/index.ts +1 -1
  36. package/dist/utils/index.weapp.ts +1 -1
  37. package/dist/utils/utils.ts +1 -1
  38. package/package.json +1 -1
@@ -11,7 +11,18 @@
11
11
  display: none;
12
12
  }
13
13
  }
14
+ .d-container-item-cover {
15
+ &:first-child {
16
+ z-index: 99;
17
+ top: 22px;
18
+ // top: 21px;
19
+ width: 98.5%;
20
+ left: 6px;
21
+ }
14
22
 
23
+ width: 100%;
24
+ position: absolute;
25
+ }
15
26
  .d-container-item{
16
27
  &.d-container-item-active {
17
28
  :global {
@@ -1 +1 @@
1
- import { View } from '@tarojs/components'
2
1
  const {
3
2
  selectContainerId,
4
3
  placeHolderPreContainerId,
5
4
  containerData,
6
5
  children,
7
6
  style,
8
7
  shopTotalInfo,
9
8
  urlQueryData
10
9
  } = props;
11
10
  const { isTrusteeship = false } = urlQueryData || {}
12
11
  const selectContainerState = selectContainerId == containerData?.containerId
13
12
  const ChildrenComponent = useCallback(() => {
14
13
  return children ? children : null;
15
14
  }, [containerData, shopTotalInfo]);
16
15
  const isHideFloor = isTrusteeship && containerData?.floors?.[0]?.status === -1
17
16
  return (
18
17
  <View
19
18
  className={classNames(
20
19
  decorateModuleStyle[isTrusteeship ? 'd-container-item-trusteeship' : 'd-container-item'],
21
20
  'J_container',
22
21
  {
23
22
  [decorateModuleStyle['d-container-item-active']]:
24
23
  selectContainerState,
25
24
  },
26
25
  {
27
26
  J_floorItemActive: selectContainerState,
28
27
  },
29
28
  {
30
29
  [decorateModuleStyle['d-container-item-hide']]:
31
30
  isHideFloor,
32
31
  }
33
32
  )}
34
33
  id={`J_container_${containerData?.containerId}`}
35
34
  data-container-id={containerData?.containerId}
36
35
  data-container-type={containerData?.typeCode}
37
36
  data-container-cn={containerData?.typeCn}
38
37
  data-container-floorFlag={containerData?.extInfo?.floorFlag || ''}
39
38
  data-container-moduleInstanceType={containerData?.extInfo?.moduleInstanceType || ''}
40
39
  data-container-position={containerData?.containerPosition}
41
40
  data-container-alias={
42
41
  containerData?.containerAlias
43
42
  ? containerData?.containerAlias
44
43
  : ''
45
44
  }
46
45
  data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
47
46
  style={
48
47
  containerData?.typeCode !== ContainerShopHeaderType ? style : {}
49
48
  }
50
49
  >
51
50
  <input
52
51
  type="hidden"
53
52
  value={`container_${containerData?.containerId}`}
54
53
  />
55
54
  <ChildrenComponent />
56
55
  <PlaceHolder
57
56
  placeHolderPreContainerId={placeHolderPreContainerId}
58
57
  containerId={containerData?.containerId}
59
58
  />
60
59
  </View>
61
60
  )
61
+ import { View } from '@tarojs/components'
62
62
  const {
63
63
  selectContainerId,
64
64
  placeHolderPreContainerId,
65
65
  containerData,
66
66
  children,
67
67
  style,
68
68
  shopTotalInfo,
69
69
  urlQueryData,
70
70
  containerIndex = -1,
71
71
  luxuryFixed = false
72
72
  } = props;
73
73
  const { isTrusteeship = false } = urlQueryData || {}
74
74
  const selectContainerState = selectContainerId == containerData?.containerId
75
75
  const ChildrenComponent = useCallback(() => {
76
76
  return children ? children : null;
77
77
  }, [containerData, shopTotalInfo]);
78
78
  const isHideFloor = isTrusteeship && containerData?.floors?.[0]?.status === -1
79
79
  return (
80
80
  <View
81
81
  className={classNames(
82
82
  decorateModuleStyle[isTrusteeship ? 'd-container-item-trusteeship' : 'd-container-item'],
83
83
  'J_container',
84
84
  {
85
85
  [decorateModuleStyle['d-container-item-active']]:
86
86
  selectContainerState,
87
87
  },
88
88
  {
89
89
  J_floorItemActive: selectContainerState,
90
90
  },
91
91
  {
92
92
  [decorateModuleStyle['d-container-item-hide']]:
93
93
  isHideFloor,
94
94
  },
95
95
  {
96
96
  [decorateModuleStyle['d-container-item-cover']]:
97
97
  containerIndex === 0 && luxuryFixed && !isTrusteeship,
98
98
  },
99
99
  )}
100
100
  id={`J_container_${containerData?.containerId}`}
101
101
  data-container-id={containerData?.containerId}
102
102
  data-container-type={containerData?.typeCode}
103
103
  data-container-cn={containerData?.typeCn}
104
104
  data-container-floorFlag={containerData?.extInfo?.floorFlag || ''}
105
105
  data-container-moduleInstanceType={containerData?.extInfo?.moduleInstanceType || ''}
106
106
  data-container-position={containerData?.containerPosition}
107
107
  data-container-alias={
108
108
  containerData?.containerAlias
109
109
  ? containerData?.containerAlias
110
110
  : ''
111
111
  }
112
112
  data-container-empty={containerData?.floors?.[0]?.configEmpty || 'false'}
113
113
  style={
114
114
  containerData?.typeCode !== ContainerShopHeaderType ? style : {}
115
115
  }
116
116
  >
117
117
  <input
118
118
  type="hidden"
119
119
  value={`container_${containerData?.containerId}`}
120
120
  />
121
121
  <ChildrenComponent />
122
122
  <PlaceHolder
123
123
  placeHolderPreContainerId={placeHolderPreContainerId}
124
124
  containerId={containerData?.containerId}
125
125
  {...(selectContainerId === "luxuryHeader-isUpperHalf" && { isShowPlaceHolder: false })}
126
126
  />
127
127
  </View>
128
128
  )
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
2
1
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
3
2
  const {
4
3
  moduleType,
5
4
  configEmpty,
6
5
  previewUri = null,
7
6
  uid,
8
7
  moduleFlag,
9
8
  moduleName,
10
9
  } = props.floorData
11
10
  let previewUrl = previewUri
12
11
  const newModuleFloorTypeList = [100, 101, 100000, 99999]
13
12
  const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
14
13
  if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
15
14
  previewUrl = decorateModulePrevDefaultUrl
16
15
  }
17
16
  const loadImageErr = e => {
18
17
  e.target.src = decorateModulePrevDefaultUrl
19
18
  }
20
19
  if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
21
20
  return null
22
21
  return isNewFloorState && configEmpty && previewUrl ? (
23
22
  <View
24
23
  className={emptyModuleStyle['d-empty-module']}
25
24
  data-floor-uid={uid}
26
25
  data-floor-type={moduleFlag}
27
26
  data-floor-modulename={moduleName}
28
27
  >
29
28
  {}
30
29
  {}
31
30
  {}
32
31
  {}
33
32
  {}
34
33
  {}
35
34
  {}
36
35
  <View className={classNames(emptyModuleStyle['d-empty-img'])}>
37
36
  <img
38
37
  width={355}
39
38
  className={classNames('J_floorEmptyDataImg')}
40
39
  src={previewUrl}
41
40
  onError={loadImageErr.bind(this)}
42
41
  />
43
42
  </View>
44
43
  </View>
45
44
  ) : (
46
45
  <View
47
46
  className={classNames(
48
47
  emptyModuleStyle['d-empty-module'],
49
48
  emptyModuleStyle['d-empty-text-warp'],
50
49
  )}
51
50
  data-floor-uid={uid}
52
51
  data-floor-type={moduleFlag}
53
52
  data-floor-modulename={moduleName}
54
53
  >
55
54
  <Text className={emptyModuleStyle['d-empty-text']}>
56
55
  该楼层还未配置数据
57
56
  </Text>
58
57
  </View>
59
58
  )
59
+ import { View, Text } from '@tarojs/components'
60
60
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
61
61
  '//img14.360buyimg.com/imagetools/jfs/t1/247708/11/19310/58975/66ecefa4Fe36ade02/370c18c961aceef1.png'
62
62
  const {
63
63
  moduleType,
64
64
  configEmpty,
65
65
  previewUri = null,
66
66
  uid,
67
67
  moduleFlag,
68
68
  moduleName,
69
69
  } = props.floorData
70
70
  const { luxuryFixed = false } = props
71
71
  let previewUrl = previewUri
72
72
  const newModuleFloorTypeList = [100, 101, 100000, 99999]
73
73
  const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
74
74
  if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
75
75
  previewUrl = luxuryFixed ? luxuryDecorateModulePrevDefaultUrl : decorateModulePrevDefaultUrl
76
76
  }
77
77
  const loadImageErr = e => {
78
78
  e.target.src = decorateModulePrevDefaultUrl
79
79
  }
80
80
  if (moduleFlag && TRUSTEESHIP_MODULE_FLAG_LIST.indexOf(moduleFlag) !== -1)
81
81
  return null
82
82
  return isNewFloorState && configEmpty && previewUrl ? (
83
83
  <View
84
84
  className={emptyModuleStyle['d-empty-module']}
85
85
  data-floor-uid={uid}
86
86
  data-floor-type={moduleFlag}
87
87
  data-floor-modulename={moduleName}
88
88
  >
89
89
  {}
90
90
  {}
91
91
  {}
92
92
  {}
93
93
  {}
94
94
  {}
95
95
  {}
96
96
  <View className={classNames(emptyModuleStyle['d-empty-img'])}>
97
97
  <img
98
98
  width={luxuryFixed ? 375 : 355}
99
99
  className={classNames('J_floorEmptyDataImg')}
100
100
  src={previewUrl}
101
101
  onError={loadImageErr.bind(this)}
102
102
  />
103
103
  </View>
104
104
  </View>
105
105
  ) : (
106
106
  <View
107
107
  className={classNames(
108
108
  emptyModuleStyle['d-empty-module'],
109
109
  emptyModuleStyle['d-empty-text-warp'],
110
110
  )}
111
111
  data-floor-uid={uid}
112
112
  data-floor-type={moduleFlag}
113
113
  data-floor-modulename={moduleName}
114
114
  >
115
115
  <Text className={emptyModuleStyle['d-empty-text']}>
116
116
  该楼层还未配置数据
117
117
  </Text>
118
118
  </View>
119
119
  )
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
1
+ import { View, Text } from '@tarojs/components'
@@ -1 +1 @@
1
- import React from 'react'
2
1
  const { floorData, renderSourceType, builtInComponents = {} } = props
3
2
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
4
3
  const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
5
4
  const FloorContentItem =
6
5
  (floorModuleType && builtInComponents[floorModuleType]) || null
7
6
  const dataDefines = getFloorDataToDataDefines(floorData)
8
7
 
9
8
  const renderDecorateDefaultModule = () => {
10
9
  return (
11
10
  <View
12
11
  style={{
13
12
  lineHeight: '120px',
14
13
  textAlign: 'center',
15
14
  }}
16
15
  >
17
16
  当前模块是{floorData.moduleName}
18
17
  </View>
19
18
  )
20
19
  }
21
20
  if (floorModuleType && (RemoteLoadFloorList.includes(floorModuleType) || floorData?.floorExtInfo?.floorLoadWay === 2)) {
22
21
  return (
23
22
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
24
23
  )
25
24
  } else {
26
25
  return FloorContentItem ? (
27
26
  <ErrorBoundary {...props}>
28
27
  <FloorContentItem {...props} dataDefines={dataDefines} />
29
28
  </ErrorBoundary>
30
29
  ) : isDevMode ? (
31
30
  renderDecorateDefaultModule()
32
31
  ) : null
33
32
  }
34
33
  renderSourceType: BUSINESS_TYPE.ONLINE,
35
34
  switch (moduleId) {
36
35
  case 83158:
37
36
  return 'freeLayout'
38
37
  case 99654:
39
38
  return 'activeText'
40
39
  case 100382:
41
40
  return 'superGoods'
42
41
  }
43
42
  floorList.map((item) => {
44
43
  if (!item.floorExtInfo) {
45
44
  return null
46
45
  }
47
46
  const moduleFlag = item.floorExtInfo.moduleFlag
48
47
  if (!moduleFlag) {
49
48
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
50
49
  if (newModuleFlag) {
51
50
  item.floorExtInfo.moduleFlag = newModuleFlag
52
51
  }
53
52
  }
54
53
  })
54
+ import React from 'react'
55
55
  const { floorData, renderSourceType, builtInComponents = {} } = props
56
56
  const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
57
57
  const specificModuleFlag = ['mHeaderVideo']
58
58
  const frontEndSpecificModuleFlag = ['header_mVideo']
59
59
  const luxuryContainerPosition = 'luxuryFixed'
60
60
  const floorPosition = floorData?.floorPosition
61
61
  let floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
62
62
  specificModuleFlag.includes(floorModuleType) && floorPosition === luxuryContainerPosition && (floorModuleType = frontEndSpecificModuleFlag)
63
63
  const FloorContentItem =
64
64
  (floorModuleType && builtInComponents[floorModuleType]) || null
65
65
  const dataDefines = getFloorDataToDataDefines(floorData)
66
66
 
67
67
  const renderDecorateDefaultModule = () => {
68
68
  return (
69
69
  <View
70
70
  style={{
71
71
  lineHeight: '120px',
72
72
  textAlign: 'center',
73
73
  }}
74
74
  >
75
75
  当前模块是{floorData.moduleName}
76
76
  </View>
77
77
  )
78
78
  }
79
79
  if (floorModuleType && (RemoteLoadFloorList.includes(floorModuleType) || floorData?.floorExtInfo?.floorLoadWay === 2)) {
80
80
  return (
81
81
  <RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
82
82
  )
83
83
  } else {
84
84
  return FloorContentItem ? (
85
85
  <ErrorBoundary {...props}>
86
86
  <FloorContentItem {...props} dataDefines={dataDefines} />
87
87
  </ErrorBoundary>
88
88
  ) : isDevMode ? (
89
89
  renderDecorateDefaultModule()
90
90
  ) : null
91
91
  }
92
92
  renderSourceType: BUSINESS_TYPE.ONLINE,
93
93
  switch (moduleId) {
94
94
  case 83158:
95
95
  return 'freeLayout'
96
96
  case 99654:
97
97
  return 'activeText'
98
98
  case 100382:
99
99
  return 'superGoods'
100
100
  }
101
101
  floorList.map((item) => {
102
102
  if (!item.floorExtInfo) {
103
103
  return null
104
104
  }
105
105
  const moduleFlag = item.floorExtInfo.moduleFlag
106
106
  if (!moduleFlag) {
107
107
  const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
108
108
  if (newModuleFlag) {
109
109
  item.floorExtInfo.moduleFlag = newModuleFlag
110
110
  }
111
111
  }
112
112
  })
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  isJingxiMiniViewState?: boolean
3
2
  floorVideInfo: object
4
3
  originQueryInfo: {
5
4
  openAppData?: {
6
5
  [key: string]: any
7
6
  }
7
+ import Taro from '@tarojs/taro'
8
8
  isJingxiMiniViewState?: boolean
9
9
  floorVideInfo: object
10
10
  isFloorInfoDataByPage?: boolean
11
11
  originQueryInfo: {
12
12
  openAppData?: {
13
13
  [key: string]: any
14
14
  }
@@ -1 +1 @@
1
- import React from 'react'
2
1
  subMessage?: string
3
2
  viewMaxHeight?: string
4
3
  noPosition?: boolean
5
4
  floorLoadWay?: number
6
5
  floorKind?: number
7
6
  shopId?: string
8
7
  moduleDesignerType?: string
9
8
  showCommonFloorHead?: boolean
10
9
  borderRadius: number
11
10
  borderTopLeftRadius?: number
12
11
  borderTopRightRadius?: number
13
12
  borderBottomLeftRadius?: number
14
13
  borderBottomRightRadius?: number
15
14
  marginTop?: number
16
15
  marginBottom?: number
17
16
  marginLeft?: number
18
17
  marginRight?: number
19
18
  paddingTop?: number
20
19
  paddingBottom?: number
21
20
  paddingLeft?: number
22
21
  paddingRight?: number
23
22
  containerId: string
24
23
  background?: string
25
24
  containerPosition?: string
26
25
  key?: string
27
26
  floors: floorItemData[]
28
27
  includeUids: string[]
29
28
  typeCn: string
30
29
  typeCode?: string
31
30
  addLuxuryStyle?: boolean
32
31
  addLuxuryBackupStyle?: boolean
33
32
  renderExtendComponent?: Function
34
33
  insertContainerStartComponent?: Function
35
34
  floorExtendData?: any
36
35
  }
37
36
  isRealTimeRender: boolean
38
37
  forceRenderTime: number
39
38
  customErrorIsvFloorModule?: React.ReactElement | undefined
40
39
  containerIndex?: number
41
40
  containerData?: any
42
41
  shopTotalInfo?: any
43
42
  selectContainerFn?: Function
44
43
  selectContainerId?: string
45
44
  placeHolderPreContainerId?: string
46
45
  children?: any
47
46
  style?: {
48
47
  [key: string]: any
49
48
  };
50
49
  layoutLeftRightMargin?: number
51
50
  }
52
51
  showDayToSecondState?: boolean
53
52
  onFormSubmit?: Function
54
53
  onFormReset?: Function
55
54
  isFormDialog?: boolean
56
55
  forbiddenBgScrollState?: boolean
57
56
  evenList: any[]
58
57
  oddList: any[]
58
+ import React from 'react'
59
59
  subMessage?: string
60
60
  viewMaxHeight?: string
61
61
  noPosition?: boolean
62
62
  floorLoadWay?: number
63
63
  floorKind?: number
64
64
  shopId?: string
65
65
  moduleDesignerType?: string
66
66
  showCommonFloorHead?: boolean
67
67
  borderRadius: number
68
68
  borderTopLeftRadius?: number
69
69
  borderTopRightRadius?: number
70
70
  borderBottomLeftRadius?: number
71
71
  borderBottomRightRadius?: number
72
72
  marginTop?: number
73
73
  marginBottom?: number
74
74
  marginLeft?: number
75
75
  marginRight?: number
76
76
  paddingTop?: number
77
77
  paddingBottom?: number
78
78
  paddingLeft?: number
79
79
  paddingRight?: number
80
80
  containerId: string
81
81
  background?: string
82
82
  containerPosition?: string
83
83
  key?: string
84
84
  floors: floorItemData[]
85
85
  includeUids: string[]
86
86
  typeCn: string
87
87
  typeCode?: string
88
88
  addLuxuryStyle?: boolean
89
89
  addLuxuryBackupStyle?: boolean
90
90
  renderExtendComponent?: Function
91
91
  insertContainerStartComponent?: Function
92
92
  floorExtendData?: any
93
93
  }
94
94
  isRealTimeRender: boolean
95
95
  forceRenderTime: number
96
96
  luxuryFixed?: boolean
97
97
  customErrorIsvFloorModule?: React.ReactElement | undefined
98
98
  containerIndex?: number
99
99
  containerData?: any
100
100
  shopTotalInfo?: any
101
101
  selectContainerFn?: Function
102
102
  selectContainerId?: string
103
103
  placeHolderPreContainerId?: string
104
104
  children?: any
105
105
  luxuryFixed?: boolean
106
106
  style?: {
107
107
  [key: string]: any
108
108
  };
109
109
  layoutLeftRightMargin?: number
110
110
  }
111
111
  isShowPlaceHolder?: boolean
112
112
  showDayToSecondState?: boolean
113
113
  onFormSubmit?: Function
114
114
  onFormReset?: Function
115
115
  isFormDialog?: boolean
116
116
  forbiddenBgScrollState?: boolean
117
117
  evenList: any[]
118
118
  oddList: any[]