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 1f2fd995
authored
Aug 22, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
ffcfc00d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
config.js
pages/constant/data.js
pages/materails/components/Materials/materials.js
store/index.js
config.js
View file @
1f2fd99
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
3
;
let
index
=
2
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
pages/constant/data.js
View file @
1f2fd99
...
@@ -34,7 +34,7 @@ const pageUrl = {
...
@@ -34,7 +34,7 @@ const pageUrl = {
0
:
'packageEquity.equityPage'
,
0
:
'packageEquity.equityPage'
,
1
:
'tabIndex.index'
,
1
:
'tabIndex.index'
,
3
:
'packageCrowdFunding.crowdFundingPage'
,
3
:
'packageCrowdFunding.crowdFundingPage'
,
2
:
'subvehicleConversion.conversionPage'
2
:
'subvehicleConversion.conversionPage'
,
}
}
export
default
{
export
default
{
...
...
pages/materails/components/Materials/materials.js
View file @
1f2fd99
...
@@ -72,7 +72,7 @@ Component({
...
@@ -72,7 +72,7 @@ Component({
this
.
materialListApi
(
params
).
then
(
res
=>
{
this
.
materialListApi
(
params
).
then
(
res
=>
{
if
(
res
&&
res
.
data
)
{
if
(
res
&&
res
.
data
)
{
res
.
data
.
forEach
(
el
=>
{
res
.
data
.
forEach
(
el
=>
{
if
(
el
.
createdDate
)
el
.
createdDate
=
new
Date
(
el
.
createdDate
).
format
(
'yyyy
-MM-
dd'
)
if
(
el
.
createdDate
)
el
.
createdDate
=
new
Date
(
el
.
createdDate
).
format
(
'yyyy
/MM/
dd'
)
})
})
}
}
list
=
res
.
data
list
=
res
.
data
...
@@ -122,7 +122,7 @@ Component({
...
@@ -122,7 +122,7 @@ Component({
})
})
}
}
},
},
onHide
(){
onHide
()
{
clearInterval
(
this
.
intaval
)
clearInterval
(
this
.
intaval
)
}
}
...
...
store/index.js
View file @
1f2fd99
...
@@ -258,12 +258,12 @@ export const checkScene = options => {
...
@@ -258,12 +258,12 @@ export const checkScene = options => {
// &&options.patch == 'tabIndex/pages/index/index'
// &&options.patch == 'tabIndex/pages/index/index'
// 需要当前门店的 不是就重新登录
// 需要当前门店的 不是就重新登录
if
(
userInfo
?.
subLoginUser
?.
merchantId
!=
query
.
merchantId
)
{
//
if (userInfo?.subLoginUser?.merchantId != query.merchantId) {
wx
.
$SCENE
=
null
//
wx.$SCENE = null
// return this.login(true)
//
// return this.login(true)
// return true // 重新登录
//
// return true // 重新登录
return
'当前登录园区不一致,请重新登录。'
//
return '当前登录园区不一致,请重新登录。'
}
//
}
}
}
console
.
log
(
options
.
path
,
'options.path'
)
console
.
log
(
options
.
path
,
'options.path'
)
...
...
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