Commit fa478378 authored by 罗成兵's avatar 罗成兵

配置文件

parent 55837e6c
...@@ -24,6 +24,7 @@ export default { ...@@ -24,6 +24,7 @@ export default {
created() { created() {
let vm = this; let vm = this;
window['init'] = (result) => { window['init'] = (result) => {
vm.msg = null
let path = vm.$route.path; let path = vm.$route.path;
if (path != '/') { if (path != '/') {
return; return;
...@@ -36,7 +37,7 @@ export default { ...@@ -36,7 +37,7 @@ export default {
}; };
}, },
mounted() { mounted() {
if (process.env.NODE_ENV == "dev1") { if (process.env.NODE_ENV == "dev") {
let userInfo = { let userInfo = {
account: '18487125843', account: '18487125843',
token: '7de354fd8be1484cacbc41e96fe88d7e', token: '7de354fd8be1484cacbc41e96fe88d7e',
...@@ -53,10 +54,7 @@ export default { ...@@ -53,10 +54,7 @@ export default {
}; };
if (!userInfo.userId && !userInfo.account) { if (!userInfo.userId && !userInfo.account) {
this.msg = "用户信息获取失败!" this.msg = "用户信息获取失败!"
let vm = this; callMobile('init', {});
setTimeout(function (){
callMobile('init', {});
},3000)
} else { } else {
if (!userInfo.userId || !userInfo.account) { if (!userInfo.userId || !userInfo.account) {
this.msg = "用户信息获取失败!" this.msg = "用户信息获取失败!"
...@@ -88,8 +86,9 @@ export default { ...@@ -88,8 +86,9 @@ export default {
message: '备孕妇女从孕前3个月,坚持每天服用0.4mg叶酸或含叶酸的复合维生素至少到怀孕满3个月,可预防胎儿神经管缺陷的发生,还能减少唇腭裂、先心病、早产等风险。特殊情况妇女如肥胖、糖尿病等要加量。', message: '备孕妇女从孕前3个月,坚持每天服用0.4mg叶酸或含叶酸的复合维生素至少到怀孕满3个月,可预防胎儿神经管缺陷的发生,还能减少唇腭裂、先心病、早产等风险。特殊情况妇女如肥胖、糖尿病等要加量。',
confirmButtonText: "好的,知道了" confirmButtonText: "好的,知道了"
}).then(() => { }).then(() => {
this.$router.push('provideUnit');
}); });
this.$router.push('provideUnit');
} }
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment