Commit ad42c056 by 前端

完善日志

1 parent b2777ea1
......@@ -13,10 +13,10 @@ module.exports = {
// 与后端约定的token字段名
TOKEN_NAME: 'glsk-oss',
// PROTOCAL: 'http',
// SERVER: 'app-admin-server.test.glsx.com.cn',
// SERVER: 'app-admin-server.test.glsx.com.cn',
// SOCKET_PORT: '9081',
// HTTP_PORT: '3000',
HTTP_SERVER:'app-admin-server.test.glsx.com.cn',
SOCKET_SERVER:'app-admin-server.test.glsx.com.cn',
FILE_UPLOAD_URL: 'file/upload',
HTTP_SERVER: 'http://app-admin-server.test.glsx.com.cn',
SOCKET_SERVER: 'http://app-admin-server.test.glsx.com.cn',
FILE_UPLOAD_URL: 'file/upload'
}
......@@ -2,7 +2,7 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "1.9.1",
"versionName" : "2.0.0",
"versionCode" : "100",
"transformPx" : false,
/* 5+App特有相关 */
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-31 15:00:45
* @LastEditTime: 2024-11-05 09:53:23
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -33,6 +33,7 @@ export default {
}
},
async mounted() {
uni.$logger.local.info(`进入接待首页!`)
this.handleSave(false)
// 获取当前页面栈数组
const pages = getCurrentPages()
......
......@@ -47,6 +47,7 @@ export default {
},
mounted () {
this.getListSelectAccount()
uni.$logger.local.info(`进入选择账号页面!`)
},
methods: {
getListSelectAccount (autoLogin = false) {
......@@ -89,10 +90,14 @@ export default {
},
async choiceAccountLogin () {
let { loginUserInfoList } = this,
id = null
id = null,
merchantName = null
console.log(loginUserInfoList,'loginUserInfoList')
loginUserInfoList.map(e => {
if (e.active) id = e.uuid
if (e.active) {
id = e.uuid
merchantName = e.merchantName
}
})
if (!id) {
......@@ -104,10 +109,10 @@ export default {
}
// 清空4s店数据
// app.globalData.storeListRange = []
this.selectAccountLogin(id)
this.selectAccountLogin(id,merchantName)
},
selectAccountLogin (id) {
uni.$logger.local.info(`选择账号登录`)
selectAccountLogin (id,merchantName) {
uni.$logger.local.info(`选择账号${merchantName}登录!`)
uni.showLoading({
mask: true
})
......@@ -119,7 +124,8 @@ export default {
title: '获取4S店列表失败',
icon: 'none',
})
}).catch(() => {
}).catch((err) => {
uni.$logger.local.error(`获取4S店列表失败${err}!`)
uni.hideLoading()
})
},
......
......@@ -44,6 +44,7 @@ export default {
},
methods: {
init (userInfo) {
uni.$logger.info(`进入选择4s店页面!`)
this.userInfo = userInfo
this.getSceneArr()
},
......@@ -87,7 +88,7 @@ export default {
})
},
chooseAccount (item) {
uni.$logger.info(`选择4s店`)
uni.$logger.info(`选择4s店${item.merchantName}!`)
uni.showLoading({
mask: true
})
......
......@@ -47,6 +47,7 @@ export default {
init (userInfo) {
this.userInfo = userInfo
this.getSceneArr()
uni.$logger.local.info(`进入选择场景页!`)
},
getSceneArr () {
uni.showLoading({
......@@ -68,7 +69,7 @@ export default {
},
// 选择场景
async selectScene ({ sceneType }, index) {
uni.$logger.local.info(`选择场景`)
uni.$logger.local.info(`选择场景${sceneType}!`)
let { sceneList, openSceneArr, userInfo } = this
try {
if (!openSceneArr.includes(sceneType) && !userInfo?.isSuper) return uni.showToast({
......@@ -105,6 +106,7 @@ export default {
}
},
async jump (userInfo, data) {
uni.$logger.local.info(`跳转进入首页!`)
try {
uni.hideLoading()
if (data) userInfo.loginRoleOnSelectMerchant = data?.loginRoleOnSelectMerchant
......@@ -128,7 +130,7 @@ export default {
url
})
} catch (error) {
uni.$logger.local.error(`选择场景后跳转异常:${error}`)
uni.$logger.local.error(`选择场景后跳转异常:${error}!`)
uni.hideLoading()
uni.showToast({
title: error,
......
......@@ -99,6 +99,7 @@ export default {
const { code, message } = await uni.$api.userApi.getSmsCode({ mobile });
uni.hideLoading();
if (code == '0') {
uni.$logger.local.info(`${mobile}发送验证码成功`)
uni.showToast({
title: '验证码已发送',
icon: 'none',
......@@ -106,6 +107,7 @@ export default {
this.countDown(60);
} else throw message || '发送验证码失败';
} catch (error) {
uni.$logger.local.info(`${mobile}发送验证码失败,失败原因:${error}`)
uni.hideLoading();
uni.showToast({
title: error,
......@@ -145,7 +147,7 @@ export default {
this.jump(data, noSignIn);
uni.$logger.local.info(`${mobile}登录`)
}
else
else {
uni.showModal({
title: '温馨提示',
content: message,
......@@ -153,7 +155,11 @@ export default {
confirmText: '知道了',
confirmColor: '#347BFF',
});
uni.$logger.local.info(`${mobile}登录失败,失败原因:${message}`)
}
} catch (error) {
uni.$logger.local.info(`${mobile}登录失败,失败原因:${error}`)
uni.hideLoading();
uni.showToast({
title: error,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!