合并精品课

This commit is contained in:
haomingming
2025-08-21 09:59:04 +08:00
parent 72d63c5a80
commit 196ea43fad
19 changed files with 6308 additions and 18 deletions
+26 -9
View File
@@ -101,6 +101,7 @@
import pwdImg from "@/static/pwd.png"
import eyeOpenImg from "@/static/eye_open.png"
import eyeCloseImg from "@/static/eye_close.png"
import api from "@/api/api.js"
const customStyle = reactive({
height: "100rpx",
@@ -187,21 +188,37 @@
title: '登录中...'
});
// 模拟登录过程
setTimeout(() => {
api.pwdLogin({
mobile: phoneNumber.value,
password: password.value,
client_type:"A",
current_spec:"Iphone15"
}).then(res => {
console.log(res)
uni.hideLoading();
uni.showToast({
title: '登录成功',
icon: 'success'
});
uni.redirectTo({
url:'/pages_course/course/course'
})
})
// 模拟登录过程
// setTimeout(() => {
// uni.hideLoading();
// uni.showToast({
// title: '登录成功',
// icon: 'success'
// });
// 跳转到首页
setTimeout(() => {
uni.switchTab({
url: '/pages/index/index'
});
}, 1500);
}, 2000);
// // 跳转到首页
// setTimeout(() => {
// uni.switchTab({
// url: '/pages/index/index'
// });
// }, 1500);
// }, 2000);
};
// 微信登录