优化智慧就业内容,功能完善。剩登录对接
This commit is contained in:
@@ -28,41 +28,32 @@
|
||||
<text class="title">个人档案</text>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="head-title">规划中心</view>
|
||||
<view class="head-title">职业生涯规划</view>
|
||||
<view class="nav-block">
|
||||
<view class="item" @click="navDetail(6)">
|
||||
<text class="icon icon-105"></text>
|
||||
<text class="title">生涯罗盘</text>
|
||||
</view>
|
||||
<view class="item" @click="navDetail(2)">
|
||||
<view class="item" @click="navDetail(5)">
|
||||
<text class="icon icon-106"></text>
|
||||
<text class="title">职业生涯路径</text>
|
||||
</view>
|
||||
<view class="item" @click="navDetail(7)">
|
||||
<text class="icon icon-107"></text>
|
||||
<text class="title">学业规划</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="head-title">档案中心</view>
|
||||
<view class="nav-block">
|
||||
</view>
|
||||
<view class="item" @click="navDetail(4)">
|
||||
<text class="icon icon-108"></text>
|
||||
<text class="title">生涯档案</text>
|
||||
</view>
|
||||
<!-- <view class="item" @click="navDetail(5)">
|
||||
<text class="icon icon-11"></text>
|
||||
<text class="title">测试完善个人信息</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api1 from "@/apiB/weChartUser.js"
|
||||
import api3 from "@/apiB/tenpayOrder.js"
|
||||
import api4 from "@/apiB/user.js"
|
||||
import api from "@/apiB/user.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -75,7 +66,6 @@
|
||||
if(user == undefined){
|
||||
this.queryWechartToken();
|
||||
}
|
||||
this.getUserInfor();
|
||||
},
|
||||
methods: {
|
||||
// 返回
|
||||
@@ -83,7 +73,7 @@
|
||||
uni.navigateBack(-1);
|
||||
},
|
||||
async getUserInfor(){
|
||||
const res = await api4.getUserBasisInfo();
|
||||
const res = await api.getUserBasisInfo();
|
||||
if (res.Result == 1) {
|
||||
const data = res.Data.data;
|
||||
if(!data.SpecialtyName){
|
||||
@@ -129,7 +119,7 @@
|
||||
}
|
||||
case 5 : {
|
||||
uni.navigateTo({
|
||||
url: "/packageB/pages/userCenter/fillInInformation"
|
||||
url: "/packageB/pages/userCenter/professionPath"
|
||||
})
|
||||
break;
|
||||
}
|
||||
@@ -157,8 +147,7 @@
|
||||
provider: 'weixin',
|
||||
success: (res)=> {
|
||||
console.log("res.code======="+res.code);
|
||||
api3.getOpenId(res.code).then((res2) => {
|
||||
console.log("88888888");
|
||||
api.getOpenId(res.code).then((res2) => {
|
||||
// uni.setStorageSync('userInfo', data.Data);
|
||||
const userInfo = res2.Data
|
||||
this.user = userInfo.user;
|
||||
@@ -178,7 +167,7 @@
|
||||
async getAccessTokenAndUser() {
|
||||
const userInfo = await this.loginMpWeixin();
|
||||
return new Promise((resolve,reject)=>{
|
||||
api1.getAccessTokenAndUser(userInfo.openid).then((res)=>{
|
||||
api.getAccessTokenAndUser(userInfo.openid).then((res)=>{
|
||||
if(res.Result == 1){
|
||||
this.user = res.Data.User;
|
||||
userInfo.token = res.Data.Token;
|
||||
@@ -199,11 +188,12 @@
|
||||
title: "加载中"
|
||||
})
|
||||
const data = await this.getAccessTokenAndUser();
|
||||
api1.queryWechartToken(data.user.Id,data.user.SchoolId,data.user.UserType).then((res)=>{
|
||||
api.queryWechartToken(data.user.Id,data.user.SchoolId,data.user.UserType).then((res)=>{
|
||||
uni.hideLoading();
|
||||
if(res.Result == 1){
|
||||
data.userToken = res.Data.token;
|
||||
uni.setStorageSync('userInfo',data);
|
||||
this.getUserInfor();
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user