Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7c69d4de
authored
May 29, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
fb81bf68
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
14 deletions
api/api.js
app.js
components/SideSelectPopup/SideSelectPopup.js
pages/merchantList/merchantList.js
pages/sceneIndex/sceneIndex.js
pages/wxLogin/wxLogin.js
api/api.js
View file @
7c69d4d
...
@@ -276,5 +276,6 @@ module.exports = {
...
@@ -276,5 +276,6 @@ module.exports = {
"dj.api.smartcarlife.staff.login.record.save"
,
"dj.api.smartcarlife.staff.login.record.save"
,
data
data
);
);
//selectMerchantScene
},
},
};
};
app.js
View file @
7c69d4d
...
@@ -103,10 +103,9 @@ App({
...
@@ -103,10 +103,9 @@ App({
// wx.reLaunch({url: '/pages/accountItems/accountItems'})
// wx.reLaunch({url: '/pages/accountItems/accountItems'})
util
.
setSessionId
(
data
?.
sessionId
)
util
.
setSessionId
(
data
?.
sessionId
)
wx
.
reLaunch
({
url
:
'/pages/loading/loading'
})
wx
.
reLaunch
({
url
:
'/pages/loading/loading'
})
// let { uuid } = wx.$util.getUserInfo()
// let now = new Date()
let
now
=
new
Date
()
// api.loginRecordSave({ staffUuid: data.noSignInUuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
api
.
loginRecordSave
({
staffUuid
:
data
.
noSignInUuid
,
loginTime
:
now
.
format
(
'yyyy-MM-dd hh:mm:ss'
)
})
// return
return
}
else
{
}
else
{
util
.
removeStorage
()
util
.
removeStorage
()
removeSystemStorage
()
removeSystemStorage
()
...
...
components/SideSelectPopup/SideSelectPopup.js
View file @
7c69d4d
...
@@ -278,7 +278,16 @@ Component({
...
@@ -278,7 +278,16 @@ Component({
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
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
)
{
eventCallback
(
item
,
sceneType
,
isSuper
,
data
)
{
...
...
pages/merchantList/merchantList.js
View file @
7c69d4d
...
@@ -148,7 +148,16 @@ Page({
...
@@ -148,7 +148,16 @@ Page({
orderCode
:
item
.
orderCode
||
''
// 工单号
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
)
wx
.
$router
.
reLaunch
(
constantData
?.
pageUrl
[
1
],
queryParams
)
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
...
...
pages/sceneIndex/sceneIndex.js
View file @
7c69d4d
...
@@ -49,13 +49,15 @@ Page({
...
@@ -49,13 +49,15 @@ Page({
}
}
})
})
// 是初次登录并进入到选场景的时候,不是是切换园区店进来不用处理
// 是初次登录并进入到选场景的时候,不是是切换园区店进来不用处理
if
(
!
userInfo
.
isLog
)
{
//
if (!userInfo.isLog) {
let
now
=
new
Date
()
let
now
=
new
Date
()
api
.
loginRecordSave
({
api
.
loginRecordSave
({
staffUuid
:
userInfo
.
uuid
,
loginTime
:
now
.
format
(
'yyyy-MM-dd hh:mm:ss'
),
merchantId
:
shopMerchantId
,
staffUuid
:
userInfo
.
uuid
,
merchantName
:
shopMerchantName
loginTime
:
now
.
format
(
'yyyy-MM-dd hh:mm:ss'
),
merchantId
:
userInfo
?.
shopMerchantId
,
merchantName
:
userInfo
?.
shopMerchantName
,
})
})
}
//
}
}
}
this
.
setData
({
this
.
setData
({
...
...
pages/wxLogin/wxLogin.js
View file @
7c69d4d
...
@@ -455,7 +455,8 @@ Page({
...
@@ -455,7 +455,8 @@ Page({
// debugger
// debugger
let
now
=
new
Date
()
let
now
=
new
Date
()
api
.
loginRecordSave
({
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
merchantName
:
shopMerchantName
})
})
}
}
...
@@ -477,7 +478,11 @@ Page({
...
@@ -477,7 +478,11 @@ Page({
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
let
{
uuid
}
=
wx
.
$util
.
getUserInfo
()
let
{
uuid
}
=
wx
.
$util
.
getUserInfo
()
let
now
=
new
Date
()
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
return
}
}
// 仅一家4s店
// 仅一家4s店
...
@@ -504,16 +509,19 @@ Page({
...
@@ -504,16 +509,19 @@ Page({
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
let
{
uuid
}
=
wx
.
$util
.
getUserInfo
()
let
{
uuid
}
=
wx
.
$util
.
getUserInfo
()
let
now
=
new
Date
()
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
)
{
}
else
if
(
!
result
?.
length
)
{
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
return
wx
.
$util
.
showToast
(
'园区店关联的4s店商户账号无效,请联系总部管理员'
)
return
wx
.
$util
.
showToast
(
'园区店关联的4s店商户账号无效,请联系总部管理员'
)
}
else
{
}
else
{
wx
.
$router
.
go
(
pageUrl
)
wx
.
$router
.
go
(
pageUrl
)
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
let
{
uuid
}
=
wx
.
$util
.
getUserInfo
()
//
let { uuid } = wx.$util.getUserInfo()
let
now
=
new
Date
()
//
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') })
}
}
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment