jufubao-base 1.0.173 → 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.
- package/package.json +1 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +9 -0
- package/src/components/JfbBaseLogin/Attr.js +61 -4
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +111 -46
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +3 -0
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +106 -25
- package/src/components/JfbBaseTfkCardDetail/Attr.js +0 -224
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +29 -25
- package/src/components/JfbBaseTfkCardDetail/Mock.js +2 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +50 -21
- package/src/components/JfbBaseTfkSearch/AllList.vue +101 -91
- package/src/components/JfbBaseTfkSearch/ContentCinema.vue +2 -0
- package/src/components/JfbBaseTfkSearch/ContentFilm.vue +17 -5
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +33 -10
- package/src/components/JfbBaseTfkSearch/ContentShop.vue +14 -1
- package/src/components/JfbBaseTfkSearch/CustomList.vue +27 -5
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +28 -16
- package/src/components/JfbBaseTfkSearch/Mock.js +28 -47
- package/src/components/JfbBaseTfkSearch/handleKeyword.js +1 -1
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -0
|
@@ -52,230 +52,6 @@ export default {
|
|
|
52
52
|
maxlen: 100,
|
|
53
53
|
hidden: data.previewCurrent !== 'main'
|
|
54
54
|
},
|
|
55
|
-
{
|
|
56
|
-
label: "票券使用规则",
|
|
57
|
-
ele: 'xd-site-news',
|
|
58
|
-
valueKey: 'cardRule',
|
|
59
|
-
groupKey:'content',
|
|
60
|
-
value: data.cardRule || null,
|
|
61
|
-
className: 'input70',
|
|
62
|
-
setting: {
|
|
63
|
-
config: {
|
|
64
|
-
sort: true,
|
|
65
|
-
maxlen: 100,
|
|
66
|
-
action: 'aliyun',
|
|
67
|
-
size: 5,
|
|
68
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
69
|
-
uploadType: 'aliyun',
|
|
70
|
-
type: ['jpg', 'png', 'jpeg']
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
handleCustom({action, data}) {
|
|
74
|
-
if (data && data.params) {
|
|
75
|
-
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
76
|
-
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
//获取返回参数(场景类型名称为必填)
|
|
80
|
-
//获取返回参数(场景类型名称为必填)
|
|
81
|
-
let loading = { close(){}}
|
|
82
|
-
|
|
83
|
-
//获取显示内容
|
|
84
|
-
if (action === 'screen') {
|
|
85
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
86
|
-
.then(res => {
|
|
87
|
-
loading.close();
|
|
88
|
-
data.cb(res['list'])
|
|
89
|
-
})
|
|
90
|
-
.catch(error => {
|
|
91
|
-
console.error(error);
|
|
92
|
-
loading.close();
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//获取返回参数(广告位高度必选项)
|
|
98
|
-
if (action === 'getNewsInfo') {
|
|
99
|
-
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
100
|
-
.then(res => {
|
|
101
|
-
loading.close()
|
|
102
|
-
data.cb({list: res.list, selectId: res.selected})
|
|
103
|
-
})
|
|
104
|
-
.catch(error => {
|
|
105
|
-
loading.close()
|
|
106
|
-
console.error(error);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
//获取产品业务线列表
|
|
111
|
-
if (action === 'namespace') {
|
|
112
|
-
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
113
|
-
.then(res => {
|
|
114
|
-
loading.close()
|
|
115
|
-
data.cb(res['list'])
|
|
116
|
-
})
|
|
117
|
-
.catch(error => {
|
|
118
|
-
loading.close()
|
|
119
|
-
console.error(error);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
//使用内容分类
|
|
124
|
-
if (action === 'cmsPublishEditxContent') {
|
|
125
|
-
loading = XdBus.getParentApi('loading')({});
|
|
126
|
-
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
127
|
-
.then(res => {
|
|
128
|
-
console.log('cmsPublishEditxContent', res)
|
|
129
|
-
loading.close();
|
|
130
|
-
data.cb(res)
|
|
131
|
-
})
|
|
132
|
-
.catch(error => {
|
|
133
|
-
loading.close();
|
|
134
|
-
console.error(error);
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
//位置列表
|
|
139
|
-
if (action === 'getListPostion') {
|
|
140
|
-
loading = XdBus.getParentApi('loading')({});
|
|
141
|
-
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
142
|
-
.then(res => {
|
|
143
|
-
loading.close();
|
|
144
|
-
data.cb(res)
|
|
145
|
-
})
|
|
146
|
-
.catch(error => {
|
|
147
|
-
loading.close();
|
|
148
|
-
console.error(error);
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
//位置创建
|
|
153
|
-
if (action === 'addPostion') {
|
|
154
|
-
loading = XdBus.getParentApi('loading')({});
|
|
155
|
-
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
156
|
-
.then(res => {
|
|
157
|
-
loading.close();
|
|
158
|
-
data.cb(true)
|
|
159
|
-
})
|
|
160
|
-
.catch(error => {
|
|
161
|
-
console.error(error);
|
|
162
|
-
loading.close();
|
|
163
|
-
data.cb(false)
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
//位置编辑
|
|
168
|
-
if (action === 'editPostion') {
|
|
169
|
-
loading = XdBus.getParentApi('loading')({});
|
|
170
|
-
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
171
|
-
.then(res => {
|
|
172
|
-
loading.close();
|
|
173
|
-
data.cb(true)
|
|
174
|
-
})
|
|
175
|
-
.catch(error => {
|
|
176
|
-
console.error(error);
|
|
177
|
-
loading.close();
|
|
178
|
-
data.cb(false)
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
//位置删除
|
|
183
|
-
if (action === 'deleltePostion') {
|
|
184
|
-
loading = XdBus.getParentApi('loading')({});
|
|
185
|
-
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
186
|
-
.then(res => {
|
|
187
|
-
loading.close();
|
|
188
|
-
data.cb(true)
|
|
189
|
-
})
|
|
190
|
-
.catch(error => {
|
|
191
|
-
console.error(error);
|
|
192
|
-
loading.close();
|
|
193
|
-
data.cb(false)
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
//获取广告位内容列表
|
|
198
|
-
if (action === 'getListContent') {
|
|
199
|
-
loading = XdBus.getParentApi('loading')({});
|
|
200
|
-
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
201
|
-
.then(res => {
|
|
202
|
-
loading.close();
|
|
203
|
-
data.cb(res)
|
|
204
|
-
})
|
|
205
|
-
.catch(error => {
|
|
206
|
-
loading.close();
|
|
207
|
-
console.error(error);
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
//广告内容创建
|
|
212
|
-
if (action === 'addContent') {
|
|
213
|
-
loading = XdBus.getParentApi('loading')({});
|
|
214
|
-
XdBus.getParentApi('addNewsContent')(data.params)
|
|
215
|
-
.then(res => {
|
|
216
|
-
loading.close();
|
|
217
|
-
data.cb(true)
|
|
218
|
-
})
|
|
219
|
-
.catch(error => {
|
|
220
|
-
console.error(error);
|
|
221
|
-
loading.close();
|
|
222
|
-
data.cb(false)
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
//广告内容编辑
|
|
227
|
-
if (action === 'editContent') {
|
|
228
|
-
loading = XdBus.getParentApi('loading')({});
|
|
229
|
-
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
230
|
-
.then(res => {
|
|
231
|
-
loading.close();
|
|
232
|
-
data.cb(true)
|
|
233
|
-
})
|
|
234
|
-
.catch(error => {
|
|
235
|
-
console.error(error);
|
|
236
|
-
loading.close();
|
|
237
|
-
data.cb(false)
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
//广告内容删除
|
|
242
|
-
if (action === 'deleteContent') {
|
|
243
|
-
loading = XdBus.getParentApi('loading')({});
|
|
244
|
-
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
245
|
-
.then(res => {
|
|
246
|
-
loading.close();
|
|
247
|
-
data.cb(true)
|
|
248
|
-
})
|
|
249
|
-
.catch(error => {
|
|
250
|
-
console.error(error);
|
|
251
|
-
loading.close();
|
|
252
|
-
data.cb(false)
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
//内容发布
|
|
257
|
-
if (action === 'publish') {
|
|
258
|
-
loading = XdBus.getParentApi('loading')({});
|
|
259
|
-
console.log('publish', data.params)
|
|
260
|
-
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
261
|
-
.then(res => {
|
|
262
|
-
loading.close();
|
|
263
|
-
data.cb(res)
|
|
264
|
-
})
|
|
265
|
-
.catch(error => {
|
|
266
|
-
loading.close();
|
|
267
|
-
console.error(error);
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
//通知页面进行刷新
|
|
272
|
-
if (action === 'update') {
|
|
273
|
-
loading = XdBus.getParentApi('loading')({});
|
|
274
|
-
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
275
|
-
loading.close()
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
55
|
{
|
|
280
56
|
label: "票券信息样式配置",
|
|
281
57
|
ele: "title",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
</view>
|
|
79
79
|
</view>
|
|
80
80
|
<view v-if="curModule === 'rule'">
|
|
81
|
-
<view v-if="
|
|
81
|
+
<view v-if="cardInfo.card_rule_info" v-html="cardInfo.card_rule_info" class="rule_wrap" :style="ruleDetailBoxStyle">
|
|
82
82
|
</view>
|
|
83
83
|
<view v-else class="rule_wrap" :style="ruleDetailBoxStyle">
|
|
84
84
|
使用规则暂无
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
time: 2, //时间幂指数
|
|
142
142
|
stopTimer: false, //停止轮询
|
|
143
143
|
|
|
144
|
-
cardRule: "",
|
|
144
|
+
// cardRule: "",
|
|
145
145
|
showBusinessList: "Y",
|
|
146
146
|
//todo
|
|
147
147
|
cardInfoMargin: {},
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
onJfbLoad(options) {
|
|
341
341
|
this.card_number = options.card_number;
|
|
342
342
|
this.getCardDetail();
|
|
343
|
-
this.getContent();
|
|
343
|
+
// this.getContent();
|
|
344
344
|
},
|
|
345
345
|
/**
|
|
346
346
|
* @description 监听事件变化
|
|
@@ -496,27 +496,27 @@
|
|
|
496
496
|
if(regHttp.test(jumpUrl)) this.$xdUniHelper.redirectTo({url:jumpUrl}, false)
|
|
497
497
|
else this.$xdUniHelper.navigateTo({url:jumpUrl}, false)
|
|
498
498
|
},
|
|
499
|
-
getContent() {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
},
|
|
499
|
+
// getContent() {
|
|
500
|
+
// jfbRootExec("getListBaseNewsContent", {
|
|
501
|
+
// vm: this,
|
|
502
|
+
// data: {
|
|
503
|
+
// page_id: this.pageAttr["page_id"], //页面ID
|
|
504
|
+
// container_id: this.containerId, //组件ID
|
|
505
|
+
// limit: 1,
|
|
506
|
+
// },
|
|
507
|
+
// })
|
|
508
|
+
// .then((res) => {
|
|
509
|
+
// if (res.list.length > 0) {
|
|
510
|
+
// if(res.list && res.list.length > 0) {
|
|
511
|
+
// this.cardRule = this.$xdUniHelper.filterHtml(res.list[0].content);
|
|
512
|
+
// }
|
|
513
|
+
// // this.noticeStatus = true;
|
|
514
|
+
// }
|
|
515
|
+
// })
|
|
516
|
+
// .catch((error) => {
|
|
517
|
+
// console.error(error);
|
|
518
|
+
// });
|
|
519
|
+
// },
|
|
520
520
|
handleRefresh(){
|
|
521
521
|
clearInterval(this.timeer);
|
|
522
522
|
this.getCardDetail();
|
|
@@ -675,7 +675,11 @@
|
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
|
|
678
|
+
.rule_wrap{
|
|
679
|
+
font-size: 32rpx;
|
|
680
|
+
line-height: 1.7;
|
|
681
|
+
font-weight: 400;
|
|
682
|
+
}
|
|
679
683
|
.code_wrap{
|
|
680
684
|
display: flex;
|
|
681
685
|
flex-direction: column;
|
|
@@ -23,6 +23,8 @@ module.exports = {
|
|
|
23
23
|
is_show_qrcode_logo: "Y",
|
|
24
24
|
is_can_unbind: "Y",
|
|
25
25
|
is_can_transfer: "Y",
|
|
26
|
+
card_use_rule: "可凭本票券到电影(勿改)、商城(对应百货)(勿改)、蛋糕(勿改",
|
|
27
|
+
card_rule_info: "<p>购买范围:</p> <ul style='padding-left: 20px;'><li>可凭本票券到xxxxx进行提货</li></ul> <br/> <p>券内额度:</p><ul style='padding-left: 20px;'><li>提货额度为xx点/次</li></ul><br/><p>线下提货:</p><ul style='padding-left: 20px;'><li>1</li><li>2</li></ul>",
|
|
26
28
|
site_entry_settings: [
|
|
27
29
|
{
|
|
28
30
|
id: 63,
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
@click="changeMenu('card')"
|
|
26
26
|
>
|
|
27
27
|
<view class="menu_item_inner"
|
|
28
|
-
:style="
|
|
28
|
+
:style="menuType === 'card' ? menuItemActiveStyle : menuItemStyle">我的票券包</view>
|
|
29
29
|
</view>
|
|
30
30
|
<view class="menu_item" @click="changeMenu('coupon')">
|
|
31
31
|
<view class="menu_item_inner"
|
|
32
|
-
:style="
|
|
32
|
+
:style="menuType === 'coupon' ? menuItemActiveStyle : menuItemStyle">我的优惠券</view>
|
|
33
33
|
</view>
|
|
34
34
|
</view>
|
|
35
35
|
<view class="bind_card" :style="bindCardBoxStyle" @click="toBindCard">
|
|
@@ -96,20 +96,15 @@
|
|
|
96
96
|
<view v-if="item.is_exchange === 'Y'">(可转票券)</view>
|
|
97
97
|
</view>
|
|
98
98
|
<view class="bind_btn"
|
|
99
|
-
:style="
|
|
100
|
-
right: cardPadding.right + 'rpx',
|
|
101
|
-
bottom: cardPadding.bottom + 'rpx',
|
|
102
|
-
borderRadius: cardBtnRadius + 'rpx',
|
|
103
|
-
padding: bindCardBtnPadding,
|
|
104
|
-
minWidth: cardBtnMinWidth + 'rpx',
|
|
105
|
-
}, item.is_login === 'Y' ? bindCardActiveStyle : bindCardBtnStyle]"
|
|
99
|
+
:style="item.is_login === 'Y' ? bindCardActiveStyle : bindCardBtnStyle"
|
|
106
100
|
@click.stop="doCardLogin(item)"
|
|
107
101
|
>{{ item.is_login === 'Y' ? '已登录' : '登录'}}</view>
|
|
108
102
|
</view>
|
|
109
103
|
<view v-if="!hasCardList" class="no_more_card" @click="toDisableUrl">没有更多券了,查看失效的票券 ></view>
|
|
110
104
|
</view>
|
|
111
|
-
<view v-else>
|
|
112
|
-
|
|
105
|
+
<view v-else class="empty_data">
|
|
106
|
+
<image :src="emptyBg"></image>
|
|
107
|
+
暂无票券
|
|
113
108
|
</view>
|
|
114
109
|
</view>
|
|
115
110
|
</template>
|
|
@@ -131,8 +126,9 @@
|
|
|
131
126
|
></xd-coupon-item>
|
|
132
127
|
<view v-if="!hasCouponList" class="no_more_card" @click="toDisableUrl">没有更多券了,查看失效的票券 ></view>
|
|
133
128
|
</view>
|
|
134
|
-
<view v-else>
|
|
135
|
-
|
|
129
|
+
<view v-else class="empty_data">
|
|
130
|
+
<image :src="emptyBg"></image>
|
|
131
|
+
暂无票券
|
|
136
132
|
</view>
|
|
137
133
|
|
|
138
134
|
</template>
|
|
@@ -151,6 +147,7 @@
|
|
|
151
147
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
152
148
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
153
149
|
import extsMixins from "@/mixins/extsMixins";
|
|
150
|
+
import colorCardMixins from "@/mixins/colorCardMixins";
|
|
154
151
|
import getServiceUrl from '@/common/getServiceUrl'
|
|
155
152
|
import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
|
|
156
153
|
import XdCouponItem from "./XdCouponItem";
|
|
@@ -166,7 +163,7 @@
|
|
|
166
163
|
XdNotice,
|
|
167
164
|
},
|
|
168
165
|
mixins: [
|
|
169
|
-
componentsMixins, extsMixins, JfbBaseTfkCardLoginMixin
|
|
166
|
+
componentsMixins, extsMixins, JfbBaseTfkCardLoginMixin, colorCardMixins
|
|
170
167
|
],
|
|
171
168
|
data() {
|
|
172
169
|
return {
|
|
@@ -256,6 +253,9 @@
|
|
|
256
253
|
jwxSDK: (state) => state.jwxSDK,
|
|
257
254
|
jfbAuthorize: (state) => state.jfbAuthorize,
|
|
258
255
|
}),
|
|
256
|
+
emptyBg() {
|
|
257
|
+
return this.getNoData();
|
|
258
|
+
},
|
|
259
259
|
menuBoxStyle(){
|
|
260
260
|
let padding = `${this.checkValue(this.menuPadding.top, 20)}rpx`;
|
|
261
261
|
padding = `${padding} ${this.checkValue(this.menuPadding.right, 20)}rpx`;
|
|
@@ -267,14 +267,12 @@
|
|
|
267
267
|
padding: padding,
|
|
268
268
|
})
|
|
269
269
|
},
|
|
270
|
-
|
|
270
|
+
menuItemBoxPadding(){
|
|
271
271
|
let padding = `${this.checkValue(this.menuBtnPadding.top, 20)}rpx`;
|
|
272
272
|
padding = `${padding} ${this.checkValue(this.menuBtnPadding.right, 20)}rpx`;
|
|
273
273
|
padding = `${padding} ${this.checkValue(this.menuBtnPadding.bottom, 20)}rpx`;
|
|
274
274
|
padding = `${padding} ${this.checkValue(this.menuBtnPadding.left, 20)}rpx`;
|
|
275
|
-
return
|
|
276
|
-
padding
|
|
277
|
-
})
|
|
275
|
+
return padding;
|
|
278
276
|
},
|
|
279
277
|
menuItemStyle(){
|
|
280
278
|
let styleObj = {
|
|
@@ -283,6 +281,7 @@
|
|
|
283
281
|
fontSize: this.menuTabColor['fontSize'] || '30rpx',
|
|
284
282
|
fontWeight: this.menuTabColor['fontWeight'] || 'normal',
|
|
285
283
|
borderWidth: this.menuBorderWidth + 'px',
|
|
284
|
+
padding: this.menuItemBoxPadding,
|
|
286
285
|
}
|
|
287
286
|
|
|
288
287
|
return this.styleObjectToString(styleObj)
|
|
@@ -294,6 +293,7 @@
|
|
|
294
293
|
background: this.menuTabColor['actBgColor'] || '#fff',
|
|
295
294
|
fontSize: this.menuTabColor['actFontSize'] || '30rpx',
|
|
296
295
|
fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
|
|
296
|
+
padding: this.menuItemBoxPadding,
|
|
297
297
|
}
|
|
298
298
|
if(this.menuShowType === 'text'){
|
|
299
299
|
styleActiveObj.borderBottom = `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`
|
|
@@ -310,12 +310,22 @@
|
|
|
310
310
|
padding = `${padding} ${this.checkValue(this.cardBtnPadding.left, 20)}rpx`;
|
|
311
311
|
return padding;
|
|
312
312
|
},
|
|
313
|
+
bindCardBtnOther(){
|
|
314
|
+
return {
|
|
315
|
+
right: this.cardPadding.right + 'rpx',
|
|
316
|
+
bottom: this.cardPadding.bottom + 'rpx',
|
|
317
|
+
borderRadius: this.cardBtnRadius + 'rpx',
|
|
318
|
+
padding: this.bindCardBtnPadding,
|
|
319
|
+
minWidth: this.cardBtnMinWidth + 'rpx',
|
|
320
|
+
}
|
|
321
|
+
},
|
|
313
322
|
bindCardBtnStyle(){
|
|
314
323
|
let styleObj = {
|
|
315
324
|
color: this.cardBtnTextStyle['color'] || '#333',
|
|
316
325
|
background: this.cardBtnTextStyle['bgColor'] || '#fff',
|
|
317
326
|
fontSize: this.cardBtnTextStyle['fontSize'] || '30rpx',
|
|
318
327
|
fontWeight: this.cardBtnTextStyle['fontWeight'] || 'normal',
|
|
328
|
+
...this.bindCardBtnOther
|
|
319
329
|
}
|
|
320
330
|
return this.styleObjectToString(styleObj)
|
|
321
331
|
},
|
|
@@ -326,6 +336,7 @@
|
|
|
326
336
|
background: this.cardBtnTextStyle['actBgColor'] || '#fff',
|
|
327
337
|
fontSize: this.cardBtnTextStyle['actFontSize'] || '30rpx',
|
|
328
338
|
fontWeight: this.cardBtnTextStyle['actFontWeight'] || 'normal',
|
|
339
|
+
...this.bindCardBtnOther
|
|
329
340
|
}
|
|
330
341
|
return this.styleObjectToString(styleActiveObj)
|
|
331
342
|
},
|
|
@@ -680,13 +691,18 @@
|
|
|
680
691
|
})
|
|
681
692
|
},
|
|
682
693
|
apiGetContent(params){
|
|
694
|
+
let _this = this;
|
|
695
|
+
// #ifdef MP-WEIXIN
|
|
696
|
+
_this = this.$parent;
|
|
697
|
+
//#endif
|
|
698
|
+
|
|
683
699
|
return new Promise((resolve, reject) => {
|
|
684
700
|
jfbRootExec("getListBaseNewsContent", {
|
|
685
701
|
vm: this,
|
|
686
702
|
data: {
|
|
687
|
-
page_id:
|
|
688
|
-
container_id:
|
|
689
|
-
page_size:
|
|
703
|
+
page_id: _this.pageAttr["page_id"], //页面ID
|
|
704
|
+
container_id: _this.containerId, //组件ID
|
|
705
|
+
page_size: _this.noticeNum || 1,
|
|
690
706
|
...params
|
|
691
707
|
},
|
|
692
708
|
}).then(res => {
|
|
@@ -863,6 +879,19 @@
|
|
|
863
879
|
color: #CCCCCC;
|
|
864
880
|
font-size: 28rpx;
|
|
865
881
|
}
|
|
882
|
+
.empty_data{
|
|
883
|
+
color: #888;
|
|
884
|
+
font-size: unit(24,rpx);
|
|
885
|
+
height: 60vh;
|
|
886
|
+
display: flex;
|
|
887
|
+
flex-direction: column;
|
|
888
|
+
align-items: center;
|
|
889
|
+
justify-content: center;
|
|
890
|
+
& > image {
|
|
891
|
+
width: unit(460,rpx);
|
|
892
|
+
height: unit(400,rpx);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
866
895
|
}
|
|
867
896
|
}
|
|
868
897
|
}
|