diff --git a/pages/index/index.vue b/pages/index/index.vue index 9dd3d4a..8e98173 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -83,6 +83,15 @@ lineList: [] } }, + onLoad(option) { + if(option.token) { + this.Post({ + token: option.token + }, '/api/user/getUserDetails').then(res => { + this.$store.commit('changeUserInfo', res.data) + }) + } + }, onReady() { this.getTopBanner() this.getLineList() diff --git a/subPackages/daoyou/order.vue b/subPackages/daoyou/order.vue index 7a5832d..06fb3f0 100644 --- a/subPackages/daoyou/order.vue +++ b/subPackages/daoyou/order.vue @@ -21,10 +21,10 @@ - {{skuInfo.is_card ? (skuInfo.is_real_name ? '需填'+buyNum+'位出行人' : '需填1位出行人') : '无需填写出行人'}} + {{skuInfo.is_card == 1 ? (skuInfo.is_real_name ? '需填'+buyNum+'位出行人' : '需填1位出行人') : '无需填写出行人'}} - + @@ -66,7 +66,7 @@