@conecli/cone-render 0.10.1-shop3.5 → 0.10.1-shop3.51

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 (99) hide show
  1. package/README.md +1 -1
  2. package/dist/common/accessibility.h5.ts +1 -0
  3. package/dist/common/accessibility.ts +0 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/index.h5.ts +1 -1
  6. package/dist/common/index.jd.ts +1 -1
  7. package/dist/common/index.ts +1 -1
  8. package/dist/common/index.weapp.ts +1 -1
  9. package/dist/common/jdplayerSdk.weapp.tsx +1 -0
  10. package/dist/common/jssdk.ts +1 -1
  11. package/dist/common/jssdk.weapp.ts +1 -0
  12. package/dist/common/pageType.ts +1 -1
  13. package/dist/common/token/index.h5.ts +1 -1
  14. package/dist/common/token/token.jd.ts +1 -1
  15. package/dist/common/wxappApi.ts +1 -1
  16. package/dist/components/ErrorBoundary.tsx +1 -1
  17. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  18. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  19. package/dist/components/base/CountDown/index.tsx +1 -1
  20. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  21. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/index.tsx +1 -1
  23. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  24. package/dist/components/base/Dialog/index.module.scss +11 -0
  25. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  26. package/dist/components/base/InViewRender/index.tsx +1 -1
  27. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  28. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  29. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  30. package/dist/components/base/NetworkDataError/const.ts +1 -1
  31. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  32. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  33. package/dist/components/base/Price/Base/index.module.scss +12 -0
  34. package/dist/components/base/Price/Base/index.tsx +1 -1
  35. package/dist/components/base/Price/Double/index.module.scss +24 -0
  36. package/dist/components/base/Price/Double/index.tsx +1 -1
  37. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  38. package/dist/components/floorItem.weapp.tsx +1 -1
  39. package/dist/interface/common.ts +1 -1
  40. package/dist/interface/component.ts +1 -1
  41. package/dist/interface/jumpEventReport.ts +1 -1
  42. package/dist/jumpEventReport/base.ts +1 -1
  43. package/dist/jumpEventReport/const.ts +1 -1
  44. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  45. package/dist/jumpEventReport/index.h5.ts +1 -1
  46. package/dist/jumpEventReport/index.jd.ts +1 -1
  47. package/dist/jumpEventReport/index.weapp.ts +1 -1
  48. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  49. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  50. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  51. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  52. package/dist/jumpEventReport/web/report.ts +1 -1
  53. package/dist/jumpEventReport/web.base.ts +1 -1
  54. package/dist/jumpEventReport/web.jd.ts +1 -1
  55. package/dist/jumpEventReport/web.pc.ts +1 -1
  56. package/dist/jumpEventReport/web.tjm.ts +1 -1
  57. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  58. package/dist/language/en_US.json +231 -0
  59. package/dist/language/zh_CN.json +231 -0
  60. package/dist/language/zh_HK.json +231 -0
  61. package/dist/libs/taroAppReport.js +2 -2
  62. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -56
  63. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  64. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  65. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  66. package/dist/open/api/environment.ts +1 -1
  67. package/dist/open/api/shopMember.ts +1 -1
  68. package/dist/open/api/shopMember.weapp.ts +1 -0
  69. package/dist/open/api/util.ts +1 -1
  70. package/dist/open/index.ts +1 -1
  71. package/dist/sass/app.h5.scss +278 -224
  72. package/dist/service/fetchGateway.ts +1 -1
  73. package/dist/service/fetchGateway.weapp.ts +1 -0
  74. package/dist/service/fetchJsonp.weapp.ts +1 -0
  75. package/dist/service/http/colorSign.ts +1 -1
  76. package/dist/service/http/const.ts +1 -1
  77. package/dist/service/http/h5Http.ts +1 -1
  78. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  79. package/dist/service/requestServer.h5.ts +1 -1
  80. package/dist/service/requestServer.ts +1 -1
  81. package/dist/service/requestServer.weapp.ts +1 -0
  82. package/dist/utils/connectNativeJsBridge.ts +1 -1
  83. package/dist/utils/h5Utils.ts +1 -1
  84. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  85. package/dist/utils/harmonyCallRouter.ts +0 -0
  86. package/dist/utils/index.h5.ts +1 -1
  87. package/dist/utils/index.ts +1 -1
  88. package/dist/utils/index.weapp.ts +1 -1
  89. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  90. package/dist/utils/jumpExtMapUtil.ts +1 -0
  91. package/dist/utils/log.ts +1 -0
  92. package/dist/utils/{sColor.js → sColor.ts} +1 -1
  93. package/dist/utils/sColor.weapp.ts +1 -0
  94. package/dist/utils/utils.ts +1 -1
  95. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  96. package/dist/wxapp/common/user_info.js +1 -1
  97. package/package.json +160 -141
  98. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  99. package/dist/utils/priceUtils.js +0 -1
