jufubao-base 1.0.200-beta1 → 1.0.201
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
|
@@ -186,7 +186,7 @@ export default {
|
|
|
186
186
|
});
|
|
187
187
|
},
|
|
188
188
|
|
|
189
|
-
getResult() {
|
|
189
|
+
getResult(is_auto='N') {
|
|
190
190
|
jfbRootExec("getCouponResult", {
|
|
191
191
|
vm: this,
|
|
192
192
|
data: {
|
|
@@ -196,6 +196,16 @@ export default {
|
|
|
196
196
|
})
|
|
197
197
|
.then((res) => {
|
|
198
198
|
if (res.status_type === "success") {
|
|
199
|
+
if(is_auto==='Y') {
|
|
200
|
+
this.order_num = null;
|
|
201
|
+
this.handleCardBindClose();
|
|
202
|
+
this.$xdHideLoading();
|
|
203
|
+
if (this.timer) {
|
|
204
|
+
this.timeNum = 0;
|
|
205
|
+
clearTimeout(this.timer);
|
|
206
|
+
}
|
|
207
|
+
return
|
|
208
|
+
}
|
|
199
209
|
this.order_num = null;
|
|
200
210
|
this.$xdHideLoading();
|
|
201
211
|
this.$xdAlert({
|
|
@@ -214,6 +224,15 @@ export default {
|
|
|
214
224
|
return;
|
|
215
225
|
}
|
|
216
226
|
if (res.status_type === "error") {
|
|
227
|
+
if(is_auto==='Y') {
|
|
228
|
+
this.handleCardBindClose();
|
|
229
|
+
this.$xdHideLoading();
|
|
230
|
+
if (this.timer) {
|
|
231
|
+
this.timeNum = 0;
|
|
232
|
+
clearTimeout(this.timer);
|
|
233
|
+
}
|
|
234
|
+
return
|
|
235
|
+
}
|
|
217
236
|
this.$xdHideLoading();
|
|
218
237
|
this.$xdAlert({
|
|
219
238
|
content: res.message,
|
|
@@ -269,7 +288,6 @@ export default {
|
|
|
269
288
|
this.list[this.currentIndex].app_activity_button
|
|
270
289
|
);
|
|
271
290
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
272
|
-
this.isAll =
|
|
273
291
|
this.handlePop();
|
|
274
292
|
})
|
|
275
293
|
.catch((err) => {
|
|
@@ -301,13 +319,17 @@ export default {
|
|
|
301
319
|
this.handleCardBindClose();
|
|
302
320
|
}
|
|
303
321
|
} else {
|
|
304
|
-
if(res.
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
322
|
+
if(res.receive_type==='auto') {
|
|
323
|
+
this.getAllCoupont('Y')
|
|
324
|
+
} else {
|
|
325
|
+
if(res.can_take === "Y"){
|
|
326
|
+
if (this.isPreview) {
|
|
327
|
+
console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
|
|
328
|
+
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
329
|
+
}else this.isShow = true;
|
|
330
|
+
}else{
|
|
331
|
+
this.handleCardBindClose();
|
|
332
|
+
}
|
|
311
333
|
}
|
|
312
334
|
}
|
|
313
335
|
})
|
|
@@ -321,11 +343,11 @@ export default {
|
|
|
321
343
|
}
|
|
322
344
|
},
|
|
323
345
|
|
|
324
|
-
getAllCoupont(
|
|
325
|
-
this.p_getAllDialogList();
|
|
346
|
+
getAllCoupont(is_auto='N') {
|
|
347
|
+
this.p_getAllDialogList(is_auto);
|
|
326
348
|
},
|
|
327
349
|
|
|
328
|
-
p_getAllDialogList() {
|
|
350
|
+
p_getAllDialogList(is_auto='N') {
|
|
329
351
|
//getAllCoupon
|
|
330
352
|
this.$xdShowLoading({});
|
|
331
353
|
jfbRootExec("getAllCoupon", {
|
|
@@ -333,10 +355,16 @@ export default {
|
|
|
333
355
|
data: {
|
|
334
356
|
distribution_method: this.distribution_method,
|
|
335
357
|
activity_id: this.activity_id,
|
|
358
|
+
is_auto: is_auto,
|
|
336
359
|
...this.dispatchData
|
|
337
360
|
}
|
|
338
361
|
}).then(res => {
|
|
339
362
|
if (res.code === 400) {
|
|
363
|
+
if(is_auto==='Y') {
|
|
364
|
+
this.$xdHideLoading();
|
|
365
|
+
this.handleCardBindClose()
|
|
366
|
+
return
|
|
367
|
+
}
|
|
340
368
|
this.$xdHideLoading();
|
|
341
369
|
this.$xdAlert({
|
|
342
370
|
content: res.message,
|
|
@@ -351,7 +379,7 @@ export default {
|
|
|
351
379
|
}
|
|
352
380
|
this.order_num = res.tmp_order_number;
|
|
353
381
|
setTimeout(()=>{
|
|
354
|
-
this.getResult();
|
|
382
|
+
this.getResult(is_auto);
|
|
355
383
|
},1000)
|
|
356
384
|
}).catch((err) => {
|
|
357
385
|
console.log(err, "err");
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
>
|
|
25
25
|
<!--大图-->
|
|
26
26
|
<view
|
|
27
|
-
v-if="isCarousel === 1"
|
|
27
|
+
v-if="isCarousel === 1&&bigList.length > 0"
|
|
28
28
|
:style="{
|
|
29
29
|
margin: msMarginComputed,
|
|
30
30
|
width: bigWidth + 'rpx',
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
borderRadius: radius + 'rpx',
|
|
41
41
|
}"
|
|
42
42
|
:src="bigList[0].image_url"
|
|
43
|
-
mode="
|
|
43
|
+
mode="scaleToFill"
|
|
44
44
|
></image>
|
|
45
45
|
</view>
|
|
46
46
|
</view>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<image
|
|
76
76
|
:style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: bigHeight + 'rpx',}"
|
|
77
77
|
:src="item['image_url']"
|
|
78
|
-
mode="
|
|
78
|
+
mode="scaleToFill"></image>
|
|
79
79
|
</swiper-item>
|
|
80
80
|
</swiper>
|
|
81
81
|
<!--#endif-->
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
@animationfinish="handleBigAnimationfinish"
|
|
92
92
|
>
|
|
93
93
|
<template slot-scope="{ item, index }">
|
|
94
|
-
<image :style="{borderRadius: radius + 'rpx',}" :src="item['image_url']" mode="
|
|
94
|
+
<image :style="{borderRadius: radius + 'rpx',}" :src="item['image_url']" mode="scaleToFill"></image>
|
|
95
95
|
</template>
|
|
96
96
|
</xd-swiper>
|
|
97
97
|
<!--#endif-->
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}"
|
|
115
115
|
>
|
|
116
116
|
<view
|
|
117
|
-
v-if="topIsCarousel === 1"
|
|
117
|
+
v-if="topIsCarousel === 1 && topList.lenght > 0"
|
|
118
118
|
:style="{
|
|
119
119
|
width: bigWidth + 'rpx',
|
|
120
120
|
height: smallHeight + 'rpx',
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
borderRadius: topRadius + 'rpx',
|
|
129
129
|
}"
|
|
130
130
|
:src="topList[0].image_url"
|
|
131
|
-
mode="
|
|
131
|
+
mode="scaleToFill"
|
|
132
132
|
></image></view
|
|
133
133
|
></view>
|
|
134
134
|
<view
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<image
|
|
162
162
|
:style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: smallHeight + 'rpx',}"
|
|
163
163
|
:src="item['image_url']"
|
|
164
|
-
mode="
|
|
164
|
+
mode="scaleToFill"></image>
|
|
165
165
|
</swiper-item>
|
|
166
166
|
</swiper>
|
|
167
167
|
<!--#endif-->
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
@animationfinish="handleTopAnimationfinish"
|
|
178
178
|
>
|
|
179
179
|
<template slot-scope="{ item, index }">
|
|
180
|
-
<image :style="{borderRadius: topRadius + 'rpx',}" :src="item['image_url']" mode="
|
|
180
|
+
<image :style="{borderRadius: topRadius + 'rpx',}" :src="item['image_url']" mode="scaleToFill"></image>
|
|
181
181
|
</template>
|
|
182
182
|
</xd-swiper>
|
|
183
183
|
<!--#endif-->
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
}"
|
|
193
193
|
>
|
|
194
194
|
<view
|
|
195
|
-
v-if="bottomIsCarousel === 1"
|
|
195
|
+
v-if="bottomIsCarousel === 1 && bottomList.lenght > 0"
|
|
196
196
|
:style="{
|
|
197
197
|
width: bigWidth + 'rpx',
|
|
198
198
|
height: smallHeight + 'rpx',
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
borderRadius: bottomRadius + 'rpx',
|
|
207
207
|
}"
|
|
208
208
|
:src="bottomList[0].image_url"
|
|
209
|
-
mode="
|
|
209
|
+
mode="scaleToFill"
|
|
210
210
|
></image> </view
|
|
211
211
|
></view>
|
|
212
212
|
<view
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
<image
|
|
240
240
|
:style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: smallHeight + 'rpx',}"
|
|
241
241
|
:src="item['image_url']"
|
|
242
|
-
mode="
|
|
242
|
+
mode="scaleToFill"></image>
|
|
243
243
|
</swiper-item>
|
|
244
244
|
</swiper>
|
|
245
245
|
<!--#endif-->
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
borderRadius: bottomRadius + 'rpx',
|
|
261
261
|
}"
|
|
262
262
|
:src="item['image_url']"
|
|
263
|
-
mode="
|
|
263
|
+
mode="scaleToFill"
|
|
264
264
|
></image>
|
|
265
265
|
</template>
|
|
266
266
|
</xd-swiper>
|
|
@@ -881,7 +881,6 @@ export default {
|
|
|
881
881
|
display: flex;
|
|
882
882
|
justify-content: space-between;
|
|
883
883
|
align-items: flex-start;
|
|
884
|
-
border:1px solid red;
|
|
885
884
|
overflow: hidden;
|
|
886
885
|
}
|
|
887
886
|
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
|
|
2
|
+
function checkValue(value, dValue = 0){
|
|
3
|
+
if(value === undefined || value === '' || value === null) return dValue;
|
|
4
|
+
return Number(value || 0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export default (height, mS= {}, msMargin={}, $vm) =>{
|
|
8
|
+
let marginRL = checkValue(mS.left, 0) + checkValue(mS.right, 0);
|
|
9
|
+
let marginTB = checkValue(mS.top, 0) + checkValue(mS.bottom, 0);
|
|
4
10
|
let bigWidth = (750 - (marginRL + Number(msMargin)))/2;
|
|
5
11
|
let bigHeight = height - marginTB;
|
|
6
12
|
// 获取容器高度,减去margin的值,再除以2,获取小图高度
|
|
7
13
|
let smallHeight = (height - (marginTB + Number(msMargin)))/2;
|
|
8
14
|
return { bigWidth, bigHeight, smallHeight };
|
|
9
15
|
}
|
|
10
|
-
|
|
16
|
+
|