jufubao-base 1.0.105-beta6 → 1.0.105-beta9
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
CHANGED
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
couponOther: {},
|
|
112
112
|
order_num: null,
|
|
113
113
|
timer: null,
|
|
114
|
-
|
|
114
|
+
timeNum: 0,
|
|
115
115
|
|
|
116
116
|
};
|
|
117
117
|
},
|
|
@@ -134,7 +134,7 @@ export default {
|
|
|
134
134
|
this.list_url = getContainerPropsValue(value, "content.list_url", {
|
|
135
135
|
value: "",
|
|
136
136
|
}).value;
|
|
137
|
-
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "");
|
|
137
|
+
this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
|
|
138
138
|
this.type = getContainerPropsValue(value, "content.type", 1);
|
|
139
139
|
this.isHide = getContainerPropsValue(value, "content.isHide", false);
|
|
140
140
|
this.time = Number(getContainerPropsValue(value, "content.time", 3));
|
|
@@ -144,6 +144,7 @@ export default {
|
|
|
144
144
|
},
|
|
145
145
|
//领取优惠券
|
|
146
146
|
handleGetCoupon(item){
|
|
147
|
+
this.$xdShowLoading({});
|
|
147
148
|
jfbRootExec("getAllCoupon", {
|
|
148
149
|
vm: this,
|
|
149
150
|
data: {
|
|
@@ -190,7 +191,7 @@ export default {
|
|
|
190
191
|
});
|
|
191
192
|
this.getDialogList();
|
|
192
193
|
if (this.timer) {
|
|
193
|
-
this.
|
|
194
|
+
this.timeNum = 0;
|
|
194
195
|
clearTimeout(this.timer);
|
|
195
196
|
}
|
|
196
197
|
return;
|
|
@@ -207,7 +208,7 @@ export default {
|
|
|
207
208
|
this.getDialogList();
|
|
208
209
|
}
|
|
209
210
|
if (this.timer) {
|
|
210
|
-
this.
|
|
211
|
+
this.timeNum = 0;
|
|
211
212
|
clearTimeout(this.timer);
|
|
212
213
|
}
|
|
213
214
|
return;
|
|
@@ -215,14 +216,14 @@ export default {
|
|
|
215
216
|
|
|
216
217
|
this.timer = setTimeout(() => {
|
|
217
218
|
this.getResult();
|
|
218
|
-
if (this.
|
|
219
|
+
if (this.timeNum > 5) {
|
|
219
220
|
this.$xdLog.setARMSInfo(
|
|
220
221
|
{ message: "领取中" },
|
|
221
222
|
`pay_${res.status_type}`
|
|
222
223
|
);
|
|
223
224
|
}
|
|
224
|
-
this.
|
|
225
|
-
}, Math.pow(2, this.
|
|
225
|
+
this.timeNum++;
|
|
226
|
+
}, Math.pow(2, this.timeNum > 5 ? 5 : this.timeNum) * 1000);
|
|
226
227
|
})
|
|
227
228
|
.catch((err) => {
|
|
228
229
|
this.$xdHideLoading();
|