jufubao-base 1.0.130-beta3 → 1.0.130
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 +3 -4
- package/src/components/JfbBaseAddress/Attr.js +5 -11
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +19 -18
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +7 -19
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +4 -6
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +19 -18
- package/src/components/JfbBaseAfterOrderList/Attr.js +16 -25
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +9 -6
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +19 -18
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +19 -18
- package/src/components/JfbBaseBackground/Attr.js +8 -9
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +19 -18
- package/src/components/JfbBaseBlock/Attr.js +2 -12
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +8 -1
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +19 -18
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +19 -18
- package/src/components/JfbBaseCard/Attr.js +34 -76
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
- package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
- package/src/components/JfbBaseCardDetail/Attr.js +3 -4
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
- package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
- package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
- package/src/components/JfbBaseCardEntry/Attr.js +67 -86
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -3
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
- package/src/components/JfbBaseCardInfo/Attr.js +16 -22
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
- package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
- package/src/components/JfbBaseCardMerge/Attr.js +8 -21
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
- package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
- package/src/components/JfbBaseCardShift/Attr.js +4 -18
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
- package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
- package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
- package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
- package/src/components/JfbBaseCardV2/Attr.js +15 -19
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
- package/src/components/JfbBaseCardV3/Attr.js +12 -16
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
- package/src/components/JfbBaseCity/Attr.js +4 -2
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
- package/src/components/JfbBaseConDialog/Api.js +1 -1
- package/src/components/JfbBaseConDialog/Attr.js +20 -30
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +26 -45
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
- package/src/components/JfbBaseConDialog/Mock.js +1 -20
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
- package/src/components/JfbBaseConList/Attr.js +224 -149
- package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
- package/src/components/JfbBaseEntry/Attr.js +21 -33
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
- package/src/components/JfbBaseFastLink/Api.js +54 -1
- package/src/components/JfbBaseFastLink/Attr.js +116 -168
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
- package/src/components/JfbBaseFooter/Attr.js +22 -28
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
- package/src/components/JfbBaseHeader/Attr.js +91 -89
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
- package/src/components/JfbBaseLine/Attr.js +59 -0
- package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
- package/src/components/JfbBaseLogin/Attr.js +88 -111
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +1 -0
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
- package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
- package/src/components/JfbBaseMapSearch/Attr.js +15 -0
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
- package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
- package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
- package/src/components/JfbBaseMySetting/Attr.js +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
- package/src/components/JfbBaseNotice/Attr.js +56 -97
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +52 -70
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
- package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -6
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
- package/src/components/JfbBaseOrderList/Attr.js +43 -55
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
- package/src/components/JfbBasePay/Attr.js +13 -2
- package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
- package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
- package/src/components/JfbBasePay/Mock.js +1 -2
- package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
- package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
- package/src/components/JfbBasePoster/Attr.js +83 -103
- package/src/components/JfbBasePoster/JfbBasePoster.vue +141 -134
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
- package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +14 -9
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
- package/src/components/JfbBasePosterEntry/Attr.js +33 -44
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +49 -44
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
- package/src/components/JfbBasePosterType/Attr.js +48 -82
- package/src/components/JfbBasePosterType/FourScreen.vue +2 -8
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
- package/src/components/JfbBasePosterType/Screen.vue +284 -0
- package/src/components/JfbBaseRecharge/Attr.js +23 -35
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
- package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
- package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
- package/src/components/JfbBaseSearch/Api.js +60 -0
- package/src/components/JfbBaseSearch/Attr.js +148 -6
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
- package/src/components/JfbBaseSearch/Mock.js +5 -0
- package/src/components/JfbBaseSetPwd/Attr.js +147 -6
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
- package/src/components/JfbBaseSuccess/Attr.js +17 -78
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
- package/src/components/JfbBaseUserCenter/Attr.js +53 -72
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
- package/src/components/JfbBaseUserInfo/Attr.js +45 -54
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
- package/src/components/JfbBaseUserOrder/Attr.js +92 -118
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
- package/src/components/JfbBaseVideo/Attr.js +19 -72
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
- package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
- package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
- package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
- package/src/components/JfbBaseCardShift/Mock.js +0 -21
|
@@ -6,47 +6,26 @@
|
|
|
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
|
-
|
|
13
9
|
return [
|
|
14
|
-
// {
|
|
15
|
-
// label: '是否隐藏弹框(仅预览模式生效):',
|
|
16
|
-
// ele: 'xd-radio',
|
|
17
|
-
// valueKey: 'isHide',
|
|
18
|
-
// groupKey:'content',
|
|
19
|
-
// value: isHide,
|
|
20
|
-
// placeholder: '请选择是否隐藏弹框',
|
|
21
|
-
// multiple: false,
|
|
22
|
-
// className: 'input60',
|
|
23
|
-
// list: [
|
|
24
|
-
// { label: '是', value: true },
|
|
25
|
-
// { label: '否', value: false },
|
|
26
|
-
// ]
|
|
27
|
-
// },
|
|
28
10
|
{
|
|
29
|
-
label: '选取优惠券列表路径:',
|
|
30
|
-
ele: 'xd-select-pages-path',
|
|
31
|
-
valueKey: 'list_url',
|
|
32
|
-
groupKey:'advanced',
|
|
11
|
+
label: '选取优惠券列表路径:', //label
|
|
12
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
+
valueKey: 'list_url', //form[valueKey]
|
|
33
14
|
placeholder: '请选择优惠券列表路径',
|
|
34
|
-
value: data['list_url'] ||
|
|
15
|
+
value: data['list_url'] ||null,
|
|
35
16
|
setting: {
|
|
36
17
|
router: XdBus.getParentApi('getPagesTree'),
|
|
37
18
|
},
|
|
38
19
|
inline: false,
|
|
39
20
|
},
|
|
40
|
-
|
|
41
21
|
{
|
|
42
22
|
label: '活动提示方式:',
|
|
43
23
|
ele: 'xd-radio',
|
|
44
24
|
valueKey: 'type',
|
|
45
|
-
groupKey:'content',
|
|
46
25
|
value: data['type']||1,
|
|
47
26
|
placeholder: '请选择活动提示方式',
|
|
48
27
|
multiple: false,
|
|
49
|
-
className: '
|
|
28
|
+
className: 'input80',
|
|
50
29
|
list: [
|
|
51
30
|
{ label: '弹框', value: 1 },
|
|
52
31
|
{ label: '切换', value: 2 },
|
|
@@ -56,8 +35,7 @@ export default {
|
|
|
56
35
|
label: "触发事件:",
|
|
57
36
|
ele: "xd-select-list",
|
|
58
37
|
valueKey: "distribution_method",
|
|
59
|
-
|
|
60
|
-
value: distribution_method,
|
|
38
|
+
value: data.distribution_method || "",
|
|
61
39
|
placeholder: "请选择触发事件",
|
|
62
40
|
className: 'input80',
|
|
63
41
|
list: [
|
|
@@ -71,12 +49,24 @@ export default {
|
|
|
71
49
|
ele: 'el-input',
|
|
72
50
|
type: 'text',
|
|
73
51
|
valueKey: 'time',
|
|
74
|
-
groupKey:'content',
|
|
75
52
|
value: data.time || '',
|
|
76
53
|
placeholder: '请输入弹窗间隔,默认值:3小时',
|
|
77
|
-
className: '
|
|
54
|
+
className: 'input80',
|
|
78
55
|
unit: '小时'
|
|
79
56
|
},
|
|
57
|
+
{
|
|
58
|
+
label: '是否隐藏弹框(仅预览模式生效):',
|
|
59
|
+
ele: 'xd-radio',
|
|
60
|
+
valueKey: 'isHide',
|
|
61
|
+
value: data['isHide']||false,
|
|
62
|
+
placeholder: '请选择是否隐藏弹框',
|
|
63
|
+
multiple: false,
|
|
64
|
+
className: 'input80',
|
|
65
|
+
list: [
|
|
66
|
+
{ label: '是', value: true },
|
|
67
|
+
{ label: '否', value: false },
|
|
68
|
+
]
|
|
69
|
+
},
|
|
80
70
|
].filter(i=>i)
|
|
81
71
|
},
|
|
82
72
|
advanced: [],
|
|
@@ -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"
|
|
21
|
+
<view class="jfb-base-con-dialog__body-dialog-mask"></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,11 +60,13 @@
|
|
|
60
60
|
></xd-cou-card-bind>
|
|
61
61
|
</view>
|
|
62
62
|
</view>
|
|
63
|
+
|
|
63
64
|
<view
|
|
64
65
|
:style="{ background: backgroundColor, color: warningColor }"
|
|
65
66
|
class="jfb-base-con-dialog__body-pop"
|
|
66
67
|
v-if="isPreview"
|
|
67
|
-
|
|
68
|
+
>弹框方便编辑(占位),在线上此模块不显</view
|
|
69
|
+
>
|
|
68
70
|
</view>
|
|
69
71
|
</view>
|
|
70
72
|
</template>
|
|
@@ -117,9 +119,9 @@ export default {
|
|
|
117
119
|
...mapState(["pageBusinessCode"]),
|
|
118
120
|
},
|
|
119
121
|
watch: {
|
|
120
|
-
container(value
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
container(value) {
|
|
123
|
+
console.log(value, "aakakakkaka");
|
|
124
|
+
this.init(value);
|
|
123
125
|
},
|
|
124
126
|
},
|
|
125
127
|
created() {
|
|
@@ -128,21 +130,18 @@ export default {
|
|
|
128
130
|
this.init(this.container);
|
|
129
131
|
},
|
|
130
132
|
methods: {
|
|
131
|
-
handleMaskHide(){
|
|
132
|
-
if(this.isPreview ) this.isShow = false;
|
|
133
|
-
},
|
|
134
|
-
|
|
135
133
|
init(value) {
|
|
136
|
-
this.list_url = getContainerPropsValue(value, "content.list_url", {
|
|
134
|
+
this.list_url = getContainerPropsValue(value, "content.list_url", {
|
|
135
|
+
value: "",
|
|
136
|
+
}).value;
|
|
137
137
|
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
|
|
138
138
|
this.type = getContainerPropsValue(value, "content.type", 1);
|
|
139
|
-
this.isHide = false;
|
|
139
|
+
this.isHide = getContainerPropsValue(value, "content.isHide", false);
|
|
140
140
|
this.time = Number(getContainerPropsValue(value, "content.time", 3));
|
|
141
141
|
if (this.isPreview) {
|
|
142
142
|
this.isShow = !this.isHide;
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
|
|
146
145
|
//领取优惠券
|
|
147
146
|
handleGetCoupon(item){
|
|
148
147
|
this.$xdShowLoading({});
|
|
@@ -154,7 +153,7 @@ export default {
|
|
|
154
153
|
...this.dispatchData
|
|
155
154
|
}
|
|
156
155
|
}).then(res => {
|
|
157
|
-
if (res.code
|
|
156
|
+
if (res.code == 400) {
|
|
158
157
|
this.$xdHideLoading();
|
|
159
158
|
this.$xdAlert({
|
|
160
159
|
content: res.message,
|
|
@@ -173,7 +172,6 @@ export default {
|
|
|
173
172
|
console.log(err, "err");
|
|
174
173
|
});
|
|
175
174
|
},
|
|
176
|
-
|
|
177
175
|
getResult() {
|
|
178
176
|
jfbRootExec("getCouponResult", {
|
|
179
177
|
vm: this,
|
|
@@ -207,7 +205,7 @@ export default {
|
|
|
207
205
|
time: 2000,
|
|
208
206
|
isClose: false,
|
|
209
207
|
});
|
|
210
|
-
if (res.code
|
|
208
|
+
if (res.code == 400) {
|
|
211
209
|
this.getDialogList();
|
|
212
210
|
}
|
|
213
211
|
if (this.timer) {
|
|
@@ -233,7 +231,6 @@ export default {
|
|
|
233
231
|
console.log(err, "err");
|
|
234
232
|
});
|
|
235
233
|
},
|
|
236
|
-
|
|
237
234
|
p_getDialogList(){
|
|
238
235
|
jfbRootExec("getCouponDialogList", {
|
|
239
236
|
vm: this,
|
|
@@ -244,6 +241,7 @@ export default {
|
|
|
244
241
|
},
|
|
245
242
|
})
|
|
246
243
|
.then((res) => {
|
|
244
|
+
console.log(res, "resresres");
|
|
247
245
|
this.list = res.list;
|
|
248
246
|
if(res.list.length === 0) return;
|
|
249
247
|
this.currentImage = getServiceUrl(
|
|
@@ -259,9 +257,8 @@ export default {
|
|
|
259
257
|
console.log(err, "err");
|
|
260
258
|
});
|
|
261
259
|
},
|
|
262
|
-
|
|
263
260
|
p_getCouponList(){
|
|
264
|
-
jfbRootExec("
|
|
261
|
+
jfbRootExec("getCouponList", {
|
|
265
262
|
vm: this,
|
|
266
263
|
data: {
|
|
267
264
|
distribution_method: this.distribution_method,
|
|
@@ -278,7 +275,6 @@ export default {
|
|
|
278
275
|
}
|
|
279
276
|
})
|
|
280
277
|
},
|
|
281
|
-
|
|
282
278
|
getDialogList() {
|
|
283
279
|
if(this.distribution_method === 'card_binded'){
|
|
284
280
|
this.p_getCouponList();
|
|
@@ -286,30 +282,21 @@ export default {
|
|
|
286
282
|
this.p_getDialogList();
|
|
287
283
|
}
|
|
288
284
|
},
|
|
289
|
-
|
|
290
285
|
handlePop() {
|
|
291
|
-
console.
|
|
286
|
+
console.log("this.time", this.time * 60 + "分钟");
|
|
292
287
|
storage.set(this.containerId, 1, this.time);
|
|
293
288
|
this.isShow = true;
|
|
294
289
|
},
|
|
295
|
-
|
|
296
290
|
onJfbLoad(options) {
|
|
297
|
-
|
|
298
|
-
//预览模式
|
|
299
|
-
if(this.isPreview) {
|
|
300
|
-
this.getDialogList();
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
//非绑卡组件与支付组件(直接触发)
|
|
305
|
-
if (!storage.get(this.containerId) &&
|
|
306
|
-
this.distribution_method !== "paid" &&
|
|
307
|
-
this.distribution_method !== "card_binded"
|
|
308
|
-
){
|
|
309
|
-
this.getDialogList();
|
|
310
|
-
}
|
|
311
|
-
|
|
291
|
+
console.log(11111);
|
|
312
292
|
//支付跟绑卡是主动触发
|
|
293
|
+
try {
|
|
294
|
+
if (!storage.get(this.containerId) &&
|
|
295
|
+
this.distribution_method !== "paid" &&
|
|
296
|
+
this.distribution_method !== "card_binded") this.getDialogList();
|
|
297
|
+
} catch (error) {
|
|
298
|
+
console.log(error, "errorerror");
|
|
299
|
+
}
|
|
313
300
|
if(this.distribution_method === 'card_binded'){
|
|
314
301
|
jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
|
|
315
302
|
}
|
|
@@ -318,17 +305,15 @@ export default {
|
|
|
318
305
|
this.isShow = false;
|
|
319
306
|
this.$bus.$emit("onCloseConDialog", this.containerId);
|
|
320
307
|
},
|
|
321
|
-
|
|
308
|
+
|
|
322
309
|
onJfbUpdate(data) {
|
|
323
310
|
storage.remove(this.containerId);
|
|
324
311
|
this.getDialogList();
|
|
325
312
|
},
|
|
326
|
-
|
|
327
313
|
onJfbShow(options) {
|
|
328
314
|
this.isShow=false
|
|
329
315
|
this.onJfbLoad(options);
|
|
330
316
|
},
|
|
331
|
-
|
|
332
317
|
handleToList() {
|
|
333
318
|
let otherParams = "";
|
|
334
319
|
try {
|
|
@@ -346,9 +331,7 @@ export default {
|
|
|
346
331
|
url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
|
|
347
332
|
});
|
|
348
333
|
},
|
|
349
|
-
|
|
350
334
|
handleClose() {
|
|
351
|
-
debugger
|
|
352
335
|
//切换下一张,没有下一张,关闭
|
|
353
336
|
if (this.currentIndex == this.list.length - 1 || this.type == 2) {
|
|
354
337
|
this.isShow = false;
|
|
@@ -363,7 +346,6 @@ export default {
|
|
|
363
346
|
);
|
|
364
347
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
365
348
|
},
|
|
366
|
-
|
|
367
349
|
handleChange(type) {
|
|
368
350
|
this.currentIndex =
|
|
369
351
|
type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
|
|
@@ -380,7 +362,6 @@ export default {
|
|
|
380
362
|
);
|
|
381
363
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
382
364
|
},
|
|
383
|
-
|
|
384
365
|
onJfbCustomEvent({action, data}){
|
|
385
366
|
if(action === '@showBaseConDialog'){
|
|
386
367
|
this.dispatchData = data;
|
|
@@ -419,7 +400,7 @@ export default {
|
|
|
419
400
|
bottom: 0;
|
|
420
401
|
left: 0;
|
|
421
402
|
right: 0;
|
|
422
|
-
background: rgba(0, 0, 0, 0.
|
|
403
|
+
background: rgba(0, 0, 0, 0.5);
|
|
423
404
|
}
|
|
424
405
|
|
|
425
406
|
&-content {
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-con-dialog {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-con-dialog {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|
|
@@ -26,24 +26,5 @@ module.exports = {
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"request_id": "4b9803ed0ecdc0f6"
|
|
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
|
-
},
|
|
29
|
+
}
|
|
49
30
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="xd-cou-card-bind">
|
|
3
|
-
<view
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
backgroundImage: dialogBackground
|
|
7
|
-
}"
|
|
8
|
-
>
|
|
3
|
+
<view class="ticket_box" :style="{
|
|
4
|
+
backgroundImage: dialogBackground
|
|
5
|
+
}">
|
|
9
6
|
<view class="ticket_list">
|
|
10
|
-
<view
|
|
11
|
-
|
|
12
|
-
:class="item.can_take_num"
|
|
13
|
-
v-for="(item,i) in uiList"
|
|
14
|
-
:key="i"
|
|
7
|
+
<view class="ticket_item" :class="item.can_take_num"
|
|
8
|
+
v-for="(item,i) in uiList" :key="i"
|
|
15
9
|
>
|
|
16
10
|
<view class="item_head">
|
|
17
11
|
<image class="t_icon" mode="widthFix" :src="item.headIcon"></image>
|
|
@@ -35,7 +29,7 @@
|
|
|
35
29
|
</view>
|
|
36
30
|
</view>
|
|
37
31
|
</view>
|
|
38
|
-
|
|
32
|
+
|
|
39
33
|
<xd-font-icon
|
|
40
34
|
@click="handleClose"
|
|
41
35
|
class="dialog_close"
|
|
@@ -122,7 +116,7 @@ export default{
|
|
|
122
116
|
box-sizing: border-box;
|
|
123
117
|
padding-bottom: 20rpx;
|
|
124
118
|
}
|
|
125
|
-
|
|
119
|
+
|
|
126
120
|
.ticket_item{
|
|
127
121
|
display: flex;
|
|
128
122
|
flex-direction: column;
|
|
@@ -149,7 +143,7 @@ export default{
|
|
|
149
143
|
}
|
|
150
144
|
.ticket_icon{
|
|
151
145
|
color: #D6D6D6;
|
|
152
|
-
|
|
146
|
+
|
|
153
147
|
}
|
|
154
148
|
.btn{
|
|
155
149
|
.xd-button{
|
|
@@ -202,4 +196,4 @@ export default{
|
|
|
202
196
|
transform: translateX(-50%);
|
|
203
197
|
}
|
|
204
198
|
}
|
|
205
|
-
</style>
|
|
199
|
+
</style>
|