Showing
1 changed file
with
16 additions
and
0 deletions
1 | // import qs from 'yoho-qs'; | 1 | // import qs from 'yoho-qs'; |
2 | +import dialog from 'plugin/dialog'; | ||
3 | +import safeCheckBoxHbs from 'cart/order-ensure/safe-check-box.hbs'; | ||
2 | 4 | ||
3 | class OrderEnsure { | 5 | class OrderEnsure { |
4 | constructor(order) { // 参数为使用哪个 cookie | 6 | constructor(order) { // 参数为使用哪个 cookie |
@@ -50,6 +52,20 @@ class OrderEnsure { | @@ -50,6 +52,20 @@ class OrderEnsure { | ||
50 | event.preventDefault(); | 52 | event.preventDefault(); |
51 | event.stopPropagation(); | 53 | event.stopPropagation(); |
52 | } | 54 | } |
55 | + | ||
56 | + /** | ||
57 | + * 验证码弹窗 | ||
58 | + */ | ||
59 | + showSafeCheckDialog(mobile) { | ||
60 | + dialog.showDialog({ | ||
61 | + hasHeader: '安全验证', | ||
62 | + dialogText: safeCheckBoxHbs({ mobile: mobile }), | ||
63 | + hasFooter: { | ||
64 | + leftBtnText: '取消', | ||
65 | + rightBtnText: '确定' | ||
66 | + } | ||
67 | + }); | ||
68 | + } | ||
53 | } | 69 | } |
54 | 70 | ||
55 | module.exports = OrderEnsure; | 71 | module.exports = OrderEnsure; |
-
Please register or login to post a comment