jufubao-base 1.0.217 → 1.0.218-beta1
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/JfbBaseCard/Attr.js +35 -0
- package/src/components/JfbBaseCard/JfbBaseCard.vue +91 -17
- package/src/components/JfbBaseCardEntry/Attr.js +35 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +23 -1
- package/src/components/JfbBaseCardV2/Attr.js +35 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +95 -41
- package/src/components/JfbBaseCardV3/Attr.js +35 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +23 -1
- package/src/components/JfbBaseHeader/Attr.js +58 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +22 -1
- package/src/components/JfbBaseNoticeDialog/Api.js +58 -0
- package/src/components/JfbBaseNoticeDialog/Attr.js +48 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +111 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialogLess.less +79 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialogMixin.js +30 -0
- package/src/components/JfbBaseNoticeDialog/Mock.js +13 -0
- package/src/components/JfbBaseTfkCardLogin/Attr.js +35 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +21 -1
- package/src/components/JfbBaseUserCenter/Attr.js +35 -0
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +38 -16
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
@bindLogin="handleBindLogin(item)"
|
|
34
34
|
></xd-card-v2>
|
|
35
35
|
</view>
|
|
36
|
-
<view v-else class="empty_data"
|
|
36
|
+
<view v-else class="empty_data">暂时没有票券
|
|
37
|
+
<view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
|
|
38
|
+
</view>
|
|
37
39
|
</template>
|
|
38
40
|
<view class="bottom_fix" :style="button_bottom">
|
|
39
41
|
<xd-button type="primary" @click="toBindCard">绑定新票券</xd-button>
|
|
@@ -79,6 +81,9 @@
|
|
|
79
81
|
loadingCardList: true,
|
|
80
82
|
|
|
81
83
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
84
|
+
buy_new_url: '',
|
|
85
|
+
isShowBuy: "",
|
|
86
|
+
buy_name: ""
|
|
82
87
|
}
|
|
83
88
|
},
|
|
84
89
|
watch: {
|
|
@@ -140,6 +145,9 @@
|
|
|
140
145
|
this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
|
|
141
146
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
142
147
|
this.logged_name = getContainerPropsValue(container, "content.logged_name", "已登录");
|
|
148
|
+
this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
|
|
149
|
+
this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
|
|
150
|
+
this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
|
|
143
151
|
},
|
|
144
152
|
toBindCard(){
|
|
145
153
|
let path = this.getUrlCallback(this.cardBindPath)
|
|
@@ -150,6 +158,11 @@
|
|
|
150
158
|
toDetail(item) {
|
|
151
159
|
this.$xdUniHelper.navigateTo({url: `${this.detailUrl}?card_number=${item["card_number"]}`,}, false);
|
|
152
160
|
},
|
|
161
|
+
toBuyNew() {
|
|
162
|
+
this.$xdUniHelper.navigateTo({
|
|
163
|
+
url: `${this.buy_new_url}`,
|
|
164
|
+
});
|
|
165
|
+
},
|
|
153
166
|
/**
|
|
154
167
|
* @description 已绑定卡登录
|
|
155
168
|
* @param item
|
|
@@ -236,6 +249,15 @@
|
|
|
236
249
|
text-align: center;
|
|
237
250
|
font-size: 24rpx;
|
|
238
251
|
color: #999999;
|
|
252
|
+
display: flex;
|
|
253
|
+
justify-content: center;
|
|
254
|
+
.buy_new {
|
|
255
|
+
display: flex;
|
|
256
|
+
margin-left: 8rpx;
|
|
257
|
+
& > view:first-child {
|
|
258
|
+
margin-right: 8rpx;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
239
261
|
}
|
|
240
262
|
.bottom_fix{
|
|
241
263
|
position: fixed;
|
|
@@ -300,6 +300,51 @@ export default {
|
|
|
300
300
|
groupKey:'style',
|
|
301
301
|
hidden: true,
|
|
302
302
|
},
|
|
303
|
+
{
|
|
304
|
+
label: "是否展示快捷入口",
|
|
305
|
+
ele: "xd-radio",
|
|
306
|
+
valueKey: "showQuickEntry",
|
|
307
|
+
value: data.showQuickEntry || "N",
|
|
308
|
+
list: [
|
|
309
|
+
{label: "不显示", value: "N"},
|
|
310
|
+
{label: "显示", value: "Y"}
|
|
311
|
+
],
|
|
312
|
+
groupKey:'content',
|
|
313
|
+
},
|
|
314
|
+
data.showQuickEntry==='Y'&&{
|
|
315
|
+
ele: 'title',
|
|
316
|
+
label: '快捷入口功能样式设置',
|
|
317
|
+
size: 'small',
|
|
318
|
+
groupKey:'style',
|
|
319
|
+
},
|
|
320
|
+
data.showQuickEntry==='Y'&&{
|
|
321
|
+
label: '文字颜色:',
|
|
322
|
+
ele: 'xd-color',
|
|
323
|
+
valueKey: 'quickTextColor',
|
|
324
|
+
value: data.quickTextColor || '',
|
|
325
|
+
placeholder: '请选择文字颜色',
|
|
326
|
+
classNmae: 'input80',
|
|
327
|
+
groupKey:'style',
|
|
328
|
+
},
|
|
329
|
+
data.showQuickEntry==='Y'&&{
|
|
330
|
+
label: 'ICON:',
|
|
331
|
+
ele: 'el-input',
|
|
332
|
+
type: 'text',
|
|
333
|
+
groupKey:'style',
|
|
334
|
+
valueKey: 'quickIcon',
|
|
335
|
+
value: data['quickIcon'] || '',
|
|
336
|
+
placeholder: '请输入快捷入口ICON',
|
|
337
|
+
className: 'input80',
|
|
338
|
+
},
|
|
339
|
+
data.showQuickEntry==='Y'&&{
|
|
340
|
+
label: '背景颜色:',
|
|
341
|
+
ele: 'xd-color',
|
|
342
|
+
groupKey:'style',
|
|
343
|
+
valueKey: 'quickBackgroundColor',
|
|
344
|
+
value: data.quickBackgroundColor || '',
|
|
345
|
+
placeholder: '请选择快捷入口背景颜色',
|
|
346
|
+
classNmae: 'input80',
|
|
347
|
+
},
|
|
303
348
|
{
|
|
304
349
|
label: '是否有边框:',
|
|
305
350
|
ele: 'xd-radio',
|
|
@@ -353,13 +398,25 @@ export default {
|
|
|
353
398
|
ele: 'xd-select-pages-path',
|
|
354
399
|
valueKey: 'choseCityPath',
|
|
355
400
|
groupKey:'advanced',
|
|
356
|
-
placeholder: '
|
|
401
|
+
placeholder: '选择城市选择链接',
|
|
357
402
|
value: data['choseCityPath'] || null,
|
|
358
403
|
setting: {
|
|
359
404
|
router: XdBus.getParentApi('getPagesTree'),
|
|
360
405
|
},
|
|
361
406
|
inline: false,
|
|
362
407
|
},
|
|
408
|
+
{
|
|
409
|
+
label: '快捷入口链接:',
|
|
410
|
+
ele: 'xd-select-pages-path',
|
|
411
|
+
valueKey: 'quickEntryPath',
|
|
412
|
+
groupKey:'advanced',
|
|
413
|
+
placeholder: '选择快捷入口链接',
|
|
414
|
+
value: data['quickEntryPath'] || null,
|
|
415
|
+
setting: {
|
|
416
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
417
|
+
},
|
|
418
|
+
inline: false,
|
|
419
|
+
},
|
|
363
420
|
{
|
|
364
421
|
label: '',
|
|
365
422
|
ele: 'slot',
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
:style="[searchBtnStyle]"
|
|
84
84
|
@click="doSearch"
|
|
85
85
|
>{{searchBtnText || '搜索'}}</view>
|
|
86
|
+
<view v-if="showQuickEntry==='Y'" :style="{backgroundColor:quickBackgroundColor}" class="quick">
|
|
87
|
+
<xd-font-icon size="32" :style="{color:quickTextColor||mainColor}" :icon="quickIcon"></xd-font-icon>
|
|
88
|
+
</view>
|
|
86
89
|
</view>
|
|
87
90
|
</view>
|
|
88
91
|
</view>
|
|
@@ -136,7 +139,11 @@
|
|
|
136
139
|
searchPagePath: "",
|
|
137
140
|
placeholder: "请输入关键词",
|
|
138
141
|
choseCityPath: "", //选择城市i
|
|
139
|
-
|
|
142
|
+
quickEntryPath: "", //快速入口
|
|
143
|
+
quickBackgroundColor: "",
|
|
144
|
+
quickTextColor: "",
|
|
145
|
+
quickIcon: "",
|
|
146
|
+
showQuickEntry: '',
|
|
140
147
|
|
|
141
148
|
//基础
|
|
142
149
|
textColor: '',
|
|
@@ -230,6 +237,12 @@
|
|
|
230
237
|
this.bottomBorder = this.getBorderCompatibleOldStyle(bottomBorder, {})
|
|
231
238
|
this.inputBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.inputBorder', {}))
|
|
232
239
|
|
|
240
|
+
//快捷入口
|
|
241
|
+
this.quickBackgroundColor = getContainerPropsValue(container, 'content.quickBackgroundColor', "#FFEDDB");
|
|
242
|
+
this.quickTextColor = getContainerPropsValue(container, 'content.quickTextColor', "");
|
|
243
|
+
this.quickIcon = getContainerPropsValue(container, 'content.quickIcon', "iconkefu");
|
|
244
|
+
this.showQuickEntry = getContainerPropsValue(container, 'content.showQuickEntry', "N");
|
|
245
|
+
|
|
233
246
|
let name , logo, platform_logo;
|
|
234
247
|
if (this.projectAttr['site_name']) name = this.projectAttr['site_name'];
|
|
235
248
|
if (this['siteInfo'] && this['siteInfo']['mapping'] && this['siteInfo']['mapping']['site_name']) name = this['siteInfo']['mapping']['site_name'];
|
|
@@ -318,6 +331,14 @@
|
|
|
318
331
|
display: flex;
|
|
319
332
|
justify-content: space-between;
|
|
320
333
|
align-items: center;
|
|
334
|
+
.quick {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
padding: 12rpx 24rpx;
|
|
339
|
+
border-radius: 36rpx;
|
|
340
|
+
margin-left: 16rpx;
|
|
341
|
+
}
|
|
321
342
|
|
|
322
343
|
&-back {
|
|
323
344
|
padding-left: unit(20, rpx);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Notice
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
10
|
+
mapFnName: 'getNoticeByIdFilmSquate',
|
|
11
|
+
title: '获取电影广场列表',
|
|
12
|
+
path: '/api/account/film/list-film-square',
|
|
13
|
+
isRule: false,
|
|
14
|
+
params: {
|
|
15
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
+
},
|
|
18
|
+
isConsole: true,
|
|
19
|
+
disabled: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
23
|
+
mapFnName: 'updateNoticeFilmPaiqiDate',
|
|
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
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
36
|
+
mapFnName: 'removeNoticeFilmAddress',
|
|
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
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
48
|
+
mapFnName: 'addNoticeFilmcart',
|
|
49
|
+
title: '添加购物车',
|
|
50
|
+
path: '/api/account/film/paiqi-date',
|
|
51
|
+
isRule: false,
|
|
52
|
+
params: {
|
|
53
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
+
},
|
|
55
|
+
isConsole: true,
|
|
56
|
+
disabled: true,
|
|
57
|
+
},
|
|
58
|
+
];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgColor',
|
|
14
|
+
value: data.bgColor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
groupKey:'content',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '选中路径:',
|
|
20
|
+
groupKey:'advanced',
|
|
21
|
+
className: 'input100',
|
|
22
|
+
ele: 'xd-select-pages-path',
|
|
23
|
+
valueKey: 'select-pages-path',
|
|
24
|
+
value: data['select-pages-path'] || null,
|
|
25
|
+
setting: {
|
|
26
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
data.bgColor && {
|
|
30
|
+
label: '高度:',
|
|
31
|
+
ele: 'el-input',
|
|
32
|
+
groupKey:'style',
|
|
33
|
+
type: 'number',
|
|
34
|
+
valueKey: 'height',
|
|
35
|
+
value: data.height || 100,
|
|
36
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
37
|
+
className: 'input60',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: '', //label
|
|
41
|
+
groupKey:'advanced',
|
|
42
|
+
ele: 'slot', //package 名称
|
|
43
|
+
slot: 'is_reference',
|
|
44
|
+
},
|
|
45
|
+
].filter(i=>i)
|
|
46
|
+
},
|
|
47
|
+
advanced: [],
|
|
48
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-notice-dialog"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-notice-dialog__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-notice-dialog__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-notice-dialog__body">
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseNoticeDialogMixin from "./JfbBaseNoticeDialogMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBaseNoticeDialog",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
33
|
+
},
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseNoticeDialogMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
//todo
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
container(value, oldValue) {
|
|
45
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
created() {
|
|
50
|
+
this.init(this.container);
|
|
51
|
+
|
|
52
|
+
//todo
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
onJfbLoad(options) {
|
|
56
|
+
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
58
|
+
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
+
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 监听事件变化
|
|
69
|
+
* @param container {object} 业务组件对象自己
|
|
70
|
+
*/
|
|
71
|
+
init(container) {
|
|
72
|
+
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
+
},
|
|
77
|
+
onJfbScroll(options) {
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
82
|
+
},
|
|
83
|
+
onJfbShow(options) {
|
|
84
|
+
console.log('event.onJfbShow', options)
|
|
85
|
+
},
|
|
86
|
+
onJfbHide(options) {
|
|
87
|
+
console.log('event.onJfbHide', options)
|
|
88
|
+
},
|
|
89
|
+
onJfbBack(options) {
|
|
90
|
+
console.log('event.onJfbBack', options)
|
|
91
|
+
},
|
|
92
|
+
onJfbUpdate(...data) {
|
|
93
|
+
console.log('event.onJfbUpdate', data)
|
|
94
|
+
},
|
|
95
|
+
onJfbCustomEvent(options) {
|
|
96
|
+
console.log('event.onJfbReachBottom', options)
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped lang="less">
|
|
104
|
+
@import "./JfbBaseNoticeDialogLess.less";
|
|
105
|
+
|
|
106
|
+
.jfb-base-notice-dialog {
|
|
107
|
+
&__body{
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-base-notice-dialog {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: 4;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(-52, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
line-height: unit(50, rpx);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .6);
|
|
54
|
+
border-radius: unit(10, rpx);
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
|
|
59
|
+
&-icon{
|
|
60
|
+
padding: 0 unit(20, rpx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.editx {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//end
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**notPreview**/
|
|
73
|
+
.jfb-base-notice-dialog {
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
78
|
+
}
|
|
79
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-base-notice-dialog'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -336,6 +336,29 @@ export default {
|
|
|
336
336
|
],
|
|
337
337
|
hidden: data.previewCurrent !== 'card'
|
|
338
338
|
},
|
|
339
|
+
{
|
|
340
|
+
label: "无票券时是否展示购买新卡入口:",
|
|
341
|
+
ele: "xd-radio",
|
|
342
|
+
valueKey: "isShowBuy",
|
|
343
|
+
value: data.isShowBuy || "N",
|
|
344
|
+
list: [
|
|
345
|
+
{ label: "展示", value: "Y" },
|
|
346
|
+
{ label: "隐藏", value: "N" }
|
|
347
|
+
],
|
|
348
|
+
groupKey: "content",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
label: '购买新卡文案:',
|
|
352
|
+
ele: 'el-input',
|
|
353
|
+
type: 'text',
|
|
354
|
+
valueKey: 'buy_name',
|
|
355
|
+
groupKey:'content',
|
|
356
|
+
value: data.buy_name || '',
|
|
357
|
+
placeholder: '请输入购买新卡文案',
|
|
358
|
+
className: 'input80',
|
|
359
|
+
inline: false,
|
|
360
|
+
notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
361
|
+
},
|
|
339
362
|
{
|
|
340
363
|
ele: "title",
|
|
341
364
|
label: "我的优惠券内容配置",
|
|
@@ -1114,6 +1137,18 @@ export default {
|
|
|
1114
1137
|
},
|
|
1115
1138
|
inline: false,
|
|
1116
1139
|
},
|
|
1140
|
+
{
|
|
1141
|
+
label: '购买新卡地址:',
|
|
1142
|
+
ele: 'xd-select-pages-path',
|
|
1143
|
+
valueKey: 'buy_new_url',
|
|
1144
|
+
groupKey:'advanced',
|
|
1145
|
+
placeholder: '请选择购买新卡地址',
|
|
1146
|
+
value: data.buy_new_url || null,
|
|
1147
|
+
setting: {
|
|
1148
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
1149
|
+
},
|
|
1150
|
+
inline: false,
|
|
1151
|
+
},
|
|
1117
1152
|
].filter(i=>i)
|
|
1118
1153
|
},
|
|
1119
1154
|
advanced: [],
|
|
@@ -104,7 +104,9 @@
|
|
|
104
104
|
</view>
|
|
105
105
|
<view v-else class="empty_data">
|
|
106
106
|
<image :src="emptyBg"></image>
|
|
107
|
-
|
|
107
|
+
<view style="display:flex;align-items: center;justify-content: center;">
|
|
108
|
+
暂无票券 <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
|
|
109
|
+
</view>
|
|
108
110
|
</view>
|
|
109
111
|
</view>
|
|
110
112
|
</template>
|
|
@@ -245,6 +247,9 @@
|
|
|
245
247
|
cardBtnMinWidth: 100,
|
|
246
248
|
menuShowType: "text",
|
|
247
249
|
cardFontColor: "",
|
|
250
|
+
buy_new_url: '',
|
|
251
|
+
isShowBuy: "",
|
|
252
|
+
buy_name: ""
|
|
248
253
|
}
|
|
249
254
|
},
|
|
250
255
|
computed: {
|
|
@@ -587,6 +592,9 @@
|
|
|
587
592
|
this.noticePadding = getContainerPropsValue(value, "content.noticePadding", {top: 20, left: 20, right: 20, bottom: 20});
|
|
588
593
|
this.noticeFont = getContainerPropsValue(value, "content.noticeFont", {});
|
|
589
594
|
this.noticeMoreFont = getContainerPropsValue(value, "content.noticeMoreFont", {});
|
|
595
|
+
this.isShowBuy = getContainerPropsValue(value, "content.isShowBuy", "N");
|
|
596
|
+
this.buy_name = getContainerPropsValue(value, "content.buy_name", "购买新卡");
|
|
597
|
+
this.buy_new_url = getContainerPropsValue(value,"content.buy_new_url",{value: ""}).value;
|
|
590
598
|
|
|
591
599
|
console.log(this.cardShadow, 'cardShadow')
|
|
592
600
|
if(this.bindCardTextStyle && !this.bindCardTextStyle.color){
|
|
@@ -716,6 +724,11 @@
|
|
|
716
724
|
url: this.disabledPath
|
|
717
725
|
})
|
|
718
726
|
},
|
|
727
|
+
toBuyNew() {
|
|
728
|
+
this.$xdUniHelper.navigateTo({
|
|
729
|
+
url: `${this.buy_new_url}`,
|
|
730
|
+
});
|
|
731
|
+
},
|
|
719
732
|
onJfbScroll(options) {
|
|
720
733
|
// console.log('event.onJfbScroll', options)
|
|
721
734
|
},
|
|
@@ -886,6 +899,13 @@
|
|
|
886
899
|
flex-direction: column;
|
|
887
900
|
align-items: center;
|
|
888
901
|
justify-content: center;
|
|
902
|
+
.buy_new {
|
|
903
|
+
display: flex;
|
|
904
|
+
margin-left: 8rpx;
|
|
905
|
+
& > view:first-child {
|
|
906
|
+
margin-right: 8rpx;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
889
909
|
& > image {
|
|
890
910
|
width: unit(460,rpx);
|
|
891
911
|
height: unit(400,rpx);
|
|
@@ -44,6 +44,29 @@ export default {
|
|
|
44
44
|
notice: '卡券自定义名称设置,默认值:<span style="color:red">卡券</span>,长度为:1-4字符',
|
|
45
45
|
inline: false,
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
label: "无票券时是否展示购买新卡入口:",
|
|
49
|
+
ele: "xd-radio",
|
|
50
|
+
valueKey: "isShowBuy",
|
|
51
|
+
value: data.isShowBuy || "N",
|
|
52
|
+
list: [
|
|
53
|
+
{ label: "展示", value: "Y" },
|
|
54
|
+
{ label: "隐藏", value: "N" }
|
|
55
|
+
],
|
|
56
|
+
groupKey: "content",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: '购买新卡文案:',
|
|
60
|
+
ele: 'el-input',
|
|
61
|
+
type: 'text',
|
|
62
|
+
valueKey: 'buy_name',
|
|
63
|
+
groupKey:'content',
|
|
64
|
+
value: data.buy_name || '',
|
|
65
|
+
placeholder: '请输入购买新卡文案',
|
|
66
|
+
className: 'input80',
|
|
67
|
+
inline: false,
|
|
68
|
+
notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
69
|
+
},
|
|
47
70
|
|
|
48
71
|
//style
|
|
49
72
|
{
|
|
@@ -519,6 +542,18 @@ export default {
|
|
|
519
542
|
router: XdBus.getParentApi('getPagesTree'),
|
|
520
543
|
},
|
|
521
544
|
},
|
|
545
|
+
{
|
|
546
|
+
label: '购买新卡地址:',
|
|
547
|
+
ele: 'xd-select-pages-path',
|
|
548
|
+
valueKey: 'buy_new_url',
|
|
549
|
+
groupKey:'advanced',
|
|
550
|
+
placeholder: '请选择购买新卡地址',
|
|
551
|
+
value: data.buy_new_url || null,
|
|
552
|
+
setting: {
|
|
553
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
554
|
+
},
|
|
555
|
+
inline: false,
|
|
556
|
+
},
|
|
522
557
|
{
|
|
523
558
|
label: '',
|
|
524
559
|
ele: 'slot',
|