|
|
@@ -26,11 +26,29 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
data() {
|
|
|
- return {};
|
|
|
+ return {userType:""};
|
|
|
+ },
|
|
|
+ onLoad(options) {
|
|
|
+ if (options.userType) {
|
|
|
+ this.userType = options.userType;
|
|
|
+ console.log('接收的userType:', this.userType);
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
goLogin(){
|
|
|
- uni.navigateTo({ url: '/pages/my/jobApplicant/loginInput' })
|
|
|
+ // 这里判断一下看是否是第一次登录如果是就跳到引导页,如果不是就正常跳
|
|
|
+ // let firstLogin = uni.getStorageSync("firstLogin") || false;
|
|
|
+ console.log("userType:",this.userType)
|
|
|
+ // if (!this.userType) {
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: "/pages/my/jobApplicant/guidePage",
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // uni.switchTab({
|
|
|
+ // url: "/pages/index/index",
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ uni.navigateTo({ url: '/pages/my/jobApplicant/loginInput?type=1' })
|
|
|
},
|
|
|
},
|
|
|
};
|