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 da22ed79
authored
Nov 09, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_4.31.2' into 'dev_v4.32.0_1130'
bug修复 See merge request
!198
2 parents
0d6e3c20
86f9f90c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
8 deletions
config.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
pages/wxLogin/wxLogin.js
project.private.config.json
store/index.js
config.js
View file @
da22ed7
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
2
let
index
=
3
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.wxml
View file @
da22ed7
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<!-- showMenu="{{true}}" -->
<!-- showMenu="{{true}}" -->
<!-- bindtap="showStorePicker" -->
<!-- bindtap="showStorePicker" -->
...
...
pages/wxLogin/wxLogin.js
View file @
da22ed7
...
@@ -117,7 +117,7 @@ Page({
...
@@ -117,7 +117,7 @@ Page({
if
(
this
.
data
.
jumpPageFlag
)
return
if
(
this
.
data
.
jumpPageFlag
)
return
this
.
setData
({
jumpPageFlag
:
true
})
this
.
setData
({
jumpPageFlag
:
true
})
getYQList
()
getYQList
()
console
.
log
(
smsLogin
,
'smsLogin'
);
//
console.log(smsLogin,'smsLogin');
if
(
loginType
==
1
)
{
if
(
loginType
==
1
)
{
// 手机号登录
// 手机号登录
api
api
...
@@ -128,7 +128,7 @@ Page({
...
@@ -128,7 +128,7 @@ Page({
})
})
.
then
(
result
=>
{
.
then
(
result
=>
{
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
let
{
code
,
data
}
=
result
let
{
code
,
data
,
message
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
...
@@ -174,7 +174,7 @@ Page({
...
@@ -174,7 +174,7 @@ Page({
})
})
.
then
(
result
=>
{
.
then
(
result
=>
{
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
let
{
code
,
data
}
=
result
let
{
code
,
data
,
message
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
...
@@ -257,11 +257,44 @@ Page({
...
@@ -257,11 +257,44 @@ Page({
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'options'
);
console
.
log
(
options
,
'options'
);
options
.
noLogin
&&
options
.
sence
==
2
&&
this
.
noLoginFn
(
options
.
noLogin
)
let
id
=
decodeURIComponent
(
options
.
scene
).
split
(
'='
)[
1
]
id
&&
this
.
qrCodeScene
(
id
)
},
},
noLoginFn
(
noLogin
){
// 免登录逻辑
qrCodeScene
(
id
)
{
api
.
getSceneById
({
id
,
channelType
:
1
})
.
then
(
res
=>
{
// debugger
// res => {
let
{
code
,
data
}
=
res
let
op
=
{}
if
(
code
==
'0'
)
{
if
(
data
)
{
data
.
split
(
'&'
).
map
(
item
=>
{
const
[
key
,
val
]
=
item
.
split
(
'='
)
op
[
key
]
=
val
})
this
.
setData
(
{
...
op
},
()
=>
{
this
.
noLoginFn
()
}
)
}
}
// }
})
.
catch
(
err
=>
{})
},
noLoginFn
(){
let
that
=
this
let
that
=
this
//
let { noLogin } = this.data
let
{
noLogin
}
=
this
.
data
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
api
api
.
noLogin
({
.
noLogin
({
...
...
project.private.config.json
View file @
da22ed7
...
@@ -5,6 +5,20 @@
...
@@ -5,6 +5,20 @@
"list"
:
[
"list"
:
[
{
{
"name"
:
""
,
"name"
:
""
,
"pathName"
:
"pages/wxLogin/wxLogin"
,
"query"
:
"scene=sceneId%3D133329"
,
"launchMode"
:
"default"
,
"scene"
:
1047
},
{
"name"
:
""
,
"pathName"
:
"pages/wxLogin/wxLogin"
,
"query"
:
"scene=sceneId%3D133329"
,
"launchMode"
:
"default"
,
"scene"
:
1047
},
{
"name"
:
""
,
"pathName"
:
"pages/accountItems/accountItems"
,
"pathName"
:
"pages/accountItems/accountItems"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
...
...
store/index.js
View file @
da22ed7
...
@@ -210,7 +210,8 @@ export const checkScene = options => {
...
@@ -210,7 +210,8 @@ export const checkScene = options => {
}
}
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
wx
.
$SCENE
=
options
wx
.
$SCENE
=
options
if
(
!
userInfo
&&
options
.
path
!=
'pages/accountItems/accountItems'
)
{
console
.
log
(
options
.
path
,
'options.path'
)
if
(
!
userInfo
&&
!
(
[
'pages/accountItems/accountItems'
,
'pages/wxLogin/wxLogin'
].
includes
(
options
.
path
)))
{
// if (!userInfo) {
// if (!userInfo) {
// console.log(userInfo);
// console.log(userInfo);
console
.
log
(
'未登录,请登录。'
);
console
.
log
(
'未登录,请登录。'
);
...
...
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