@conecli/cone-render 0.10.1-shop-beta.21 → 0.10.1-shop-beta.22

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.
@@ -21,6 +21,7 @@
21
21
  //}
22
22
  background: url('https://img10.360buyimg.com/cms/jfs/t1/328840/6/11913/995/68afbf0bF9ec30819/def24889cbb231ec.png') center center / 75px 30px no-repeat;
23
23
  &.d-lazy-sku-image {
24
+ background-color: #F6F6F6;
24
25
  background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/222907/25/7012/5824/61c4797cEbcd17c7f/6c76fc71e4fdb5a5.png');
25
26
  background-size: 100% 100%;
26
27
  background-position: 0 0;
@@ -1 +1 @@
1
- import { NETWORK_DATA_TYPE } from '../../../common/const';
2
1
  [NETWORK_DATA_TYPE.NO_NET_WORK]: global?.languageJsonData?.loseNetwork || '网络连接已断开',
3
2
  [NETWORK_DATA_TYPE.DATA_ERROR]: global?.languageJsonData?.loadDataFailed || '数据加载失败',
4
3
  [NETWORK_DATA_TYPE.NO_DATA]:
5
4
  global?.languageJsonData?.contentUnavailable || '你访问的内容飞到太空了',
6
5
  [NETWORK_DATA_TYPE.RISK]: global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
7
6
  [NETWORK_DATA_TYPE.NO_NET_WORK]: global?.languageJsonData?.checkNetwork || '请检查您的网络设置',
8
7
  [NETWORK_DATA_TYPE.DATA_ERROR]: global?.languageJsonData?.pleaseTryAgainLater || '请稍后重试',
9
8
  [NETWORK_DATA_TYPE.NO_DATA]: '',
10
9
  [NETWORK_DATA_TYPE.RISK]: global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试',
11
10
  NETWORK_DATA_TYPE.NO_NET_WORK,
12
11
  NETWORK_DATA_TYPE.DATA_ERROR,
13
12
  NETWORK_DATA_TYPE.NO_DATA,
14
13
  NETWORK_DATA_TYPE.RISK,
15
14
  PART: 'part',
16
15
  FULL: 'full',
17
16
  No_Data_Default_Tip: 'no-data-default-tip',
18
17
  No_Data_Tip_1: 'no-data-tip-1',
19
18
  No_Data_Tip_2: 'no-data-tip-2',
20
19
  No_Network_Err_Tip: 'no-network',
21
20
  No_Data_Bmall: 'no-data-bmall',
22
21
  noData: 'no-data-empty',
23
22
  netWorkErr: 'network-err',
24
23
  searchEmpty: 'search-empty',
25
24
  shopClose: 'shop-close',
26
25
  OLD: 'old',
27
26
  NEW: 'new',
27
+ import { NETWORK_DATA_TYPE } from '../../../common/const';
28
28
  [NETWORK_DATA_TYPE.NO_NET_WORK]: global?.languageJsonData?.loseNetwork || '网络连接已断开',
29
29
  [NETWORK_DATA_TYPE.DATA_ERROR]:
30
30
  global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
31
31
  [NETWORK_DATA_TYPE.NO_DATA]: global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
32
32
  [NETWORK_DATA_TYPE.RISK]: global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
33
33
  [NETWORK_DATA_TYPE.NO_NET_WORK]: global?.languageJsonData?.checkNetwork || '请检查您的网络设置',
34
34
  [NETWORK_DATA_TYPE.DATA_ERROR]:
35
35
  global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试',
36
36
  [NETWORK_DATA_TYPE.NO_DATA]: global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试',
37
37
  [NETWORK_DATA_TYPE.RISK]: `${
38
38
  global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试'
39
39
  }。`,
40
40
  NETWORK_DATA_TYPE.NO_NET_WORK,
41
41
  NETWORK_DATA_TYPE.DATA_ERROR,
42
42
  NETWORK_DATA_TYPE.NO_DATA,
43
43
  NETWORK_DATA_TYPE.RISK,
44
44
  PART: 'part',
45
45
  FULL: 'full',
46
46
  No_Data_Default_Tip: 'no-data-default-tip',
47
47
  No_Data_Tip_1: 'no-data-tip-1',
48
48
  No_Data_Tip_2: 'no-data-tip-2',
49
49
  No_Network_Err_Tip: 'no-network',
50
50
  No_Data_Bmall: 'no-data-bmall',
51
51
  noData: 'no-data-empty',
52
52
  netWorkErr: 'network-err',
53
53
  searchEmpty: 'search-empty',
54
54
  shopClose: 'shop-close',
55
55
  OLD: 'old',
56
56
  NEW: 'new',
@@ -11,7 +11,7 @@
11
11
  }
