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

配置文件

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