jufubao-base 1.0.252 → 1.0.253-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/JfbBaseCardDetailEntry/Attr.js +11 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +6 -6
- package/src/components/JfbBaseCardEntry/Attr.js +27 -16
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +4 -2
- package/src/components/JfbBaseCardEntry/Mock.js +20 -1
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +2 -4
- package/src/components/JfbBaseCardInfoEntry/Attr.js +36 -25
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +5 -2
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +4 -5
package/package.json
CHANGED
|
@@ -26,6 +26,17 @@ export default {
|
|
|
26
26
|
});
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
label: "是否展示主业务线",
|
|
31
|
+
ele: "xd-radio",
|
|
32
|
+
valueKey: "isShowBuss",
|
|
33
|
+
groupKey:'content',
|
|
34
|
+
value: 'N',
|
|
35
|
+
list: [
|
|
36
|
+
{label: "展示", value: "Y"},
|
|
37
|
+
{label: "隐藏", value: "N"},
|
|
38
|
+
]
|
|
39
|
+
},
|
|
29
40
|
{
|
|
30
41
|
label: '票券解绑成功回跳地址:',
|
|
31
42
|
ele: 'xd-select-pages-path',
|
|
@@ -51,14 +51,12 @@
|
|
|
51
51
|
<view class="card_sec">券号:{{ info.card_number }}</view>
|
|
52
52
|
<view class="card_sec">有效期:{{ info.end_time }}</view>
|
|
53
53
|
<view class="card_sec">
|
|
54
|
-
余额:{{ info.card_point }}{{ info.unit }}
|
|
55
|
-
<text
|
|
54
|
+
<text>{{isShowBuss==='Y'?info.main_business_code_name:''}}余额:{{ info.card_point }}{{ info.unit }}</text>
|
|
55
|
+
<text
|
|
56
|
+
v-if="info.other_card_point && info.card_point_type === 2"
|
|
56
57
|
style="font-size: 24rpx;margin-left: 20rpx;"
|
|
57
58
|
>(购买其他物品可抵:{{info.other_card_point}} {{ info.unit }})</text>
|
|
58
59
|
</view>
|
|
59
|
-
<!-- <view class="card_other" v-if="info.other_card_point && info.card_point_type === 2">
|
|
60
|
-
<text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text>
|
|
61
|
-
</view> -->
|
|
62
60
|
</view>
|
|
63
61
|
</view>
|
|
64
62
|
<view
|
|
@@ -145,6 +143,7 @@ export default {
|
|
|
145
143
|
return {
|
|
146
144
|
userInfo: null, //用户信息(暂时不可用)
|
|
147
145
|
entryGroupId: '',//加载入口数据组别
|
|
146
|
+
isShowBuss:'N',//是否展示主营业务线
|
|
148
147
|
|
|
149
148
|
info: null,
|
|
150
149
|
timeStr: "",
|
|
@@ -225,6 +224,7 @@ export default {
|
|
|
225
224
|
* @param container {object} 业务组件对象自己
|
|
226
225
|
*/
|
|
227
226
|
init(container) {
|
|
227
|
+
this.isShowBuss = getContainerPropsValue(container, 'content.isShowBuss', 'N')
|
|
228
228
|
this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "" }).value;
|
|
229
229
|
this.shift_url = getContainerPropsValue(container, "content.shift_url", { value: "" }).value;
|
|
230
230
|
this.give_url = getContainerPropsValue(container, "content.give_url", { value: "" }).value;
|
|
@@ -574,7 +574,7 @@ export default {
|
|
|
574
574
|
border-radius: 24rpx;
|
|
575
575
|
padding: 24rpx;
|
|
576
576
|
|
|
577
|
-
|
|
577
|
+
|
|
578
578
|
&-title{
|
|
579
579
|
display: flex;
|
|
580
580
|
font-size: 32rpx;
|
|
@@ -61,11 +61,11 @@ export default {
|
|
|
61
61
|
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
62
62
|
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
//获取返回参数(场景类型名称为必填)
|
|
66
66
|
//获取返回参数(场景类型名称为必填)
|
|
67
67
|
let loading = { close(){}}
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
//获取显示内容
|
|
70
70
|
if (action === 'screen') {
|
|
71
71
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
@@ -77,9 +77,9 @@ export default {
|
|
|
77
77
|
console.error(error);
|
|
78
78
|
loading.close();
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
//获取返回参数(广告位高度必选项)
|
|
84
84
|
if (action === 'getNewsInfo') {
|
|
85
85
|
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
console.error(error);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
//获取产品业务线列表
|
|
97
97
|
if (action === 'namespace') {
|
|
98
98
|
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
105
105
|
console.error(error);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
//使用内容分类
|
|
110
110
|
if (action === 'cmsPublishEditxContent') {
|
|
111
111
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
console.error(error);
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
//位置列表
|
|
125
125
|
if (action === 'getListPostion') {
|
|
126
126
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -134,7 +134,7 @@ export default {
|
|
|
134
134
|
console.error(error);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
//位置创建
|
|
139
139
|
if (action === 'addPostion') {
|
|
140
140
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
data.cb(false)
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
|
|
153
153
|
//位置编辑
|
|
154
154
|
if (action === 'editPostion') {
|
|
155
155
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
164
164
|
data.cb(false)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
|
|
168
168
|
//位置删除
|
|
169
169
|
if (action === 'deleltePostion') {
|
|
170
170
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
data.cb(false)
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
|
|
183
183
|
//获取广告位内容列表
|
|
184
184
|
if (action === 'getListContent') {
|
|
185
185
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -193,7 +193,7 @@ export default {
|
|
|
193
193
|
console.error(error);
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
|
|
197
197
|
//广告内容创建
|
|
198
198
|
if (action === 'addContent') {
|
|
199
199
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
208
208
|
data.cb(false)
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
//广告内容编辑
|
|
213
213
|
if (action === 'editContent') {
|
|
214
214
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
data.cb(false)
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
|
|
227
227
|
//广告内容删除
|
|
228
228
|
if (action === 'deleteContent') {
|
|
229
229
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
238
238
|
data.cb(false)
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
|
|
242
242
|
//内容发布
|
|
243
243
|
if (action === 'publish') {
|
|
244
244
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
253
253
|
console.error(error);
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
|
|
257
257
|
//通知页面进行刷新
|
|
258
258
|
if (action === 'update') {
|
|
259
259
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -276,6 +276,17 @@ export default {
|
|
|
276
276
|
inline: false,
|
|
277
277
|
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
278
278
|
},
|
|
279
|
+
{
|
|
280
|
+
label: "是否展示主业务线",
|
|
281
|
+
ele: "xd-radio",
|
|
282
|
+
valueKey: "isShowBuss",
|
|
283
|
+
groupKey:'content',
|
|
284
|
+
value: data['isShowBuss'] || "N",
|
|
285
|
+
list: [
|
|
286
|
+
{label: "展示", value: "Y"},
|
|
287
|
+
{label: "隐藏", value: "N"},
|
|
288
|
+
]
|
|
289
|
+
},
|
|
279
290
|
{
|
|
280
291
|
label: "是否展示核销二维码",
|
|
281
292
|
ele: "xd-radio",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
<text>{{item.end_time}}</text>
|
|
212
212
|
</view>
|
|
213
213
|
<view class="card-list__yue">
|
|
214
|
-
<text
|
|
214
|
+
<text>{{isShowBuss==='Y'?item.main_business_code_name:''}}余额:</text>
|
|
215
215
|
<text>{{item.card_point}} {{ item.unit }}</text>
|
|
216
216
|
</view>
|
|
217
217
|
<view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
<text>{{item.end_time}}</text>
|
|
389
389
|
</view>
|
|
390
390
|
<view class="card-list__yue">
|
|
391
|
-
<text
|
|
391
|
+
<text>{{item.main_business_code_name}}余额:</text>
|
|
392
392
|
<text>{{item.card_point}} {{ item.unit }}</text>
|
|
393
393
|
</view>
|
|
394
394
|
<view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
|
|
@@ -511,6 +511,7 @@ export default {
|
|
|
511
511
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
512
512
|
isChange:'N',
|
|
513
513
|
isTransfering:'N',
|
|
514
|
+
isShowBuss:'N',
|
|
514
515
|
|
|
515
516
|
//提示文案
|
|
516
517
|
noticeBackgroundColor: "",
|
|
@@ -619,6 +620,7 @@ export default {
|
|
|
619
620
|
this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
|
|
620
621
|
this.changeUrl = getContainerPropsValue(container,"content.change_url",{value: ""}).value;
|
|
621
622
|
this.disabledUrl = getContainerPropsValue(container,"content.disabled_url",{value: ""}).value;
|
|
623
|
+
this.isShowBuss = getContainerPropsValue(container,'content.isShowBuss', 'N')
|
|
622
624
|
this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
|
|
623
625
|
this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
|
|
624
626
|
this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
|
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
getListEntryCardBind: {
|
|
5
5
|
"list": [
|
|
6
|
+
{"card_number":"101001000006820",
|
|
7
|
+
"card_point":4989,
|
|
8
|
+
"card_type":"59",
|
|
9
|
+
"card_type_name":"多余额福卡2",
|
|
10
|
+
"unit":"点",
|
|
11
|
+
"end_time":"2024-09-09",
|
|
12
|
+
"is_valid":"Y",
|
|
13
|
+
"main_business_code_name":"电影(勿改)、蛋糕(勿改)",
|
|
14
|
+
"other_card_point":3991,
|
|
15
|
+
"is_exchange":"N",
|
|
16
|
+
"card_point_type":2,
|
|
17
|
+
"business_codes":["cake","market","movie"],
|
|
18
|
+
"is_login":"N",
|
|
19
|
+
"consume_type":"1",
|
|
20
|
+
"card_use_rule":"可凭本票券到电影(勿改)、商城(对应百货)(勿改)、蛋糕(勿改)使用",
|
|
21
|
+
"is_transfering":"N",
|
|
22
|
+
"show_name":"多余额福卡2",
|
|
23
|
+
"is_show_baseinfo":"N","is_gift":"N"
|
|
24
|
+
},
|
|
6
25
|
{
|
|
7
26
|
"card_number": "101001000008422",
|
|
8
27
|
"card_point": 100000,
|
|
@@ -16,7 +35,7 @@ module.exports = {
|
|
|
16
35
|
"is_exchange": "N",
|
|
17
36
|
"is_transfering":"Y",
|
|
18
37
|
"card_point_type": 1,
|
|
19
|
-
"is_login":'
|
|
38
|
+
"is_login":'N',
|
|
20
39
|
"is_gift":"Y",
|
|
21
40
|
"business_codes": ["health"]
|
|
22
41
|
}, {
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
<view class="card_info">
|
|
28
28
|
<view class="card_type">券号:{{ info.card_number }}</view>
|
|
29
29
|
<view class="card_sec">有效期:{{ info.end_time }}</view>
|
|
30
|
-
<view class="card_sec"
|
|
31
|
-
>余额:{{ info.card_point }}{{ info.unit }}</view
|
|
32
|
-
>
|
|
30
|
+
<view class="card_sec">余额:{{ info.card_point }}{{ info.unit }}</view>
|
|
33
31
|
<view
|
|
34
32
|
class="card_other"
|
|
35
33
|
v-if="info.other_card_point && info.card_point_type === 2"
|
|
@@ -136,7 +134,7 @@
|
|
|
136
134
|
<xd-button @click="toSeeShareImg" width="260rpx" type="primary" size="small"
|
|
137
135
|
>查看分享图片</xd-button>
|
|
138
136
|
</view>
|
|
139
|
-
|
|
137
|
+
|
|
140
138
|
<!-- #endif -->
|
|
141
139
|
</view>
|
|
142
140
|
</xd-dailog>
|
|
@@ -26,30 +26,6 @@ export default {
|
|
|
26
26
|
});
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
{
|
|
30
|
-
label: '票券绑定成功回跳地址:',
|
|
31
|
-
ele: 'xd-select-pages-path',
|
|
32
|
-
valueKey: 'back_url',
|
|
33
|
-
groupKey:'advanced',
|
|
34
|
-
placeholder: '请选择票券绑定成功回跳地址',
|
|
35
|
-
value: null,
|
|
36
|
-
setting: {
|
|
37
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
38
|
-
},
|
|
39
|
-
inline: false,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
label: '我的票券跳转地址:',
|
|
43
|
-
ele: 'xd-select-pages-path',
|
|
44
|
-
valueKey: 'my_card_url',
|
|
45
|
-
groupKey:'advanced',
|
|
46
|
-
placeholder: '请选择我的票券跳转地址',
|
|
47
|
-
value: null,
|
|
48
|
-
setting: {
|
|
49
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
50
|
-
},
|
|
51
|
-
inline: false,
|
|
52
|
-
},
|
|
53
29
|
{
|
|
54
30
|
label: '票券号码框自定义文案:',
|
|
55
31
|
ele: 'el-input',
|
|
@@ -80,6 +56,41 @@ export default {
|
|
|
80
56
|
{label: "是", value: "Y"},
|
|
81
57
|
{label: "否", value: "N"},
|
|
82
58
|
]
|
|
83
|
-
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "是否展示主业务线",
|
|
62
|
+
ele: "xd-radio",
|
|
63
|
+
valueKey: "isShowBuss",
|
|
64
|
+
groupKey:'content',
|
|
65
|
+
value: 'N',
|
|
66
|
+
list: [
|
|
67
|
+
{label: "展示", value: "Y"},
|
|
68
|
+
{label: "隐藏", value: "N"},
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: '票券绑定成功回跳地址:',
|
|
73
|
+
ele: 'xd-select-pages-path',
|
|
74
|
+
valueKey: 'back_url',
|
|
75
|
+
groupKey:'advanced',
|
|
76
|
+
placeholder: '请选择票券绑定成功回跳地址',
|
|
77
|
+
value: null,
|
|
78
|
+
setting: {
|
|
79
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
80
|
+
},
|
|
81
|
+
inline: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: '我的票券跳转地址:',
|
|
85
|
+
ele: 'xd-select-pages-path',
|
|
86
|
+
valueKey: 'my_card_url',
|
|
87
|
+
groupKey:'advanced',
|
|
88
|
+
placeholder: '请选择我的票券跳转地址',
|
|
89
|
+
value: null,
|
|
90
|
+
setting: {
|
|
91
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
92
|
+
},
|
|
93
|
+
inline: false,
|
|
94
|
+
},
|
|
84
95
|
],
|
|
85
96
|
};
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<text>{{info.end_time}}</text>
|
|
86
86
|
</view>
|
|
87
87
|
<view class="card-list__yue" v-if="isShowBalance">
|
|
88
|
-
<text
|
|
88
|
+
<text>{{isShowBuss==='Y'?info.main_business_code_name:''}}余额:</text>
|
|
89
89
|
<text>{{info.card_point}} {{ info.unit }}</text>
|
|
90
90
|
</view>
|
|
91
91
|
<view class="card-list__other" v-if="info.is_bind_show_other_point === 'Y' && info.other_card_point && info.card_point_type === 2">
|
|
@@ -158,6 +158,7 @@ export default {
|
|
|
158
158
|
card_pwd_placeholder: "",
|
|
159
159
|
showInfo: false,
|
|
160
160
|
entryGroupId: '',//加载入口数据组别
|
|
161
|
+
isShowBuss:'N',//是否展示主营业务线
|
|
161
162
|
|
|
162
163
|
qrcode: "", //二维码
|
|
163
164
|
showForm: true,
|
|
@@ -242,7 +243,8 @@ export default {
|
|
|
242
243
|
this.handlerAfterBindCard(res);
|
|
243
244
|
})
|
|
244
245
|
.catch();
|
|
245
|
-
}
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
246
248
|
jfbRootExec("pwdCardBindEntry", {
|
|
247
249
|
vm: this,
|
|
248
250
|
data: {
|
|
@@ -313,6 +315,7 @@ export default {
|
|
|
313
315
|
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
314
316
|
this.my_card_url = getContainerPropsValue(container, 'content.my_card_url', { value: "" }).value;
|
|
315
317
|
this.is_show_balance = getContainerPropsValue(container, 'content.is_show_balance', "N");
|
|
318
|
+
this.isShowBuss = getContainerPropsValue(container, 'content.isShowBuss', 'N')
|
|
316
319
|
//'wechat_mini_program|default'
|
|
317
320
|
this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
|
|
318
321
|
},
|
|
@@ -312,8 +312,7 @@ export default {
|
|
|
312
312
|
if(res.receive_method !== "batch") {
|
|
313
313
|
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
314
314
|
if (this.isPreview) {
|
|
315
|
-
|
|
316
|
-
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
315
|
+
this.isShow = getContainerPropsValue(this.container, "content.is_show_dailog", 'Y') === 'N';
|
|
317
316
|
}else this.isShow = true;
|
|
318
317
|
}else{
|
|
319
318
|
this.handleCardBindClose();
|
|
@@ -324,8 +323,8 @@ export default {
|
|
|
324
323
|
} else {
|
|
325
324
|
if(res.can_take === "Y"){
|
|
326
325
|
if (this.isPreview) {
|
|
327
|
-
console.log(getContainerPropsValue(
|
|
328
|
-
this.isShow = getContainerPropsValue(
|
|
326
|
+
console.log(getContainerPropsValue(this.container, "content.is_show_dailog", 'Y'))
|
|
327
|
+
this.isShow = getContainerPropsValue(this.container, "content.is_show_dailog", 'Y') === 'N';
|
|
329
328
|
}else this.isShow = true;
|
|
330
329
|
}else{
|
|
331
330
|
this.handleCardBindClose();
|
|
@@ -374,7 +373,7 @@ export default {
|
|
|
374
373
|
});
|
|
375
374
|
setTimeout(()=>{
|
|
376
375
|
this.getDialogList();
|
|
377
|
-
},2000)
|
|
376
|
+
},2000)
|
|
378
377
|
return;
|
|
379
378
|
}
|
|
380
379
|
this.order_num = res.tmp_order_number;
|