12
12
  .d-error-content {
13
13
  text-align: center;
14
- &.d-new-style-content{
14
+ &.d-new-style-content {
15
15
  .d-data-error,
16
16
  .d-no-data,
17
17
  .d-no-data-tip-1,
@@ -19,7 +19,7 @@
19
19
  width: 240px;
20
20
  height: 240px;
21
21
  background: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png')
22
- 0 0 /240px 240px no-repeat;
22
+ 0 0 /240px 240px no-repeat;
23
23
  }
24
24
  .d-data-error-tip {
25
25
  padding-bottom: 24px;
@@ -86,19 +86,19 @@
86
86
  }
87
87
 
88
88
  .d-data-error {
89
- background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
89
+ background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
90
90
  }
91
91
  .d-risk {
92
92
  background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
93
93
  }
94
94
  .d-no-data {
95
- background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/190994/19/325/42717/6088fed0Ec4b502d5/0e8de7593fb0d06c.png');
95
+ background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
96
96
  }
97
97
  .d-no-data-tip-1 {
98
- background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/152550/40/8432/21643/5fc9cae0E5391a506/523da679188ff687.png');
98
+ background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
99
99
  }
100
100
  .d-no-data-tip-2 {
101
- background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/142705/35/17776/5911/5fd1e62dE4fbc2300/3ee1d4160db1dac6.png');
101
+ background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
102
102
  }
103
103
  .d-no-network-err-tip {
104
104
  background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/146556/1/17745/7493/5fd1e62dE86e86669/96f5c91befa8e991.png');
@@ -1 +1 @@
1
- import { Button, View } from '@tarojs/components';
2
1
  NetWorkErrorList,
3
2
  NetWorkErrorTip,
4
3
  NetWorkErrorSubTip,
5
4
  NetWorkShowType,
6
5
  NetWork_Image_Type,
7
6
  NetWorkStyleType,
8
7
  const {
9
8
  className = '',
10
9
  message = '',
11
10
  subMessage = '',
12
11
  btnLabel = global?.languageJsonData?.reload || '重新加载',
13
12
  backgroundColorWhite = false,
14
13
  netWorkDataType = NETWORK_DATA_TYPE.NORMAL,
15
14
  netWorkShowType = NetWorkShowType.FULL,
16
15
  netWorkImageType = NetWork_Image_Type.No_Data_Default_Tip,
17
16
  netWorkStyleType = NetWorkStyleType.OLD,
18
17
  refreshCallBackFn = null,
19
18
  viewMaxHeight = '',
20
19
  noPosition = false,
21
20
  } = props;
22
21
  const refershInitData = useCallback(() => {
23
22
  refreshCallBackFn && refreshCallBackFn(true);
24
23
  }, []);
25
24
  const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType];
26
25
  const useErrorSubTip = subMessage ? subMessage : NetWorkErrorSubTip[netWorkDataType];
27
26
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
28
27
  const maxHeight = latestRes.displayHeight || 546;
29
28
  return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
30
29
  <View
31
30
  style={{
32
31
  maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight,
33
32
  }}
34
33
  className={classNames(
35
34
  netWorkErrorStyle['d-shop-network'],
36
35
  {
37
36
  [netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
38
37
  },
39
38
  {
40
39
  [netWorkErrorStyle['d-shop-network-part']]: netWorkShowType === NetWorkShowType.PART,
41
40
  },
42
41
  {
43
42
  [netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
44
43
  },
45
44
  {
46
45
  [netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
47
46
  },
48
47
  'flexible-center-box',
49
48
  className,
50
49
  )}
51
50
  >
52
51
  <View
53
52
  className={classNames(
54
53
  netWorkErrorStyle['d-error-content'],
55
54
  netWorkErrorStyle[`d-${netWorkStyleType}-style-content`],
56
55
  'd-error-content',
57
56
  )}
58
57
  >
59
58
  <View
60
59
  className={classNames(
61
60
  netWorkErrorStyle['d-error-type'],
62
61
  netWorkErrorStyle[`d-${netWorkDataType}`],
63
62
  netWorkErrorStyle[`d-${netWorkImageType}`],
64
63
  'd-error-type',
65
64
  )}
66
65
  />
67
66
  <View
68
67
  className={classNames(
69
68
  netWorkErrorStyle['d-error-tip'],
70
69
  netWorkErrorStyle[`d-${netWorkDataType}-tip`],
71
70
  'd-error-tip',
72
71
  )}
73
72
  >
74
73
  {useErrorTip}
75
74
  </View>
76
75
  {useErrorSubTip ? (
77
76
  <View
78
77
  className={classNames(
79
78
  netWorkErrorStyle['d-error-sub-tip'],
80
79
  netWorkErrorStyle[`d-${netWorkDataType}-sub-tip`],
81
80
  'd-error-sub-tip',
82
81
  )}
83
82
  >
84
83
  {useErrorSubTip}
85
84
  </View>
86
85
  ) : null}
87
86
  <View className={'flexible-horizontal-center-box'}>
88
87
  {refreshCallBackFn && (
89
88
  <Button
90
89
  onClick={refershInitData}
91
90
  className={classNames(
92
91
  netWorkErrorStyle['d-opt-btn'],
93
92
  'd-button-no-border',
94
93
  'd-opt-btn',
95
94
  )}
96
95
  plain
97
96
  size="mini"
98
97
  >
99
98
  {btnLabel}
100
99
  </Button>
101
100
  )}
102
101
  </View>
103
102
  </View>
104
103
  </View>
105
104
  ) : null;
105
+ import { Button, View } from '@tarojs/components';
106
106
  NetWorkErrorList,
107
107
  NetWorkErrorTip,
108
108
  NetWorkErrorSubTip,
109
109
  NetWorkShowType,
110
110
  NetWork_Image_Type,
111
111
  NetWorkStyleType,
112
112
  const {
113
113
  className = '',
114
114
  message = '',
115
115
  subMessage = '',
116
116
  btnLabel = global?.languageJsonData?.reload || '重新加载',
117
117
  backgroundColorWhite = false,
118
118
  netWorkDataType = NETWORK_DATA_TYPE.NORMAL,
119
119
  netWorkShowType = NetWorkShowType.FULL,
120
120
  netWorkImageType = NetWork_Image_Type.No_Data_Default_Tip,
121
121
  netWorkStyleType = NetWorkStyleType.OLD,
122
122
  refreshCallBackFn = null,
123
123
  viewMaxHeight = '',
124
124
  noPosition = false,
125
125
  } = props;
126
126
  const refershInitData = useCallback(() => {
127
127
  refreshCallBackFn && refreshCallBackFn(true);
128
128
  }, []);
129
129
  const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType];
130
130
  const useErrorSubTip = subMessage
131
131
  ? subMessage
132
132
  : message != ''
133
133
  ? ''
134
134
  : NetWorkErrorSubTip[netWorkDataType];
135
135
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
136
136
  const maxHeight = latestRes.displayHeight || 546;
137
137
  return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
138
138
  <View
139
139
  style={{
140
140
  maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight,
141
141
  }}
142
142
  className={classNames(
143
143
  netWorkErrorStyle['d-shop-network'],
144
144
  {
145
145
  [netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
146
146
  },
147
147
  {
148
148
  [netWorkErrorStyle['d-shop-network-part']]: netWorkShowType === NetWorkShowType.PART,
149
149
  },
150
150
  {
151
151
  [netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
152
152
  },
153
153
  {
154
154
  [netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
155
155
  },
156
156
  'flexible-center-box',
157
157
  className,
158
158
  )}
159
159
  >
160
160
  <View
161
161
  className={classNames(
162
162
  netWorkErrorStyle['d-error-content'],
163
163
  netWorkErrorStyle[`d-${netWorkStyleType}-style-content`],
164
164
  'd-error-content',
165
165
  )}
166
166
  >
167
167
  <View
168
168
  className={classNames(
169
169
  netWorkErrorStyle['d-error-type'],
170
170
  netWorkErrorStyle[`d-${netWorkDataType}`],
171
171
  netWorkErrorStyle[`d-${netWorkImageType}`],
172
172
  'd-error-type',
173
173
  )}
174
174
  />
175
175
  <View
176
176
  className={classNames(
177
177
  netWorkErrorStyle['d-error-tip'],
178
178
  netWorkErrorStyle[`d-${netWorkDataType}-tip`],
179
179
  'd-error-tip',
180
180
  )}
181
181
  >
182
182
  {useErrorTip}
183
183
  </View>
184
184
  {useErrorSubTip ? (
185
185
  <View
186
186
  className={classNames(
187
187
  netWorkErrorStyle['d-error-sub-tip'],
188
188
  netWorkErrorStyle[`d-${netWorkDataType}-sub-tip`],
189
189
  'd-error-sub-tip',
190
190
  )}
191
191
  >
192
192
  {useErrorSubTip}
193
193
  </View>
194
194
  ) : null}
195
195
  <View className={'flexible-horizontal-center-box'}>
196
196
  {refreshCallBackFn && (
197
197
  <Button
198
198
  onClick={refershInitData}
199
199
  className={classNames(
200
200
  netWorkErrorStyle['d-opt-btn'],
201
201
  'd-button-no-border',
202
202
  'd-opt-btn',
203
203
  )}
204
204
  plain
205
205
  size="mini"
206
206
  >
207
207
  {btnLabel}
208
208
  </Button>
209
209
  )}
210
210
  </View>
211
211
  </View>
212
212
  </View>
213
213
  ) : null;
@@ -1 +1 @@
1
- import React from 'react'
2
1
  netWorkBusinessType?: string
3
2
  subMessage?: string
4
3
  netWorkStyleType?: string
5
4
  viewMaxHeight?: string
6
5
  noPosition?: boolean
7
6
  floorLoadWay?: number
8
7
  floorKind?: number
9
8
  shopId?: string
10
9
  moduleDesignerType?: string
11
10
  showCommonFloorHead?: boolean
12
11
  borderRadius: number
13
12
  borderTopLeftRadius?: number
14
13
  borderTopRightRadius?: number
15
14
  borderBottomLeftRadius?: number
16
15
  borderBottomRightRadius?: number
17
16
  marginTop?: number
18
17
  marginBottom?: number
19
18
  marginLeft?: number
20
19
  marginRight?: number
21
20
  paddingTop?: number
22
21
  paddingBottom?: number
23
22
  paddingLeft?: number
24
23
  paddingRight?: number
25
24
  containerId: string
26
25
  background?: string
27
26
  containerPosition?: string
28
27
  key?: string
29
28
  floors: floorItemData[]
30
29
  includeUids: string[]
31
30
  typeCn: string
32
31
  typeCode?: string
33
32
  addLuxuryStyle?: boolean
34
33
  addLuxuryBackupStyle?: boolean
35
34
  renderExtendComponent?: functionType
36
35
  insertContainerStartComponent?: functionType
37
36
  floorExtendData?: any
38
37
  }
39
38
  isRealTimeRender: boolean
40
39
  forceRenderTime: number
41
40
  luxuryFixed?: boolean
42
41
  customErrorIsvFloorModule?: React.ReactElement | undefined
43
42
  containerIndex?: number
44
43
  containerData?: any
45
44
  shopTotalInfo?: any
46
45
  selectContainerFn?: functionType
47
46
  selectContainerId?: string
48
47
  placeHolderPreContainerId?: string
49
48
  children?: any
50
49
  luxuryFixed?: boolean
51
50
  style?: {
52
51
  [key: string]: any
53
52
  };
54
53
  layoutLeftRightMargin?: number
55
54
  }
56
55
  isShowPlaceHolder?: boolean
57
56
 
58
57
  useFontV2?: boolean
59
58
  useFontV2Bold?: boolean
60
59
  onlyShowDaySpaceTextState?: boolean
61
60
  showDayToSecondState?: boolean
62
61
  useFontV2: boolean
63
62
  useFontV2Bold: boolean
64
63
  onFormSubmit?: functionType
65
64
  onFormReset?: functionType
66
65
  isFormDialog?: boolean
67
66
  forbiddenBgScrollState?: boolean
68
67
  evenList: any[]
69
68
  oddList: any[]
69
+ import React from 'react'
70
70
  netWorkBusinessType?: string
71
71
  subMessage?: string
72
72
  netWorkStyleType?: string
73
73
  viewMaxHeight?: string
74
74
  noPosition?: boolean
75
75
  containerIndex?: number
76
76
  floorLoadWay?: number
77
77
  floorKind?: number
78
78
  shopId?: string
79
79
  moduleDesignerType?: string
80
80
  showCommonFloorHead?: boolean
81
81
  borderRadius: number
82
82
  borderTopLeftRadius?: number
83
83
  borderTopRightRadius?: number
84
84
  borderBottomLeftRadius?: number
85
85
  borderBottomRightRadius?: number
86
86
  marginTop?: number
87
87
  marginBottom?: number
88
88
  marginLeft?: number
89
89
  marginRight?: number
90
90
  paddingTop?: number
91
91
  paddingBottom?: number
92
92
  paddingLeft?: number
93
93
  paddingRight?: number
94
94
  containerId: string
95
95
  background?: string
96
96
  containerPosition?: string
97
97
  key?: string
98
98
  floors: floorItemData[]
99
99
  includeUids: string[]
100
100
  typeCn: string
101
101
  typeCode?: string
102
102
  addLuxuryStyle?: boolean
103
103
  addLuxuryBackupStyle?: boolean
104
104
  renderExtendComponent?: functionType
105
105
  insertContainerStartComponent?: functionType
106
106
  floorExtendData?: any
107
107
  }
108
108
  isRealTimeRender: boolean
109
109
  forceRenderTime: number
110
110
  luxuryFixed?: boolean
111
111
  customErrorIsvFloorModule?: React.ReactElement | undefined
112
112
  containerIndex?: number
113
113
  containerData?: any
114
114
  shopTotalInfo?: any
115
115
  selectContainerFn?: functionType
116
116
  selectContainerId?: string
117
117
  placeHolderPreContainerId?: string
118
118
  children?: any
119
119
  luxuryFixed?: boolean
120
120
  style?: {
121
121
  [key: string]: any
122
122
  };
123
123
  layoutLeftRightMargin?: number
124
124
  }
125
125
  isShowPlaceHolder?: boolean
126
126
 
127
127
  useFontV2?: boolean
128
128
  useFontV2Bold?: boolean
129
129
  onlyShowDaySpaceTextState?: boolean
130
130
  showDayToSecondState?: boolean
131
131
  useFontV2: boolean
132
132
  useFontV2Bold: boolean
133
133
  onFormSubmit?: functionType
134
134
  onFormReset?: functionType
135
135
  isFormDialog?: boolean
136
136
  forbiddenBgScrollState?: boolean
137
137
  evenList: any[]
138
138
  oddList: any[]
139
139
  outViewCallback?: functionType