cyy-vue-material 7.0.19 → 7.0.21

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/index.js +1 -1
  2. package/package.json +34 -34
  3. package/src/App.vue +149 -149
  4. package/src/api/http.js +16 -16
  5. package/src/api/index.js +21 -21
  6. package/src/api/urlQuery.js +20 -20
  7. package/src/common/js/constant.js +5 -5
  8. package/src/common/js/index.js +1 -1
  9. package/src/components/vop-label.vue +29 -29
  10. package/src/index.dev.js +4 -4
  11. package/src/package/cyy-ArsenalActivity/components/u-cont-down.vue +316 -316
  12. package/src/package/cyy-ArsenalActivity/components/u-line-progress.vue +150 -150
  13. package/src/package/cyy-ArsenalActivity/cyy-ArsenalActivity.vue +820 -820
  14. package/src/package/cyy-ArsenalCarousel/cyy-ArsenalCarousel.vue +137 -137
  15. package/src/package/cyy-ArsenalClass/cyy-ArsenalClass.vue +564 -564
  16. package/src/package/cyy-ArsenalMyNavigation/cyy-ArsenalMyNavigation.vue +128 -125
  17. package/src/package/cyy-ArsenalMyTop/cyy-ArsenalMyTop.vue +211 -211
  18. package/src/package/cyy-ArsenalNavigation/cyy-ArsenalNavigation.vue +236 -236
  19. package/src/package/cyy-ArsenalPicture/cyy-ArsenalPicture.vue +228 -228
  20. package/src/package/cyy-ArsenalPromotion/cyy-ArsenalPromotion.vue +913 -899
  21. package/src/package/cyy-ArsenalRecommend/cyy-ArsenalRecommend.vue +56 -56
  22. package/src/package/cyy-ArsenalTop/cyy-ArsenalTop.vue +328 -328
  23. package/src/package/cyy-collocation/cyy-collocation.vue +639 -639
  24. package/src/package/cyy-goods/cyy-goods.vue +317 -317
  25. package/src/package/cyy-goodsOne/consult.vue +267 -267
  26. package/src/package/cyy-goodsOne/cyy-goodsOne.vue +217 -217
  27. package/src/package/cyy-image/cyy-image.vue +64 -64
  28. package/src/package/cyy-live/cyy-live.vue +196 -196
  29. package/src/package/cyy-new-product/cyy-new-product.vue +834 -834
  30. package/src/package/cyy-notice/cyy-notice.vue +137 -137
  31. package/src/package/cyy-search/cyy-search.vue +57 -57
  32. package/src/package/cyy-slider/cyy-slider.vue +117 -117
  33. package/src/package/cyy-title/cyy-title.vue +38 -38
  34. package/src/package/cyy-video/cyy-video.vue +49 -49
  35. package/src/package/index.js +21 -21
  36. package/src/utils/checkEnv.js +16 -16
  37. package/src/utils/fetchFactory.js +100 -100
  38. package/src/utils/index.js +2 -2
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "name": "cyy-vue-material",
3
- "version": "7.0.19",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "watch": "cross-env NODE_ENV=development rollup -c -w",
8
- "build": "cross-env NODE_ENV=production rollup -c",
9
- "clean": "rm -rf dist"
10
- },
11
- "author": "",
12
- "license": "ISC",
13
- "devDependencies": {
14
- "@rollup/plugin-image": "^3.0.2",
15
- "@rollup/plugin-node-resolve": "^15.0.1",
16
- "@rollup/plugin-replace": "^5.0.2",
17
- "@rollup/plugin-terser": "^0.4.0",
18
- "@vue/compiler-sfc": "^3.2.45",
19
- "autoprefixer": "^10.4.13",
20
- "cross-env": "^7.0.3",
21
- "rollup": "2.78.0",
22
- "rollup-plugin-less": "^1.1.3",
23
- "rollup-plugin-postcss": "^4.0.2",
24
- "rollup-plugin-serve": "^2.0.2",
25
- "rollup-plugin-vue": "^6.0.0"
26
- },
27
- "dependencies": {
28
- "@brushes/api": "^0.3.11",
29
- "lodash-es": "^4.17.21",
30
- "query-string": "^8.1.0",
31
- "vue": "^3.2.45"
32
- },
33
- "type": "module"
34
- }
1
+ {
2
+ "name": "cyy-vue-material",
3
+ "version": "7.0.21",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "watch": "cross-env NODE_ENV=development rollup -c -w",
8
+ "build": "cross-env NODE_ENV=production rollup -c",
9
+ "clean": "rm -rf dist"
10
+ },
11
+ "author": "",
12
+ "license": "ISC",
13
+ "devDependencies": {
14
+ "@rollup/plugin-image": "^3.0.2",
15
+ "@rollup/plugin-node-resolve": "^15.0.1",
16
+ "@rollup/plugin-replace": "^5.0.2",
17
+ "@rollup/plugin-terser": "^0.4.0",
18
+ "@vue/compiler-sfc": "^3.2.45",
19
+ "autoprefixer": "^10.4.13",
20
+ "cross-env": "^7.0.3",
21
+ "rollup": "2.78.0",
22
+ "rollup-plugin-less": "^1.1.3",
23
+ "rollup-plugin-postcss": "^4.0.2",
24
+ "rollup-plugin-serve": "^2.0.2",
25
+ "rollup-plugin-vue": "^6.0.0"
26
+ },
27
+ "dependencies": {
28
+ "@brushes/api": "^0.3.11",
29
+ "lodash-es": "^4.17.21",
30
+ "query-string": "^8.1.0",
31
+ "vue": "^3.2.45"
32
+ },
33
+ "type": "module"
34
+ }
package/src/App.vue CHANGED
@@ -1,149 +1,149 @@
1
- <template>
2
- <div>
3
- <!-- <Title :props="titleProp" /> -->
4
- <!-- <Goods :props="goodsProp" /> -->
5
- <Collocation :props="collocationProp"></Collocation>
6
- <!-- <Live :props="liveProp" /> -->
7
- <!-- <ArsenalTop :props="TopProps" /> -->
8
- <!-- <Notice :props="noticeProps" /> -->
9
- <!-- <ArsenalNavigation :props="ARSENALNAVIGATION.props" /> -->
10
- </div>
11
- </template>
12
-
13
- <script>
14
- import {
15
- Title,
16
- Goods,
17
- Collocation,
18
- Live,
19
- ArsenalTop,
20
- Notice,
21
- ArsenalNavigation,
22
- } from "./package/index";
23
-
24
- export default {
25
- data() {
26
- return {
27
- ARSENALNAVIGATION: {
28
- type: "ArsenalNavigation",
29
- name: "导航",
30
- icon: "icon-shangpin-xianxing",
31
- props: {
32
- showStyle: 0, //展示风格
33
- photoSize: 0, //图片尺寸
34
- photoCorner: 0, //图片边角
35
- fontColor: "#BBBBBB", //文字颜色
36
- backgroundColor: "#EEEEEE", //背景颜色
37
- marginTop: 0, //上边距
38
- marginBottom: 0, //下边距
39
- selectImg: [],
40
- defaultValue: [
41
- {
42
- imgUrl:
43
- "https://static-rs.s3.cn-east-2.jdcloud-oss.com/decorate/66341675912421_.pic.jpg",
44
- link: "无操作",
45
- name: "",
46
- },
47
- ],
48
- },
49
- },
50
- titleProp: {
51
- value: "test",
52
- },
53
- TopProps: {
54
- autoPlay: 0, //自动播放
55
- autoplayInterval: 1500, //轮播间隔
56
- direction: 0, //方向
57
- siteName: "测试公司", //站点名称
58
- mallSlogan: "帮你轻松塑造幸福中职场", //商城标语
59
- iconImg: "", //ICON
60
- paddingTop: 0, //上边距
61
- paddingBottom: 0, //下边距
62
- selectImg: [],
63
- defaultValue: [
64
- {
65
- imgUrl:
66
- "https://static-rs.s3.cn-east-2.jdcloud-oss.com/decorate/66341675912421_.pic.jpg",
67
- link: "无操作",
68
- color: "#FD1738",
69
- },
70
- ],
71
- },
72
- goodsProp: {
73
- arrange: 3,
74
- borderRadius: 0,
75
- goods: ["2022010600000012", "2022010600000082", "2022010600000013"],
76
- margin: 10,
77
- markedPrice: 1,
78
- paddingBottom: 0,
79
- paddingTop: 0,
80
- },
81
- collocationProp: {
82
- arrange: 1,
83
- selectImg:
84
- "https://rcyx-platform-test.yoxuan.vip//paas/shop/2021011200000001/2023-03-14/e7195f36063f4b07b2d9d17c852b14f2.png",
85
- goods: [
86
- "2022010600000090",
87
- "2022010600000013",
88
- "2022010600000082",
89
- "2023010900003440",
90
- "2023010700000200",
91
- "2023010700000224",
92
- ],
93
- markedPrice: 1,
94
- purchaseIcon: 1,
95
- more: 1,
96
- activityTitle: "活动标题",
97
- activitySubtitle: "活动副标题",
98
- goodsTag: [
99
- { id: 1, value: "零食很忙", id: 2, value: "零食优选" },
100
- { id: 3, value: "商品标签" },
101
- ],
102
- textAlign: "center",
103
- backgroundColor: "#ffffff",
104
- cornerStyle: 10,
105
- spacingStyle: 2,
106
- marginTop: 10,
107
- marginBottom: 20,
108
- },
109
- liveProp: {
110
- live: {
111
- infuencerName: "直播标题",
112
- infuencerInfname: "主播名称",
113
- infuencerUrl1:
114
- "http://mmbiz.qpic.cn/mmbiz_jpg/130W5xdRdAKOjhDrJiaia0VR6e0Vu5PuIz3HpeS4iayHG2nTjshYNkbTujMIqO3fLEyFMEWZQphVh6U6sEuZXvmvA/0",
115
- dataState: 101,
116
- },
117
- title: "",
118
- cover: "",
119
- marginTop: 0,
120
- marginBottom: 0,
121
- },
122
- noticeProps: {
123
- vertical: false,
124
- notice: [
125
- {
126
- noticeId: 1,
127
- noticeTitle: "测试公告1",
128
- },
129
- {
130
- noticeId: 2,
131
- noticeTitle: "测试公告2",
132
- },
133
- ],
134
- },
135
- };
136
- },
137
- components: {
138
- Title,
139
- Goods,
140
- Collocation,
141
- Live,
142
- ArsenalTop,
143
- Notice,
144
- ArsenalNavigation,
145
- },
146
- };
147
- </script>
148
-
149
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <div>
3
+ <!-- <Title :props="titleProp" /> -->
4
+ <!-- <Goods :props="goodsProp" /> -->
5
+ <Collocation :props="collocationProp"></Collocation>
6
+ <!-- <Live :props="liveProp" /> -->
7
+ <!-- <ArsenalTop :props="TopProps" /> -->
8
+ <!-- <Notice :props="noticeProps" /> -->
9
+ <!-- <ArsenalNavigation :props="ARSENALNAVIGATION.props" /> -->
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import {
15
+ Title,
16
+ Goods,
17
+ Collocation,
18
+ Live,
19
+ ArsenalTop,
20
+ Notice,
21
+ ArsenalNavigation,
22
+ } from "./package/index";
23
+
24
+ export default {
25
+ data() {
26
+ return {
27
+ ARSENALNAVIGATION: {
28
+ type: "ArsenalNavigation",
29
+ name: "导航",
30
+ icon: "icon-shangpin-xianxing",
31
+ props: {
32
+ showStyle: 0, //展示风格
33
+ photoSize: 0, //图片尺寸
34
+ photoCorner: 0, //图片边角
35
+ fontColor: "#BBBBBB", //文字颜色
36
+ backgroundColor: "#EEEEEE", //背景颜色
37
+ marginTop: 0, //上边距
38
+ marginBottom: 0, //下边距
39
+ selectImg: [],
40
+ defaultValue: [
41
+ {
42
+ imgUrl:
43
+ "https://static-rs.s3.cn-east-2.jdcloud-oss.com/decorate/66341675912421_.pic.jpg",
44
+ link: "无操作",
45
+ name: "",
46
+ },
47
+ ],
48
+ },
49
+ },
50
+ titleProp: {
51
+ value: "test",
52
+ },
53
+ TopProps: {
54
+ autoPlay: 0, //自动播放
55
+ autoplayInterval: 1500, //轮播间隔
56
+ direction: 0, //方向
57
+ siteName: "测试公司", //站点名称
58
+ mallSlogan: "帮你轻松塑造幸福中职场", //商城标语
59
+ iconImg: "", //ICON
60
+ paddingTop: 0, //上边距
61
+ paddingBottom: 0, //下边距
62
+ selectImg: [],
63
+ defaultValue: [
64
+ {
65
+ imgUrl:
66
+ "https://static-rs.s3.cn-east-2.jdcloud-oss.com/decorate/66341675912421_.pic.jpg",
67
+ link: "无操作",
68
+ color: "#FD1738",
69
+ },
70
+ ],
71
+ },
72
+ goodsProp: {
73
+ arrange: 3,
74
+ borderRadius: 0,
75
+ goods: ["2022010600000012", "2022010600000082", "2022010600000013"],
76
+ margin: 10,
77
+ markedPrice: 1,
78
+ paddingBottom: 0,
79
+ paddingTop: 0,
80
+ },
81
+ collocationProp: {
82
+ arrange: 1,
83
+ selectImg:
84
+ "https://rcyx-platform-test.yoxuan.vip//paas/shop/2021011200000001/2023-03-14/e7195f36063f4b07b2d9d17c852b14f2.png",
85
+ goods: [
86
+ "2022010600000090",
87
+ "2022010600000013",
88
+ "2022010600000082",
89
+ "2023010900003440",
90
+ "2023010700000200",
91
+ "2023010700000224",
92
+ ],
93
+ markedPrice: 1,
94
+ purchaseIcon: 1,
95
+ more: 1,
96
+ activityTitle: "活动标题",
97
+ activitySubtitle: "活动副标题",
98
+ goodsTag: [
99
+ { id: 1, value: "零食很忙", id: 2, value: "零食优选" },
100
+ { id: 3, value: "商品标签" },
101
+ ],
102
+ textAlign: "center",
103
+ backgroundColor: "#ffffff",
104
+ cornerStyle: 10,
105
+ spacingStyle: 2,
106
+ marginTop: 10,
107
+ marginBottom: 20,
108
+ },
109
+ liveProp: {
110
+ live: {
111
+ infuencerName: "直播标题",
112
+ infuencerInfname: "主播名称",
113
+ infuencerUrl1:
114
+ "http://mmbiz.qpic.cn/mmbiz_jpg/130W5xdRdAKOjhDrJiaia0VR6e0Vu5PuIz3HpeS4iayHG2nTjshYNkbTujMIqO3fLEyFMEWZQphVh6U6sEuZXvmvA/0",
115
+ dataState: 101,
116
+ },
117
+ title: "",
118
+ cover: "",
119
+ marginTop: 0,
120
+ marginBottom: 0,
121
+ },
122
+ noticeProps: {
123
+ vertical: false,
124
+ notice: [
125
+ {
126
+ noticeId: 1,
127
+ noticeTitle: "测试公告1",
128
+ },
129
+ {
130
+ noticeId: 2,
131
+ noticeTitle: "测试公告2",
132
+ },
133
+ ],
134
+ },
135
+ };
136
+ },
137
+ components: {
138
+ Title,
139
+ Goods,
140
+ Collocation,
141
+ Live,
142
+ ArsenalTop,
143
+ Notice,
144
+ ArsenalNavigation,
145
+ },
146
+ };
147
+ </script>
148
+
149
+ <style lang="scss" scoped></style>
package/src/api/http.js CHANGED
@@ -1,16 +1,16 @@
1
- export const fetchPost = async (url) => {
2
- const saasToken = localStorage.getItem("saas-token");
3
- return await fetch(process.env.REACT_APP_BASE_URL + url, {
4
- method: "POST",
5
- headers: {
6
- "saas-token": saasToken,
7
- "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
8
- "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
9
- },
10
- credentials: "include",
11
- })
12
- .then((response) => response.json())
13
- .then((res = {}) => {
14
- return res;
15
- });
16
- };
1
+ export const fetchPost = async (url) => {
2
+ const saasToken = localStorage.getItem("saas-token");
3
+ return await fetch(process.env.REACT_APP_BASE_URL + url, {
4
+ method: "POST",
5
+ headers: {
6
+ "saas-token": saasToken,
7
+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
8
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
9
+ },
10
+ credentials: "include",
11
+ })
12
+ .then((response) => response.json())
13
+ .then((res = {}) => {
14
+ return res;
15
+ });
16
+ };
package/src/api/index.js CHANGED
@@ -1,22 +1,22 @@
1
- // 获取商品列表
2
- export const querySkuFromJm = "web/rs/resourceGoods/queryResGoodsArFromPtFd.json?goodsDataState=2";
3
- // c端营销
4
- export const queryPromotionPageForC = "/web/pm/promotionplat/queryPromotionPageForC.json";
5
- // lc秒杀
6
- export const queryCouponBatchPage = "/web/pm/promotionSignUpCon/queryCouponBatchPage.json";
7
- // lc团购
8
- export const queryPromotionPageGroupBuying = "/web/pm/promotion/queryPromotionPageGroupBuying.json";
9
- // lc 查看秒杀商品详情
10
- export const getCouponBatchByCode = "/web/pm/promotionSignUpCon/getCouponBatchByCode.json";
11
- // lc 查看团购商品详情
12
- export const getPromotions = "/web/pm/promotion/getPromotions.json";
13
- // lc 查询公告列表
14
- export const queryNoticePageListByPlat = "/web/cms/noticeBusiness/queryNoticePageListByPlat.json";
15
- // 查询公告列表
16
- export const queryNoticePageList = "/web/cms/noticeBusiness/queryNoticePageList.json";
17
- // 分类查询商品数据
18
- export const find = "/web/es/searchengine/find.json";
19
- // 查询直播状态
20
- export const queryInfuencerAndChild = "/web/inf/infuencer/queryInfuencerAndChild.json";
21
- // 查询营销活动商品
1
+ // 获取商品列表
2
+ export const querySkuFromJm = "web/rs/resourceGoods/queryResGoodsArFromPtFd.json?goodsDataState=2";
3
+ // c端营销
4
+ export const queryPromotionPageForC = "/web/pm/promotionplat/queryPromotionPageForC.json";
5
+ // lc秒杀
6
+ export const queryCouponBatchPage = "/web/pm/promotionSignUpCon/queryCouponBatchPage.json";
7
+ // lc团购
8
+ export const queryPromotionPageGroupBuying = "/web/pm/promotion/queryPromotionPageGroupBuying.json";
9
+ // lc 查看秒杀商品详情
10
+ export const getCouponBatchByCode = "/web/pm/promotionSignUpCon/getCouponBatchByCode.json";
11
+ // lc 查看团购商品详情
12
+ export const getPromotions = "/web/pm/promotion/getPromotions.json";
13
+ // lc 查询公告列表
14
+ export const queryNoticePageListByPlat = "/web/cms/noticeBusiness/queryNoticePageListByPlat.json";
15
+ // 查询公告列表
16
+ export const queryNoticePageList = "/web/cms/noticeBusiness/queryNoticePageList.json";
17
+ // 分类查询商品数据
18
+ export const find = "/web/es/searchengine/find.json";
19
+ // 查询直播状态
20
+ export const queryInfuencerAndChild = "/web/inf/infuencer/queryInfuencerAndChild.json";
21
+ // 查询营销活动商品
22
22
  export const queryPromotionByCodeAndCheckUser = "/web/pm/promotionplat/queryPromotionByCodeAndCheckUser.json"
