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 d3d355f0
authored
Jan 11, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第二轮bug修复
1 parent
eab5fcef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
23 deletions
app.js
project.private.config.json
router/router.js
tabWorkOrder/pages/index/index.js
app.js
View file @
d3d355f
...
@@ -76,14 +76,31 @@ App({
...
@@ -76,14 +76,31 @@ App({
this
.
autoUpdate
()
this
.
autoUpdate
()
console
.
log
(
options
)
console
.
log
(
options
)
// console.log(options)
// console.log(options)
wx
.
onMemoryWarning
(
function
()
{
// wx.onMemoryWarning(function () {
console
.
log
(
'onMemoryWarningReceive'
)
// console.log('onMemoryWarningReceive')
// })
let
systemInfo
=
util
.
getStorageSync
(
'dj_boutique_system_info'
)
wx
.
getSystemInfo
({
success
(
res
)
{
if
(
!
systemInfo
)
{
util
.
setStorageSync
(
'dj_boutique_system_info'
,
res
)
}
}
})
})
let
{
query
}
=
options
let
{
query
}
=
options
// 判断对象是否满足任意一个key
// 判断对象是否满足任意一个key
console
.
log
(
query
,
' query'
)
// console.log(query, ' query')
if
(
query
&&
(
query
.
scene
||
query
.
supplement
||
query
.
type
))
{
if
(
query
&&
(
query
.
scene
||
query
.
merchantId
||
query
.
type
))
{
if
(
query
.
supplement
)
{
// 需要满
if
(
query
.
merchantId
)
{
// &&options.patch == 'tabIndex/pages/index/index'
let
userInfo
=
util
.
getStorageSync
(
'dj_boutique_user_info'
)
// 需要当前门店的 不是就重新登录
if
(
userInfo
?.
subLoginUser
?.
merchantId
!=
query
.
merchantId
)
{
wx
.
$SCENE
=
null
return
this
.
login
(
true
)
}
options
.
patch
=
'pages/index/index'
options
.
patch
=
'pages/index/index'
}
}
if
(
query
.
type
)
{
if
(
query
.
type
)
{
...
@@ -94,15 +111,6 @@ App({
...
@@ -94,15 +111,6 @@ App({
}
}
console
.
log
(
wx
.
$SCENE
,
' wx.$SCENE'
)
console
.
log
(
wx
.
$SCENE
,
' wx.$SCENE'
)
// if (options.query.scene)
// if (options.query.scene)
let
systemInfo
=
util
.
getStorageSync
(
'dj_boutique_system_info'
)
wx
.
getSystemInfo
({
success
(
res
)
{
if
(
!
systemInfo
)
{
util
.
setStorageSync
(
'dj_boutique_system_info'
,
res
)
}
}
})
},
},
login
(
relogin
)
{
login
(
relogin
)
{
if
(
relogin
)
{
if
(
relogin
)
{
...
@@ -113,12 +121,12 @@ App({
...
@@ -113,12 +121,12 @@ App({
util
.
removeStorage
()
util
.
removeStorage
()
wx
.
$relogin
=
relogin
wx
.
$relogin
=
relogin
}
}
let
userInfo
=
util
.
getUserInfo
()
//
let userInfo = util.getUserInfo()
let
sessionId
=
util
.
getSessionId
()
//
let sessionId = util.getSessionId()
if
(
sessionId
&&
userInfo
)
{
//
if (sessionId && userInfo) {
// util.setWebSocket()
//
// util.setWebSocket()
return
//
return
}
//
}
router
.
reLaunch
(
'pages.wxLogin'
)
router
.
reLaunch
(
'pages.wxLogin'
)
},
},
// 获取设备信息
// 获取设备信息
...
...
project.private.config.json
View file @
d3d355f
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
{
{
"name"
:
"首页"
,
"name"
:
"首页"
,
"pathName"
:
"/tabIndex/pages/index/index"
,
"pathName"
:
"/tabIndex/pages/index/index"
,
"query"
:
"
supplement=true
"
,
"query"
:
"
merchantId=44209886
"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
...
...
router/router.js
View file @
d3d355f
...
@@ -103,7 +103,7 @@ class Router {
...
@@ -103,7 +103,7 @@ class Router {
this
[
_query
]
=
events
||
{}
this
[
_query
]
=
events
||
{}
const
[
_parent
,
_name
]
=
route
.
split
(
'.'
)
const
[
_parent
,
_name
]
=
route
.
split
(
'.'
)
let
name
=
route
let
name
=
route
let
parent
=
this
.
getPageInstance
().
__route__
.
split
(
'/'
)[
0
]
let
parent
=
this
.
getPageInstance
()
?
.
__route__
.
split
(
'/'
)[
0
]
let
query
=
''
let
query
=
''
if
(
route
.
includes
(
'?'
))
{
if
(
route
.
includes
(
'?'
))
{
let
[
_name_
,
_query_
]
=
route
.
split
(
'?'
)
let
[
_name_
,
_query_
]
=
route
.
split
(
'?'
)
...
...
tabWorkOrder/pages/index/index.js
View file @
d3d355f
...
@@ -322,13 +322,17 @@ Page({
...
@@ -322,13 +322,17 @@ Page({
pageNum
,
pageNum
,
...
searchObj
...
searchObj
}
}
if
(
tabIndex
!=
0
)
{
// 待跟进状态需要特殊处理避免带出已关闭
if
([
2
,
3
].
includes
(
tabIndex
))
{
let
target
=
{
let
target
=
{
1
:
'R'
,
1
:
'R'
,
2
:
'Y'
,
2
:
'Y'
,
3
:
'N'
3
:
'N'
}
}
obj
.
upgradeFinishFlag
=
target
[
tabIndex
]
obj
.
upgradeFinishFlag
=
target
[
tabIndex
]
}
else
if
(
tabIndex
==
1
)
{
obj
.
statusList
=
[
1
]
}
}
// console.log(obj.sourceList && obj.statusList[0] == 'Y')
// console.log(obj.sourceList && obj.statusList[0] == 'Y')
...
...
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