jufubao-base 1.0.110-beta2 → 1.0.113-beta2
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/JfbBaseCardInfo/JfbBaseCardInfo.vue +18 -37
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +17 -37
- package/src/components/JfbBaseConDialog/Api.js +0 -35
- package/src/components/JfbBaseConDialog/Attr.js +0 -13
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -169
- package/src/components/JfbBaseConList/Attr.js +0 -11
- package/src/components/JfbBaseConList/JfbBaseConList.vue +19 -49
- package/src/components/JfbBaseConList/Mock.js +5 -19
- package/src/components/JfbBasePay/Api.js +2 -3
- package/src/components/JfbBasePay/JfbBasePay.vue +18 -28
- package/src/components/JfbBasePoster/JfbBasePoster.vue +2 -2
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +1 -4
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +0 -197
- package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -60
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -106
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -227
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -60
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -265
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -60
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -106
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -172
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
- package/src/components/JfbBaseSaasHome/Api.js +0 -60
- package/src/components/JfbBaseSaasHome/Attr.js +0 -106
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -285
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +0 -80
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +0 -30
- package/src/components/JfbBaseSaasHome/Mock.js +0 -5
- package/src/components/JfbBaseSaasLogin/Api.js +0 -26
- package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -353
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +0 -80
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +0 -30
- package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
- package/src/components/JfbBaseSaasNewsDetail/Api.js +0 -60
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +0 -106
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -140
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
- package/src/components/JfbBaseSaasNewsList/Api.js +0 -60
- package/src/components/JfbBaseSaasNewsList/Attr.js +0 -106
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -155
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
<script>
|
|
108
108
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
109
|
-
import { jfbRootExec
|
|
109
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
110
110
|
import { Base64 } from "js-base64";
|
|
111
111
|
import JfbBaseCardInfoMixin from "./JfbBaseCardInfoMixin";
|
|
112
112
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
@@ -162,7 +162,6 @@ export default {
|
|
|
162
162
|
|
|
163
163
|
qrcode: "", //二维码
|
|
164
164
|
showForm: true,
|
|
165
|
-
hasCon: "", //是否有优惠券
|
|
166
165
|
|
|
167
166
|
//页面跳转地址
|
|
168
167
|
backUrl: "",
|
|
@@ -175,12 +174,6 @@ export default {
|
|
|
175
174
|
},
|
|
176
175
|
created() {},
|
|
177
176
|
methods: {
|
|
178
|
-
toShowCouponDialog(){
|
|
179
|
-
// jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: "10001000001133"})
|
|
180
|
-
if(this.info){
|
|
181
|
-
jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.info.card_number})
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
177
|
handleToLink(path) {
|
|
185
178
|
if (this.qrcode) {
|
|
186
179
|
jfbRootExec("qrCardBind", {
|
|
@@ -190,7 +183,14 @@ export default {
|
|
|
190
183
|
},
|
|
191
184
|
})
|
|
192
185
|
.then((res) => {
|
|
193
|
-
this
|
|
186
|
+
this.$xdAlert({
|
|
187
|
+
content: "绑定成功",
|
|
188
|
+
close: () => {
|
|
189
|
+
this.$xdUniHelper.redirectTo({
|
|
190
|
+
url: this.backUrl,
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
194
|
})
|
|
195
195
|
.catch();
|
|
196
196
|
} else {
|
|
@@ -202,32 +202,19 @@ export default {
|
|
|
202
202
|
},
|
|
203
203
|
})
|
|
204
204
|
.then((res) => {
|
|
205
|
-
|
|
205
|
+
console.log(this.$xdAlert, "this.$xdAlertfsdfs");
|
|
206
|
+
this.$xdAlert({
|
|
207
|
+
content: "绑定成功",
|
|
208
|
+
close: () => {
|
|
209
|
+
this.$xdUniHelper.redirectTo({
|
|
210
|
+
url: this.backUrl,
|
|
211
|
+
});
|
|
212
|
+
},
|
|
213
|
+
});
|
|
206
214
|
})
|
|
207
215
|
.catch();
|
|
208
216
|
}
|
|
209
217
|
},
|
|
210
|
-
handlerAfterBindCard(){
|
|
211
|
-
if(this.hasCon){
|
|
212
|
-
this.toShowCouponDialog();
|
|
213
|
-
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
214
|
-
if(container_id === this.hasCon){
|
|
215
|
-
this.$xdUniHelper.redirectTo({
|
|
216
|
-
url: this.backUrl,
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
})
|
|
220
|
-
}else{
|
|
221
|
-
this.$xdAlert({
|
|
222
|
-
content: "票券绑定成功",
|
|
223
|
-
close: () => {
|
|
224
|
-
this.$xdUniHelper.redirectTo({
|
|
225
|
-
url: this.backUrl,
|
|
226
|
-
});
|
|
227
|
-
},
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
218
|
init() {
|
|
232
219
|
this.backUrl = getContainerPropsValue(
|
|
233
220
|
this.container,
|
|
@@ -340,12 +327,6 @@ export default {
|
|
|
340
327
|
onJfbShow(options) {
|
|
341
328
|
this.onJfbLoad(options);
|
|
342
329
|
},
|
|
343
|
-
onJfbCustomEvent({action, data}){
|
|
344
|
-
if(action === 'baseConDialog@hasCon'){
|
|
345
|
-
this.hasCon = data;
|
|
346
|
-
}
|
|
347
|
-
console.log('onJfbCustomEvent',action, data);
|
|
348
|
-
}
|
|
349
330
|
},
|
|
350
331
|
};
|
|
351
332
|
</script>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
|
|
125
125
|
<script>
|
|
126
126
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
127
|
-
import { jfbRootExec
|
|
127
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
128
128
|
import JfbBaseCardInfoEntryMixin from "./JfbBaseCardInfoEntryMixin";
|
|
129
129
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
130
130
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
@@ -157,7 +157,6 @@ export default {
|
|
|
157
157
|
|
|
158
158
|
qrcode: "", //二维码
|
|
159
159
|
showForm: true,
|
|
160
|
-
hasCon: "",
|
|
161
160
|
|
|
162
161
|
//页面跳转地址
|
|
163
162
|
backUrl: "",
|
|
@@ -176,12 +175,6 @@ export default {
|
|
|
176
175
|
},
|
|
177
176
|
created() {},
|
|
178
177
|
methods: {
|
|
179
|
-
toShowCouponDialog(){
|
|
180
|
-
// jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: "10001000001133"})
|
|
181
|
-
if(this.info){
|
|
182
|
-
jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.info.card_number})
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
178
|
handleToLink() {
|
|
186
179
|
if(this.info.card_point===0) {
|
|
187
180
|
this.$xdConfirm({
|
|
@@ -207,7 +200,14 @@ export default {
|
|
|
207
200
|
},
|
|
208
201
|
})
|
|
209
202
|
.then((res) => {
|
|
210
|
-
this
|
|
203
|
+
this.$xdAlert({
|
|
204
|
+
content: "票券绑定成功",
|
|
205
|
+
close: () => {
|
|
206
|
+
this.$xdUniHelper.redirectTo({
|
|
207
|
+
url: this.backUrl,
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
211
|
})
|
|
212
212
|
.catch();
|
|
213
213
|
} else {
|
|
@@ -221,32 +221,18 @@ export default {
|
|
|
221
221
|
})
|
|
222
222
|
.then((res) => {
|
|
223
223
|
console.log(this.$xdAlert, "this.$xdAlertfsdfs");
|
|
224
|
-
this
|
|
224
|
+
this.$xdAlert({
|
|
225
|
+
content: "票券绑定成功",
|
|
226
|
+
close: () => {
|
|
227
|
+
this.$xdUniHelper.redirectTo({
|
|
228
|
+
url: this.backUrl,
|
|
229
|
+
});
|
|
230
|
+
},
|
|
231
|
+
});
|
|
225
232
|
})
|
|
226
233
|
.catch();
|
|
227
234
|
}
|
|
228
235
|
},
|
|
229
|
-
handlerAfterBindCard(){
|
|
230
|
-
if(this.hasCon){
|
|
231
|
-
this.toShowCouponDialog();
|
|
232
|
-
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
233
|
-
if(container_id === this.hasCon){
|
|
234
|
-
this.$xdUniHelper.redirectTo({
|
|
235
|
-
url: this.backUrl,
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
})
|
|
239
|
-
}else{
|
|
240
|
-
this.$xdAlert({
|
|
241
|
-
content: "票券绑定成功",
|
|
242
|
-
close: () => {
|
|
243
|
-
this.$xdUniHelper.redirectTo({
|
|
244
|
-
url: this.backUrl,
|
|
245
|
-
});
|
|
246
|
-
},
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
236
|
init() {
|
|
251
237
|
this.backUrl = getContainerPropsValue(
|
|
252
238
|
this.container,
|
|
@@ -376,12 +362,6 @@ export default {
|
|
|
376
362
|
onJfbShow(options) {
|
|
377
363
|
this.onJfbLoad(options);
|
|
378
364
|
},
|
|
379
|
-
onJfbCustomEvent({action, data}){
|
|
380
|
-
if(action === 'baseConDialog@hasCon'){
|
|
381
|
-
this.hasCon = data;
|
|
382
|
-
}
|
|
383
|
-
console.log('onJfbCustomEvent',action, data);
|
|
384
|
-
}
|
|
385
365
|
},
|
|
386
366
|
};
|
|
387
367
|
</script>
|
|
@@ -16,39 +16,4 @@ module.exports = [
|
|
|
16
16
|
isConsole: true,
|
|
17
17
|
disabled: true,
|
|
18
18
|
},
|
|
19
|
-
{
|
|
20
|
-
mapFnName: 'getCouponList', //自定义方法名字(必选)
|
|
21
|
-
title: '获取优惠券列表',
|
|
22
|
-
path: '/sms-coupon/v1/activity-prizes-user/list',
|
|
23
|
-
isRule: false,
|
|
24
|
-
params: {
|
|
25
|
-
distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
|
|
26
|
-
namespace: ['业务线', 'String', '必填'],
|
|
27
|
-
},
|
|
28
|
-
isConsole: true,
|
|
29
|
-
disabled: true,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
mapFnName: 'getAllCoupon', //自定义方法名字(必选)
|
|
33
|
-
title: '领取优惠券',
|
|
34
|
-
path: '/sms-coupon/v1/activity-prizes-user/set',
|
|
35
|
-
isRule: false,
|
|
36
|
-
params: {
|
|
37
|
-
distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
|
|
38
|
-
namespace: ['业务线', 'String', '必填'],
|
|
39
|
-
},
|
|
40
|
-
isConsole: true,
|
|
41
|
-
disabled: true,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
mapFnName: 'getCouponResult', //自定义方法名字(必选)
|
|
45
|
-
title: '轮询查询活动结果',
|
|
46
|
-
path: '/sms-coupon/v1/activity-prizes-user/get',
|
|
47
|
-
isRule: false,
|
|
48
|
-
params: {
|
|
49
|
-
tmp_order_number: ['tmp_order_number', 'String', '选填'],
|
|
50
|
-
},
|
|
51
|
-
isConsole: true,
|
|
52
|
-
disabled: true,
|
|
53
|
-
},
|
|
54
19
|
];
|
|
@@ -31,19 +31,6 @@ export default {
|
|
|
31
31
|
{ label: '切换', value: 2 },
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
|
-
{
|
|
35
|
-
label: "触发事件:",
|
|
36
|
-
ele: "xd-select-list",
|
|
37
|
-
valueKey: "distribution_method",
|
|
38
|
-
value: data.distribution_method || "",
|
|
39
|
-
placeholder: "请选择触发事件",
|
|
40
|
-
className: 'input80',
|
|
41
|
-
list: [
|
|
42
|
-
{ label: "首页发放", value: "homed" },
|
|
43
|
-
{ label: "支付成功", value: "paid" },
|
|
44
|
-
{ label: "绑卡成功", value: "card_binded" },
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
34
|
{
|
|
48
35
|
label: '弹窗间隔:',
|
|
49
36
|
ele: 'el-input',
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
</view>
|
|
18
18
|
<!-- #endif -->
|
|
19
19
|
<view class="jfb-base-con-dialog__body">
|
|
20
|
-
<view
|
|
20
|
+
<view class="jfb-base-con-dialog__body-dialog" v-if="isShow">
|
|
21
21
|
<view class="jfb-base-con-dialog__body-dialog-mask"></view>
|
|
22
|
-
<view
|
|
22
|
+
<view 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>
|
|
25
25
|
</view>
|
|
@@ -51,16 +51,7 @@
|
|
|
51
51
|
size="64"
|
|
52
52
|
></xd-font-icon>
|
|
53
53
|
</view>
|
|
54
|
-
<view v-else class="jfb-base-con-dialog__body-dialog-content">
|
|
55
|
-
<xd-cou-card-bind
|
|
56
|
-
:list="couponList"
|
|
57
|
-
:setting="couponOther"
|
|
58
|
-
@closeDialog="handleCardBindClose"
|
|
59
|
-
@getCoupont="handleGetCoupon"
|
|
60
|
-
></xd-cou-card-bind>
|
|
61
|
-
</view>
|
|
62
54
|
</view>
|
|
63
|
-
|
|
64
55
|
<view
|
|
65
56
|
:style="{ background: backgroundColor, color: warningColor }"
|
|
66
57
|
class="jfb-base-con-dialog__body-pop"
|
|
@@ -73,7 +64,7 @@
|
|
|
73
64
|
|
|
74
65
|
<script>
|
|
75
66
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
76
|
-
import { jfbRootExec, JfbEvent
|
|
67
|
+
import { jfbRootExec, JfbEvent } from "@/utils/xd.event";
|
|
77
68
|
import JfbBaseConDialogMixin from "./JfbBaseConDialogMixin";
|
|
78
69
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
79
70
|
import extsMixins from "@/mixins/extsMixins";
|
|
@@ -83,13 +74,11 @@ import colorCardMixins from "@/mixins/colorCardMixins";
|
|
|
83
74
|
const Color = require("color");
|
|
84
75
|
import { mapState } from "vuex";
|
|
85
76
|
import storage from "@/common/storage";
|
|
86
|
-
import XdCouCardBind from "./XdCouCardBind";
|
|
87
77
|
|
|
88
78
|
export default {
|
|
89
79
|
name: "JfbBaseConDialog",
|
|
90
80
|
components: {
|
|
91
81
|
XdFontIcon,
|
|
92
|
-
XdCouCardBind
|
|
93
82
|
},
|
|
94
83
|
mixins: [componentsMixins, extsMixins, JfbBaseConDialogMixin],
|
|
95
84
|
data() {
|
|
@@ -104,15 +93,6 @@ export default {
|
|
|
104
93
|
isPreview: false, //是否预览
|
|
105
94
|
activity_id: "",
|
|
106
95
|
backgroundColor: "",
|
|
107
|
-
distribution_method: "homed", //触发事件
|
|
108
|
-
dispatchData: "", //触发事件参数
|
|
109
|
-
|
|
110
|
-
couponList: [],
|
|
111
|
-
couponOther: {},
|
|
112
|
-
order_num: null,
|
|
113
|
-
timer: null,
|
|
114
|
-
timeNum: 0,
|
|
115
|
-
|
|
116
96
|
};
|
|
117
97
|
},
|
|
118
98
|
computed: {
|
|
@@ -134,7 +114,6 @@ export default {
|
|
|
134
114
|
this.list_url = getContainerPropsValue(value, "content.list_url", {
|
|
135
115
|
value: "",
|
|
136
116
|
}).value;
|
|
137
|
-
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
|
|
138
117
|
this.type = getContainerPropsValue(value, "content.type", 1);
|
|
139
118
|
this.isHide = getContainerPropsValue(value, "content.isHide", false);
|
|
140
119
|
this.time = Number(getContainerPropsValue(value, "content.time", 3));
|
|
@@ -142,108 +121,16 @@ export default {
|
|
|
142
121
|
this.isShow = !this.isHide;
|
|
143
122
|
}
|
|
144
123
|
},
|
|
145
|
-
|
|
146
|
-
handleGetCoupon(item){
|
|
147
|
-
this.$xdShowLoading({});
|
|
148
|
-
jfbRootExec("getAllCoupon", {
|
|
149
|
-
vm: this,
|
|
150
|
-
data: {
|
|
151
|
-
prize_id: item.prize_id,
|
|
152
|
-
distribution_method: this.distribution_method,
|
|
153
|
-
...this.dispatchData
|
|
154
|
-
}
|
|
155
|
-
}).then(res => {
|
|
156
|
-
if (res.code == 400) {
|
|
157
|
-
this.$xdHideLoading();
|
|
158
|
-
this.$xdAlert({
|
|
159
|
-
content: res.message,
|
|
160
|
-
zIndex: 3200,
|
|
161
|
-
time: 2000,
|
|
162
|
-
isClose: false,
|
|
163
|
-
});
|
|
164
|
-
this.getDialogList();
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
this.order_num = res.tmp_order_number;
|
|
168
|
-
setTimeout(()=>{
|
|
169
|
-
this.getResult();
|
|
170
|
-
},1000)
|
|
171
|
-
}).catch((err) => {
|
|
172
|
-
console.log(err, "err");
|
|
173
|
-
});
|
|
174
|
-
},
|
|
175
|
-
getResult() {
|
|
176
|
-
jfbRootExec("getCouponResult", {
|
|
177
|
-
vm: this,
|
|
178
|
-
data: {
|
|
179
|
-
tmp_order_number: this.order_num,
|
|
180
|
-
...this.dispatchData
|
|
181
|
-
},
|
|
182
|
-
})
|
|
183
|
-
.then((res) => {
|
|
184
|
-
if (res.status_type === "success") {
|
|
185
|
-
this.order_num = null;
|
|
186
|
-
this.$xdHideLoading();
|
|
187
|
-
this.$xdAlert({
|
|
188
|
-
content: "领取成功",
|
|
189
|
-
zIndex: 3200,
|
|
190
|
-
time: 2000,
|
|
191
|
-
isClose: false,
|
|
192
|
-
});
|
|
193
|
-
this.getDialogList();
|
|
194
|
-
if (this.timer) {
|
|
195
|
-
this.timeNum = 0;
|
|
196
|
-
clearTimeout(this.timer);
|
|
197
|
-
}
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
if (res.status_type === "error") {
|
|
201
|
-
this.$xdHideLoading();
|
|
202
|
-
this.$xdAlert({
|
|
203
|
-
content: res.message,
|
|
204
|
-
zIndex: 3200,
|
|
205
|
-
time: 2000,
|
|
206
|
-
isClose: false,
|
|
207
|
-
});
|
|
208
|
-
if (res.code == 400) {
|
|
209
|
-
this.getDialogList();
|
|
210
|
-
}
|
|
211
|
-
if (this.timer) {
|
|
212
|
-
this.timeNum = 0;
|
|
213
|
-
clearTimeout(this.timer);
|
|
214
|
-
}
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
this.timer = setTimeout(() => {
|
|
219
|
-
this.getResult();
|
|
220
|
-
if (this.timeNum > 5) {
|
|
221
|
-
this.$xdLog.setARMSInfo(
|
|
222
|
-
{ message: "领取中" },
|
|
223
|
-
`pay_${res.status_type}`
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
this.timeNum++;
|
|
227
|
-
}, Math.pow(2, this.timeNum > 5 ? 5 : this.timeNum) * 1000);
|
|
228
|
-
})
|
|
229
|
-
.catch((err) => {
|
|
230
|
-
this.$xdHideLoading();
|
|
231
|
-
console.log(err, "err");
|
|
232
|
-
});
|
|
233
|
-
},
|
|
234
|
-
p_getDialogList(){
|
|
124
|
+
getDialogList() {
|
|
235
125
|
jfbRootExec("getCouponDialogList", {
|
|
236
126
|
vm: this,
|
|
237
127
|
data: {
|
|
238
128
|
namespace: this.pageBusinessCode,
|
|
239
|
-
distribution_method: this.distribution_method,
|
|
240
|
-
...this.dispatchData
|
|
241
129
|
},
|
|
242
130
|
})
|
|
243
131
|
.then((res) => {
|
|
244
132
|
console.log(res, "resresres");
|
|
245
133
|
this.list = res.list;
|
|
246
|
-
if(res.list.length === 0) return;
|
|
247
134
|
this.currentImage = getServiceUrl(
|
|
248
135
|
this.list[this.currentIndex].app_activity_url
|
|
249
136
|
);
|
|
@@ -257,31 +144,6 @@ export default {
|
|
|
257
144
|
console.log(err, "err");
|
|
258
145
|
});
|
|
259
146
|
},
|
|
260
|
-
p_getCouponList(){
|
|
261
|
-
jfbRootExec("getCouponList", {
|
|
262
|
-
vm: this,
|
|
263
|
-
data: {
|
|
264
|
-
distribution_method: this.distribution_method,
|
|
265
|
-
...this.dispatchData
|
|
266
|
-
}
|
|
267
|
-
}).then(res => {
|
|
268
|
-
const { list, ...other } = res;
|
|
269
|
-
this.couponList = list;
|
|
270
|
-
this.couponOther = other;
|
|
271
|
-
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
272
|
-
this.isShow = true;
|
|
273
|
-
}else{
|
|
274
|
-
this.handleCardBindClose();
|
|
275
|
-
}
|
|
276
|
-
})
|
|
277
|
-
},
|
|
278
|
-
getDialogList() {
|
|
279
|
-
if(this.distribution_method === 'card_binded'){
|
|
280
|
-
this.p_getCouponList();
|
|
281
|
-
}else{
|
|
282
|
-
this.p_getDialogList();
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
147
|
handlePop() {
|
|
286
148
|
console.log("this.time", this.time * 60 + "分钟");
|
|
287
149
|
storage.set(this.containerId, 1, this.time);
|
|
@@ -289,23 +151,12 @@ export default {
|
|
|
289
151
|
},
|
|
290
152
|
onJfbLoad(options) {
|
|
291
153
|
console.log(11111);
|
|
292
|
-
//支付跟绑卡是主动触发
|
|
293
154
|
try {
|
|
294
|
-
if (!storage.get(this.containerId)
|
|
295
|
-
this.distribution_method !== "paid" &&
|
|
296
|
-
this.distribution_method !== "card_binded") this.getDialogList();
|
|
155
|
+
if (!storage.get(this.containerId)) this.getDialogList();
|
|
297
156
|
} catch (error) {
|
|
298
157
|
console.log(error, "errorerror");
|
|
299
158
|
}
|
|
300
|
-
if(this.distribution_method === 'card_binded'){
|
|
301
|
-
jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
|
|
302
|
-
}
|
|
303
159
|
},
|
|
304
|
-
handleCardBindClose(){
|
|
305
|
-
this.isShow = false;
|
|
306
|
-
this.$bus.$emit("onCloseConDialog", this.containerId);
|
|
307
|
-
},
|
|
308
|
-
|
|
309
160
|
onJfbUpdate(data) {
|
|
310
161
|
storage.remove(this.containerId);
|
|
311
162
|
this.getDialogList();
|
|
@@ -315,15 +166,8 @@ export default {
|
|
|
315
166
|
this.onJfbLoad(options);
|
|
316
167
|
},
|
|
317
168
|
handleToList() {
|
|
318
|
-
let otherParams = "";
|
|
319
|
-
try {
|
|
320
|
-
if(this.dispatchData && this.$xdUniHelper.checkVarType(this.dispatchData) === 'object') {
|
|
321
|
-
otherParams = this.$xdUniHelper.jsonToParams(this.dispatchData);
|
|
322
|
-
}
|
|
323
|
-
} catch (error) {}
|
|
324
|
-
|
|
325
169
|
this.$xdUniHelper.navigateTo({
|
|
326
|
-
url: `${this.list_url}?activity_id=${this.activity_id}&distribution_method
|
|
170
|
+
url: `${this.list_url}?activity_id=${this.activity_id}&distribution_method=homed`,
|
|
327
171
|
});
|
|
328
172
|
},
|
|
329
173
|
handleClose() {
|
|
@@ -357,13 +201,6 @@ export default {
|
|
|
357
201
|
);
|
|
358
202
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
359
203
|
},
|
|
360
|
-
onJfbCustomEvent({action, data}){
|
|
361
|
-
if(action === '@showBaseConDialog'){
|
|
362
|
-
this.dispatchData = data;
|
|
363
|
-
this.getDialogList();
|
|
364
|
-
}
|
|
365
|
-
console.log('onJfbCustomEvent',action, data);
|
|
366
|
-
}
|
|
367
204
|
},
|
|
368
205
|
};
|
|
369
206
|
</script>
|
|
@@ -6,17 +6,6 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: [
|
|
9
|
-
{
|
|
10
|
-
label: '查看已领票券路径:', //label
|
|
11
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
12
|
-
valueKey: 'collectedPath', //form[valueKey]
|
|
13
|
-
placeholder: '请选择查看已领票券路径',
|
|
14
|
-
value: null,
|
|
15
|
-
setting: {
|
|
16
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
17
|
-
},
|
|
18
|
-
inline: false,
|
|
19
|
-
},
|
|
20
9
|
// {
|
|
21
10
|
// label: '领券规则:',
|
|
22
11
|
// ele: 'xd-site-news',
|