jufubao-base 1.0.169-beta6 → 1.0.169-beta8
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.
- package/package.json +1 -1
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +8 -0
- package/src/components/JfbBaseTfkCardLogin/Attr.js +22 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +48 -19
- package/src/components/JfbBaseTfkSearch/AllList.vue +231 -0
- package/src/components/JfbBaseTfkSearch/Api.js +11 -42
- package/src/components/JfbBaseTfkSearch/Attr.js +125 -2
- package/src/components/JfbBaseTfkSearch/ContentCinema.vue +12 -2
- package/src/components/JfbBaseTfkSearch/{ContentItem.vue → ContentFilm.vue} +18 -4
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
- package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
- package/src/components/JfbBaseTfkSearch/CusAttr.js +2 -0
- package/src/components/JfbBaseTfkSearch/CustomList.vue +179 -18
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +132 -20
- package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
- package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +1 -2
- package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +52 -81
- package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
- package/src/components/JfbBaseTfkSearch/listMixins.js +71 -0
- package/src/components/JfbBaseTfkSearch/search.js +270 -152
|
@@ -5,18 +5,26 @@
|
|
|
5
5
|
<view class="content">
|
|
6
6
|
<view class="top">
|
|
7
7
|
<view class="title skeleton-item"></view>
|
|
8
|
-
<view class="brand skeleton-item"></view>
|
|
9
|
-
<view class="tags
|
|
8
|
+
<view class="brand skeleton-item" v-if="productConfig.is_show_brand==='Y'"></view>
|
|
9
|
+
<view class="tags">
|
|
10
|
+
<view class="skeleton-item" v-if="productConfig.showActivityPrice==='Y'"></view>
|
|
11
|
+
<template v-if="productConfig.isShowTag==='Y'">
|
|
12
|
+
<view class="skeleton-item"></view>
|
|
13
|
+
<view class="skeleton-item"></view>
|
|
14
|
+
<view class="skeleton-item"></view>
|
|
15
|
+
</template>
|
|
16
|
+
</view>
|
|
10
17
|
</view>
|
|
11
18
|
<view class="bottom">
|
|
12
|
-
<view class="price skeleton-item"></view>
|
|
13
|
-
<view class="orgPrice skeleton-item"></view>
|
|
14
|
-
<view class="cart
|
|
19
|
+
<view class="price skeleton-item" v-if="productConfig.isPrice==='Y'"></view>
|
|
20
|
+
<view class="orgPrice skeleton-item" v-if="productConfig.isPrice==='Y' && productConfig.isShowDiscount === 'Y'"></view>
|
|
21
|
+
<view class="cart">
|
|
22
|
+
<view class="skeleton-item" v-if="productConfig.isAddCart === 'Y'"></view>
|
|
23
|
+
</view>
|
|
15
24
|
</view>
|
|
16
25
|
</view>
|
|
17
26
|
</template>
|
|
18
27
|
<template v-if="cell===2">
|
|
19
|
-
|
|
20
28
|
</template>
|
|
21
29
|
</view>
|
|
22
30
|
</template>
|
|
@@ -66,19 +74,44 @@ export default {
|
|
|
66
74
|
|
|
67
75
|
& .title {
|
|
68
76
|
.skeleton-item(100%, 60rpx);
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& .brand {
|
|
81
|
+
margin-top: 10rpx;
|
|
82
|
+
.skeleton-item(70%, 25rpx);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tags {
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: flex-start;
|
|
88
|
+
align-items: center;
|
|
89
|
+
flex-flow: wrap;
|
|
90
|
+
margin-top: 10rpx;
|
|
91
|
+
|
|
92
|
+
& > view {
|
|
93
|
+
.skeleton-item(80rpx, 30rpx);
|
|
94
|
+
margin-left: 10rpx;
|
|
95
|
+
&:first-child {
|
|
96
|
+
margin-left: 0;
|
|
97
|
+
width: 120rpx;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
69
100
|
}
|
|
70
101
|
}
|
|
102
|
+
|
|
71
103
|
.bottom {
|
|
72
104
|
display: flex;
|
|
73
|
-
justify-content: flex-
|
|
105
|
+
justify-content: flex-end;
|
|
74
106
|
align-content: center;
|
|
75
107
|
align-items: center;
|
|
76
108
|
width: 100%;
|
|
77
|
-
height:
|
|
109
|
+
height: 40rpx;
|
|
110
|
+
margin-top: 20rpx;
|
|
78
111
|
|
|
79
112
|
& .price {
|
|
80
113
|
flex-shrink: 0;
|
|
81
|
-
.skeleton-item(
|
|
114
|
+
.skeleton-item(120rpx, 35rpx);
|
|
82
115
|
}
|
|
83
116
|
|
|
84
117
|
& .orgPrice {
|
|
@@ -86,81 +119,19 @@ export default {
|
|
|
86
119
|
margin-left: 20rpx;
|
|
87
120
|
.skeleton-item(130rpx, 20rpx);
|
|
88
121
|
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
122
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
flex: 1;
|
|
104
|
-
|
|
105
|
-
.title {
|
|
106
|
-
.skeleton-item(100%, 50rpx);
|
|
107
|
-
margin-bottom: 20rpx;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.director,.star,.type {
|
|
111
|
-
.skeleton-item(100%, 40rpx);
|
|
112
|
-
margin-bottom: 10rpx;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&-btn {
|
|
117
|
-
display: flex;
|
|
118
|
-
align-content: space-between;
|
|
119
|
-
align-items: flex-end;
|
|
120
|
-
justify-content: flex-end;
|
|
121
|
-
flex-flow: wrap;
|
|
122
|
-
height: 100%;
|
|
123
|
-
box-sizing: border-box;
|
|
124
|
-
padding: 10rpx 0;
|
|
125
|
-
width: 130rpx;
|
|
126
|
-
flex-shrink: 0;
|
|
127
|
-
|
|
128
|
-
& > .score {
|
|
129
|
-
.skeleton-item(100rpx, 40rpx);
|
|
130
|
-
}
|
|
131
|
-
& > .btn {
|
|
132
|
-
.skeleton-item(130rpx, 60rpx);
|
|
123
|
+
& .cart {
|
|
124
|
+
flex: 1;
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: flex-end;
|
|
127
|
+
align-items: center;
|
|
128
|
+
& > view {
|
|
129
|
+
.skeleton-item(40rpx, 40rpx);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
&:last-child {
|
|
137
|
-
margin-bottom: 0!important;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
//影院列表骨架
|
|
141
|
-
&.list {
|
|
142
|
-
display: block;
|
|
143
|
-
}
|
|
144
|
-
& > .title {
|
|
145
|
-
.skeleton-item(100%, 60rpx);
|
|
146
|
-
margin-bottom: 20rpx;
|
|
147
|
-
}
|
|
148
|
-
& > .address {
|
|
149
|
-
.skeleton-item(100%, 40rpx);
|
|
150
|
-
margin-bottom: 20rpx;
|
|
151
|
-
}
|
|
152
|
-
& > .bottom {
|
|
153
|
-
display: flex;
|
|
154
|
-
justify-content: space-between;
|
|
155
|
-
align-items: center;
|
|
156
|
-
padding-top: 30rpx;
|
|
157
|
-
|
|
158
|
-
& > .local {
|
|
159
|
-
.skeleton-item(120rpx, 30rpx);
|
|
160
|
-
}
|
|
161
|
-
& > .btn {
|
|
162
|
-
.skeleton-item(150rpx, 70rpx);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
136
|
}
|
|
166
137
|
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
export default ($vm, str , keyword='', options={})=>{
|
|
4
|
+
if(keyword === '') return str;
|
|
5
|
+
try {
|
|
6
|
+
let __option = {
|
|
7
|
+
tag: 'text',
|
|
8
|
+
color: 'red',
|
|
9
|
+
weight: '500',
|
|
10
|
+
};
|
|
11
|
+
if ($vm.$xdUniHelper.checkVarType(keyword) === 'array') {
|
|
12
|
+
keyword = keyword.join('|');
|
|
13
|
+
} else if ($vm.$xdUniHelper.checkVarType(keyword) === 'string') {
|
|
14
|
+
keyword = keyword.trim();
|
|
15
|
+
}
|
|
16
|
+
let opt = Object.assign({}, __option, options);
|
|
17
|
+
let reg = new RegExp(`(${keyword})`, 'ig');
|
|
18
|
+
return str.replace(reg, `<${opt.tag} style="color:${opt.color};font-weight: ${opt.weight}">$1</${opt.tag}>`);
|
|
19
|
+
} catch (e) {
|
|
20
|
+
console.error(e)
|
|
21
|
+
return str;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -22,6 +22,7 @@ export default {
|
|
|
22
22
|
|
|
23
23
|
},
|
|
24
24
|
methods:{
|
|
25
|
+
|
|
25
26
|
cusInit(container){
|
|
26
27
|
this.isShowExchange = getContainerPropsValue(container, 'content.isShowExchange', 'N');
|
|
27
28
|
|
|
@@ -71,6 +72,76 @@ export default {
|
|
|
71
72
|
this.$refs['customList']['onCusReloadList'](this.options)
|
|
72
73
|
},
|
|
73
74
|
//通信相关================
|
|
75
|
+
|
|
76
|
+
//cinema/film/shop/product
|
|
77
|
+
|
|
78
|
+
//影片列表事件
|
|
79
|
+
handleFilmDetail(film_id,film){
|
|
80
|
+
// console.warn(`toFilmInfo(影片详情).${film_id}`)
|
|
81
|
+
// if(!this.fimeDetailPath) {
|
|
82
|
+
// console.error('未配置链接');
|
|
83
|
+
// return;
|
|
84
|
+
// }
|
|
85
|
+
// if( this.isPreview) return;
|
|
86
|
+
// this.$xdUniHelper.navigateTo({
|
|
87
|
+
// url: this.fimeDetailPath + `?film_id=${film_id}`
|
|
88
|
+
// })
|
|
89
|
+
},
|
|
90
|
+
handleBuy(film_id,film){
|
|
91
|
+
// console.warn(`toBuyChooseCinema(选择影院).${film_id}`)
|
|
92
|
+
// if(!this.buyPath) {
|
|
93
|
+
// console.error('未配置链接');
|
|
94
|
+
// return;
|
|
95
|
+
// }
|
|
96
|
+
// if( this.isPreview) return;
|
|
97
|
+
// this.$xdUniHelper.navigateTo({
|
|
98
|
+
// url: this.buyPath + `?film_id=${film_id}`
|
|
99
|
+
// })
|
|
100
|
+
},
|
|
101
|
+
//影片列表事件
|
|
102
|
+
|
|
103
|
+
//影院列表事件
|
|
104
|
+
handleSchedule(item, cinema){
|
|
105
|
+
// console.warn(`handleSchedule(选择排期).${item.cinema_id}`)
|
|
106
|
+
// if(!this.onlinePath) {
|
|
107
|
+
// console.error('未配置链接');
|
|
108
|
+
// return;
|
|
109
|
+
// }
|
|
110
|
+
// if( this.isPreview) return;
|
|
111
|
+
// this.$xdUniHelper.navigateTo({
|
|
112
|
+
// url: this.onlinePath + `?cinema_id=${item.cinema_id}`,
|
|
113
|
+
// });
|
|
114
|
+
},
|
|
115
|
+
handleCodeDetail(item, cinema){
|
|
116
|
+
// console.warn(`handleCodeDetail(选择电子码列表).${item.cinema_id}`)
|
|
117
|
+
// if(!this.codePath) {
|
|
118
|
+
// console.error('未配置链接');
|
|
119
|
+
// return;
|
|
120
|
+
// }
|
|
121
|
+
// if( this.isPreview) return;
|
|
122
|
+
// this.$xdUniHelper.navigateTo({
|
|
123
|
+
// url: this.codePath + `?cinema_id=${item.cinema_id}`,
|
|
124
|
+
// });
|
|
125
|
+
},
|
|
126
|
+
handleCashierDetail(item, cinema){
|
|
127
|
+
//todo
|
|
128
|
+
},
|
|
129
|
+
//影院列表事件
|
|
130
|
+
|
|
131
|
+
//门店列表事件
|
|
132
|
+
handleShopJhd(item, shop){
|
|
133
|
+
debugger
|
|
134
|
+
},
|
|
135
|
+
handleShopDetail(item, shop){
|
|
136
|
+
debugger
|
|
137
|
+
},
|
|
138
|
+
//门店列表事件
|
|
139
|
+
|
|
140
|
+
//商品链接事件
|
|
141
|
+
handleProductDetail(item, product){
|
|
142
|
+
debugger
|
|
143
|
+
}
|
|
144
|
+
//商品链接事件
|
|
74
145
|
},
|
|
75
146
|
}
|
|
76
147
|
|