jufubao-base 1.0.135 → 1.0.136
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 +4 -3
- package/src/components/JfbBaseAddress/Attr.js +11 -5
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +18 -19
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +19 -7
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +6 -4
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +18 -19
- package/src/components/JfbBaseAfterOrderList/Attr.js +25 -16
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +6 -9
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +18 -19
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +18 -19
- package/src/components/JfbBaseBackground/Attr.js +9 -8
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +0 -3
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +18 -19
- package/src/components/JfbBaseBlock/Attr.js +12 -2
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +1 -8
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +18 -19
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +18 -19
- package/src/components/JfbBaseCard/Attr.js +78 -41
- package/src/components/JfbBaseCard/JfbBaseCard.vue +12 -23
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
- package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +3 -1
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
- package/src/components/JfbBaseCardDetail/Attr.js +4 -3
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
- package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -13
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
- package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
- package/src/components/JfbBaseCardEntry/Api.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +86 -67
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -5
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
- package/src/components/JfbBaseCardInfo/Attr.js +22 -16
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
- package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
- package/src/components/JfbBaseCardMerge/Attr.js +21 -8
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
- package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
- package/src/components/JfbBaseCardShift/Attr.js +18 -4
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
- package/src/components/JfbBaseCardShift/Mock.js +21 -0
- package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
- package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
- package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
- package/src/components/JfbBaseCardV2/Attr.js +21 -17
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
- package/src/components/JfbBaseCardV3/Attr.js +18 -14
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
- package/src/components/JfbBaseCity/Attr.js +2 -4
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
- package/src/components/JfbBaseClear/Attr.js +17 -0
- package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
- package/src/components/JfbBaseConDialog/Api.js +2 -2
- package/src/components/JfbBaseConDialog/Attr.js +23 -14
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +63 -35
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
- package/src/components/JfbBaseConDialog/Mock.js +20 -1
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
- package/src/components/JfbBaseConList/Api.js +1 -1
- package/src/components/JfbBaseConList/Attr.js +149 -224
- package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
- package/src/components/JfbBaseEntry/Attr.js +33 -21
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
- package/src/components/JfbBaseFastLink/Api.js +1 -54
- package/src/components/JfbBaseFastLink/Attr.js +168 -116
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
- package/src/components/JfbBaseFooter/Attr.js +28 -22
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
- package/src/components/JfbBaseHeader/Attr.js +89 -91
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
- package/src/components/JfbBaseLogin/Api.js +1 -1
- package/src/components/JfbBaseLogin/Attr.js +111 -88
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +4 -5
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
- package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
- package/src/components/JfbBaseMapSearch/Attr.js +0 -15
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
- package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
- package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
- package/src/components/JfbBaseMySetting/Attr.js +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
- package/src/components/JfbBaseNotice/Attr.js +109 -58
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +81 -54
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
- package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +14 -7
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
- package/src/components/JfbBaseOrderList/Attr.js +56 -44
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +43 -8
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
- package/src/components/JfbBasePay/Attr.js +2 -13
- package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
- package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
- package/src/components/JfbBasePay/Mock.js +2 -1
- package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
- package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
- package/src/components/JfbBasePoster/Attr.js +103 -83
- package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
- package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
- package/src/components/JfbBasePosterEntry/Attr.js +47 -34
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
- package/src/components/JfbBasePosterType/Attr.js +82 -48
- package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
- package/src/components/JfbBaseRecharge/Attr.js +35 -23
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
- package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
- package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
- package/src/components/JfbBaseSearch/Attr.js +6 -148
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
- package/src/components/JfbBaseSetPwd/Attr.js +6 -147
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
- package/src/components/JfbBaseSuccess/Attr.js +89 -19
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +48 -26
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
- package/src/components/JfbBaseSuccess/Mock.js +8 -0
- package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
- package/src/components/JfbBaseUserCenter/Attr.js +72 -53
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
- package/src/components/JfbBaseUserInfo/Attr.js +54 -45
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
- package/src/components/JfbBaseUserOrder/Attr.js +119 -94
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
- package/src/components/JfbBaseVideo/Attr.js +72 -19
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
- package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
- package/src/components/JfbBaseWallet/Attr.js +27 -19
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
- package/src/components/JfbBaseWalletDetail/Attr.js +2 -6
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
- package/src/components/JfbBaseWalletIndex/Attr.js +3 -1
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
- package/src/components/JfbBaseWalletItem/Attr.js +3 -1
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
- package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
- package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +34 -28
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
- package/src/components/JfbBaseLine/Attr.js +0 -59
- package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
- package/src/components/JfbBasePosterType/Screen.vue +0 -284
- package/src/components/JfbBaseSearch/Api.js +0 -60
- package/src/components/JfbBaseSearch/Mock.js +0 -5
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
4
8
|
|
|
5
9
|
export default {
|
|
6
10
|
data() {
|
|
7
11
|
return {
|
|
8
12
|
//#ifdef H5
|
|
9
13
|
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
10
18
|
// #endif
|
|
11
19
|
cssRoot: 'jfb-base-clear'
|
|
12
20
|
}
|
|
13
21
|
},
|
|
14
22
|
created() {
|
|
15
23
|
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
16
28
|
|
|
17
29
|
},
|
|
18
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @description
|
|
4
|
+
* @description 卡券登录
|
|
5
5
|
* @type {*[]}
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
@@ -17,7 +17,7 @@ module.exports = [
|
|
|
17
17
|
disabled: true,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
mapFnName: '
|
|
20
|
+
mapFnName: 'getDialogCouponList', //自定义方法名字(必选)
|
|
21
21
|
title: '获取优惠券列表',
|
|
22
22
|
path: '/sms-coupon/v1/activity-prizes-user/list',
|
|
23
23
|
isRule: false,
|
|
@@ -6,26 +6,33 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content:(data) => {
|
|
9
|
+
let distribution_method = data.distribution_method;
|
|
10
|
+
if(!data.distribution_method) distribution_method = 'homed';
|
|
11
|
+
//let isHide = typeof data['isHide'] === 'boolean' ? data['isHide']:false;
|
|
12
|
+
|
|
9
13
|
return [
|
|
10
14
|
{
|
|
11
|
-
label: '选取优惠券列表路径:',
|
|
12
|
-
ele: 'xd-select-pages-path',
|
|
13
|
-
valueKey: 'list_url',
|
|
15
|
+
label: '选取优惠券列表路径:',
|
|
16
|
+
ele: 'xd-select-pages-path',
|
|
17
|
+
valueKey: 'list_url',
|
|
18
|
+
groupKey:'advanced',
|
|
14
19
|
placeholder: '请选择优惠券列表路径',
|
|
15
|
-
value: data['list_url'] ||null,
|
|
20
|
+
value: data['list_url'] || null,
|
|
16
21
|
setting: {
|
|
17
22
|
router: XdBus.getParentApi('getPagesTree'),
|
|
18
23
|
},
|
|
19
24
|
inline: false,
|
|
20
25
|
},
|
|
26
|
+
|
|
21
27
|
{
|
|
22
28
|
label: '活动提示方式:',
|
|
23
29
|
ele: 'xd-radio',
|
|
24
30
|
valueKey: 'type',
|
|
25
|
-
|
|
31
|
+
groupKey:'content',
|
|
32
|
+
value: data['type'] || 1,
|
|
26
33
|
placeholder: '请选择活动提示方式',
|
|
27
34
|
multiple: false,
|
|
28
|
-
className: '
|
|
35
|
+
className: 'input60',
|
|
29
36
|
list: [
|
|
30
37
|
{ label: '弹框', value: 1 },
|
|
31
38
|
{ label: '切换', value: 2 },
|
|
@@ -35,7 +42,8 @@ export default {
|
|
|
35
42
|
label: "触发事件:",
|
|
36
43
|
ele: "xd-select-list",
|
|
37
44
|
valueKey: "distribution_method",
|
|
38
|
-
|
|
45
|
+
groupKey:'content',
|
|
46
|
+
value: distribution_method,
|
|
39
47
|
placeholder: "请选择触发事件",
|
|
40
48
|
className: 'input80',
|
|
41
49
|
list: [
|
|
@@ -49,22 +57,23 @@ export default {
|
|
|
49
57
|
ele: 'el-input',
|
|
50
58
|
type: 'text',
|
|
51
59
|
valueKey: 'time',
|
|
60
|
+
groupKey:'content',
|
|
52
61
|
value: data.time || '',
|
|
53
62
|
placeholder: '请输入弹窗间隔,默认值:3小时',
|
|
54
|
-
className: '
|
|
63
|
+
className: 'input60',
|
|
55
64
|
unit: '小时'
|
|
56
65
|
},
|
|
57
66
|
{
|
|
58
67
|
label: '是否隐藏弹框(仅预览模式生效):',
|
|
59
68
|
ele: 'xd-radio',
|
|
60
|
-
valueKey: '
|
|
61
|
-
|
|
69
|
+
valueKey: 'is_hide_dailog',
|
|
70
|
+
groupKey:'content',
|
|
71
|
+
value: data['is_hide_dailog'] || 'N',
|
|
62
72
|
placeholder: '请选择是否隐藏弹框',
|
|
63
|
-
|
|
64
|
-
className: 'input80',
|
|
73
|
+
className: 'input60',
|
|
65
74
|
list: [
|
|
66
|
-
{ label: '是', value:
|
|
67
|
-
{ label: '否', value:
|
|
75
|
+
{ label: '是', value: 'Y' },
|
|
76
|
+
{ label: '否', value: 'N' },
|
|
68
77
|
]
|
|
69
78
|
},
|
|
70
79
|
].filter(i=>i)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<!-- #endif -->
|
|
19
19
|
<view class="jfb-base-con-dialog__body">
|
|
20
20
|
<view v-if="isShow" class="jfb-base-con-dialog__body-dialog">
|
|
21
|
-
<view class="jfb-base-con-dialog__body-dialog-mask"></view>
|
|
21
|
+
<view class="jfb-base-con-dialog__body-dialog-mask" @click.stop="handleMaskHide"></view>
|
|
22
22
|
<view v-if="distribution_method !== 'card_binded'" class="jfb-base-con-dialog__body-dialog-content">
|
|
23
23
|
<view v-if="list.length>1" class="jfb-base-con-dialog__body-dialog-content-num">
|
|
24
24
|
<text>{{ currentIndex + 1 }}/{{ list.length }}</text>
|
|
@@ -60,13 +60,11 @@
|
|
|
60
60
|
></xd-cou-card-bind>
|
|
61
61
|
</view>
|
|
62
62
|
</view>
|
|
63
|
-
|
|
64
63
|
<view
|
|
65
64
|
:style="{ background: backgroundColor, color: warningColor }"
|
|
66
65
|
class="jfb-base-con-dialog__body-pop"
|
|
67
66
|
v-if="isPreview"
|
|
68
|
-
|
|
69
|
-
>
|
|
67
|
+
>弹框方便编辑(占位),在线上此模块不显</view>
|
|
70
68
|
</view>
|
|
71
69
|
</view>
|
|
72
70
|
</template>
|
|
@@ -100,7 +98,7 @@ export default {
|
|
|
100
98
|
currentBtnImage: "",
|
|
101
99
|
currentIndex: 0,
|
|
102
100
|
isShow: false,
|
|
103
|
-
type:
|
|
101
|
+
type: 1,
|
|
104
102
|
isPreview: false, //是否预览
|
|
105
103
|
activity_id: "",
|
|
106
104
|
backgroundColor: "",
|
|
@@ -113,15 +111,25 @@ export default {
|
|
|
113
111
|
timer: null,
|
|
114
112
|
timeNum: 0,
|
|
115
113
|
|
|
114
|
+
//预览是否显示弹窗
|
|
115
|
+
is_preview_hide_dailog: false,
|
|
116
|
+
|
|
116
117
|
};
|
|
117
118
|
},
|
|
118
119
|
computed: {
|
|
119
120
|
...mapState(["pageBusinessCode"]),
|
|
120
121
|
},
|
|
121
122
|
watch: {
|
|
122
|
-
container(value) {
|
|
123
|
-
|
|
124
|
-
this.init(value)
|
|
123
|
+
container(value,oloValue) {
|
|
124
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
125
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
126
|
+
},
|
|
127
|
+
is_preview_hide_dailog(value){
|
|
128
|
+
if(value === true) this.isShow = false;
|
|
129
|
+
else {
|
|
130
|
+
storage.remove(this.containerId);
|
|
131
|
+
this.onJfbLoad();
|
|
132
|
+
}
|
|
125
133
|
},
|
|
126
134
|
},
|
|
127
135
|
created() {
|
|
@@ -130,18 +138,18 @@ export default {
|
|
|
130
138
|
this.init(this.container);
|
|
131
139
|
},
|
|
132
140
|
methods: {
|
|
141
|
+
handleMaskHide(){
|
|
142
|
+
if(this.isPreview ) this.isShow = false;
|
|
143
|
+
},
|
|
144
|
+
|
|
133
145
|
init(value) {
|
|
134
|
-
this.list_url = getContainerPropsValue(value, "content.list_url", {
|
|
135
|
-
value: "",
|
|
136
|
-
}).value;
|
|
146
|
+
this.list_url = getContainerPropsValue(value, "content.list_url", {value: "",}).value;
|
|
137
147
|
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
|
|
138
148
|
this.type = getContainerPropsValue(value, "content.type", 1);
|
|
139
|
-
this.isHide = getContainerPropsValue(value, "content.isHide", false);
|
|
140
149
|
this.time = Number(getContainerPropsValue(value, "content.time", 3));
|
|
141
|
-
|
|
142
|
-
this.isShow = !this.isHide;
|
|
143
|
-
}
|
|
150
|
+
this.is_preview_hide_dailog = getContainerPropsValue(value, "content.is_hide_dailog", 'N') === 'Y';
|
|
144
151
|
},
|
|
152
|
+
|
|
145
153
|
//领取优惠券
|
|
146
154
|
handleGetCoupon(item){
|
|
147
155
|
this.$xdShowLoading({});
|
|
@@ -153,7 +161,7 @@ export default {
|
|
|
153
161
|
...this.dispatchData
|
|
154
162
|
}
|
|
155
163
|
}).then(res => {
|
|
156
|
-
if (res.code
|
|
164
|
+
if (res.code === 400) {
|
|
157
165
|
this.$xdHideLoading();
|
|
158
166
|
this.$xdAlert({
|
|
159
167
|
content: res.message,
|
|
@@ -172,7 +180,9 @@ export default {
|
|
|
172
180
|
console.log(err, "err");
|
|
173
181
|
});
|
|
174
182
|
},
|
|
183
|
+
|
|
175
184
|
getResult() {
|
|
185
|
+
debugger
|
|
176
186
|
jfbRootExec("getCouponResult", {
|
|
177
187
|
vm: this,
|
|
178
188
|
data: {
|
|
@@ -205,7 +215,7 @@ export default {
|
|
|
205
215
|
time: 2000,
|
|
206
216
|
isClose: false,
|
|
207
217
|
});
|
|
208
|
-
if (res.code
|
|
218
|
+
if (res.code === 400) {
|
|
209
219
|
this.getDialogList();
|
|
210
220
|
}
|
|
211
221
|
if (this.timer) {
|
|
@@ -231,6 +241,7 @@ export default {
|
|
|
231
241
|
console.log(err, "err");
|
|
232
242
|
});
|
|
233
243
|
},
|
|
244
|
+
|
|
234
245
|
p_getDialogList(){
|
|
235
246
|
jfbRootExec("getCouponDialogList", {
|
|
236
247
|
vm: this,
|
|
@@ -241,7 +252,6 @@ export default {
|
|
|
241
252
|
},
|
|
242
253
|
})
|
|
243
254
|
.then((res) => {
|
|
244
|
-
console.log(res, "resresres");
|
|
245
255
|
this.list = res.list;
|
|
246
256
|
if(res.list.length === 0) return;
|
|
247
257
|
this.currentImage = getServiceUrl(
|
|
@@ -257,8 +267,9 @@ export default {
|
|
|
257
267
|
console.log(err, "err");
|
|
258
268
|
});
|
|
259
269
|
},
|
|
270
|
+
|
|
260
271
|
p_getCouponList(){
|
|
261
|
-
jfbRootExec("
|
|
272
|
+
jfbRootExec("getDialogCouponList", {
|
|
262
273
|
vm: this,
|
|
263
274
|
data: {
|
|
264
275
|
distribution_method: this.distribution_method,
|
|
@@ -269,12 +280,17 @@ export default {
|
|
|
269
280
|
this.couponList = list;
|
|
270
281
|
this.couponOther = other;
|
|
271
282
|
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
272
|
-
this.
|
|
283
|
+
if (this.isPreview) {
|
|
284
|
+
debugger
|
|
285
|
+
console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
|
|
286
|
+
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
287
|
+
}else this.isShow = true;
|
|
273
288
|
}else{
|
|
274
289
|
this.handleCardBindClose();
|
|
275
290
|
}
|
|
276
291
|
})
|
|
277
292
|
},
|
|
293
|
+
|
|
278
294
|
getDialogList() {
|
|
279
295
|
if(this.distribution_method === 'card_binded'){
|
|
280
296
|
this.p_getCouponList();
|
|
@@ -282,21 +298,30 @@ export default {
|
|
|
282
298
|
this.p_getDialogList();
|
|
283
299
|
}
|
|
284
300
|
},
|
|
301
|
+
|
|
285
302
|
handlePop() {
|
|
286
|
-
console.
|
|
303
|
+
console.warn(`this.time${this.time * 60 + "分钟"}`);
|
|
287
304
|
storage.set(this.containerId, 1, this.time);
|
|
288
305
|
this.isShow = true;
|
|
289
306
|
},
|
|
307
|
+
|
|
290
308
|
onJfbLoad(options) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
if
|
|
295
|
-
|
|
296
|
-
this.distribution_method !== "card_binded") this.getDialogList();
|
|
297
|
-
} catch (error) {
|
|
298
|
-
console.log(error, "errorerror");
|
|
309
|
+
|
|
310
|
+
//预览模式
|
|
311
|
+
if(this.isPreview) {
|
|
312
|
+
if(!this.is_preview_hide_dailog) this.getDialogList();
|
|
313
|
+
return;
|
|
299
314
|
}
|
|
315
|
+
|
|
316
|
+
//非绑卡组件与支付组件(直接触发)
|
|
317
|
+
if (!storage.get(this.containerId) &&
|
|
318
|
+
this.distribution_method !== "paid" &&
|
|
319
|
+
this.distribution_method !== "card_binded"
|
|
320
|
+
){
|
|
321
|
+
this.getDialogList();
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
//支付跟绑卡是主动触发
|
|
300
325
|
if(this.distribution_method === 'card_binded'){
|
|
301
326
|
jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
|
|
302
327
|
}
|
|
@@ -305,15 +330,17 @@ export default {
|
|
|
305
330
|
this.isShow = false;
|
|
306
331
|
this.$bus.$emit("onCloseConDialog", this.containerId);
|
|
307
332
|
},
|
|
308
|
-
|
|
333
|
+
|
|
309
334
|
onJfbUpdate(data) {
|
|
310
335
|
storage.remove(this.containerId);
|
|
311
336
|
this.getDialogList();
|
|
312
337
|
},
|
|
338
|
+
|
|
313
339
|
onJfbShow(options) {
|
|
314
340
|
this.isShow=false
|
|
315
341
|
this.onJfbLoad(options);
|
|
316
342
|
},
|
|
343
|
+
|
|
317
344
|
handleToList() {
|
|
318
345
|
let otherParams = "";
|
|
319
346
|
try {
|
|
@@ -331,9 +358,10 @@ export default {
|
|
|
331
358
|
url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
|
|
332
359
|
});
|
|
333
360
|
},
|
|
361
|
+
|
|
334
362
|
handleClose() {
|
|
335
363
|
//切换下一张,没有下一张,关闭
|
|
336
|
-
if (this.currentIndex
|
|
364
|
+
if (this.currentIndex === (this.list.length - 1) || this.type === 2) {
|
|
337
365
|
this.isShow = false;
|
|
338
366
|
return;
|
|
339
367
|
}
|
|
@@ -346,9 +374,9 @@ export default {
|
|
|
346
374
|
);
|
|
347
375
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
348
376
|
},
|
|
377
|
+
|
|
349
378
|
handleChange(type) {
|
|
350
|
-
this.currentIndex =
|
|
351
|
-
type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
|
|
379
|
+
this.currentIndex = type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
|
|
352
380
|
//不小于0,不大于数组长度
|
|
353
381
|
this.currentIndex = Math.max(
|
|
354
382
|
0,
|
|
@@ -362,12 +390,12 @@ export default {
|
|
|
362
390
|
);
|
|
363
391
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
364
392
|
},
|
|
393
|
+
|
|
365
394
|
onJfbCustomEvent({action, data}){
|
|
366
395
|
if(action === '@showBaseConDialog'){
|
|
367
396
|
this.dispatchData = data;
|
|
368
397
|
this.getDialogList();
|
|
369
398
|
}
|
|
370
|
-
console.log('onJfbCustomEvent',action, data);
|
|
371
399
|
}
|
|
372
400
|
},
|
|
373
401
|
};
|
|
@@ -400,7 +428,7 @@ export default {
|
|
|
400
428
|
bottom: 0;
|
|
401
429
|
left: 0;
|
|
402
430
|
right: 0;
|
|
403
|
-
background: rgba(0, 0, 0, 0.
|
|
431
|
+
background: rgba(0, 0, 0, 0.3);
|
|
404
432
|
}
|
|
405
433
|
|
|
406
434
|
&-content {
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-con-dialog {
|
|
16
|
-
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
16
|
box-sizing: border-box;
|
|
18
|
-
min-height: unit(50, rpx);
|
|
19
17
|
|
|
20
18
|
&__body{
|
|
21
19
|
position: relative;
|
|
@@ -23,21 +21,22 @@
|
|
|
23
21
|
z-index: 2
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
&.editx {
|
|
24
|
+
&.editx,&.editx:hover {
|
|
27
25
|
position: relative;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
}
|
|
37
39
|
|
|
38
|
-
&.noBorder {
|
|
39
|
-
border-color: rgba(0,0,0,0);
|
|
40
|
-
border-width: 0;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
|
|
@@ -72,9 +71,9 @@
|
|
|
72
71
|
|
|
73
72
|
/**notPreview**/
|
|
74
73
|
.jfb-base-con-dialog {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|
|
@@ -26,5 +26,24 @@ module.exports = {
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"request_id": "4b9803ed0ecdc0f6"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
getDialogCouponList: {
|
|
31
|
+
"list":[
|
|
32
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
33
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
34
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
|
|
35
|
+
],
|
|
36
|
+
"background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg",
|
|
37
|
+
"used_up_url": "",
|
|
38
|
+
"has_times": "Y",
|
|
39
|
+
"can_take":"Y",
|
|
40
|
+
"message":"",
|
|
41
|
+
"app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg",
|
|
42
|
+
"app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg",
|
|
43
|
+
"app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
|
|
44
|
+
"app_coupon_button_see_url": "//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
|
|
45
|
+
"app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg",
|
|
46
|
+
"rule":"<p>打发·</p>",
|
|
47
|
+
"request_id":"a2603f2a480485f4"
|
|
48
|
+
},
|
|
30
49
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="xd-cou-card-bind">
|
|
3
|
-
<view
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<view
|
|
4
|
+
class="ticket_box"
|
|
5
|
+
:style="{
|
|
6
|
+
backgroundImage: dialogBackground
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
6
9
|
<view class="ticket_list">
|
|
7
|
-
<view
|
|
8
|
-
|
|
10
|
+
<view
|
|
11
|
+
class="ticket_item"
|
|
12
|
+
:class="item.can_take_num"
|
|
13
|
+
v-for="(item,i) in uiList"
|
|
14
|
+
:key="i"
|
|
9
15
|
>
|
|
10
16
|
<view class="item_head">
|
|
11
17
|
<image class="t_icon" mode="widthFix" :src="item.headIcon"></image>
|
|
@@ -29,7 +35,7 @@
|
|
|
29
35
|
</view>
|
|
30
36
|
</view>
|
|
31
37
|
</view>
|
|
32
|
-
|
|
38
|
+
|
|
33
39
|
<xd-font-icon
|
|
34
40
|
@click="handleClose"
|
|
35
41
|
class="dialog_close"
|
|
@@ -116,7 +122,7 @@ export default{
|
|
|
116
122
|
box-sizing: border-box;
|
|
117
123
|
padding-bottom: 20rpx;
|
|
118
124
|
}
|
|
119
|
-
|
|
125
|
+
|
|
120
126
|
.ticket_item{
|
|
121
127
|
display: flex;
|
|
122
128
|
flex-direction: column;
|
|
@@ -143,7 +149,7 @@ export default{
|
|
|
143
149
|
}
|
|
144
150
|
.ticket_icon{
|
|
145
151
|
color: #D6D6D6;
|
|
146
|
-
|
|
152
|
+
|
|
147
153
|
}
|
|
148
154
|
.btn{
|
|
149
155
|
.xd-button{
|
|
@@ -196,4 +202,4 @@ export default{
|
|
|
196
202
|
transform: translateX(-50%);
|
|
197
203
|
}
|
|
198
204
|
}
|
|
199
|
-
</style>
|
|
205
|
+
</style>
|