jufubao-base 1.0.235-beta1 → 1.0.235
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
|
@@ -433,14 +433,15 @@ export default {
|
|
|
433
433
|
data: {
|
|
434
434
|
phone_number: this.phoneNumber,
|
|
435
435
|
biz_name: "login",
|
|
436
|
+
is_expire_time: 'Y',
|
|
436
437
|
},
|
|
437
438
|
}).then((res) => {
|
|
438
|
-
this.startCountdown();
|
|
439
|
+
this.startCountdown(res);
|
|
439
440
|
});
|
|
440
441
|
},
|
|
441
|
-
startCountdown() {
|
|
442
|
+
startCountdown(res={}) {
|
|
442
443
|
// 设置剩余时间
|
|
443
|
-
this.timeRemaining = 120;
|
|
444
|
+
this.timeRemaining = typeof res.expire_time === 'number'? res.expire_time:120;
|
|
444
445
|
// 设置定时器,每秒执行一次
|
|
445
446
|
this.countdownTimer = setInterval(() => {
|
|
446
447
|
// 每秒减少1
|
|
@@ -456,7 +457,7 @@ export default {
|
|
|
456
457
|
// 清除定时器
|
|
457
458
|
clearInterval(this.countdownTimer);
|
|
458
459
|
// 重新设置时间
|
|
459
|
-
this.timeRemaining = 120
|
|
460
|
+
this.timeRemaining = typeof res.expire_time === 'number'? res.expire_time:120;;
|
|
460
461
|
}
|
|
461
462
|
}, 1000);
|
|
462
463
|
},
|
|
@@ -541,7 +542,7 @@ export default {
|
|
|
541
542
|
time: 2000,
|
|
542
543
|
isClose: false,
|
|
543
544
|
});
|
|
544
|
-
if (res.code
|
|
545
|
+
if (res.code === 400) {
|
|
545
546
|
this.getList();
|
|
546
547
|
}
|
|
547
548
|
if (this.timeer) {
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
></image>
|
|
288
288
|
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
289
289
|
</view>
|
|
290
|
-
|
|
290
|
+
<view v-if="info.codes[0].tips" class="jfb-base-order-detail__body-cashier-text">{{ info.codes[0].tips }}</view>
|
|
291
291
|
<view v-if="info.codes[0].can_read_password" class="jfb-base-order-detail__body-cashier-password" @click="showPassword = true">
|
|
292
292
|
{{ showPassword ? info.codes[0].can_read_code : "查看" }}
|
|
293
293
|
</view>
|
|
@@ -801,6 +801,7 @@
|
|
|
801
801
|
</image>
|
|
802
802
|
</view>
|
|
803
803
|
</view>
|
|
804
|
+
<view v-if="dialogCode && dialogCode.tips" class="dialog_password"> {{ dialogCode.tips}}</view>
|
|
804
805
|
<view v-if="dialogPassword" class="dialog_password">{{ dialogPassword }}</view>
|
|
805
806
|
</xd-dailog>
|
|
806
807
|
</view>
|
|
@@ -862,6 +863,7 @@ export default {
|
|
|
862
863
|
|
|
863
864
|
showPassword: false,
|
|
864
865
|
dialogPassword: "",
|
|
866
|
+
dialogCode: null,
|
|
865
867
|
|
|
866
868
|
//基础
|
|
867
869
|
radius: 0,
|
|
@@ -1274,6 +1276,7 @@ export default {
|
|
|
1274
1276
|
this.showType = item.show_type;
|
|
1275
1277
|
this.logo = item.logo;
|
|
1276
1278
|
this.dialogPassword = item.can_read_code;
|
|
1279
|
+
this.dialogCode = item;
|
|
1277
1280
|
console.log(this.codeSrc, "this.codeSrc");
|
|
1278
1281
|
this.showCode = true;
|
|
1279
1282
|
},
|
|
@@ -102,16 +102,17 @@
|
|
|
102
102
|
class="jfb-base-success__body-card jfb-base-success__body-cashier"
|
|
103
103
|
>
|
|
104
104
|
<view class="jfb-base-success__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
<view style="position: relative">
|
|
106
|
+
<image
|
|
107
|
+
:style="{
|
|
108
|
+
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
109
|
+
width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
|
|
110
|
+
}"
|
|
111
|
+
:src="info.codes[0].code_url"
|
|
112
|
+
></image>
|
|
113
|
+
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
114
|
+
</view>
|
|
115
|
+
<view v-if="info.codes[0].tips" class="jfb-base-success__body-cashier-text">{{ info.codes[0].tips }}</view>
|
|
115
116
|
<view
|
|
116
117
|
v-if="info.codes[0].can_read_password"
|
|
117
118
|
class="jfb-base-success__body-cashier-password"
|
|
@@ -354,6 +355,7 @@
|
|
|
354
355
|
</image>
|
|
355
356
|
</view>
|
|
356
357
|
</view>
|
|
358
|
+
<view v-if="dialogCode && dialogCode.tips" class="jfb-base-success__body-d_password">{{ dialogCode.tips }}</view>
|
|
357
359
|
<view v-if="dialogPassword" class="jfb-base-success__body-d_password">
|
|
358
360
|
{{ dialogPassword }}
|
|
359
361
|
</view>
|
|
@@ -443,6 +445,7 @@ export default {
|
|
|
443
445
|
codeSrc: "",
|
|
444
446
|
logo: "",
|
|
445
447
|
dialogPassword: "",
|
|
448
|
+
dialogCode: null,
|
|
446
449
|
...styleForm.getDataItem(),
|
|
447
450
|
};
|
|
448
451
|
},
|
|
@@ -486,6 +489,7 @@ export default {
|
|
|
486
489
|
this.showType = item.show_type;
|
|
487
490
|
this.logo = item.logo;
|
|
488
491
|
this.dialogPassword = item.can_read_code;
|
|
492
|
+
this.dialogCode = item;
|
|
489
493
|
this.showCode = true;
|
|
490
494
|
},
|
|
491
495
|
/**
|