//import * as WxJsApi from '@/utils/wxJsApi.js' import * as API from '@/apis/index.js' export default { data() { return { phone:"", password:"", readme:true, isReady:false, } }, components: { }, onLoad(op){ //this.id=op.id; }, methods: { login(){ if(!this.readme){ uni.showToast({ title:"请阅读并同意《用户协议》《隐私政策》", icon:"none" }) }else{ API.getPassengerInfo().then((response) => { }).catch(error => { uni.showToast({ title:error, icon:"none" }) }) } } },onReady(){ this.isReady=true; },onShow(){ if(this.isReady){ } }, }