jufubao-mall 2.0.32 → 2.0.34

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/package.json +1 -1
  2. package/src/components/CusCouponChose/CusCouponChose.vue +10 -13
  3. package/src/components/CusEnter/CusEnter.vue +9 -1
  4. package/src/components/CusListItem/CusListItem.vue +141 -0
  5. package/src/components/CusPoster/CusPoster.vue +17 -62
  6. package/src/components/CusPrice/CusPrice.vue +391 -0
  7. package/src/components/CusProduct/CusProduct.vue +576 -184
  8. package/src/components/CusShops/CusShops.vue +409 -209
  9. package/src/components/CusTab/CusTab.vue +159 -22
  10. package/src/components/CusVipList/CusVipList.vue +169 -0
  11. package/src/components/JfbMallConfirm/Api.js +1 -1
  12. package/src/components/JfbMallConfirm/Attr.js +167 -453
  13. package/src/components/JfbMallConfirm/JfbMallConfirm.vue +362 -162
  14. package/src/components/JfbMallConfirm/Mock.js +61 -43
  15. package/src/components/JfbMallConfirm/XdAddrDefault.vue +26 -13
  16. package/src/components/JfbMallConfirm/XdAddrOld.vue +9 -7
  17. package/src/components/JfbMallConfirm/XdListItem.vue +10 -2
  18. package/src/components/JfbMallConfirm/cusAttr/advanced.js +91 -0
  19. package/src/components/JfbMallConfirm/cusAttr/content.js +355 -0
  20. package/src/components/JfbMallConfirm/cusAttr/style.js +628 -0
  21. package/src/components/JfbMallConfirm/shopList.vue +84 -42
  22. package/src/components/JfbMallNetworkMedia/Api.js +94 -0
  23. package/src/components/JfbMallNetworkMedia/Attr.js +20 -0
  24. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +1167 -0
  25. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +80 -0
  26. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +30 -0
  27. package/src/components/JfbMallNetworkMedia/Mock.js +372 -0
  28. package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +60 -0
  29. package/src/components/JfbMallNetworkMedia/cusAttr/content.js +230 -0
  30. package/src/components/JfbMallNetworkMedia/cusAttr/font.js +123 -0
  31. package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +257 -0
  32. package/src/components/JfbMallNetworkMedia/cusAttr/style.js +12 -0
  33. package/src/components/JfbMallProductInfo/cusAttr/content.js +2 -0
  34. package/src/components/JfbMallProductList/JfbMallProductList.vue +7 -1
  35. package/src/components/JfbMallProductList/XdCateV1.vue +0 -1
  36. package/src/components/JfbMallShop/JfbMallShop.vue +1 -1
  37. package/src/components/JfbMallShop/cusAttr/content.js +1 -1
  38. package/src/components/SkeProduct/SkeProduct.vue +88 -3
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-mall-network-media {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: var(--preview-z-index);
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(0, rpx);
48
+ height: unit(50, rpx);
49
+ z-index: 100;
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .4);
54
+ border-radius: 0 0 0 20rpx;
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+ padding: 0 6rpx 0 6px;
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-mall-network-media {
75
+ //&:before {
76
+ //content: " ";
77
+ //display: table;
78
+ //}
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-mall-network-media'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,372 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ getMallMediaProductContent: {
5
+ content: '<p><img class="tinymce-image" src="//sandbox-img.jufubao.cn/uploads/20230522/61f22091cc434863e2d52cce0d769221.jpg" /></p>',
6
+ request_id: "11438a7010425aff"
7
+ },
8
+ getMallMediaProductBuyButton: {
9
+ "post_scope_text":"",
10
+ "alert_text":"",
11
+ "alert_button":{},
12
+ "alert_reason":"",
13
+ "need_login":false,
14
+ "buttons":[{"text":"加入购物车","code":"add-buy","enabled":true},{"text":"立即购买","code":"buy-now","enabled":true}],
15
+ "buy_limit":{"min_buy":1,"max_buy":999},
16
+ "delivery_methods": [{ "label": "同城配送", "value": "samecity" }, { label: '同城配送' }, { label: '到店自提' }],
17
+ "page_buttons":[{"text":"查看配送范围","code":"view-delivery-scope","params":{"brand_id":"20001","supplier_id":"133189","region_limit_tpl_id":"csd_133189_34376","channel_code":"d2lsbG5pY2VfY2FrZXxXMDIwMTIwMjA3NDE%3D","channel_product_id":"W02012020741"}}],
18
+ "request_id":"2d4997a9aea3dda8"
19
+ },
20
+ getMallMediaCategoryTree: {"items":[{"category_name":"零售行业电子会员","category_id":157699,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250123/5f9b11d836c4ef04167c3250bc1f553f.png?x-oss-process=style/size8","parent_id":0,"tag":"","children":[{"category_name":"山姆会员","category_id":157705,"category_icon":"//sandbox-img5.jufubao.cn/uploads/20250123/f4b46eee2b09d1156de67643bcf5e569.png?x-oss-process=style/size3","parent_id":157699,"tag":"","children":[{"category_name":"零食","category_id":158303,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250919/d2f88b6abf80ddcfb6d42b9ab267d18a.png?x-oss-process=style/size3","parent_id":157705,"tag":"","children":[],"level":3},{"category_name":"冷冻","category_id":158302,"category_icon":"//sandbox-img1.jufubao.cn/uploads/20250919/9cb362a3470b5274f72cd245e32cb3ab.png?x-oss-process=style/size3","parent_id":157705,"tag":"","children":[],"level":3}],"level":2},{"category_name":"沃尔玛","category_id":157704,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250123/70fc53ca1cf66b62500f589e5e100728.png?x-oss-process=style/size3","parent_id":157699,"tag":"","children":[],"level":2},{"category_name":"百货商场","category_id":157703,"category_icon":"//sandbox-img2.jufubao.cn/uploads/20250123/928b963ef5f39b8cbf98c4357837b1c7.png?x-oss-process=style/size3","parent_id":157699,"tag":"","children":[],"level":2},{"category_name":"便利店(有网络视听数据)","category_id":157702,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250123/8a8a2a695cb4ecd548458a3931bdbcab.png?x-oss-process=style/size8","parent_id":157699,"tag":"","children":[],"level":2},{"category_name":"超市","category_id":157701,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250123/f13911c490fbe32e2e7608d05b74ebfa.png?x-oss-process=style/size3","parent_id":157699,"tag":"","children":[],"level":2}],"name":"零售行业电子会员","id":157699,"level":1},{"category_name":"餐饮行业电子会员","category_id":157700,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250123/48aa6455ead0f77df77d6a1a8464e27e.png?x-oss-process=style/size3","parent_id":0,"tag":"","children":[],"name":"餐饮行业电子会员","id":157700,"level":1},{"category_name":"视频会员","category_id":2853,"category_icon":"https://img1-v1.jufubao.cn/20200629110035191.png?x-oss-process=style/size8","parent_id":0,"tag":"","children":[{"category_name":"爱奇艺视频","category_id":3785,"category_icon":"https://img5-v1.jufubao.cn/20200630095612143.jpg?x-oss-process=style/common","parent_id":2853,"tag":"","children":[],"level":2}],"name":"视频会员","id":2853,"level":1},{"category_name":"音频会员","category_id":157697,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250116/bb213c67b9df8710a69c5f59b9aea027.jpg?x-oss-process=style/size8","parent_id":0,"tag":"","children":[],"name":"音频会员","id":157697,"level":1},{"category_name":"生活会员","category_id":157696,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250116/a5aab3ab3d9b5392e6bd3c2b8d946a93.jpg?x-oss-process=style/size8","parent_id":0,"tag":"","children":[{"category_name":"二级","category_id":157698,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250116/d1d95ec8fbff6a0b50efff2a7fd8ce52.jpeg?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[{"category_name":"作业帮","category_id":158309,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250918/fcb8fd962028c403dd57d73a9f834da4.jpg?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3},{"category_name":"掌阅","category_id":158310,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250919/156dc55607b942b0f586f10991a692e2.png?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3},{"category_name":"必胜客","category_id":158308,"category_icon":"//sandbox-img5.jufubao.cn/uploads/20250918/727c8f8e447f10527d7d4de21473d2f4.png?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3},{"category_name":"keep","category_id":158306,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250808/9c9aa1979f1e4118861222070499c83e.png?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3},{"category_name":"休闲食品","category_id":158305,"category_icon":"//sandbox-img2.jufubao.cn/uploads/20250918/c0473430e3c8c9f3a4928cc749b870a2.png?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3},{"category_name":"百度网盘","category_id":158307,"category_icon":"//sandbox-img1.jufubao.cn/uploads/20250919/9cb362a3470b5274f72cd245e32cb3ab.png?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3},{"category_name":"零食零食零食零食零食","category_id":158304,"category_icon":"//sandbox-img3.jufubao.cn/uploads/20250919/850e88f91660dbdf25e39a735c4fc8a9.png?x-oss-process=style/size3","parent_id":157698,"tag":"","children":[],"level":3}],"level":2},{"category_name":"听书","category_id":158316,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250120/fb7c5f0ef7d29e9d61abb18c8223821c.png?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[],"level":2},{"category_name":"文档","category_id":158315,"category_icon":"//sandbox-img3.jufubao.cn/uploads/20250120/07f384206b79032cb730f6b6663090bf.png?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[],"level":2},{"category_name":"读书","category_id":158314,"category_icon":"//sandbox-img1.jufubao.cn/uploads/20250120/99a668da44113739dab26ca6967d7950.png?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[],"level":2},{"category_name":"网盘","category_id":158313,"category_icon":"//sandbox-img1.jufubao.cn/uploads/20250120/3b41b5c41c83ebe2726c9e014fc525e2.png?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[],"level":2},{"category_name":"视频","category_id":158312,"category_icon":"//sandbox-img3.jufubao.cn/uploads/20250120/754e6ff17854b4260b3f00787634346a.png?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[],"level":2},{"category_name":"音频","category_id":158311,"category_icon":"//sandbox-img4.jufubao.cn/uploads/20250120/e17f9cdb6c3af2d0519af787ff1eee14.png?x-oss-process=style/size3","parent_id":157696,"tag":"","children":[],"level":2}],"name":"生活会员","id":157696,"level":1},{"category_name":"网络会员","category_id":157695,"category_icon":"//sandbox-img.jufubao.cn/uploads/20250116/e2e5e3cdf88be15dd7f5e398f8525a51.jpeg?x-oss-process=style/size8","parent_id":0,"tag":"","children":[],"name":"网络会员","id":157695,"level":1}],"request_id":"bd19a08394e7db80"},
21
+ getMallMediaProductList: {
22
+ total_size: 8,
23
+ next_page_token: "1",
24
+ list: [
25
+ {
26
+ product_id: 60007334,
27
+ product_type: "good",
28
+ brand_id: 40503,
29
+ brand_name: "Meixin/美心",
30
+ list_title: "惠普(HP)战66 四代 15.6英寸轻薄笔记本电脑",
31
+ status: "ok",
32
+ sale_num: 0,
33
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230517/d01ab9cd8344d226c43919b47f8ed534.jpg",
34
+ market_price: 4300,
35
+ sale_price: 1300,
36
+ promo_price: 1800,
37
+ market_tags: ['flashsale'],
38
+ tags: [
39
+ {
40
+ label: '推荐',
41
+ type: 'market',
42
+ pos: 'tag',
43
+ style: 'GR4'
44
+ },
45
+ {
46
+ label: '爆款',
47
+ type: 'market',
48
+ pos: 'tag',
49
+ style: 'GR4'
50
+ },
51
+ {
52
+ label: '新品',
53
+ type: 'market',
54
+ pos: 'tag',
55
+ style: 'GR4'
56
+ },
57
+ {
58
+ label: '包邮',
59
+ type: 'postage',
60
+ pos: 'tag',
61
+ style: 'GG4'
62
+ },
63
+ {
64
+ label: '秒杀',
65
+ type: 'flashsale',
66
+ pos: 'beTitle',
67
+ style: 'RW8'
68
+ },
69
+ // {
70
+ // label: '爆款',
71
+ // type: 'market',
72
+ // pos: 'imgL',
73
+ // style: 'RWL'
74
+ // },
75
+ // {
76
+ // label: '新品',
77
+ // type: 'market',
78
+ // pos: 'imgR',
79
+ // style: 'RWR'
80
+ // },
81
+ {
82
+ label: '8寸',
83
+ type: 'param',
84
+ pos: 'param',
85
+ style: 'TG1'
86
+ },
87
+ {
88
+ label: '好物',
89
+ type: 'param',
90
+ pos: 'param',
91
+ style: 'TG1'
92
+ },
93
+
94
+ ],
95
+ show_prices: [
96
+ {
97
+ "p": 99999,
98
+ "n": "PLUS价",
99
+ "t": "S"
100
+ },
101
+ {
102
+ "p": 99999,
103
+ "n": "原价",
104
+ "t": "U"
105
+ }
106
+ ],
107
+ },
108
+ {
109
+ product_id: 600088155,
110
+ product_type: "good",
111
+ brand_id: 40413,
112
+ brand_name: "良品铺子",
113
+ list_title: "良品铺子手撕面包2斤装 量贩早餐小面包代餐休闲零食办公室点心整箱装礼盒",
114
+ status: "ok",
115
+ sale_num: 0,
116
+ market_price: 4300,
117
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/24f0e3386a80c2a6659d71862eedcae7.jpg",
118
+ sale_price: 2678,
119
+ promo_price: 1800,
120
+ show_prices: [
121
+ {
122
+ "p": 1800,
123
+ "n": "PLUS价",
124
+ "t": "S"
125
+ },
126
+ {
127
+ "p": 4300,
128
+ "n": "原价",
129
+ "t": "U"
130
+ }
131
+ ],
132
+ market_tags: ['flashsale','hot','new'],
133
+ tags: [
134
+ {
135
+ label: '推荐',
136
+ type: 'market',
137
+ pos: 'tag',
138
+ style: 'GR4'
139
+ },
140
+ {
141
+ label: '爆款',
142
+ type: 'market',
143
+ pos: 'tag',
144
+ style: 'GR4'
145
+ },
146
+ {
147
+ label: '新品',
148
+ type: 'market',
149
+ pos: 'tag',
150
+ style: 'GR4'
151
+ },
152
+ {
153
+ label: '包邮',
154
+ type: 'postage',
155
+ pos: 'tag',
156
+ style: 'GG4'
157
+ },
158
+ {
159
+ label: '秒杀',
160
+ type: 'flashsale',
161
+ pos: 'beTitle',
162
+ style: 'RW8'
163
+ },
164
+ ],
165
+ },
166
+ {
167
+ product_id: 60008821,
168
+ product_type: "good",
169
+ brand_id: 40189,
170
+ brand_name: "好丽友",
171
+ list_title: "好丽友(orion)零食休闲零食薯条膨化食品呀!土豆番茄酱味70g/袋",
172
+ status: "ok",
173
+ sale_num: 0,
174
+ market_price: 4300,
175
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/eb1d4222f69559e1ac0c999ae01da8ae.jpg",
176
+ sale_price: 2678,
177
+ promo_price: 1800,
178
+ show_prices: [
179
+ {
180
+ "p": 2678,
181
+ "n": "PLUS价",
182
+ "t": "S"
183
+ },
184
+ {
185
+ "p": 4300,
186
+ "n": "原价",
187
+ "t": "U"
188
+ }
189
+ ],
190
+ market_tags: [],
191
+ tags: [
192
+ {
193
+ label: '推荐',
194
+ type: 'market',
195
+ },
196
+ {
197
+ label: '爆款',
198
+ type: 'market',
199
+ },
200
+ {
201
+ label: '新品',
202
+ type: 'market',
203
+ },
204
+ {
205
+ label: '包邮',
206
+ type: 'postage',
207
+ }
208
+ ],
209
+ },
210
+ {
211
+ product_id: 60008817,
212
+ product_type: "good",
213
+ brand_id: 40413,
214
+ brand_name: "良品铺子",
215
+ list_title: "港荣蒸蛋糕 奶香味手撕蛋糕900g/箱面包蛋糕早餐面包办公室零食",
216
+ status: "ok",
217
+ sale_num: 0,
218
+ market_price: 4300,
219
+ show_prices: [
220
+ {
221
+ "p": 19800,
222
+ "n": "",
223
+ "t": "S"
224
+ },
225
+ {
226
+ "p": 14300,
227
+ "n": "PLUS价",
228
+ "t": "D"
229
+ }
230
+ ],
231
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/f1a75df336de07214278e97232207e97.jpg",
232
+ sale_price: 3347
233
+ },
234
+ {
235
+ product_id: 60008818,
236
+ product_type: "good",
237
+ brand_id: 40413,
238
+ brand_name: "良品铺子",
239
+ list_title: "百草味原色无漂白盐焗味开心果500g 每日坚果干果零食量贩 送礼团购",
240
+ status: "soldout",
241
+ sale_num: 0,
242
+ market_price: 4300,
243
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/d394f125cdbea07de0b7c33838fc680f.jpg",
244
+ sale_price: 5356,
245
+ show_prices: [
246
+ {
247
+ "p": 18800,
248
+ "n": "",
249
+ "t": "S"
250
+ }
251
+ ],
252
+ },
253
+ {
254
+ product_id: 600070912,
255
+ product_type: "good",
256
+ brand_id: 40503,
257
+ brand_name: "Meixin/美心",
258
+ list_title: "惠普(HP)战66 四代 15.6英寸轻薄笔记本电脑",
259
+ status: "ok",
260
+ sale_num: 0,
261
+ market_price: 4300,
262
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230517/d01ab9cd8344d226c43919b47f8ed534.jpg",
263
+ sale_price: 1300,
264
+ show_prices: [
265
+ {
266
+ "p": 17900,
267
+ "n": "",
268
+ "t": "S"
269
+ }
270
+ ],
271
+ },
272
+ {
273
+ product_id: 600088162,
274
+ product_type: "good",
275
+ brand_id: 40413,
276
+ brand_name: "良品铺子",
277
+ list_title: "良品铺子手撕面包2斤装 量贩早餐小面包代餐休闲零食办公室点心整箱装礼盒",
278
+ status: "ok",
279
+ sale_num: 0,
280
+ market_price: 4300,
281
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/24f0e3386a80c2a6659d71862eedcae7.jpg",
282
+ sale_price: 2678,
283
+ show_prices: [
284
+ {
285
+ "p": 2678,
286
+ "n": "PLUS价",
287
+ "t": "S"
288
+ },
289
+ {
290
+ "p": 4300,
291
+ "n": "原价",
292
+ "t": "U"
293
+ }
294
+ ],
295
+ },
296
+ {
297
+ product_id: 600088212,
298
+ product_type: "good",
299
+ brand_id: 40189,
300
+ brand_name: "好丽友",
301
+ list_title: "好丽友(orion)零食休闲零食薯条膨化食品呀!土豆番茄酱味70g/袋",
302
+ status: "soldout",
303
+ sale_num: 0,
304
+ market_price: 4300,
305
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/eb1d4222f69559e1ac0c999ae01da8ae.jpg",
306
+ sale_price: 2678,
307
+ show_prices: [
308
+ {
309
+ "p": 2678,
310
+ "n": "",
311
+ "t": "S"
312
+ },
313
+ {
314
+ "p": 4300,
315
+ "n": "PLUS价",
316
+ "t": "D"
317
+ }
318
+ ],
319
+ },
320
+ {
321
+ product_id: 600088172,
322
+ product_type: "good",
323
+ brand_id: 40413,
324
+ brand_name: "良品铺子",
325
+ list_title: "港荣蒸蛋糕 奶香味手撕蛋糕900g/箱面包蛋糕早餐面包办公室零食",
326
+ status: "off",
327
+ sale_num: 0,
328
+ market_price: 4300,
329
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/f1a75df336de07214278e97232207e97.jpg",
330
+ sale_price: 3347,
331
+ show_prices: [
332
+ {
333
+ "p": 3347,
334
+ "n": "PLUS价",
335
+ "t": "S"
336
+ },
337
+ {
338
+ "p": 4300,
339
+ "n": "原价",
340
+ "t": "U"
341
+ }
342
+ ],
343
+ },
344
+ {
345
+ product_id: 600088182,
346
+ product_type: "good",
347
+ brand_id: 40413,
348
+ brand_name: "良品铺子",
349
+ list_title: "百草味原色无漂白盐焗味开心果500g 每日坚果干果零食量贩 送礼团购",
350
+ status: "soldout",
351
+ sale_num: 0,
352
+ market_price: 4300,
353
+ thumb: "//sandbox-img.jufubao.cn/uploads/20230522/d394f125cdbea07de0b7c33838fc680f.jpg",
354
+ sale_price: 5356,
355
+ show_prices: [
356
+ {
357
+ "p": 4300,
358
+ "n": "PLUS价",
359
+ "t": "S"
360
+ },
361
+ {
362
+ "p": 5356,
363
+ "n": "原价",
364
+ "t": "U"
365
+ }
366
+ ],
367
+ }
368
+ ],
369
+ request_id: "9512a165463ba45b"
370
+ },
371
+ getMallMediaProductForm:{"form_id":"","form_data":[{"id":"blessing","type":"input","value":'输入祝福语',"struct":{"title":"祝福语","explain":"祝福语","default":"","placeholder":"输入祝福语","required":true,"minlength":1,"maxlength":16},"options":[]}],"request_id":"88bdf8170bbc24b0"}
372
+ }
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ export default (data)=>{
4
+ let isCityFilter = 'N',productInfoPath =null;
5
+ if(['Y','N'].includes(data['isCityFilter'])) {
6
+ isCityFilter = data['isCityFilter']
7
+ }
8
+ if(data['productInfoPath'] !== undefined) {
9
+ productInfoPath = data['productInfoPath']
10
+ }
11
+ return [
12
+ 0 && {
13
+ label: '城市筛选',
14
+ ele: 'xd-radio',
15
+ valueKey: 'isCityFilter',
16
+ groupKey:'advanced',
17
+ value: isCityFilter,
18
+ placeholder: '请选择是否开启城市筛选',
19
+ multiple: false,
20
+ labelInline:true,
21
+ list: [
22
+ {label: '开启', value: 'Y'},
23
+ {label: '禁用', value: 'N'},
24
+ ]
25
+ },
26
+ {
27
+ label: '确认订单',
28
+ ele: 'xd-select-pages-path',
29
+ valueKey: 'productInfoPath',
30
+ placeholder: '请选择确认订单跳转地址',
31
+ groupKey: 'advanced',
32
+ value: productInfoPath,
33
+ labelInline: true,
34
+ className: 'input100',
35
+ setting: {
36
+ mode: 'new',
37
+ router: XdBus.getParentApi('getPagesTree'),
38
+ },
39
+ },
40
+ {
41
+ label: '版本号:',
42
+ ele: 'el-input',
43
+ type: 'text',
44
+ groupKey: 'advanced',
45
+ valueKey: 'version',
46
+ value: 'v2.0',
47
+ hidden: true,
48
+ },
49
+ {
50
+ label: '过滤引用模版字段:',
51
+ ele: 'el-input',
52
+ type: 'text',
53
+ groupKey: 'advanced',
54
+ valueKey: 'refFilterKey',
55
+ value: '[]',
56
+ hidden: true,
57
+ },
58
+ ]
59
+ }
60
+