单点,删除错题本,首页跳转修改

This commit is contained in:
2025-12-04 18:32:38 +08:00
parent 255f275552
commit 16ebe3078b
8 changed files with 105 additions and 56 deletions

View File

@@ -1,7 +1,7 @@
<template>
<AppLayout title="" :use-scroll-view="false">
<view class="wrap">
<view class="login_index">
<!-- <view class="login_index">
<input class="input" placeholder="请输入账号" placeholder-class="inputplace" v-model="form.username" />
<view class="login_yzm">
<input class="input" type="password" placeholder="请输入密码" placeholder-class="inputplace"
@@ -13,7 +13,7 @@
</view>
<button class="com-btn" @click="register"> </button>
</view>
</view> -->
</view>
</AppLayout>
</template>
@@ -43,8 +43,8 @@
const flag=ref('hlw')
const form = reactive({
username: 'langchaojituan',
password: 'Aa123456?',
username: '913700004941904564',
password: '913700004941904564',
rememberMe: false,
code: '',
uuid: ''
@@ -57,7 +57,43 @@
})
onMounted(() => {
getCodeImg()
// getCodeImg()
let form={}
if (uni.getStorageSync('userInfo').isCompanyUser=='1') {
form={
usertype: '1',
idno: uni.getStorageSync('userInfo').idCard,
name: uni.getStorageSync('userInfo').name,
enterprisecode:"",
enterprisename: "",
contactperson: "",
contactphone: "",
}
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
form={
usertype: "2",
enterprisecode: uni.getStorageSync('userInfo').idCard,
enterprisename: uni.getStorageSync('userInfo').name,
contactperson: "",
contactphone: "",
idno: "",
name: ""
}
}
$api.myRequest('/auth/login2/ks',form,'post',10100).then((res) => {
if (res.code=='200') {
uni.setStorageSync('Padmin-Token', res.data.access_token)
uni.navigateBack({
delta:2
})
}
}).catch(() => {
uni.hideLoading()
uni.showToast({
icon: 'none',
title: '登录失败,请重试'
})
})
})
function register() {

View File

@@ -3,7 +3,7 @@
<view class="tab-container">
<image src="/packageB/static/images/train/bj.jpg" mode=""></image>
<view>
<view class="btns" @click="jumps('/packageB/train/video/videoList')">
<!-- <view class="btns" @click="jumps('/packageB/train/video/videoList')">
<image src="/packageB/static/images/train/spxx-k.png" mode=""></image>
<view>
<text>培训视频</text>
@@ -12,7 +12,7 @@
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
</view>
</view>
</view>
</view> -->
<view class="btns" @click="jumps('/packageB/train/practice/startPracticing')">
<image src="/packageB/static/images/train/zxxl-k.png" mode=""></image>
<view>
@@ -35,7 +35,7 @@
</view>
</view>
<view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
<!-- <view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
<image src="/packageB/static/images/train/ctb-k.png" mode=""></image>
<view>
<text>错题本 </text>
@@ -45,7 +45,7 @@
</view>
</view>
</view>
</view> -->
</view>
</view>
<!-- </AppLayout> -->