Commit ad42c056 by 前端

完善日志

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