65316219 by 杨炀

Merge commit '6f413499'

2 parents 27be1048 6f413499
......@@ -34,9 +34,15 @@ function h5LoginAuto() {
}
}
function logout() {
return request({
url: '/logout',
method: 'post'
}).then(() => {
uni.removeStorageSync('token')
uni.removeStorageSync('userName')
})
}
function getCodeImg() {
return request({
......@@ -126,5 +132,6 @@ export {
h5LoginAuto,
loginByPhone,
groupMemberRegister,
getMyOwnMemberInfo
getMyOwnMemberInfo,
logout
}
......
......@@ -5,6 +5,7 @@
// staging
// const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
const baseUrl_api = "http://182.92.233.247/stage-api/";
// const baseUrl_api = 'http://192.168.1.97:8787'
export default {
baseUrl_api
......
......@@ -177,15 +177,15 @@
content: `确认退出吗?`,
success: function(res) {
if (res.confirm) {
loginServer.logout().then(()=>{
let path = '/pages/index/login';
uni.reLaunch({
url: path
});
})
}
}
})
}
function goPath(path) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!