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
@@ -1,211 +1,211 @@
1
- <template>
2
- <div>
3
- <div class="header_top">
4
- <div class="user_top">
5
- <div class="user_left">
6
- <view class="user_logo" v-if="!islogin"><image src="https://qjstatic.oss-cn-shanghai.aliyuncs.com/SZRC/image/default_header.png"></image></view>
7
- <view class="user_logo" v-else @click="chooseAvatar">
8
- <image class="avatar" v-if="avatarUrl" :src="avatarUrl"></image>
9
- <view class="text" v-else>选择头像</view>
10
- </view>
11
-
12
- <div class="user_message" v-if="isLc">
13
- <div class="user_name">18570000000</div>
14
- <div class="user_change">手机号</div>
15
- <div class="choseSite" >切换站点</div>
16
- </div>
17
- <div v-else>
18
- <div class="user_message" v-if="islogin">
19
- <div v-if="userShow === 0">
20
- <div class="user_name">{{ loginInfor.userPhone || loginInfor.merberCompname }}</div>
21
- <div class="user_change">{{ userTypeMap[userType] }}</div>
22
- </div>
23
- <div v-else-if="userShow === 1">
24
- <div class="user_name">{{ loginInfor.merberCompname }}</div>
25
- <div class="user_change">姓名</div>
26
- </div>
27
- <div v-else>
28
- <div class="user_name">{{ loginInfor.merberCompname }}</div>
29
- </div>
30
- <!-- #ifdef MP-WEIXIN -->
31
- <div class="choseSite" v-if="siteType == '1'" @click="clickSite">切换站点</div>
32
- <!-- #endif -->
33
- </div>
34
- <div class="user_message" v-else><div class="user_name" @click="goLogin()">请登录</div></div>
35
- </div>
36
-
37
- </div>
38
- </div>
39
- <div class="user_bottom">
40
- <div v-if="props.collection == 0" class="bottom_item" @click="jump('/pages/collection_modules/shop/main?isindex=0')">
41
- <div class="item_icon">
42
- <img :src="props.collectionIcon" alt="" style="width: 20px; height: 20px;">
43
- </div>
44
- <div class="item_name">商品收藏</div>
45
- <div class="item_num">{{ goodsNum || '0' }}</div>
46
- </div>
47
- <div v-if="props.footprint == 0" class="bottom_item" @click="jump('/pages/collection_modules/history/main')">
48
- <div class="item_icon1">
49
- <img :src="props.footprintIcon" alt="" style="width: 20px; height: 20px;">
50
- </div>
51
- <div class="item_name">浏览足迹</div>
52
- <div class="item_num">{{ footerTotal || '0' }}</div>
53
- </div>
54
- </div>
55
- </div>
56
- </div>
57
- </template>
58
-
59
- <script>
60
- import { isLc } from "../../utils/index.js";
61
- export default {
62
- name: 'cyy-ArsenalMyTop',
63
- props: {
64
- userType: Number,
65
- userShow: Number,
66
- avatarUrl: String,
67
- islogin: Boolean,
68
- loginInfor: Object,
69
- siteType: String,
70
- footerTotal: Number,
71
- goodsNum: Number,
72
- props: {
73
- collection: 0, //收藏
74
- collectionIcon: "", //ICON
75
- footprint: 0, //足迹
76
- footprintIcon: "", //ICON,
77
- },
78
- },
79
- data() {
80
- return {
81
- isLc,
82
- userTypeMap: {
83
- 0: '手机号',
84
- 1: '卡号',
85
- 2: '历史数据',
86
- 3: '权益',
87
- 4: '礼包',
88
- },
89
- };
90
- },
91
-
92
- mounted() {
93
- console.log('顶部组件=============')
94
- },
95
-
96
- methods: {
97
- clickSite() {
98
- this.$emit('clickSite');
99
- },
100
- jump(path) {
101
- this.$emit('jump', path);
102
- },
103
- chooseAvatar() {
104
- this.$emit('chooseAvatar');
105
- },
106
- goLogin() {
107
- this.$emit('goLogin');
108
- }
109
-
110
- },
111
- };
112
- </script>
113
- <style lang="less" scoped>
114
- .header_top {
115
- padding: 18px 12px 54px;
116
- background: #EB2B27;
117
- .user_top {
118
- width: 100%;
119
- display: flex;
120
- align-items: center;
121
- justify-content: space-between;
122
-
123
- .user_left {
124
- display: flex;
125
- align-items: center;
126
- .user_logo {
127
- width: 67px;
128
- height: 67px;
129
- border-radius: 50%;
130
- padding: 0;
131
- position: relative;
132
- display: flex;
133
- justify-content: center;
134
- align-items: center;
135
- background-color: #fff;
136
- image {
137
- width: 100%;
138
- height: 100%;
139
- border-radius: 50%;
140
- }
141
- img {
142
- width: 100%;
143
- height: 100%;
144
- border-radius: 50%;
145
- }
146
- }
147
- .user_message {
148
- margin-left: 12px;
149
- .user_name {
150
- color: #ffffff;
151
- font-weight: 20px;
152
- font-weight: bold;
153
- line-height: 20px;
154
- }
155
- .user_change {
156
- margin-top: 15px;
157
- color: #fff;
158
- line-height: 9px;
159
- font-size: 9px;
160
- }
161
- }
162
- }
163
- .user_right {
164
- width: 20px;
165
- height: 20px;
166
- image {
167
- width: 100%;
168
- height: 100%;
169
- }
170
- }
171
- }
172
- .user_bottom {
173
- padding: 0 25px;
174
- margin-top: 12px;
175
- display: flex;
176
- justify-content: space-around;
177
- .bottom_item {
178
- display: flex;
179
- justify-content: center;
180
- align-items: center;
181
- .item_icon {
182
- font-size: 13px;
183
- color: #fff;
184
- padding-top: 1px;
185
- }
186
- .item_icon1 {
187
- font-size: 15px;
188
- color: #fff;
189
- }
190
- .item_name {
191
- font-size: 12px;
192
- margin-left: 8px;
193
- color: #fff;
194
- }
195
- .item_num {
196
- font-size: 14px;
197
- color: #fff;
198
- font-weight: bold;
199
- margin-left: 8px;
200
- }
201
- }
202
- }
203
- }
204
- .choseSite {
205
- position: absolute;
206
- top: 43px;
207
- right: 28px;
208
- font-weight: 550;
209
- color: #fff;
210
- }
211
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="header_top">
4
+ <div class="user_top">
5
+ <div class="user_left">
6
+ <view class="user_logo" v-if="!islogin"><image src="https://qjstatic.oss-cn-shanghai.aliyuncs.com/SZRC/image/default_header.png"></image></view>
7
+ <view class="user_logo" v-else @click="chooseAvatar">
8
+ <image class="avatar" v-if="avatarUrl" :src="avatarUrl"></image>
9
+ <view class="text" v-else>选择头像</view>
10
+ </view>
11
+
12
+ <div class="user_message" v-if="isLc">
13
+ <div class="user_name">18570000000</div>
14
+ <div class="user_change">手机号</div>
15
+ <div class="choseSite" >切换站点</div>
16
+ </div>
17
+ <div v-else>
18
+ <div class="user_message" v-if="islogin">
19
+ <div v-if="userShow === 0">
20
+ <div class="user_name">{{ loginInfor.userPhone || loginInfor.merberCompname }}</div>
21
+ <div class="user_change">{{ userTypeMap[userType] }}</div>
22
+ </div>
23
+ <div v-else-if="userShow === 1">
24
+ <div class="user_name">{{ loginInfor.merberCompname }}</div>
25
+ <div class="user_change">姓名</div>
26
+ </div>
27
+ <div v-else>
28
+ <div class="user_name">{{ loginInfor.merberCompname }}</div>
29
+ </div>
30
+ <!-- #ifdef MP-WEIXIN -->
31
+ <div class="choseSite" v-if="siteType == '1'" @click="clickSite">切换站点</div>
32
+ <!-- #endif -->
33
+ </div>
34
+ <div class="user_message" v-else><div class="user_name" @click="goLogin()">请登录</div></div>
35
+ </div>
36
+
37
+ </div>
38
+ </div>
39
+ <div class="user_bottom">
40
+ <div v-if="props.collection == 0" class="bottom_item" @click="jump('/pages/collection_modules/shop/main?isindex=0')">
41
+ <div class="item_icon">
42
+ <img :src="props.collectionIcon" alt="" style="width: 20px; height: 20px;">
43
+ </div>
44
+ <div class="item_name">商品收藏</div>
45
+ <div class="item_num">{{ goodsNum || '0' }}</div>
46
+ </div>
47
+ <div v-if="props.footprint == 0" class="bottom_item" @click="jump('/pages/collection_modules/history/main')">
48
+ <div class="item_icon1">
49
+ <img :src="props.footprintIcon" alt="" style="width: 20px; height: 20px;">
50
+ </div>
51
+ <div class="item_name">浏览足迹</div>
52
+ <div class="item_num">{{ footerTotal || '0' }}</div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </template>
58
+
59
+ <script>
60
+ import { isLc } from "../../utils/index.js";
61
+ export default {
62
+ name: 'cyy-ArsenalMyTop',
63
+ props: {
64
+ userType: Number,
65
+ userShow: Number,
66
+ avatarUrl: String,
67
+ islogin: Boolean,
68
+ loginInfor: Object,
69
+ siteType: String,
70
+ footerTotal: Number,
71
+ goodsNum: Number,
72
+ props: {
73
+ collection: 0, //收藏
74
+ collectionIcon: "", //ICON
75
+ footprint: 0, //足迹
76
+ footprintIcon: "", //ICON,
77
+ },
78
+ },
79
+ data() {
80
+ return {
81
+ isLc,
82
+ userTypeMap: {
83
+ 0: '手机号',
84
+ 1: '卡号',
85
+ 2: '历史数据',
86
+ 3: '权益',
87
+ 4: '礼包',
88
+ },
89
+ };
90
+ },
91
+
92
+ mounted() {
93
+ console.log('顶部组件=============')
94
+ },
95
+
96
+ methods: {
97
+ clickSite() {
98
+ this.$emit('clickSite');
99
+ },
100
+ jump(path) {
101
+ this.$emit('jump', path);
102
+ },
103
+ chooseAvatar() {
104
+ this.$emit('chooseAvatar');
105
+ },
106
+ goLogin() {
107
+ this.$emit('goLogin');
108
+ }
109
+
110
+ },
111
+ };
112
+ </script>
113
+ <style lang="less" scoped>
114
+ .header_top {
115
+ padding: 18px 12px 54px;
116
+ background: #EB2B27;
117
+ .user_top {
118
+ width: 100%;
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: space-between;
122
+
123
+ .user_left {
124
+ display: flex;
125
+ align-items: center;
126
+ .user_logo {
127
+ width: 67px;
128
+ height: 67px;
129
+ border-radius: 50%;
130
+ padding: 0;
131
+ position: relative;
132
+ display: flex;
133
+ justify-content: center;
134
+ align-items: center;
135
+ background-color: #fff;
136
+ image {
137
+ width: 100%;
138
+ height: 100%;
139
+ border-radius: 50%;
140
+ }
141
+ img {
142
+ width: 100%;
143
+ height: 100%;
144
+ border-radius: 50%;
145
+ }
146
+ }
147
+ .user_message {
148
+ margin-left: 12px;
149
+ .user_name {
150
+ color: #ffffff;
151
+ font-weight: 20px;
152
+ font-weight: bold;
153
+ line-height: 20px;
154
+ }
155
+ .user_change {
156
+ margin-top: 15px;
157
+ color: #fff;
158
+ line-height: 9px;
159
+ font-size: 9px;
160
+ }
161
+ }
162
+ }
163
+ .user_right {
164
+ width: 20px;
165
+ height: 20px;
166
+ image {
167
+ width: 100%;
168
+ height: 100%;
169
+ }
170
+ }
171
+ }
172
+ .user_bottom {
173
+ padding: 0 25px;
174
+ margin-top: 12px;
175
+ display: flex;
176
+ justify-content: space-around;
177
+ .bottom_item {
178
+ display: flex;
179
+ justify-content: center;
180
+ align-items: center;
181
+ .item_icon {
182
+ font-size: 13px;
183
+ color: #fff;
184
+ padding-top: 1px;
185
+ }
186
+ .item_icon1 {
187
+ font-size: 15px;
188
+ color: #fff;
189
+ }
190
+ .item_name {
191
+ font-size: 12px;
192
+ margin-left: 8px;
193
+ color: #fff;
194
+ }
195
+ .item_num {
196
+ font-size: 14px;
197
+ color: #fff;
198
+ font-weight: bold;
199
+ margin-left: 8px;
200
+ }
201
+ }
202
+ }
203
+ }
204
+ .choseSite {
205
+ position: absolute;
206
+ top: 43px;
207
+ right: 28px;
208
+ font-weight: 550;
209
+ color: #fff;
210
+ }
211
+ </style>