Commit 7c69d4de by 张立顺

fix bug修复

1 parent fb81bf68
......@@ -276,5 +276,6 @@ module.exports = {
"dj.api.smartcarlife.staff.login.record.save",
data
);
//selectMerchantScene
},
};
......@@ -103,10 +103,9 @@ App({
// wx.reLaunch({url: '/pages/accountItems/accountItems'})
util.setSessionId(data?.sessionId)
wx.reLaunch({ url: '/pages/loading/loading' })
// let { uuid } = wx.$util.getUserInfo()
let now = new Date()
api.loginRecordSave({ staffUuid: data.noSignInUuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
return
// let now = new Date()
// api.loginRecordSave({ staffUuid: data.noSignInUuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
// return
} else {
util.removeStorage()
removeSystemStorage()
......
......@@ -278,7 +278,16 @@ Component({
} else {
wx.$util.showToast(message)
}
// let { uuid } = wx.$util.getUserInfo()
let now = new Date()
api.loginRecordSave({
staffUuid: userInfo.uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: item?.merchantId,
merchantName: item?.merchantName
})
})
}
},
eventCallback(item, sceneType, isSuper, data) {
......
......@@ -148,7 +148,16 @@ Page({
orderCode: item.orderCode || '' // 工单号
}
}
let now = new Date()
let { uuid } = wx.$util.getUserInfo()
api.loginRecordSave({
staffUuid: uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: shopMerchantId,
merchantName: shopMerchantName
})
wx.$router.reLaunch(constantData?.pageUrl[1], queryParams)
} else {
wx.$util.showToast(message)
}
......@@ -262,7 +271,7 @@ Page({
listArr.map(i => {
i.active = false
// 搜客户
if (type == 1) {
if (type == 1) {
if (i.id == item.id) {
i.active = true
}
......
......@@ -49,13 +49,15 @@ Page({
}
})
// 是初次登录并进入到选场景的时候,不是是切换园区店进来不用处理
if (!userInfo.isLog) {
let now = new Date()
api.loginRecordSave({
staffUuid: userInfo.uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss'), merchantId: shopMerchantId,
merchantName: shopMerchantName
})
}
// if (!userInfo.isLog) {
let now = new Date()
api.loginRecordSave({
staffUuid: userInfo.uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
})
// }
}
this.setData({
......
......@@ -455,7 +455,8 @@ Page({
// debugger
let now = new Date()
api.loginRecordSave({
staffUuid: loginUserObj.uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss'), merchantId: shopMerchantId,
staffUuid: loginUserObj.uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: shopMerchantId,
merchantName: shopMerchantName
})
}
......@@ -477,7 +478,11 @@ Page({
this.setData({ jumpPageFlag: false })
let { uuid } = wx.$util.getUserInfo()
let now = new Date()
api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
api.loginRecordSave({ staffUuid: uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId,
merchantName
})
return
}
// 仅一家4s店
......@@ -504,16 +509,19 @@ Page({
this.setData({ jumpPageFlag: false })
let { uuid } = wx.$util.getUserInfo()
let now = new Date()
api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
api.loginRecordSave({ staffUuid: uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId,
merchantName })
} else if (!result?.length) {
this.setData({ jumpPageFlag: false })
return wx.$util.showToast('园区店关联的4s店商户账号无效,请联系总部管理员')
} else {
wx.$router.go(pageUrl)
this.setData({ jumpPageFlag: false })
let { uuid } = wx.$util.getUserInfo()
let now = new Date()
api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
// let { uuid } = wx.$util.getUserInfo()
// let now = new Date()
// api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!