diff --git a/common/mixin.js b/common/mixin.js index e48c468..167e151 100644 --- a/common/mixin.js +++ b/common/mixin.js @@ -57,13 +57,23 @@ export default{ } }, $msg(title = '', param = {}) { - if(!title) return; - uni.showToast({ - title, - duration: param.duration || 1500, - mask: param.mask || true, // 默认应该加mask 禁止提示时操作 - icon: param.icon || 'none' - }); + return new Promise((resolve, reject) => { + if(!title){ + reject(); + return; + } + uni.showToast({ + title, + duration: param.duration || 1500, + mask: param.mask || true, // 默认应该加mask 禁止提示时操作 + icon: param.icon || 'none', + complete: result => { + setTimeout(() => { + resolve(); + }, param.duration || 1500); + } + }); + }) }, $url(url, options = {}){ this.$u.throttle(() => { diff --git a/pages.json b/pages.json index 75b6102..8ae3c07 100644 --- a/pages.json +++ b/pages.json @@ -276,6 +276,14 @@ "style": { "navigationBarTitleText": "获取红线" } + }, + { + "path": "pages/my/bindPhone", + "style": { + "navigationBarTitleText": "绑定手机号", + "navigationBarBackgroundColor": "#FE3EA5", + "navigationBarTextStyle": "white" + } } ], "globalStyle": { diff --git a/pages/my/bindPhone.vue b/pages/my/bindPhone.vue new file mode 100644 index 0000000..f872bfd --- /dev/null +++ b/pages/my/bindPhone.vue @@ -0,0 +1,160 @@ + + + + + + diff --git a/pages/my/index.vue b/pages/my/index.vue index 369d741..d8c08d2 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -12,7 +12,7 @@ 资料审核中 - + 绑定手机号