jufubao-base 1.0.174-beta1 → 1.0.174-beta10

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.
@@ -29,13 +29,8 @@
29
29
  @click="handleSwitchMenu(item)"
30
30
  >
31
31
  <view class="menu_inner"
32
- :style="[
33
- menuItemBoxStyle,
34
- item.value === tabId ? menuItemActiveStyle : menuItemStyle,
35
- {
36
- marginRight: i === showMenuList.length - 1 ? '0' : menuItemMargin + 'rpx',
37
- }
38
- ]"
32
+ :style="item.value === tabId ? menuItemActiveStyle : menuItemStyle"
33
+ :class="{isLast: i === showMenuList.length - 1}"
39
34
  >{{ item.label }}</view>
40
35
  </view>
41
36
  </view>
@@ -52,6 +47,7 @@
52
47
  @on-switch="handleSwitchMenu"
53
48
  ></all-list>
54
49
  <custom-list
50
+ v-else
55
51
  :tab-id="tabId"
56
52
  :keyword="keyword"
57
53
  :list-item-style="listItemStyle"
@@ -69,7 +65,7 @@
69
65
  <script>
70
66
  import XdSearchHistory from "@/components/XdSearchHistory/XdSearchHistory";
71
67
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
72
- import { jfbRootExec } from "@/utils/xd.event";
68
+ import { jfbRootExec, jfbRootFnExec } from "@/utils/xd.event";
73
69
  import JfbBaseTfkSearchMixin from "./JfbBaseTfkSearchMixin";
74
70
  import { getContainerPropsValue } from "@/utils/xd.base";
75
71
  import componentsMixins from "@/mixins/componentsMixins";
@@ -96,10 +92,11 @@
96
92
  componentsMixins, extsMixins, JfbBaseTfkSearchMixin,listMixins
97
93
  ],
98
94
  data() {
95
+ let keyword = ''
96
+ if(this.$configProject['isPreview']) keyword = '商品'
99
97
  return {
100
- hideMask: true,
101
98
  tabId: 'all', //cinema/film/shop/product
102
- keyword: '',
99
+ keyword: keyword,
103
100
  options:{},
104
101
  menuList: [],
105
102
  //公共样式
@@ -159,14 +156,12 @@
159
156
  backgroundColor: this.menuBgColor,
160
157
  })
161
158
  },
162
- menuItemBoxStyle(){
159
+ menuItemBoxPadding(){
163
160
  let padding = `${this.checkValue(this.menuItemPadding.top, 20)}rpx`;
164
161
  padding = `${padding} ${this.checkValue(this.menuItemPadding.right, 20)}rpx`;
165
162
  padding = `${padding} ${this.checkValue(this.menuItemPadding.bottom, 20)}rpx`;
166
163
  padding = `${padding} ${this.checkValue(this.menuItemPadding.left, 20)}rpx`;
167
- return this.styleObjectToString({
168
- padding
169
- })
164
+ return padding;
170
165
  },
171
166
  menuItemStyle(){
172
167
  let styleObj = {
@@ -175,6 +170,8 @@
175
170
  fontSize: this.menuTabColor['fontSize'] || '30rpx',
176
171
  fontWeight: this.menuTabColor['fontWeight'] || 'normal',
177
172
  borderWidth: this.menuBorderWidth + 'px',
173
+ padding: this.menuItemBoxPadding,
174
+ marginRight: this.menuItemMargin + 'rpx',
178
175
  }
179
176
 
180
177
  return this.styleObjectToString(styleObj)
@@ -193,7 +190,9 @@
193
190
  background: this.menuTabColor['actBgColor'] || 'transparent',
194
191
  fontSize: this.menuTabColor['actFontSize'] || '30rpx',
195
192
  fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
196
- borderBottom: `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`
193
+ borderBottom: `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`,
194
+ padding: this.menuItemBoxPadding,
195
+ marginRight: this.menuItemMargin + 'rpx',
197
196
  }
198
197
  return this.styleObjectToString(styleActiveObj)
199
198
  },
