jufubao-base 1.0.169-beta8 → 1.0.169
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/JfbBaseLogin/Attr.js +510 -1147
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +63 -364
- package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +4 -2
- package/src/components/JfbBaseTfkCardBind/Api.js +30 -49
- package/src/components/JfbBaseTfkCardBind/Attr.js +38 -635
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +22 -589
- package/src/components/JfbBaseTfkCardBind/Mock.js +9 -19
- package/src/components/JfbBaseTfkCardDetail/Api.js +32 -19
- package/src/components/JfbBaseTfkCardDetail/Attr.js +33 -692
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +23 -630
- package/src/components/JfbBaseTfkCardDetail/Mock.js +11 -151
- package/src/components/JfbBaseTfkCardLogin/Api.js +34 -19
- package/src/components/JfbBaseTfkCardLogin/Attr.js +33 -885
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +16 -729
- package/src/components/JfbBaseTfkCardLogin/Mock.js +11 -721
- package/src/components/JfbBaseTfkSearch/Api.js +42 -11
- package/src/components/JfbBaseTfkSearch/Attr.js +33 -143
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +23 -167
- package/src/components/JfbBaseTfkSearch/Mock.js +11 -90
- package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +0 -271
- package/src/components/JfbBaseTfkSearch/AllList.vue +0 -231
- package/src/components/JfbBaseTfkSearch/ContentCinema.vue +0 -157
- package/src/components/JfbBaseTfkSearch/ContentFilm.vue +0 -179
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +0 -308
- package/src/components/JfbBaseTfkSearch/ContentShop.vue +0 -184
- package/src/components/JfbBaseTfkSearch/CusAttr.js +0 -203
- package/src/components/JfbBaseTfkSearch/CustomList.vue +0 -382
- package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +0 -45
- package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +0 -109
- package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +0 -137
- package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +0 -81
- package/src/components/JfbBaseTfkSearch/handleKeyword.js +0 -24
- package/src/components/JfbBaseTfkSearch/listMixins.js +0 -147
- package/src/components/JfbBaseTfkSearch/search.js +0 -293
|
@@ -7,19 +7,50 @@
|
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
9
|
//设置方法名字当别忘记加上【模块名字】:Tfk
|
|
10
|
-
mapFnName: '
|
|
11
|
-
title: '
|
|
12
|
-
path: '/
|
|
10
|
+
mapFnName: 'getTfkByIdFilmSquate',
|
|
11
|
+
title: '获取电影广场列表',
|
|
12
|
+
path: '/api/account/film/list-film-square',
|
|
13
13
|
isRule: false,
|
|
14
14
|
params: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
+
},
|
|
18
|
+
isConsole: true,
|
|
19
|
+
disabled: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
//设置方法名字当别忘记加上【模块名字】:Tfk
|
|
23
|
+
mapFnName: 'updateTfkFilmPaiqiDate',
|
|
24
|
+
title: '更新排期',
|
|
25
|
+
path: '/api/account/film/paiqi-date',
|
|
26
|
+
isRule: false,
|
|
27
|
+
params: {
|
|
28
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
+
},
|
|
31
|
+
isConsole: true,
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
//设置方法名字当别忘记加上【模块名字】:Tfk
|
|
36
|
+
mapFnName: 'removeTfkFilmAddress',
|
|
37
|
+
title: '删除我的配送地址',
|
|
38
|
+
path: '/api/account/film/paiqi-date',
|
|
39
|
+
isRule: false,
|
|
40
|
+
params: {
|
|
41
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
+
},
|
|
43
|
+
isConsole: true,
|
|
44
|
+
disabled: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
//设置方法名字当别忘记加上【模块名字】:Tfk
|
|
48
|
+
mapFnName: 'addTfkFilmcart',
|
|
49
|
+
title: '添加购物车',
|
|
50
|
+
path: '/api/account/film/paiqi-date',
|
|
51
|
+
isRule: false,
|
|
52
|
+
params: {
|
|
53
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
23
54
|
},
|
|
24
55
|
isConsole: true,
|
|
25
56
|
disabled: true,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import CusAttr from "./CusAttr";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
@@ -9,159 +8,50 @@ export default {
|
|
|
9
8
|
content: (data) => {
|
|
10
9
|
return [
|
|
11
10
|
{
|
|
12
|
-
label: '
|
|
13
|
-
ele: 'xd-
|
|
14
|
-
valueKey: '
|
|
15
|
-
value: data
|
|
16
|
-
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgcolor',
|
|
14
|
+
value: data.bgcolor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
classNmae: 'input80',
|
|
17
17
|
rules: [
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
{
|
|
19
|
+
required: true,
|
|
20
|
+
message: '请输入占位框背景颜色',
|
|
21
|
+
trigger: 'blur'
|
|
22
|
+
},
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
label: '
|
|
27
|
-
ele: '
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
valueKey: 'outSpacing',
|
|
31
|
-
value: data['outSpacing'] || '',
|
|
32
|
-
notice: '外边间距设置,单位:像素,默认值:<span style="color:red">20</span> px',
|
|
33
|
-
inline: false,
|
|
34
|
-
className: 'input60',
|
|
35
|
-
},
|
|
36
|
-
//todo
|
|
37
|
-
{
|
|
38
|
-
label: '菜单配置',
|
|
39
|
-
ele: "title",
|
|
40
|
-
groupKey:'style',
|
|
41
|
-
size: "small",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: "菜单外边距",
|
|
45
|
-
ele: "xd-margin-padding",
|
|
46
|
-
valueKey: 'menuMargin',
|
|
47
|
-
value: data['menuMargin'] || {
|
|
48
|
-
top: 0,
|
|
49
|
-
right: 0,
|
|
50
|
-
bottom: 0,
|
|
51
|
-
left: 0,
|
|
52
|
-
},
|
|
53
|
-
groupKey:'style',
|
|
26
|
+
label: '选中路径:',
|
|
27
|
+
ele: 'xd-select-pages-path',
|
|
28
|
+
valueKey: 'select-pages-path',
|
|
29
|
+
value: data['select-pages-path'] || null,
|
|
54
30
|
setting: {
|
|
55
|
-
|
|
31
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
56
32
|
},
|
|
57
|
-
placeholder: '请设置边距',
|
|
58
|
-
inline: false,
|
|
59
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。',
|
|
60
33
|
},
|
|
61
|
-
{
|
|
62
|
-
label:
|
|
63
|
-
ele: "xd-margin-padding",
|
|
64
|
-
valueKey: 'menuPadding',
|
|
65
|
-
value: data['menuPadding'] || {
|
|
66
|
-
top: 0,
|
|
67
|
-
right: 0,
|
|
68
|
-
bottom: 0,
|
|
69
|
-
left: 0,
|
|
70
|
-
},
|
|
71
|
-
groupKey:'style',
|
|
72
|
-
setting: {
|
|
73
|
-
type: 'padding',
|
|
74
|
-
},
|
|
75
|
-
placeholder: '请设置内边距',
|
|
76
|
-
inline: false,
|
|
77
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
label: "菜单背景色",
|
|
81
|
-
ele: "xd-color",
|
|
82
|
-
valueKey: 'menuBgColor',
|
|
83
|
-
value: data['menuBgColor'] || '#FFFFFF',
|
|
84
|
-
groupKey:'style',
|
|
85
|
-
placeholder: '请选择菜单背景色',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
label: "菜单字体设置",
|
|
89
|
-
ele: "xd-text-and-bgc",
|
|
90
|
-
groupKey:'style',
|
|
91
|
-
valueKey: 'menuTabColor',
|
|
92
|
-
value: data['menuTabColor'] || null,
|
|
93
|
-
setting: {
|
|
94
|
-
fontSize: true, //字体大小选择
|
|
95
|
-
color: true, //文字颜色选项
|
|
96
|
-
bgColor: true, //背景选项
|
|
97
|
-
weight: true, //文字粗细
|
|
98
|
-
},
|
|
99
|
-
handleCustom({action, data}) {
|
|
100
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
101
|
-
.then(res => {
|
|
102
|
-
data.cb(res.list)
|
|
103
|
-
})
|
|
104
|
-
.catch(error => {
|
|
105
|
-
console.error(error);
|
|
106
|
-
data.cb([])
|
|
107
|
-
});
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: "菜单间距设置:",
|
|
112
|
-
groupKey:'style',
|
|
34
|
+
data.bgcolor && {
|
|
35
|
+
label: '高度:',
|
|
113
36
|
ele: 'el-input',
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
value: data.menuBorderWidth || 1,
|
|
127
|
-
groupKey: "style",
|
|
128
|
-
type: "number",
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: '菜单单项内边距设置:',
|
|
132
|
-
groupKey:'style',
|
|
133
|
-
ele: 'xd-margin-padding',
|
|
134
|
-
valueKey: 'menuItemPadding',
|
|
135
|
-
value: data.menuItemPadding || null,
|
|
136
|
-
setting: {
|
|
137
|
-
type: 'padding',
|
|
138
|
-
},
|
|
139
|
-
placeholder: '请设置边距',
|
|
140
|
-
inline: false,
|
|
141
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
37
|
+
type: 'number',
|
|
38
|
+
valueKey: 'height',
|
|
39
|
+
value: data.height || 100,
|
|
40
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
41
|
+
className: 'input80',
|
|
42
|
+
rules: [
|
|
43
|
+
{
|
|
44
|
+
required: true,
|
|
45
|
+
message: '请输入占位框高度',
|
|
46
|
+
trigger: 'blur'
|
|
47
|
+
},
|
|
48
|
+
]
|
|
142
49
|
},
|
|
143
50
|
{
|
|
144
|
-
label:
|
|
145
|
-
ele:
|
|
146
|
-
|
|
147
|
-
value: data['searchScope'] || [],
|
|
148
|
-
groupKey:'content',
|
|
149
|
-
placeholder: '请选择内容圆角设置',
|
|
150
|
-
multiple: false,
|
|
151
|
-
className: 'input80',
|
|
152
|
-
handleCustom({ action, data }) {
|
|
153
|
-
XdBus.getParentApi('getSearchSettingOptions')()
|
|
154
|
-
.then(res => {
|
|
155
|
-
data.cb(res.list)
|
|
156
|
-
})
|
|
157
|
-
.catch(error => {
|
|
158
|
-
console.error(error);
|
|
159
|
-
});
|
|
160
|
-
},
|
|
51
|
+
label: '', //label
|
|
52
|
+
ele: 'slot', //package 名称
|
|
53
|
+
slot: 'is_reference',
|
|
161
54
|
},
|
|
162
|
-
|
|
163
|
-
//列表相关属性
|
|
164
|
-
...CusAttr(data),
|
|
165
55
|
].filter(i=>i)
|
|
166
56
|
},
|
|
167
57
|
advanced: [],
|
|
@@ -14,40 +14,7 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-tfk-search__body">
|
|
17
|
-
<view
|
|
18
|
-
<view class="menu_wrap" :style="menuWrapBoxStyle">
|
|
19
|
-
<view class="menu_list" :style="menuBoxStyle">
|
|
20
|
-
<view class="menu_item"
|
|
21
|
-
v-for="(item, i) in showMenuList" :key="item.value"
|
|
22
|
-
@click="handleSwitchMenu(item)"
|
|
23
|
-
>
|
|
24
|
-
<view class="menu_inner"
|
|
25
|
-
:style="[
|
|
26
|
-
menuItemBoxStyle,
|
|
27
|
-
item.value === tabId ? menuItemActiveStyle : menuItemStyle,
|
|
28
|
-
{
|
|
29
|
-
marginRight: i === showMenuList.length - 1 ? '0' : menuItemMargin + 'rpx',
|
|
30
|
-
}
|
|
31
|
-
]"
|
|
32
|
-
>{{ item.label }}</view>
|
|
33
|
-
</view>
|
|
34
|
-
</view>
|
|
35
|
-
</view>
|
|
36
|
-
|
|
37
|
-
<view class="tfk-search" :style="{padding: outSpacing + 'rpx'}">
|
|
38
|
-
<all-list v-if="!tabId"
|
|
39
|
-
@on-parent-vm="handleParentVm"
|
|
40
|
-
@on-list="handleList"
|
|
41
|
-
></all-list>
|
|
42
|
-
<custom-list
|
|
43
|
-
v-else
|
|
44
|
-
:tab-id="tabId"
|
|
45
|
-
:keyword="keyword"
|
|
46
|
-
ref="customList"
|
|
47
|
-
@on-parent-vm="handleParentVm"
|
|
48
|
-
@on-list="handleList"
|
|
49
|
-
></custom-list>
|
|
50
|
-
</view>
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
51
18
|
</view>
|
|
52
19
|
</view>
|
|
53
20
|
</template>
|
|
@@ -59,165 +26,60 @@
|
|
|
59
26
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
60
27
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
61
28
|
import extsMixins from "@/mixins/extsMixins";
|
|
62
|
-
import listMixins from "./listMixins";
|
|
63
|
-
import CustomList from "./CustomList.vue";
|
|
64
|
-
import search from './search';
|
|
65
|
-
import AllList from "./AllList.vue";
|
|
66
|
-
|
|
67
29
|
export default {
|
|
68
30
|
name: "JfbBaseTfkSearch",
|
|
69
31
|
components: {
|
|
70
|
-
|
|
71
|
-
XdFontIcon,
|
|
72
|
-
AllList
|
|
32
|
+
XdFontIcon
|
|
73
33
|
},
|
|
74
34
|
mixins: [
|
|
75
|
-
componentsMixins, extsMixins, JfbBaseTfkSearchMixin
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseTfkSearchMixin
|
|
76
36
|
],
|
|
77
37
|
data() {
|
|
78
38
|
return {
|
|
79
|
-
hideMask: true,
|
|
80
|
-
tabId: '10@cinema@Y@1', //cinema/film/shop/product
|
|
81
|
-
keyword: '',
|
|
82
|
-
options:{},
|
|
83
|
-
menuList: [],
|
|
84
|
-
//公共样式
|
|
85
|
-
outSpacing:20,
|
|
86
39
|
|
|
87
|
-
|
|
88
|
-
menuMargin: {},
|
|
89
|
-
menuPadding: {},
|
|
90
|
-
menuBgColor: {},
|
|
91
|
-
menuItemPadding: {},
|
|
92
|
-
menuTabColor: {},
|
|
93
|
-
menuBorderWidth: 1,
|
|
94
|
-
menuItemMargin: 40,
|
|
95
|
-
searchScope: [],
|
|
40
|
+
//todo
|
|
96
41
|
}
|
|
97
42
|
},
|
|
98
|
-
computed: {
|
|
99
|
-
showMenuList(){
|
|
100
|
-
return [{label: "全部", value: ""}, ...this.menuList]
|
|
101
|
-
},
|
|
102
|
-
menuWrapBoxStyle(){
|
|
103
|
-
let padding = `${this.checkValue(this.menuMargin.top, 20)}rpx`;
|
|
104
|
-
padding = `${padding} ${this.checkValue(this.menuMargin.right, 20)}rpx`;
|
|
105
|
-
padding = `${padding} ${this.checkValue(this.menuMargin.bottom, 20)}rpx`;
|
|
106
|
-
padding = `${padding} ${this.checkValue(this.menuMargin.left, 20)}rpx`;
|
|
107
|
-
return this.styleObjectToString({
|
|
108
|
-
padding: padding,
|
|
109
|
-
})
|
|
110
|
-
},
|
|
111
|
-
menuBoxStyle(){
|
|
112
|
-
let padding = `${this.checkValue(this.menuPadding.top, 20)}rpx`;
|
|
113
|
-
padding = `${padding} ${this.checkValue(this.menuPadding.right, 20)}rpx`;
|
|
114
|
-
padding = `${padding} ${this.checkValue(this.menuPadding.bottom, 20)}rpx`;
|
|
115
|
-
padding = `${padding} ${this.checkValue(this.menuPadding.left, 20)}rpx`;
|
|
116
|
-
return this.styleObjectToString({
|
|
117
|
-
padding: padding,
|
|
118
|
-
backgroundColor: this.menuBgColor,
|
|
119
|
-
})
|
|
120
|
-
},
|
|
121
|
-
menuItemBoxStyle(){
|
|
122
|
-
let padding = `${this.checkValue(this.menuItemPadding.top, 20)}rpx`;
|
|
123
|
-
padding = `${padding} ${this.checkValue(this.menuItemPadding.right, 20)}rpx`;
|
|
124
|
-
padding = `${padding} ${this.checkValue(this.menuItemPadding.bottom, 20)}rpx`;
|
|
125
|
-
padding = `${padding} ${this.checkValue(this.menuItemPadding.left, 20)}rpx`;
|
|
126
|
-
return this.styleObjectToString({
|
|
127
|
-
padding
|
|
128
|
-
})
|
|
129
|
-
},
|
|
130
|
-
menuItemStyle(){
|
|
131
|
-
let styleObj = {
|
|
132
|
-
color: this.menuTabColor['color'] || '#333',
|
|
133
|
-
background: this.menuTabColor['bgColor'] || 'transparent',
|
|
134
|
-
fontSize: this.menuTabColor['fontSize'] || '30rpx',
|
|
135
|
-
fontWeight: this.menuTabColor['fontWeight'] || 'normal',
|
|
136
|
-
borderWidth: this.menuBorderWidth + 'px',
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return this.styleObjectToString(styleObj)
|
|
140
|
-
},
|
|
141
|
-
menuItemActiveStyle(){
|
|
142
|
-
let defaultTextColor = this.mainColor;
|
|
143
|
-
let styleActiveObj = {
|
|
144
|
-
color: this.menuTabColor['actColor'] || defaultTextColor,
|
|
145
|
-
background: this.menuTabColor['actBgColor'] || 'transparent',
|
|
146
|
-
fontSize: this.menuTabColor['actFontSize'] || '30rpx',
|
|
147
|
-
fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
|
|
148
|
-
borderBottom: `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`
|
|
149
|
-
}
|
|
150
|
-
return this.styleObjectToString(styleActiveObj)
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
43
|
watch: {
|
|
154
44
|
container(value, oldValue) {
|
|
155
45
|
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
156
|
-
if (this.$configProject['isPreview'])
|
|
157
|
-
this.cusInit(value)
|
|
158
|
-
this.init(value);
|
|
159
|
-
}
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
160
47
|
},
|
|
161
48
|
},
|
|
162
49
|
created() {
|
|
163
|
-
this.cusInit(this.container);
|
|
164
50
|
this.init(this.container);
|
|
165
|
-
},
|
|
166
51
|
|
|
52
|
+
//todo
|
|
53
|
+
},
|
|
167
54
|
methods: {
|
|
168
|
-
|
|
169
|
-
* @description 获取数据列表
|
|
170
|
-
* @param params
|
|
171
|
-
* @param cb {Function}
|
|
172
|
-
*/
|
|
173
|
-
handleList({params, cb}){
|
|
174
|
-
let data = {...params};
|
|
175
|
-
if(this.tabId === ''){
|
|
176
|
-
data['search_range'] = this.menuList.map(item => item.value).join(',');
|
|
177
|
-
}
|
|
55
|
+
onJfbLoad(options) {
|
|
178
56
|
|
|
179
|
-
jfbRootExec(
|
|
180
|
-
vm: this,
|
|
181
|
-
data: data
|
|
182
|
-
}).then(res => {
|
|
183
|
-
if(this.tabId === ''){
|
|
184
|
-
cb(res.list)
|
|
185
|
-
}else{
|
|
186
|
-
cb(res.list[0])
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
|
-
},
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
190
58
|
|
|
191
|
-
|
|
192
|
-
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
193
62
|
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
194
66
|
},
|
|
195
67
|
/**
|
|
196
68
|
* @description 监听事件变化
|
|
197
69
|
* @param container {object} 业务组件对象自己
|
|
198
70
|
*/
|
|
199
71
|
init(container) {
|
|
200
|
-
this.outSpacing = getContainerPropsValue(container, 'content.outSpacing', '20');
|
|
201
|
-
this.menuMargin = getContainerPropsValue(container, 'content.menuMargin', {});
|
|
202
|
-
this.menuPadding = getContainerPropsValue(container, 'content.menuPadding', {});
|
|
203
|
-
this.menuBgColor = getContainerPropsValue(container, 'content.menuBgColor', '');
|
|
204
|
-
this.menuItemPadding = getContainerPropsValue(container, 'content.menuItemPadding', {});
|
|
205
|
-
this.menuTabColor = getContainerPropsValue(container, 'content.menuTabColor', {});
|
|
206
|
-
this.menuBorderWidth = getContainerPropsValue(container, 'content.menuBorderWidth', 1);
|
|
207
|
-
this.menuItemMargin = getContainerPropsValue(container, 'content.menuItemMargin', 40);
|
|
208
|
-
this.searchScope = getContainerPropsValue(container, 'content.searchScope', []);
|
|
209
72
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
handleSwitchMenu(item){
|
|
215
|
-
this.tabId = item.value;
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
216
76
|
},
|
|
217
77
|
onJfbScroll(options) {
|
|
218
|
-
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
219
82
|
},
|
|
220
|
-
|
|
221
83
|
onJfbShow(options) {
|
|
222
84
|
console.log('event.onJfbShow', options)
|
|
223
85
|
},
|
|
@@ -243,13 +105,7 @@
|
|
|
243
105
|
|
|
244
106
|
.jfb-base-tfk-search {
|
|
245
107
|
&__body{
|
|
246
|
-
|
|
247
|
-
box-sizing: border-box;
|
|
248
|
-
}
|
|
249
|
-
.menu_list{
|
|
250
|
-
display: flex;
|
|
251
|
-
box-sizing: border-box;
|
|
252
|
-
}
|
|
108
|
+
|
|
253
109
|
}
|
|
254
110
|
}
|
|
255
111
|
</style>
|
|
@@ -1,92 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
setting_id: 1,
|
|
15
|
-
next_page_token: 'a:2:{i:0;d:1705.0785;i:1;s:8:"60030143";}',
|
|
16
|
-
items: [
|
|
17
|
-
{
|
|
18
|
-
brand_id: 100003,
|
|
19
|
-
brand_name: "品牌jls0519",
|
|
20
|
-
list_title: "3",
|
|
21
|
-
market_price: 2000,
|
|
22
|
-
market_tags: [],
|
|
23
|
-
product_id: 60030143,
|
|
24
|
-
product_name: "仅快递实物商品(北京廊坊支持配送)",
|
|
25
|
-
product_type: "good",
|
|
26
|
-
promo_price: 0,
|
|
27
|
-
sale_num: 8,
|
|
28
|
-
sale_price: 3000,
|
|
29
|
-
status: "ok",
|
|
30
|
-
thumb: "/uploads/20231215/b2ce0235129aa592044f96343f25c338.jpeg"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: "shop",
|
|
36
|
-
name: "门店",
|
|
37
|
-
detail_redirect_data: "",
|
|
38
|
-
detail1_redirect_data: "",
|
|
39
|
-
more_redirect_data: "",
|
|
40
|
-
sort: 1,
|
|
41
|
-
setting_id: 5,
|
|
42
|
-
next_page_token: "a:1:{i:0;d:4.4;}",
|
|
43
|
-
items: [
|
|
44
|
-
{
|
|
45
|
-
brand_id: 0,
|
|
46
|
-
brand_name: "",
|
|
47
|
-
shop_icon:
|
|
48
|
-
"https://dimg04.uat.qa.nt.ctripcorp.com/images/1lo4a12000007fyeg8D96.gif",
|
|
49
|
-
distance: 4,
|
|
50
|
-
business_status: "5",
|
|
51
|
-
full_address: "北京北京北京市东城区景山前街4号",
|
|
52
|
-
phone: "",
|
|
53
|
-
consume_mode: ["TRAVEL"],
|
|
54
|
-
consume_mode_name: "",
|
|
55
|
-
shop_id: 1052782,
|
|
56
|
-
resource_shop_id: 8000302,
|
|
57
|
-
resource_shop_name: "故宫-测试1-攻略修改",
|
|
58
|
-
shop_tags: {},
|
|
59
|
-
stars: 2
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: "cinema",
|
|
65
|
-
name: "影院",
|
|
66
|
-
detail_redirect_data:
|
|
67
|
-
'{"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":""}',
|
|
68
|
-
detail1_redirect_data:
|
|
69
|
-
'{"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
|
-
more_redirect_data: "",
|
|
71
|
-
sort: 3,
|
|
72
|
-
setting_id: 10,
|
|
73
|
-
next_page_token: 1,
|
|
74
|
-
items: [
|
|
75
|
-
{
|
|
76
|
-
address: "朝阳区安慧里三区10号 (北辰购物中心对面)",
|
|
77
|
-
brand_id: 0,
|
|
78
|
-
brand_name: "",
|
|
79
|
-
cinema_id: 6771413,
|
|
80
|
-
cinema_name: "北京剧院",
|
|
81
|
-
cinema_type: ["SEAT"],
|
|
82
|
-
cinema_type_name: ["在线选座"],
|
|
83
|
-
distance: "",
|
|
84
|
-
is_open: "Y",
|
|
85
|
-
shop_icon: ""
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
request_id: "f6c04f1d2eb3385b"
|
|
91
|
-
}
|
|
92
|
-
};
|
|
4
|
+
|
|
5
|
+
getTfkByIdFilmSquate:{},
|
|
6
|
+
|
|
7
|
+
updateTfkFilmPaiqiDate:{},
|
|
8
|
+
|
|
9
|
+
removeTfkFilmAddress:{},
|
|
10
|
+
|
|
11
|
+
addTfkFilmcart:{},
|
|
12
|
+
|
|
13
|
+
}
|