@@ -1,20 +1,20 @@
1
- import queryString from "query-string";
2
- import { isLc } from "../utils/checkEnv";
3
- const urlQuery = isLc ? location.hash.replace(/[\\/#?]/g, "") : null;
4
- const parsedQuery = queryString.parse(urlQuery);
5
-
6
- const saasToken = parsedQuery["saas-token"] ?? "";
7
- const membercode = parsedQuery["membercode"] ?? "";
8
- const channelCode = parsedQuery["channelCode"] ?? "";
9
- const tenantcode = parsedQuery["tenantcode"] ?? "";
10
- const modelTagvalueId = parsedQuery["modelTagvalueId"] ?? "";
11
- const tginfoCode = parsedQuery["tginfoCode"] ?? "655385971816554496";
12
-
13
- export const query = {
14
- saasToken,
15
- membercode,
16
- channelCode,
17
- tenantcode,
18
- modelTagvalueId,
19
- tginfoCode,
20
- };
1
+ import queryString from "query-string";
2
+ import { isLc } from "../utils/checkEnv";
3
+ const urlQuery = isLc ? location.hash.replace(/[\\/#?]/g, "") : null;
4
+ const parsedQuery = queryString.parse(urlQuery);
5
+
6
+ const saasToken = parsedQuery["saas-token"] ?? "";
7
+ const membercode = parsedQuery["membercode"] ?? "";
8
+ const channelCode = parsedQuery["channelCode"] ?? "";
9
+ const tenantcode = parsedQuery["tenantcode"] ?? "";
10
+ const modelTagvalueId = parsedQuery["modelTagvalueId"] ?? "";
11
+ const tginfoCode = parsedQuery["tginfoCode"] ?? "655385971816554496";
12
+
13
+ export const query = {
14
+ saasToken,
15
+ membercode,
16
+ channelCode,
17
+ tenantcode,
18
+ modelTagvalueId,
19
+ tginfoCode,
20
+ };