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

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;
@@ -117,6 +117,24 @@
117
117
  .priceDescXS {
118
118
  font-size: 20px;
119
119
  }
120
+ .priceUnit {
121
+ font-family: PingFang SC;
122
+ }
123
+ .priceUnitXL {
124
+ font-size: 26px;
125
+ }
126
+ .priceUnitL {
127
+ font-size: 24px;
128
+ }
129
+ .priceUnitM {
130
+ font-size: 22px;
131
+ }
132
+ .priceUnitS {
133
+ font-size: 20px;
134
+ }
135
+ .priceUnitXS {
136
+ font-size: 18px;
137
+ }
120
138
 
121
139
  .missPriceDesc {
122
140
  }