@@ -226,6 +225,7 @@
226
225
  },
227
226
  },
228
227
  created() {
228
+
229
229
  this.emitParent = new EmitParent({
230
230
  getParent: ()=>{
231
231
  return this;
@@ -305,15 +305,19 @@
305
305
 
306
306
  if(this.$configProject['isPreview']){
307
307
  this.menuList = this.searchScope;
308
- this.keyword = "搜索关键字";
309
308
  this.isPreview = true;
310
309
  }
311
310
  },
312
311
  handleSwitchMenu(item){
313
312
  this.tabId = item.value;
313
+ uni.pageScrollTo({
314
+ scrollTop: 0,
315
+ duration: 0
316
+ });
314
317
  },
315
318
  handleToSearch(item){
316
319
  this.keyword = item;
320
+ jfbRootFnExec(this, 'onCustomEvent')("baseTfkSearch@keyword", item);
317
321
  },
318
322
  onJfbScroll(options) {
319
323
  // console.log('event.onJfbScroll', options)
@@ -359,6 +363,10 @@
359
363
  overflow: auto;
360
364
  .menu_item{
361
365
  white-space: nowrap;
366
+
367
+ .isLast{
368
+ margin-right: 0;
369
+ }
362
370
  }
363
371
  }
364
372
  }
@@ -7,8 +7,7 @@ module.exports = {
7
7
  tab: "1@product@Y@2",
8
8
  type: "product",
9
9
  name: "蛋糕",
10
- detail_redirect_data:
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":""}',
10
+ detail_redirect_data: '{"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":""}',
12
11
  detail1_redirect_data: "",
13
12
  more_redirect_data: "",
14
13
  sort: 3,
@@ -37,7 +36,7 @@ module.exports = {
37
36
  market_price: 2600,
38
37
  market_tags: ['flashsale','hot','new', 'rec'],
39
38
  product_id: 60029756,
40
- product_name: "清代戏剧文化史论/北京大学明清研究丛书",
39
+ product_name: "清代戏剧文化史论/北京大学明清研究丛书商品",
41
40
  product_type: "good",
42
41
  promo_price: 0,
43
42
  sale_num: 0,
@@ -49,11 +48,11 @@ module.exports = {
49
48
  {
50
49
  brand_id: 30000,
51
50
  brand_name: "其他",
52
- list_title: "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库",
51
+ list_title: "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库商品",
53
52
  market_price: 5000,
54
53
  market_tags: [],
55
54
  product_id: 60030080,
56
- product_name: "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库",
55
+ product_name: "亚洲的崛起(傅骊元文集)/北京大学经济学院教授文库商品",
57
56
  product_type: "good",
58
57
  promo_price: 0,
59
58
  sale_num: 0,
@@ -65,13 +64,11 @@ module.exports = {
65
64
  {
66
65
  brand_id: 30000,
67
66
  brand_name: "其他",
68
- list_title:
69
- "保险.社会保障与经济改革(孙祁祥文集)/北京大学经济学院教授文库",
67
+ list_title: "保险.社会保障与经济改革(孙祁祥文集)/北京大商品学经济学院教授文库",
70
68
  market_price: 5200,
71
69
  market_tags: [],
72
70
  product_id: 60030078,
73
- product_name:
74
- "保险.社会保障与经济改革(孙祁祥文集)/北京大学经济学院教授文库",
71
+ product_name: "保险.社会保障与经济改革(孙祁祥文集)/北京大商品学经济学院教授文库",
75
72
  product_type: "good",
76
73
  promo_price: 0,
77
74
  sale_num: 0,
@@ -86,10 +83,8 @@ module.exports = {
86
83
  tab: "5@shop@N@1",
87
84
  type: "shop",
88
85
  name: "门店",
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":""}',
86
+ detail_redirect_data: '{"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":""}',
87
+ detail1_redirect_data: '{"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":""}',
93
88
  more_redirect_data: "",
94
89
  sort: 4,
95
90
  setting_id: 5,
@@ -97,7 +92,7 @@ module.exports = {
97
92
  items: [
98
93
  {
99
94
  brand_id: 20003,
100
- brand_name: "幸福西饼",
95
+ brand_name: "幸福西饼商品",
101
96
  brand_type: "MA",
102
97
  business_status: "1",
103
98
  consume_mode: ["STOD", "CODE", "SELL", "SELF"],
@@ -110,11 +105,9 @@ module.exports = {
110
105
  area_name: "",
111
106
  street_name: "",
112
107
  phone: "18843854566",
113
- resource_shop_id:
114
- "eyJyZXNvdXJjZV9zaG9wX2lkIjozMTg1NDY4LCJzaG9wX2lkIjo1MjY0OH0",
115
- resource_shop_name: "福司令渠道门店",
116
- shop_icon:
117
- "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/dda58a5983eeae3cfdea8bccc7cea714.jpg",
108
+ resource_shop_id: "eyJyZXNvdXJjZV9zaG9wX2lkIjozMTg1NDY4LCJzaG9wX2lkIjo1MjY0OH0",
109
+ resource_shop_name: "福司商品令渠道门店",
110
+ shop_icon: "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/dda58a5983eeae3cfdea8bccc7cea714.jpg",
118
111
  shop_id: 52648,
119
112
  shop_tags: [],
120
113
  stars: 0,
@@ -138,11 +131,9 @@ module.exports = {
138
131
  area_name: "",
139
132
  street_name: "",
140
133
  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",
134
+ resource_shop_id: "eyJyZXNvdXJjZV9zaG9wX2lkIjozMTg1NDY4LCJzaG9wX2lkqewqweH0",
135
+ resource_shop_name: "福司令商品渠道门店",
136
+ shop_icon: "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/dda58a5983eeae3cfdea8bccc7cea714.jpg",
146
137
  shop_id: 526428,
147
138
  shop_tags: [],
148
139
  stars: 0,
@@ -157,10 +148,8 @@ module.exports = {
157
148
  tab: "10@cinema@Y@1",
158
149
  type: "cinema",
159
150
  name: "影院",
160
- detail_redirect_data:
161
- '{"dir":"apply06","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/movie\\/suhedule","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply06\\/main\\/movie\\/suhedule","frontPath":"\\/apply06\\/main\\/movie\\/suhedule","fixed_business_code":""}',
162
- detail1_redirect_data:
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":""}',
151
+ detail_redirect_data: '{"dir":"apply06","host":"sandbox-website-05.jufubao.cn","path":"\\/main\\/movie\\/suhedule","appType":"h5","site_id":"17928cc37788be02","site_url":"https:\\/\\/sandbox-website-05.jufubao.cn\\/apply06\\/main\\/movie\\/suhedule","frontPath":"\\/apply06\\/main\\/movie\\/suhedule","fixed_business_code":""}',
152
+ detail1_redirect_data: '{"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":""}',
164
153
  more_redirect_data: "",
165
154
  sort: 1,
166
155
  setting_id: 10,
@@ -171,7 +160,7 @@ module.exports = {
171
160
  brand_id: 16,
172
161
  brand_name: "万达院线jls",
173
162
  cinema_id: 8000121,
174
- cinema_name: "电影门店jls-20231204(新建)北京",
163
+ cinema_name: "电影门店jls-20231204(新建)商品北京",
175
164
  cinema_type: ["SELL", "CODE"],
176
165
  cinema_type_name: ["线下核销", "电子码"],
177
166
  distance: "21.9km",
@@ -184,14 +173,12 @@ module.exports = {
184
173
  brand_id: 16,
185
174
  brand_name: "万达院线jls",
186
175
  cinema_id: 7,
187
- cinema_name:
188
- "聚福宝测试影院聚福宝测试影院聚福宝测试影院聚福宝测试影院",
176
+ cinema_name: "聚福宝影院商品",
189
177
  cinema_type: ["SEAT", "SELL"],
190
178
  cinema_type_name: ["在线选座", "线下核销"],
191
179
  distance: "20.8km",
192
180
  is_open: "Y",
193
- shop_icon:
194
- "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20221018/5c1f49a47055a452ac6c5a3efd9d5174.jpg"
181
+ shop_icon: "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20221018/5c1f49a47055a452ac6c5a3efd9d5174.jpg"
195
182
  }
196
183
  ]
197
184
  },
@@ -199,10 +186,8 @@ module.exports = {
199
186
  tab: "11@film@Y@1",
200
187
  type: "film",
201
188
  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":""}',
189
+ detail_redirect_data: '{"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":""}',
190
+ detail1_redirect_data: '{"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
191
  more_redirect_data: "",
207
192
  sort: 2,
208
193
  setting_id: 11,
@@ -213,13 +198,11 @@ module.exports = {
213
198
  director: "",
214
199
  is_can_buy: false,
215
200
  language: "汉语普通话",
216
- leading_role:
217
- "费翔,李雪健,黄渤,于适,陈牧驰,娜然,此沙,武亚凡,夏雨,袁泉,王洛勇,侯雯元,黄曦彦,李昀锐,杨玏,陈坤",
201
+ leading_role: "费翔,李雪健,黄渤,于适,陈牧驰,娜然,此沙,武亚凡,夏雨,袁泉,王洛勇,侯雯元,黄曦彦,李昀锐,杨玏,陈坤",
218
202
  open_time: 1689782400,
219
- poster:
220
- "https://gw.alicdn.com/tfscom/i1/O1CN01w8TjZl1xzSq3CothJ_!!6000000006514-0-alipicbeacon.jpg_320x320.jpg",
203
+ poster: "https://gw.alicdn.com/tfscom/i1/O1CN01w8TjZl1xzSq3CothJ_!!6000000006514-0-alipicbeacon.jpg_320x320.jpg",
221
204
  remark: "9.1分",
222
- show_name: "封神第一部",
205
+ show_name: "封神商品第一部",
223
206
  type: "剧情,奇幻"
224
207
  },
225
208
  {
@@ -227,13 +210,11 @@ module.exports = {
227
210
  director: "",
228
211
  is_can_buy: false,
229
212
  language: "汉语普通话",
230
- leading_role:
231
- "费翔,李雪健,黄渤,于适,陈牧驰,娜然,此沙,武亚凡,夏雨,袁泉,王洛勇,侯雯元,黄曦彦,李昀锐,杨玏,陈坤",
213
+ leading_role: "费翔,李雪健,黄渤,于适,陈牧驰,娜然,此沙,武亚凡,夏雨,袁泉,王洛勇,侯雯元,黄曦彦,李昀锐,杨玏,陈坤",
232
214
  open_time: 1689782400,
233
- poster:
234
- "https://gw.alicdn.com/tfscom/i1/O1CN01w8TjZl1xzSq3CothJ_!!6000000006514-0-alipicbeacon.jpg_320x320.jpg",
215
+ poster: "https://gw.alicdn.com/tfscom/i1/O1CN01w8TjZl1xzSq3CothJ_!!6000000006514-0-alipicbeacon.jpg_320x320.jpg",
235
216
  remark: "9.1分",
236
- show_name: "封神第二部",
217
+ show_name: "封神商品第二部",
237
218
  type: "剧情,奇幻"
238
219
  }
239
220
  ]
@@ -4,7 +4,7 @@ export default ($vm, str , keyword='', options={})=>{
4
4
  if(keyword === '') return str;
5
5
  try {
6
6
  let __option = {
7
- tag: 'text',
7
+ tag: 'span',
8
8
  color: 'red',
9
9
  weight: '500',
10
10
  };