@@ -0,0 +1 @@
1
+ const fetchLbsAddr = () => {};
@@ -1 +1 @@
1
- const getAddress = () => false
1
+ const getAddress = () => false;
2
2
  return {
3
3
  areaId: '',
4
4
  longitude: '',
5
5
  latitude: '',
6
6
  };
package/package.json CHANGED
@@ -1,143 +1,162 @@
1
1
  {
2
- "name": "@conecli/cone-render",
3
- "version": "0.10.1-shop3.5",
4
- "private": false,
5
- "files": [
6
- "dist/"
7
- ],
8
- "exports": {
9
- "./api": "./dist/open/api/index.ts",
10
- "./components": "./dist/open/components/index.ts",
11
- "./modules": "./dist/open/modules/index.ts",
12
- "./_api": "./dist/api",
13
- "./_config/": "./dist/config/",
14
- "./_common/": "./dist/common/",
15
- "./_components/": "./dist/components/",
16
- "./_interface": "./dist/interface",
17
- "./_jumpEventReport": "./dist/jumpEventReport",
18
- "./_jumpEventReport/": "./dist/jumpEventReport/",
19
- "./_utils": "./dist/utils",
20
- "./_utils/": "./dist/utils/",
21
- "./sass/": "./dist/sass/"
22
- },
23
- "description": "cone-render",
24
- "templateInfo": {
25
- "name": "default",
26
- "typescript": true,
27
- "css": "sass",
28
- "framework": "React"
29
- },
30
- "scripts": {
31
- "build:weapp": "taro build --type weapp",
32
- "build:swan": "taro build --type swan",
33
- "build:alipay": "taro build --type alipay",
34
- "build:tt": "taro build --type tt",
35
- "build:h5": "taro build --type h5",
36
- "build:rn": "taro build --type rn",
37
- "build:qq": "taro build --type qq",
38
- "build:jd": "taro build --type jd",
39
- "build:harmony-hybrid": "taro build --type harmony-hybrid",
40
- "dev:weapp": "npm run build:weapp -- --watch",
41
- "dev:swan": "npm run build:swan -- --watch",
42
- "dev:alipay": "npm run build:alipay -- --watch",
43
- "dev:tt": "npm run build:tt -- --watch",
44
- "dev:h5": "npm run build:h5 -- --watch",
45
- "dev:rn": "npm run build:rn -- --watch",
46
- "dev:qq": "npm run build:qq -- --watch",
47
- "dev:jd": "npm run build:jd -- --watch",
48
- "dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch",
49
- "compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
50
- "compress": "gulp compress --gulpfile ./publish/gulpfile.js",
51
- "build": "npm run compress",
52
- "check": "gulp check --gulpfile ./publish/gulpfile.js"
53
- },
54
- "browserslist": {
55
- "development": [
56
- "defaults and fully supports es6-module",
57
- "maintained node versions"
58
- ],
59
- "production": [
60
- "last 3 versions",
61
- "Android >= 4.1",
62
- "ios >= 8"
63
- ]
64
- },
65
- "keywords": [
66
- "conecli",
67
- "render"
68
- ],
69
- "author": "conecli",
70
- "dependencies": {
71
- "@babel/runtime": "7.24.4",
72
- "@tarojs/components": "4.0.9",
73
- "@tarojs/helper": "4.0.9",
74
- "@tarojs/plugin-platform-weapp": "4.0.9",
75
- "@tarojs/plugin-platform-alipay": "4.0.9",
76
- "@tarojs/plugin-platform-tt": "4.0.9",
77
- "@tarojs/plugin-platform-swan": "4.0.9",
78
- "@tarojs/plugin-platform-jd": "4.0.9",
79
- "@tarojs/plugin-platform-qq": "4.0.9",
80
- "@tarojs/plugin-platform-h5": "4.0.9",
81
- "@tarojs/plugin-platform-harmony-hybrid": "4.0.9",
82
- "@tarojs/runtime": "4.0.9",
83
- "@tarojs/shared": "4.0.9",
84
- "@tarojs/taro": "4.0.9",
85
- "@tarojs/plugin-framework-react": "4.0.9",
86
- "@tarojs/react": "4.0.9",
87
- "@tarojs/service": "4.0.9",
88
- "react-dom": "^18.2.0",
89
- "react": "^18.2.0",
90
- "art-template": "^4.13.2",
91
- "gulp-filter": "^7.0.0",
92
- "normalize.css": "^8.0.1",
93
- "react-content-loader": "^6.2.0",
94
- "react-intersection-observer": "8.33.1",
95
- "react-refresh": "^0.14.0",
96
- "sha256": "^0.2.0"
97
- },
98
- "devDependencies": {
99
- "@babel/plugin-transform-strict-mode": "^7.16.7",
100
- "@babel/core": "7.24.4",
101
- "@tarojs/cli": "4.0.9",
102
- "@babel/plugin-proposal-class-properties": "7.14.5",
103
- "@types/webpack-env": "^1.13.6",
104
- "@types/react": "^18.0.17",
105
- "webpack": "5.91.0",
106
- "@tarojs/taro-loader": "4.0.9",
107
- "@tarojs/webpack5-runner": "4.0.9",
108
- "sass": "^1.75.0",
109
- "babel-preset-taro": "4.0.9",
110
- "eslint-config-taro": "4.0.9",
111
- "eslint": "^8.57.0",
112
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
113
- "react-refresh": "^0.14.0",
114
- "@babel/preset-react": "^7.24.1",
115
- "eslint-plugin-react": "^7.34.1",
116
- "eslint-plugin-import": "^2.12.0",
117
- "eslint-plugin-react-hooks": "^4.4.0",
118
- "stylelint": "^16.4.0",
119
- "@typescript-eslint/parser": "^6.2.0",
120
- "@typescript-eslint/eslint-plugin": "^6.2.0",
121
- "typescript": "^5.4.5",
122
- "tsconfig-paths-webpack-plugin": "^4.1.0",
123
- "postcss": "^8.4.38",
124
- "ts-node": "^10.9.1",
125
- "@types/node": "^18",
126
- "del": "^6.1.1",
127
- "escodegen": "^2.0.0",
128
- "espree": "^9.3.2",
129
- "esprima": "^4.0.1",
130
- "estraverse": "^5.3.0",
131
- "gulp": "^4.0.2",
132
- "gulp-util": "^3.0.8",
133
- "html-webpack-plugin": "^5.5.0",
134
- "mini-css-extract-plugin": "^2.6.1",
135
- "shelljs": "^0.8.5",
136
- "terser-webpack-plugin": "^5.3.6"
137
- },
138
- "resolutions": {
139
- "@babel/runtime": "7.24.4",
140
- "@tarojs/cli": "4.0.9",
141
- "@tarojs/helper": "4.0.9"
142
- }
2
+ "name": "@conecli/cone-render",
3
+ "version": "0.10.1-shop3.51",
4
+ "private": false,
5
+ "files": [
6
+ "dist/"
7
+ ],
8
+ "exports": {
9
+ "./api": "./dist/open/api/index.ts",
10
+ "./components": "./dist/open/components/index.ts",
11
+ "./modules": "./dist/open/modules/index.ts",
12
+ "./_api": "./dist/api",
13
+ "./_config/": "./dist/config/",
14
+ "./_common/": "./dist/common/",
15
+ "./_components/": "./dist/components/",
16
+ "./_interface": "./dist/interface",
17
+ "./_jumpEventReport": "./dist/jumpEventReport",
18
+ "./_jumpEventReport/": "./dist/jumpEventReport/",
19
+ "./_utils": "./dist/utils",
20
+ "./_utils/": "./dist/utils/",
21
+ "./sass/": "./dist/sass/"
22
+ },
23
+ "description": "cone-render",
24
+ "templateInfo": {
25
+ "name": "default",
26
+ "typescript": true,
27
+ "css": "sass",
28
+ "framework": "React"
29
+ },
30
+ "scripts": {
31
+ "build:weapp": "taro build --type weapp",
32
+ "build:swan": "taro build --type swan",
33
+ "build:alipay": "taro build --type alipay",
34
+ "build:tt": "taro build --type tt",
35
+ "build:h5": "taro build --type h5",
36
+ "build:rn": "taro build --type rn",
37
+ "build:qq": "taro build --type qq",
38
+ "build:jd": "taro build --type jd",
39
+ "build:harmony-hybrid": "taro build --type harmony-hybrid",
40
+ "dev:weapp": "npm run build:weapp -- --watch",
41
+ "dev:swan": "npm run build:swan -- --watch",
42
+ "dev:alipay": "npm run build:alipay -- --watch",
43
+ "dev:tt": "npm run build:tt -- --watch",
44
+ "dev:h5": "npm run build:h5 -- --watch",
45
+ "dev:rn": "npm run build:rn -- --watch",
46
+ "dev:qq": "npm run build:qq -- --watch",
47
+ "dev:jd": "npm run build:jd -- --watch",
48
+ "dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch",
49
+ "compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
50
+ "compress": "gulp compress --gulpfile ./publish/gulpfile.js",
51
+ "build": "npm run compress",
52
+ "check": "gulp check --gulpfile ./publish/gulpfile.js"
53
+ },
54
+ "browserslist": {
55
+ "development": [
56
+ "defaults and fully supports es6-module",
57
+ "maintained node versions"
58
+ ],
59
+ "production": [
60
+ "last 3 versions",
61
+ "Android >= 4.1",
62
+ "ios >= 8"
63
+ ]
64
+ },
65
+ "husky": {
66
+ "hooks": {
67
+ "pre-commit": "lint-staged",
68
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
69
+ }
70
+ },
71
+ "lint-staged": {
72
+ "*.{js,ts}": [
73
+ "eslint",
74
+ "eslint --fix",
75
+ "git add"
76
+ ],
77
+ "*.{scss}": [
78
+ "prettier --write",
79
+ "git add"
80
+ ]
81
+ },
82
+ "keywords": [
83
+ "conecli",
84
+ "render"
85
+ ],
86
+ "author": "conecli",
87
+ "dependencies": {
88
+ "@babel/runtime": "7.24.4",
89
+ "@tarojs/components": "4.1.2",
90
+ "@tarojs/helper": "4.1.2",
91
+ "@tarojs/plugin-platform-weapp": "4.1.2",
92
+ "@tarojs/plugin-platform-alipay": "4.1.2",
93
+ "@tarojs/plugin-platform-tt": "4.1.2",
94
+ "@tarojs/plugin-platform-swan": "4.1.2",
95
+ "@tarojs/plugin-platform-jd": "4.1.2",
96
+ "@tarojs/plugin-platform-qq": "4.1.2",
97
+ "@tarojs/plugin-platform-h5": "4.1.2",
98
+ "@tarojs/plugin-platform-harmony-hybrid": "4.1.2",
99
+ "@tarojs/runtime": "4.1.2",
100
+ "@tarojs/shared": "4.1.2",
101
+ "@tarojs/taro": "4.1.2",
102
+ "@tarojs/plugin-framework-react": "4.1.2",
103
+ "@tarojs/react": "4.1.2",
104
+ "@tarojs/service": "4.1.2",
105
+ "react-dom": "^18.2.0",
106
+ "react": "^18.2.0",
107
+ "art-template": "^4.13.2",
108
+ "gulp-filter": "^7.0.0",
109
+ "normalize.css": "^8.0.1",
110
+ "react-content-loader": "^6.2.0",
111
+ "react-intersection-observer": "8.33.1",
112
+ "react-refresh": "^0.14.0",
113
+ "sha256": "^0.2.0"
114
+ },
115
+ "devDependencies": {
116
+ "@babel/plugin-transform-strict-mode": "^7.16.7",
117
+ "@babel/core": "7.24.4",
118
+ "@tarojs/cli": "4.1.2",
119
+ "@babel/plugin-proposal-class-properties": "7.14.5",
120
+ "@types/webpack-env": "^1.13.6",
121
+ "@types/react": "^18.0.17",
122
+ "webpack": "5.91.0",
123
+ "@tarojs/taro-loader": "4.1.2",
124
+ "@tarojs/webpack5-runner": "4.1.2",
125
+ "sass": "^1.75.0",
126
+ "babel-preset-taro": "4.1.2",
127
+ "eslint-config-taro": "4.1.2",
128
+ "eslint": "^8.57.0",
129
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
130
+ "react-refresh": "^0.14.0",
131
+ "@babel/preset-react": "^7.24.1",
132
+ "eslint-plugin-react": "^7.34.1",
133
+ "eslint-plugin-import": "^2.12.0",
134
+ "eslint-plugin-react-hooks": "^4.4.0",
135
+ "stylelint": "^16.4.0",
136
+ "@typescript-eslint/parser": "^6.2.0",
137
+ "@typescript-eslint/eslint-plugin": "^6.2.0",
138
+ "typescript": "^5.4.5",
139
+ "tsconfig-paths-webpack-plugin": "^4.1.0",
140
+ "postcss": "^8.4.38",
141
+ "ts-node": "^10.9.1",
142
+ "@types/node": "^18",
143
+ "del": "^6.1.1",
144
+ "escodegen": "^2.0.0",
145
+ "espree": "^9.3.2",
146
+ "esprima": "^4.0.1",
147
+ "estraverse": "^5.3.0",
148
+ "gulp": "^4.0.2",
149
+ "gulp-util": "^3.0.8",
150
+ "html-webpack-plugin": "^5.5.0",
151
+ "mini-css-extract-plugin": "^2.6.1",
152
+ "shelljs": "^0.8.5",
153
+ "terser-webpack-plugin": "^5.3.6"
154
+ },
155
+ "resolutions": {
156
+ "@babel/runtime": "7.24.4",
157
+ "@tarojs/cli": "4.1.2",
158
+ "@tarojs/helper": "4.1.2",
159
+ "minimatch": "9.0.5",
160
+ "cacheable": "1.10.4"
161
+ }
143
162
  }
@@ -1 +0,0 @@
1
- import { SECTION_HOME_TAB_TYPE, SHOP_MENU_ID_TYPE } from '../../common/const'
@@ -1 +0,0 @@
1
- const reg = /([\d|\.]+)/;
2
  const newPrice = (price + '').match(reg);
3
1
  if (Array.isArray(newPrice) && newPrice.length > 0) {
4
2
  return newPrice[0];
5
3
  }
6
4
  return '0';
7
5
  const tmpPrice = parseFloat(price);
8
6
  return tmpPrice.toFixed(2);
9
7
  const tmpPrice = formatPrice(price);
10
8
  const priceArray = tmpPrice.split('.');
11
9
  let decPart;
12
10
  if (tmpPrice.length > 1) {
13
11
  decPart = priceArray[1];
14
12
  } else {
15
13
  decPart = '00';
16
14
  }
17
15
  return {
18
16
  intPart: priceArray[0],
19
17
  decPart
20
18
  }