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 ea4aabb7
authored
Aug 05, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复免登录逻辑
1 parent
5bdbd89e
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
11 deletions
config.js
packageEquity/pages/TabBar/equityPage.js
packageEquity/pages/carEquity/previewList/previewList.sass
project.private.config.json
store/index.js
tabIndex/pages/index/index.js
utils/request/environment.js
config.js
View file @
ea4aabb
...
@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -18,13 +18,13 @@ 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
()
const
envName
=
accountInfo
.
miniProgram
.
envVersion
const
envName
=
accountInfo
.
miniProgram
.
envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
//手动控制体验版环境的请求 true就依据下面index false就默认2
const
manual
=
fals
e
const
manual
=
tru
e
const
release
=
false
const
release
=
false
// 判断小程序环境
// 判断小程序环境
...
@@ -55,7 +55,8 @@ export const envIndex = index
...
@@ -55,7 +55,8 @@ export const envIndex = index
const
createQuotedUrl
=
{
const
createQuotedUrl
=
{
develop
:
`http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`
,
develop
:
`http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`
,
trial
:
`http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
trial
:
`http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
release
:
`https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
release
:
`https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
preRelease
:
`https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
}
}
const
target
=
[
'ip'
,
'develop'
,
'trial'
,
'release'
,
'preRelease'
]
const
target
=
[
'ip'
,
'develop'
,
'trial'
,
'release'
,
'preRelease'
]
// 报价单图片地址
// 报价单图片地址
...
...
packageEquity/pages/TabBar/equityPage.js
View file @
ea4aabb
...
@@ -35,7 +35,7 @@ Page({
...
@@ -35,7 +35,7 @@ Page({
shopSideSelectPopup
:
false
,
shopSideSelectPopup
:
false
,
mode
:
1
,
mode
:
1
,
tipsProps
:
false
,
tipsProps
:
false
,
waitInputCount
:
1
,
waitInputCount
:
0
,
isStaff
:
false
isStaff
:
false
// hasMode:true
// hasMode:true
},
},
...
@@ -211,7 +211,8 @@ Page({
...
@@ -211,7 +211,8 @@ Page({
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
default4SStoreInfo
})
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
default4SStoreInfo
})
this
.
setData
({
this
.
setData
({
userInfo
:
{
...
wx
.
$util
.
getUserInfo
(),
default4SStoreInfo
}
userInfo
:
{
...
wx
.
$util
.
getUserInfo
(),
default4SStoreInfo
},
waitInputCount
:
0
})
})
this
.
getMerchant4SMode
()
this
.
getMerchant4SMode
()
this
.
initList
()
this
.
initList
()
...
...
packageEquity/pages/carEquity/previewList/previewList.sass
View file @
ea4aabb
...
@@ -36,10 +36,11 @@ page {
...
@@ -36,10 +36,11 @@ page {
.prevIcon
{
.prevIcon
{
margin-left
:
auto
;
margin-left
:
auto
;
margin-right
:
40rpx
;
}
}
.downloadIcon
{
.downloadIcon
{
margin-left
:
20prx
;}
margin-left
:
40prx
;}
.icon
{
.icon
{
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
...
...
project.private.config.json
View file @
ea4aabb
...
@@ -30,12 +30,19 @@
...
@@ -30,12 +30,19 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"选择账号"
,
"pathName"
:
"pages/accountItems/accountItems"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
},
},
"libVersion"
:
"2.18.1"
,
"libVersion"
:
"2.18.1"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
fals
e
"urlCheck"
:
tru
e
}
}
}
}
\ No newline at end of file
\ No newline at end of file
store/index.js
View file @
ea4aabb
...
@@ -212,7 +212,7 @@ export const checkScene = options => {
...
@@ -212,7 +212,7 @@ export const checkScene = options => {
}
}
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
wx
.
$SCENE
=
options
wx
.
$SCENE
=
options
if
(
!
userInfo
)
{
if
(
!
userInfo
&&
options
.
path
!=
'pages/accountItems/accountItems'
)
{
return
'未登录,请登录。'
return
'未登录,请登录。'
}
}
}
}
...
...
tabIndex/pages/index/index.js
View file @
ea4aabb
// tabIndex/pages/index/index.js
// tabIndex/pages/index/index.js
import
mixins
from
'./index_mixins'
import
mixins
from
'./index_mixins'
import
api
from
'../../api.js'
import
api
from
'../../api.js'
// import apiother from '~/api/api.js'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
import
{
env
}
from
'~/config'
import
{
env
}
from
'~/config'
import
{
getYQInfo
}
from
'~/store/index'
import
{
getYQInfo
}
from
'~/store/index'
...
@@ -583,6 +584,27 @@ Page({
...
@@ -583,6 +584,27 @@ Page({
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
// console.log(options)
// console.log(options)
// let { wxqrcode } = this.data
// if (wxqrcode) return
// let _this = this
// // "appId": "wxc50d04ae5aa9984a",
// // "path": "login/loading/loading?url=/packagesList/packageOutput/pages/summary&userName=djqgzj&password=djqgzj123&sceneCode=SC002&merchantId=44206511&merchantName=轻改专家",
// // "pageName": "看产值"
// let oParams = {}
// oParams.appId = 'wx570d9331f9ace0bd'
// oParams.qrcodeType = 'QR_WXA_UNLIMIT'
// oParams.path = 'login/loading/loading'
// oParams.scene = `params=test`
// oParams.channelType = 1
// // B端小程序调用接口生成领券码时,传参userId用uuid,类型由int变string
// apiother.createQrcodeImage(oParams).then(res => {
// console.log(res.data)
// console.log(res.code)
// _this.setData({
// wxqrcode: res.data
// })
// })
options
&&
this
.
checkShowOrderPop
(
options
)
options
&&
this
.
checkShowOrderPop
(
options
)
...
...
utils/request/environment.js
View file @
ea4aabb
...
@@ -46,8 +46,8 @@ const scrmSecretKey_items = {
...
@@ -46,8 +46,8 @@ const scrmSecretKey_items = {
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
},
preRelease
:
{
preRelease
:
{
appKey
:
'
d7ffc3346fc9a45bccaaa35300d59022
'
,
appKey
:
'
48e5e13229b82c1b4e6e8c96151f0637
'
,
secret
:
'
4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
'
secret
:
'
c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b
'
},
},
cdptest
:{
cdptest
:{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
...
...
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