jufubao-base 1.0.169-beta4 → 1.0.169-beta5

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.
@@ -0,0 +1,111 @@
1
+ <template>
2
+ <view class="skeleton-wrap-item">
3
+ <template v-if="cell===1">
4
+
5
+ </template>
6
+ <template v-if="cell===2">
7
+
8
+ </template>
9
+ </view>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: "SkeletonProduct",
15
+ props:{
16
+ outSpacing:{
17
+ type: Number|String,
18
+ default:20
19
+ },
20
+ cell:{
21
+ type: Number|String,
22
+ required: true
23
+ },
24
+ productConfig(){
25
+
26
+ },
27
+ }
28
+ }
29
+ </script>
30
+
31
+
32
+
33
+ <style scoped lang="less">
34
+ .skeleton-wrap-item {
35
+ height: 240rpx;
36
+ display: flex;
37
+ justify-content: space-between;
38
+ align-items: center;
39
+
40
+ //影片列表骨架
41
+ &-image {
42
+ .skeleton-item(160rpx, 240rpx);
43
+ flex-shrink: 0;
44
+ margin-right: 20rpx;
45
+ }
46
+
47
+ &-title {
48
+ flex: 1;
49
+
50
+ .title {
51
+ .skeleton-item(100%, 50rpx);
52
+ margin-bottom: 20rpx;
53
+ }
54
+
55
+ .director,.star,.type {
56
+ .skeleton-item(100%, 40rpx);
57
+ margin-bottom: 10rpx;
58
+ }
59
+ }
60
+
61
+ &-btn {
62
+ display: flex;
63
+ align-content: space-between;
64
+ align-items: flex-end;
65
+ justify-content: flex-end;
66
+ flex-flow: wrap;
67
+ height: 100%;
68
+ box-sizing: border-box;
69
+ padding: 10rpx 0;
70
+ width: 130rpx;
71
+ flex-shrink: 0;
72
+
73
+ & > .score {
74
+ .skeleton-item(100rpx, 40rpx);
75
+ }
76
+ & > .btn {
77
+ .skeleton-item(130rpx, 60rpx);
78
+ }
79
+ }
80
+
81
+ &:last-child {
82
+ margin-bottom: 0!important;
83
+ }
84
+
85
+ //影院列表骨架
86
+ &.list {
87
+ display: block;
88
+ }
89
+ & > .title {
90
+ .skeleton-item(100%, 60rpx);
91
+ margin-bottom: 20rpx;
92
+ }
93
+ & > .address {
94
+ .skeleton-item(100%, 40rpx);
95
+ margin-bottom: 20rpx;
96
+ }
97
+ & > .bottom {
98
+ display: flex;
99
+ justify-content: space-between;
100
+ align-items: center;
101
+ padding-top: 30rpx;
102
+
103
+ & > .local {
104
+ .skeleton-item(120rpx, 30rpx);
105
+ }
106
+ & > .btn {
107
+ .skeleton-item(150rpx, 70rpx);
108
+ }
109
+ }
110
+ }
111
+ </style>
@@ -0,0 +1,81 @@
1
+ <template>
2
+ <view class="skeleton-wrap-item">
3
+ <view class="image skeleton-item" :style="{marginRight: outSpacing + 'rpx'}"></view>
4
+ <view class="content">
5
+ <view class="title">
6
+ <view class="title-left skeleton-item"></view>
7
+ <view class="title-right skeleton-item"></view>
8
+ </view>
9
+ <view class="address skeleton-item"></view>
10
+ <view class="phone skeleton-item"></view>
11
+ <view class="btn">
12
+ <view class="skeleton-item"></view>
13
+ </view>
14
+ </view>
15
+ </view>
16
+ </template>
17
+
18
+ <script>
19
+ export default {
20
+ name: "SkeletonShop",
21
+ props:{
22
+ outSpacing:{
23
+ type: Number|String,
24
+ default:20
25
+ }
26
+ }
27
+ }
28
+ </script>
29
+
30
+ <style scoped lang="less">
31
+ .skeleton-wrap-item {
32
+ height: 200rpx;
33
+ display: flex;
34
+ justify-content: space-between;
35
+ align-items: center;
36
+
37
+ & > .image {
38
+ .skeleton-item(200rpx, 200rpx);
39
+ flex-shrink: 0;
40
+ }
41
+
42
+ .content {
43
+ height: 100%;
44
+
45
+ .title {
46
+ display: flex;
47
+ justify-content: space-between;
48
+ align-items: center;
49
+ margin-bottom: 20rpx;
50
+
51
+ &-left {
52
+ flex: 1;
53
+ margin-right: 20rpx;
54
+ .skeleton-item(100%, 40rpx);
55
+ }
56
+ &-right {
57
+ flex-shrink: 0;
58
+ .skeleton-item(100rpx, 30rpx);
59
+ }
60
+ }
61
+
62
+ flex: 1;
63
+ .address {
64
+ margin-bottom: 10rpx;
65
+ .skeleton-item(100%, 30rpx);
66
+ }
67
+ .phone {
68
+ margin-bottom: 10rpx;
69
+ .skeleton-item(100%, 30rpx);
70
+ }
71
+ .btn {
72
+ display: flex;
73
+ justify-content: flex-end;
74
+
75
+ .skeleton-item {
76
+ .skeleton-item(100rpx, 50rpx)
77
+ }
78
+ }
79
+ }
80
+ }
81
+ </style>
@@ -0,0 +1,76 @@
1
+ 'use strict';
2
+ import { getContainerPropsValue } from "@/utils/xd.base";
3
+
4
+ export default {
5
+ data(){
6
+ return {
7
+ isShowExchange:'N',
8
+
9
+ contMargin:{},
10
+ contRradius:'10',
11
+ contShadow:'',
12
+ contBorder:'',
13
+ contBgColor:'',
14
+ contBorderWidth: 0,
15
+
16
+ imgRradius:'10',
17
+
18
+ productConfig:null,
19
+ }
20
+ },
21
+ created(){
22
+
23
+ },
24
+ methods:{
25
+ cusInit(container){
26
+ this.isShowExchange = getContainerPropsValue(container, 'content.isShowExchange', 'N');
27
+
28
+ //商品相关
29
+ let is_show_brand = getContainerPropsValue(container, 'content.is_show_brand', 'N');
30
+ let isPrice = getContainerPropsValue(container, 'content.isPrice', "Y");
31
+ let isShowTag = getContainerPropsValue(container, 'content.isShowTag', "Y");
32
+ let isShowDiscount = getContainerPropsValue(container, 'content.isShowDiscount', "Y");
33
+ let isAddCart = getContainerPropsValue(container, 'content.isAddCart', "Y");
34
+ let differ = getContainerPropsValue(container, 'content.differ', 1);
35
+ let showActivityPrice = getContainerPropsValue(container, 'content.showActivityPrice', 'N');
36
+ this.productConfig = {is_show_brand,isPrice,isShowTag,isShowDiscount,isAddCart,differ,showActivityPrice}
37
+
38
+ //内容
39
+ this.contMargin = getContainerPropsValue(container, 'content.contMargin', {});
40
+ this.contRradius = getContainerPropsValue(container, 'content.contRradius', '10');
41
+ this.contShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.contShadow', {}))
42
+ this.contBorder = this.getXdBorder({width:2,color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.contBorder', {}));
43
+ this.contBgColor = getContainerPropsValue(container, 'content.contBgColor', '#fff');
44
+ this.contObjBorder = getContainerPropsValue(container, 'content.contBorder', {});
45
+ if(this.contObjBorder && this.contObjBorder.type === 'Y') {
46
+ if(this.contObjBorder.value && this.contObjBorder.value.width) {
47
+ this.contBorderWidth = Number(this.contObjBorder.value.width);
48
+ }
49
+ else this.contBorderWidth = 2;
50
+ }
51
+
52
+ //图片
53
+ this.imgRradius = getContainerPropsValue(container, 'content.imgRradius', '10');
54
+
55
+ },
56
+
57
+
58
+ //通信相关================
59
+ handleParentVm(cb){
60
+ cb(this)
61
+ },
62
+
63
+ onJfbReachBottom(options) {
64
+ console.log('event.onJfbReachBottom', options)
65
+ this.$refs['customList']['onCusReachBottom'](options)
66
+
67
+ },
68
+
69
+ onCusReload() {
70
+ console.log('event.onCusReload', this.options)
71
+ this.$refs['customList']['onCusReloadList'](this.options)
72
+ },
73
+ //通信相关================
74
+ },
75
+ }
76
+
@@ -0,0 +1,175 @@
1
+ export default {
2
+ "list": [
3
+ {
4
+ "type": "product",
5
+ "name": "蛋糕1",
6
+ "detail_url": {
7
+ "dir": "wtxsaas",
8
+ "host": "sandbox-website-05.jufubao.cn",
9
+ "path": "/main/order/detail",
10
+ "appType": "h5",
11
+ "site_id": "17928cc37788be02",
12
+ "site_url": "https://sandbox-website-05.jufubao.cn/wtxsaas/main/order/detail",
13
+ "frontPath": "/wtxsaas/main/order/detail",
14
+ "fixed_business_code": ""
15
+ },
16
+ "more_url": null,
17
+ "sort": 1,
18
+ "setting_id": 1,
19
+ "next_page_token": "a:2:{i:0;d:625.65704;i:1;s:8:\"60030065\";}",
20
+ "product_items": [
21
+ {
22
+ "brand_id": 100003,
23
+ "brand_name": "品牌jls0519",
24
+ "list_title": "3",
25
+ "market_price": 2000,
26
+ "market_tags": [],
27
+ "product_id": 60030143,
28
+ "product_name": "仅快递实物商品(北京廊坊支持配送)",
29
+ "product_type": "good",
30
+ "promo_price": 0,
31
+ "sale_num": 8,
32
+ "sale_price": 3000,
33
+ "status": "ok",
34
+ "thumb": "/uploads/20231215/b2ce0235129aa592044f96343f25c338.jpeg"
35
+ },
36
+ {
37
+ "brand_id": 20381,
38
+ "brand_name": "捷诚食品",
39
+ "list_title": "八瑞祥老北京酱肉1800g",
40
+ "market_price": 28800,
41
+ "market_tags": [],
42
+ "product_id": 60028946,
43
+ "product_name": "八瑞祥老北京酱肉1800g",
44
+ "product_type": "good",
45
+ "promo_price": 0,
46
+ "sale_num": 0,
47
+ "sale_price": 22003,
48
+ "status": "ok",
49
+ "thumb": "https://img.dangaoss.com/public/p/48/1/1271802_l.jpg"
50
+ },
51
+ {
52
+ "brand_id": 20591,
53
+ "brand_name": "于小菓",
54
+ "list_title": "桃山绿豆沙北京福饼260g",
55
+ "market_price": 12800,
56
+ "market_tags": [],
57
+ "product_id": 60017411,
58
+ "product_name": "桃山绿豆沙北京福饼260g",
59
+ "product_type": "good",
60
+ "promo_price": 0,
61
+ "sale_num": 0,
62
+ "sale_price": 11141,
63
+ "status": "ok",
64
+ "thumb": "https://img.dangaoss.com/public/p/83/14/1257977_l.jpg"
65
+ },
66
+ {
67
+ "brand_id": 30000,
68
+ "brand_name": "其他",
69
+ "list_title": "清代戏剧文化史论/北京大学明清研究丛书",
70
+ "market_price": 2600,
71
+ "market_tags": [],
72
+ "product_id": 60029756,
73
+ "product_name": "清代戏剧文化史论/北京大学明清研究丛书",
74
+ "product_type": "good",
75
+ "promo_price": 0,
76
+ "sale_num": 0,
77
+ "sale_price": 2195,
78
+ "status": "ok",
79
+ "thumb": "https://img1.winxuancdn.com/1305/10251305_9.jpg?1530683968642"
80
+ },
81
+ {
82
+ "brand_id": 30000,
83
+ "brand_name": "其他",
84
+ "list_title": "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库",
85
+ "market_price": 5000,
86
+ "market_tags": [],
87
+ "product_id": 60030080,
88
+ "product_name": "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库",
89
+ "product_type": "good",
90
+ "promo_price": 0,
91
+ "sale_num": 0,
92
+ "sale_price": 4219,
93
+ "status": "ok",
94
+ "thumb": "https://img2.winxuancdn.com/9564/10309564_9.jpg?1530754178039"
95
+ },
96
+ {
97
+ "brand_id": 30000,
98
+ "brand_name": "其他",
99
+ "list_title": "保险.社会保障与经济改革(孙祁祥文集)/北京大学经济学院教授文库",
100
+ "market_price": 5200,
101
+ "market_tags": [],
102
+ "product_id": 60030078,
103
+ "product_name": "保险.社会保障与经济改革(孙祁祥文集)/北京大学经济学院教授文库",
104
+ "product_type": "good",
105
+ "promo_price": 0,
106
+ "sale_num": 0,
107
+ "sale_price": 4388,
108
+ "status": "ok",
109
+ "thumb": "https://img3.winxuancdn.com/9416/10309416_9.jpg?1530754178039"
110
+ },
111
+ {
112
+ "brand_id": 30000,
113
+ "brand_name": "其他",
114
+ "list_title": "消费:拉动经济增长的引擎(刘方棫文集)/北京大学经济学院教授文库",
115
+ "market_price": 3500,
116
+ "market_tags": [],
117
+ "product_id": 60030082,
118
+ "product_name": "消费:拉动经济增长的引擎(刘方棫文集)/北京大学经济学院教授文库",
119
+ "product_type": "good",
120
+ "promo_price": 0,
121
+ "sale_num": 0,
122
+ "sale_price": 2954,
123
+ "status": "ok",
124
+ "thumb": "https://img0.winxuancdn.com/9574/10309574_800x800.jpg?1539223598404"
125
+ },
126
+ {
127
+ "brand_id": 20300,
128
+ "brand_name": "棒棒糖优选",
129
+ "list_title": "北镇熏鸡",
130
+ "market_price": 9900,
131
+ "market_tags": [],
132
+ "product_id": 60028786,
133
+ "product_name": "北镇熏鸡",
134
+ "product_type": "good",
135
+ "promo_price": 0,
136
+ "sale_num": 0,
137
+ "sale_price": 9810,
138
+ "status": "ok",
139
+ "thumb": "https://img.dangaoss.com/public/p/52/0/1350907_l.jpg"
140
+ },
141
+ {
142
+ "brand_id": 20390,
143
+ "brand_name": "京食食品",
144
+ "list_title": "【300元档】京食中秋礼盒",
145
+ "market_price": 30000,
146
+ "market_tags": [],
147
+ "product_id": 60029124,
148
+ "product_name": "【300元档】京食中秋礼盒",
149
+ "product_type": "good",
150
+ "promo_price": 0,
151
+ "sale_num": 0,
152
+ "sale_price": 30128,
153
+ "status": "ok",
154
+ "thumb": "https://img.dangaoss.com/public/p/31/14/1313662_l.jpg"
155
+ },
156
+ {
157
+ "brand_id": 30000,
158
+ "brand_name": "其他",
159
+ "list_title": "经济学理论及现实问题的思考/北京大学经济学院教授文库",
160
+ "market_price": 5200,
161
+ "market_tags": [],
162
+ "product_id": 60030065,
163
+ "product_name": "经济学理论及现实问题的思考/北京大学经济学院教授文库",
164
+ "product_type": "good",
165
+ "promo_price": 0,
166
+ "sale_num": 0,
167
+ "sale_price": 4388,
168
+ "status": "ok",
169
+ "thumb": "https://img1.winxuancdn.com/5643/10305643_9.jpg?1530754178022"
170
+ }
171
+ ]
172
+ }
173
+ ],
174
+ "request_id": "e554b48ac67480c3"
175
+ }