合并精品课
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
// 微信登录
|
||||
|
||||
Reference in New Issue
Block a user