This commit is contained in:
parent
9d870dbc00
commit
0297094c68
|
|
@ -6,7 +6,7 @@
|
|||
"versionCode" : 104,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
"popGesture": "none",
|
||||
"popGesture" : "none",
|
||||
"useragent" : {
|
||||
"value" : "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Html5Plus/1.0 (Immersed/20) uni-app",
|
||||
"concatenate" : true //true则为在默认基础上追加 false则为替换默认
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<view class="page">
|
||||
<u-navbar title="首页" placeholder @leftClick="leftClick" />
|
||||
<view class="search">
|
||||
<uni-icons type="scan" size="24" style="margin-right: 2vw; color: #bababa" @click="toggleScan"></uni-icons>
|
||||
<!-- <uni-icons type="scan" size="24" style="margin-right: 2vw; color: #bababa" @click="toggleScan"></uni-icons> -->
|
||||
<uni-easyinput
|
||||
suffixIcon="search"
|
||||
v-model="keyword"
|
||||
|
|
|
|||
|
|
@ -208,19 +208,30 @@
|
|||
console.log(res)
|
||||
let req = res.data
|
||||
console.log('🚀 ~ getUserInfo ~ req:', req)
|
||||
uni.setStorageSync('access_token', req.data.access_token)
|
||||
uni.setStorageSync('userId', req.data.loginUser.userId)
|
||||
uni.setStorageSync('userName', req.data.loginUser.userName)
|
||||
uni.setStorageSync('className', req.data.loginUser.sysUser.className)
|
||||
uni.setStorageSync('facePath', req.data.loginUser.sysUser.facePath)
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/YNEduApp/index/index'
|
||||
if (req.code == 200) {
|
||||
uni.setStorageSync('access_token', req.data.access_token)
|
||||
uni.setStorageSync('userId', req.data.loginUser.userId)
|
||||
uni.setStorageSync('userName', req.data.loginUser.userName)
|
||||
uni.setStorageSync('className', req.data.loginUser.sysUser.className)
|
||||
uni.setStorageSync('facePath', req.data.loginUser.sysUser.facePath)
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/YNEduApp/index/index'
|
||||
})
|
||||
}, 500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: req.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}, 500)
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
console.log('🚀 ~ gotoYy ~ err:', err)
|
||||
uni.showToast({
|
||||
title: err.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
// uni.reLaunch({
|
||||
|
|
|
|||
Loading…
Reference in New Issue