素质测评测试优化
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
<template>
|
||||
<view class="index-wrap">
|
||||
<view class="yanshi-wrap">
|
||||
<view class="head-bar" :style="{'margin-top': barHeight + 5 + 'px'}">
|
||||
<view class="go-back" @click="goback"></view>
|
||||
<text>素质测评</text>
|
||||
</view>
|
||||
<view class="section">
|
||||
<view class="head-title">测评中心</view>
|
||||
<view class="nav-block">
|
||||
@@ -55,20 +51,16 @@
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
user: null,//用户信息
|
||||
userId: 0,
|
||||
name: ""
|
||||
name: "",
|
||||
idCard: ""
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
this.userId = e.userId;
|
||||
this.idCard = e.idCard;
|
||||
this.name = e.name;
|
||||
this.queryKaShiToken();
|
||||
},
|
||||
methods: {
|
||||
// 返回
|
||||
goback() {
|
||||
uni.navigateBack(-1);
|
||||
},
|
||||
// 演示入
|
||||
navDetail(index){
|
||||
switch (index){
|
||||
@@ -114,7 +106,7 @@
|
||||
|
||||
// 登录获取用户信息
|
||||
async queryKaShiToken() {
|
||||
const res = await api.queryKaShiToken(this.userId,this.name)
|
||||
const res = await api.queryKaShiToken(this.idCard,this.name)
|
||||
if(res.Result == 1){
|
||||
let params = {
|
||||
token:res.Data.token,
|
||||
|
||||
Reference in New Issue
Block a user