jufubao-base 1.0.169-beta12 → 1.0.169-beta13
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/Attr.js +1 -1
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +3 -2
- package/src/components/JfbBaseTfkSearch/AllList.vue +55 -10
- package/src/components/JfbBaseTfkSearch/Attr.js +124 -4
- package/src/components/JfbBaseTfkSearch/ContentFilm.vue +2 -4
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +3 -1
- package/src/components/JfbBaseTfkSearch/CustomList.vue +16 -16
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +18 -1
- package/src/components/JfbBaseTfkSearch/Mock.js +182 -30
- package/src/components/JfbBaseTfkSearch/listMixins.js +72 -44
- package/src/components/JfbBaseTfkSearch/search.js +0 -293
|
@@ -4,15 +4,16 @@ module.exports = {
|
|
|
4
4
|
getTfkSearchList: {
|
|
5
5
|
list: [
|
|
6
6
|
{
|
|
7
|
+
tab: "1@product@Y@2",
|
|
7
8
|
type: "product",
|
|
8
9
|
name: "蛋糕",
|
|
9
10
|
detail_redirect_data:
|
|
10
|
-
'{"dir":"
|
|
11
|
+
'{"dir":"market","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/mall\\/detail","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/market\\/main\\/mall\\/detail","frontPath":"\\/market\\/main\\/mall\\/detail","fixed_business_code":""}',
|
|
11
12
|
detail1_redirect_data: "",
|
|
12
13
|
more_redirect_data: "",
|
|
13
|
-
sort:
|
|
14
|
+
sort: 3,
|
|
14
15
|
setting_id: 1,
|
|
15
|
-
next_page_token: 'a:2:{i:0;d:
|
|
16
|
+
next_page_token: 'a:2:{i:0;d:704.99896;i:1;s:8:"60030078";}',
|
|
16
17
|
items: [
|
|
17
18
|
{
|
|
18
19
|
brand_id: 100003,
|
|
@@ -28,39 +29,132 @@ module.exports = {
|
|
|
28
29
|
sale_price: 3000,
|
|
29
30
|
status: "ok",
|
|
30
31
|
thumb: "/uploads/20231215/b2ce0235129aa592044f96343f25c338.jpeg"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
brand_id: 30000,
|
|
35
|
+
brand_name: "其他",
|
|
36
|
+
list_title: "清代戏剧文化史论/北京大学明清研究丛书",
|
|
37
|
+
market_price: 2600,
|
|
38
|
+
market_tags: [],
|
|
39
|
+
product_id: 60029756,
|
|
40
|
+
product_name: "清代戏剧文化史论/北京大学明清研究丛书",
|
|
41
|
+
product_type: "good",
|
|
42
|
+
promo_price: 0,
|
|
43
|
+
sale_num: 0,
|
|
44
|
+
sale_price: 2195,
|
|
45
|
+
status: "ok",
|
|
46
|
+
thumb:
|
|
47
|
+
"https://img1.winxuancdn.com/1305/10251305_9.jpg?1530683968642"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
brand_id: 30000,
|
|
51
|
+
brand_name: "其他",
|
|
52
|
+
list_title: "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库",
|
|
53
|
+
market_price: 5000,
|
|
54
|
+
market_tags: [],
|
|
55
|
+
product_id: 60030080,
|
|
56
|
+
product_name: "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库",
|
|
57
|
+
product_type: "good",
|
|
58
|
+
promo_price: 0,
|
|
59
|
+
sale_num: 0,
|
|
60
|
+
sale_price: 4219,
|
|
61
|
+
status: "ok",
|
|
62
|
+
thumb:
|
|
63
|
+
"https://img2.winxuancdn.com/9564/10309564_9.jpg?1530754178039"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
brand_id: 30000,
|
|
67
|
+
brand_name: "其他",
|
|
68
|
+
list_title:
|
|
69
|
+
"保险.社会保障与经济改革(孙祁祥文集)/北京大学经济学院教授文库",
|
|
70
|
+
market_price: 5200,
|
|
71
|
+
market_tags: [],
|
|
72
|
+
product_id: 60030078,
|
|
73
|
+
product_name:
|
|
74
|
+
"保险.社会保障与经济改革(孙祁祥文集)/北京大学经济学院教授文库",
|
|
75
|
+
product_type: "good",
|
|
76
|
+
promo_price: 0,
|
|
77
|
+
sale_num: 0,
|
|
78
|
+
sale_price: 4388,
|
|
79
|
+
status: "ok",
|
|
80
|
+
thumb:
|
|
81
|
+
"https://img3.winxuancdn.com/9416/10309416_9.jpg?1530754178039"
|
|
31
82
|
}
|
|
32
83
|
]
|
|
33
84
|
},
|
|
34
85
|
{
|
|
86
|
+
tab: "5@shop@N@1",
|
|
35
87
|
type: "shop",
|
|
36
88
|
name: "门店",
|
|
37
|
-
detail_redirect_data:
|
|
38
|
-
|
|
89
|
+
detail_redirect_data:
|
|
90
|
+
'{"dir":"market","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/cake\\/storedetail","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/market\\/main\\/cake\\/storedetail","frontPath":"\\/market\\/main\\/cake\\/storedetail","fixed_business_code":""}',
|
|
91
|
+
detail1_redirect_data:
|
|
92
|
+
'{"dir":"market","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/cashier\\/index","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/market\\/main\\/cashier\\/index","frontPath":"\\/market\\/main\\/cashier\\/index","fixed_business_code":""}',
|
|
39
93
|
more_redirect_data: "",
|
|
40
|
-
sort:
|
|
94
|
+
sort: 4,
|
|
41
95
|
setting_id: 5,
|
|
42
|
-
next_page_token: "a:
|
|
96
|
+
next_page_token: "a:2:{i:0;d:20670.991802209974;i:1;d:0;}",
|
|
43
97
|
items: [
|
|
44
98
|
{
|
|
45
|
-
brand_id:
|
|
46
|
-
brand_name: "",
|
|
99
|
+
brand_id: 20003,
|
|
100
|
+
brand_name: "幸福西饼",
|
|
101
|
+
brand_type: "MA",
|
|
102
|
+
business_status: "1",
|
|
103
|
+
consume_mode: ["STOD", "CODE", "SELL", "SELF"],
|
|
104
|
+
consume_mode_name: "",
|
|
105
|
+
distance: "21km",
|
|
106
|
+
is_support_jhd: false,
|
|
107
|
+
address: "河北廊坊市三河市燕郊镇河北廊坊燕郊润旭",
|
|
108
|
+
province_name: "",
|
|
109
|
+
city_name: "",
|
|
110
|
+
area_name: "",
|
|
111
|
+
street_name: "",
|
|
112
|
+
phone: "18843854566",
|
|
113
|
+
resource_shop_id:
|
|
114
|
+
"eyJyZXNvdXJjZV9zaG9wX2lkIjozMTg1NDY4LCJzaG9wX2lkIjo1MjY0OH0",
|
|
115
|
+
resource_shop_name: "福司令渠道门店",
|
|
47
116
|
shop_icon:
|
|
48
|
-
"https://
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
117
|
+
"https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/dda58a5983eeae3cfdea8bccc7cea714.jpg",
|
|
118
|
+
shop_id: 52648,
|
|
119
|
+
shop_tags: [],
|
|
120
|
+
stars: 0,
|
|
121
|
+
time_slot_name: "08:00-21:00",
|
|
122
|
+
params: {
|
|
123
|
+
version: 2
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
brand_id: 20004,
|
|
128
|
+
brand_name: "幸福西饼",
|
|
129
|
+
brand_type: "MA",
|
|
130
|
+
business_status: "1",
|
|
131
|
+
consume_mode: ["STOD", "CODE", "SELL", "SELF"],
|
|
54
132
|
consume_mode_name: "",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
133
|
+
distance: "21km",
|
|
134
|
+
is_support_jhd: false,
|
|
135
|
+
address: "河北廊坊市三河市燕郊镇河北廊坊燕郊润旭",
|
|
136
|
+
province_name: "",
|
|
137
|
+
city_name: "",
|
|
138
|
+
area_name: "",
|
|
139
|
+
street_name: "",
|
|
140
|
+
phone: "18843854566",
|
|
141
|
+
resource_shop_id:
|
|
142
|
+
"eyJyZXNvdXJjZV9zaG9wX2lkIjozMTg1NDY4LCJzaG9wX2lkqewqweH0",
|
|
143
|
+
resource_shop_name: "福司令渠道门店",
|
|
144
|
+
shop_icon:
|
|
145
|
+
"https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/dda58a5983eeae3cfdea8bccc7cea714.jpg",
|
|
146
|
+
shop_id: 526428,
|
|
147
|
+
shop_tags: [],
|
|
148
|
+
stars: 0,
|
|
149
|
+
time_slot_name: "08:00-21:00",
|
|
150
|
+
params: {
|
|
151
|
+
version: 2
|
|
152
|
+
}
|
|
60
153
|
}
|
|
61
154
|
]
|
|
62
155
|
},
|
|
63
156
|
{
|
|
157
|
+
tab: "10@cinema@Y@1",
|
|
64
158
|
type: "cinema",
|
|
65
159
|
name: "影院",
|
|
66
160
|
detail_redirect_data:
|
|
@@ -68,21 +162,79 @@ module.exports = {
|
|
|
68
162
|
detail1_redirect_data:
|
|
69
163
|
'{"dir":"apply06","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/movie\\/cdetailnew","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply06\\/main\\/movie\\/cdetailnew","frontPath":"\\/apply06\\/main\\/movie\\/cdetailnew","fixed_business_code":""}',
|
|
70
164
|
more_redirect_data: "",
|
|
71
|
-
sort:
|
|
165
|
+
sort: 1,
|
|
72
166
|
setting_id: 10,
|
|
73
167
|
next_page_token: 1,
|
|
74
168
|
items: [
|
|
75
169
|
{
|
|
76
|
-
address: "
|
|
77
|
-
brand_id:
|
|
78
|
-
brand_name: "",
|
|
79
|
-
cinema_id:
|
|
80
|
-
cinema_name: "
|
|
81
|
-
cinema_type: ["
|
|
82
|
-
cinema_type_name: ["
|
|
83
|
-
distance: "",
|
|
170
|
+
address: "河北省廊坊市三河市燕郊经济技术开发区汉王路34号",
|
|
171
|
+
brand_id: 16,
|
|
172
|
+
brand_name: "万达院线jls",
|
|
173
|
+
cinema_id: 8000121,
|
|
174
|
+
cinema_name: "电影门店jls-20231204(新建)北京",
|
|
175
|
+
cinema_type: ["SELL", "CODE"],
|
|
176
|
+
cinema_type_name: ["线下核销", "电子码"],
|
|
177
|
+
distance: "21.9km",
|
|
84
178
|
is_open: "Y",
|
|
85
|
-
shop_icon:
|
|
179
|
+
shop_icon:
|
|
180
|
+
"https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20221018/5c1f49a47055a452ac6c5a3efd9d5174.jpg"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
address: "燕高路西侧实验小学南侧",
|
|
184
|
+
brand_id: 16,
|
|
185
|
+
brand_name: "万达院线jls",
|
|
186
|
+
cinema_id: 7,
|
|
187
|
+
cinema_name:
|
|
188
|
+
"聚福宝测试影院聚福宝测试影院聚福宝测试影院聚福宝测试影院",
|
|
189
|
+
cinema_type: ["SEAT", "SELL"],
|
|
190
|
+
cinema_type_name: ["在线选座", "线下核销"],
|
|
191
|
+
distance: "20.8km",
|
|
192
|
+
is_open: "Y",
|
|
193
|
+
shop_icon:
|
|
194
|
+
"https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20221018/5c1f49a47055a452ac6c5a3efd9d5174.jpg"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
tab: "11@film@Y@1",
|
|
200
|
+
type: "film",
|
|
201
|
+
name: "影片",
|
|
202
|
+
detail_redirect_data:
|
|
203
|
+
'{"dir":"market","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/movie\\/choose","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/market\\/main\\/movie\\/choose","frontPath":"\\/market\\/main\\/movie\\/choose","fixed_business_code":""}',
|
|
204
|
+
detail1_redirect_data:
|
|
205
|
+
'{"dir":"market","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/movie\\/detail","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/market\\/main\\/movie\\/detail","frontPath":"\\/market\\/main\\/movie\\/detail","fixed_business_code":""}',
|
|
206
|
+
more_redirect_data: "",
|
|
207
|
+
sort: 2,
|
|
208
|
+
setting_id: 11,
|
|
209
|
+
next_page_token: 1,
|
|
210
|
+
items: [
|
|
211
|
+
{
|
|
212
|
+
film_id: 130,
|
|
213
|
+
director: "",
|
|
214
|
+
is_can_buy: false,
|
|
215
|
+
language: "汉语普通话",
|
|
216
|
+
leading_role:
|
|
217
|
+
"费翔,李雪健,黄渤,于适,陈牧驰,娜然,此沙,武亚凡,夏雨,袁泉,王洛勇,侯雯元,黄曦彦,李昀锐,杨玏,陈坤",
|
|
218
|
+
open_time: 1689782400,
|
|
219
|
+
poster:
|
|
220
|
+
"https://gw.alicdn.com/tfscom/i1/O1CN01w8TjZl1xzSq3CothJ_!!6000000006514-0-alipicbeacon.jpg_320x320.jpg",
|
|
221
|
+
remark: "9.1分",
|
|
222
|
+
show_name: "封神第一部",
|
|
223
|
+
type: "剧情,奇幻"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
film_id: 131,
|
|
227
|
+
director: "",
|
|
228
|
+
is_can_buy: false,
|
|
229
|
+
language: "汉语普通话",
|
|
230
|
+
leading_role:
|
|
231
|
+
"费翔,李雪健,黄渤,于适,陈牧驰,娜然,此沙,武亚凡,夏雨,袁泉,王洛勇,侯雯元,黄曦彦,李昀锐,杨玏,陈坤",
|
|
232
|
+
open_time: 1689782400,
|
|
233
|
+
poster:
|
|
234
|
+
"https://gw.alicdn.com/tfscom/i1/O1CN01w8TjZl1xzSq3CothJ_!!6000000006514-0-alipicbeacon.jpg_320x320.jpg",
|
|
235
|
+
remark: "9.1分",
|
|
236
|
+
show_name: "封神第二部",
|
|
237
|
+
type: "剧情,奇幻"
|
|
86
238
|
}
|
|
87
239
|
]
|
|
88
240
|
}
|
|
@@ -78,52 +78,40 @@ export default {
|
|
|
78
78
|
//cinema/film/shop/product
|
|
79
79
|
|
|
80
80
|
//影片列表事件
|
|
81
|
-
handleFilmDetail(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// this.$xdUniHelper.navigateTo({
|
|
89
|
-
// url: this.fimeDetailPath + `?film_id=${film_id}`
|
|
90
|
-
// })
|
|
81
|
+
handleFilmDetail(item,film){
|
|
82
|
+
console.warn(`handleFilmDetail(影片详情).${item.film_id}`)
|
|
83
|
+
this.checkUrlError(item, film,(url)=>{
|
|
84
|
+
url = url + `?film_id=${item.film_id}`;
|
|
85
|
+
console.warn(`handleFilmDetail.url:${url}`)
|
|
86
|
+
this.toLink(url)
|
|
87
|
+
},'detail1_redirect_data');
|
|
91
88
|
},
|
|
92
|
-
handleBuy(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// this.$xdUniHelper.navigateTo({
|
|
100
|
-
// url: this.buyPath + `?film_id=${film_id}`
|
|
101
|
-
// })
|
|
89
|
+
handleBuy(item,film){
|
|
90
|
+
console.warn(`handleBuy(购买详情).${item.film_id}`)
|
|
91
|
+
this.checkUrlError(item, film,(url)=>{
|
|
92
|
+
url = url + `?film_id=${item.film_id}`;
|
|
93
|
+
console.warn(`handleBuy.url:${url}`)
|
|
94
|
+
this.toLink(url)
|
|
95
|
+
});
|
|
102
96
|
},
|
|
103
97
|
//影片列表事件
|
|
104
98
|
|
|
105
99
|
//影院列表事件
|
|
106
100
|
handleSchedule(item, cinema){
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
// this.$xdUniHelper.navigateTo({
|
|
114
|
-
// url: this.onlinePath + `?cinema_id=${item.cinema_id}`,
|
|
115
|
-
// });
|
|
101
|
+
console.warn(`handleSchedule(去排期页面).${item.cinema_id}`);
|
|
102
|
+
this.checkUrlError(item, cinema,(url)=>{
|
|
103
|
+
url = url + `?cinema_id=${item.cinema_id}`;
|
|
104
|
+
console.warn(`handleSchedule.url:${url}`)
|
|
105
|
+
this.toLink(url)
|
|
106
|
+
});
|
|
116
107
|
},
|
|
117
108
|
handleCodeDetail(item, cinema){
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
// this.$xdUniHelper.navigateTo({
|
|
125
|
-
// url: this.codePath + `?cinema_id=${item.cinema_id}`,
|
|
126
|
-
// });
|
|
109
|
+
console.warn(`handleCodeDetail(电子列表).${item.cinema_id}`);
|
|
110
|
+
this.checkUrlError(item, cinema,(url)=>{
|
|
111
|
+
url = url + `?cinema_id=${item.cinema_id}`;
|
|
112
|
+
console.warn(`handleSchedule.url:${url}`)
|
|
113
|
+
this.toLink(url)
|
|
114
|
+
},'detail1_redirect_data');
|
|
127
115
|
},
|
|
128
116
|
handleCashierDetail(item, cinema){
|
|
129
117
|
//todo
|
|
@@ -132,22 +120,62 @@ export default {
|
|
|
132
120
|
|
|
133
121
|
//门店列表事件
|
|
134
122
|
handleShopJhd(item, shop){
|
|
135
|
-
|
|
123
|
+
console.warn(`handleShopJhd(去核销).${item.resource_shop_name}`)
|
|
124
|
+
this.checkUrlError(item, shop,(url)=>{
|
|
125
|
+
let params = {
|
|
126
|
+
'x-params':Base64.encodeURI(`shop_id:${item.shop_id}`),
|
|
127
|
+
'x-jfb-os':'jhd',
|
|
128
|
+
}
|
|
129
|
+
params = this.$xdUniHelper.jsonToParams(params);
|
|
130
|
+
url = url + `?${params}`;
|
|
131
|
+
console.warn(`handleShopJhd.url:${url}`)
|
|
132
|
+
this.toLink(url)
|
|
133
|
+
},'detail1_redirect_data');
|
|
136
134
|
},
|
|
137
135
|
handleShopDetail(item, shop){
|
|
138
|
-
|
|
136
|
+
console.warn(`handleShopDetail(店铺详情).${item.resource_shop_name}`)
|
|
137
|
+
this.checkUrlError(item, shop,(url)=>{
|
|
138
|
+
url = url + `?resource_shop_id=${item.resource_shop_id}`;
|
|
139
|
+
if(item['exts_params']) {
|
|
140
|
+
url = url + `&exts_params=${item['exts_params']}`
|
|
141
|
+
}
|
|
142
|
+
console.warn(`handleShopDetail.url:${url}`)
|
|
143
|
+
this.toLink(url)
|
|
144
|
+
});
|
|
139
145
|
},
|
|
140
146
|
//门店列表事件
|
|
141
147
|
|
|
142
148
|
//商品链接事件
|
|
143
149
|
handleProductDetail(item, product){
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
console.warn(`handleProductDetail(商品详情).${item.product_id}`)
|
|
151
|
+
this.checkUrlError(item, product,(url)=>{
|
|
152
|
+
url = url + `?product_id=${item.product_id}`;
|
|
153
|
+
console.warn(`handleProductDetail.url:${url}`)
|
|
154
|
+
this.toLink(url)
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
//商品链接事件
|
|
146
158
|
|
|
159
|
+
//检查错误跳转
|
|
160
|
+
checkUrlError(item, config, cb , key='detail_redirect_data'){
|
|
161
|
+
if(!config[key]) {
|
|
162
|
+
console.error('未配置链接');
|
|
163
|
+
return false;
|
|
147
164
|
}
|
|
148
|
-
|
|
165
|
+
if( this.isPreview) return false;
|
|
166
|
+
let url = this.checkUrlIsValid(config[key]);
|
|
167
|
+
if(url === null) {
|
|
168
|
+
console.error('配置链接格式错误');
|
|
169
|
+
console.warn(`配置链接:${config[key]}`);
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
cb(url)
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
//跳转页面
|
|
176
|
+
toLink(url) {
|
|
177
|
+
this.$xdUniHelper.navigateTo({url});
|
|
149
178
|
}
|
|
150
|
-
//商品链接事件
|
|
151
179
|
},
|
|
152
180
|
}
|
|
153
181
|
|