Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-miniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 58e0c738
authored
Aug 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除掉无用的key定义
1 parent
c5be6e69
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
16 deletions
pages/findCar/findCar.js
pages/loading/loading.js
pages/mine/mine.js
pages/mine/mine.wxml
pages/mine/mine.wxss
pages/wxPublicPage/wxPublicPage.js
utils/wxrequest.js
pages/findCar/findCar.js
View file @
58e0c73
...
@@ -38,6 +38,7 @@ Page({
...
@@ -38,6 +38,7 @@ Page({
ifUpdate: false
ifUpdate: false
}) */
}) */
if
(
wx
.
getStorageSync
(
'initFindCar'
)){
if
(
wx
.
getStorageSync
(
'initFindCar'
)){
let
_url
=
`
${
WXRequest
.
domain
}
h5/dist/index.html?sessionid=
${
sessionid
}
&sns=
${
carInfo
.
sns
}
&standno=
${
carInfo
.
standno
}
&name=
${
carInfo
.
name
}
&vehicleid=
${
carInfo
.
vehicleid
}
`
;
let
_url
=
`
${
WXRequest
.
domain
}
h5/dist/index.html?sessionid=
${
sessionid
}
&sns=
${
carInfo
.
sns
}
&standno=
${
carInfo
.
standno
}
&name=
${
carInfo
.
name
}
&vehicleid=
${
carInfo
.
vehicleid
}
`
;
if
(
carInfo
.
loginUserId
){
if
(
carInfo
.
loginUserId
){
_url
+=
`&loginUserId=
${
carInfo
.
loginUserId
}
`
;
_url
+=
`&loginUserId=
${
carInfo
.
loginUserId
}
`
;
...
@@ -45,6 +46,8 @@ Page({
...
@@ -45,6 +46,8 @@ Page({
loginUserId
:
carInfo
.
loginUserId
loginUserId
:
carInfo
.
loginUserId
});
});
}
}
console
.
log
(
sessionid
)
console
.
log
(
_url
);
this
.
setData
({
this
.
setData
({
url
:
encodeURI
(
_url
),
url
:
encodeURI
(
_url
),
ifUpdate
:
true
ifUpdate
:
true
...
...
pages/loading/loading.js
View file @
58e0c73
This diff is collapsed.
Click to expand it.
pages/mine/mine.js
View file @
58e0c73
...
@@ -57,12 +57,6 @@ Page({
...
@@ -57,12 +57,6 @@ Page({
});
});
}
}
},
},
// 新E盾找车
NewEFindCar
()
{
wx
.
navigateTo
({
url
:
'../../pages/newFindSearch/findSearch'
});
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
...
...
pages/mine/mine.wxml
View file @
58e0c73
...
@@ -33,10 +33,6 @@
...
@@ -33,10 +33,6 @@
<image src="../../images/cmd-freqlog.png"/>调频记录
<image src="../../images/cmd-freqlog.png"/>调频记录
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</view>
</view>
<!-- <view class="weui-cell active" bindtap="NewEFindCar">
<image src="../../images/new-findCar.png"/>"新E盾"找车
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</view> -->
</view>
</view>
<view class="cmd-list logout" bindtap="logout" hidden="{{false}}">
<view class="cmd-list logout" bindtap="logout" hidden="{{false}}">
退出登录
退出登录
...
...
pages/mine/mine.wxss
View file @
58e0c73
...
@@ -32,9 +32,9 @@
...
@@ -32,9 +32,9 @@
.cmd-list .weui-cell.active{
.cmd-list .weui-cell.active{
background-color: #fff;
background-color: #fff;
}
}
.cmd-list .weui-cell .inn{
/*
.cmd-list .weui-cell .inn{
}
}
*/
.cmd-list .weui-cell__ft_in-access{
.cmd-list .weui-cell__ft_in-access{
position: absolute;
position: absolute;
top: 50%;
top: 50%;
...
...
pages/wxPublicPage/wxPublicPage.js
View file @
58e0c73
...
@@ -12,7 +12,7 @@ Page({
...
@@ -12,7 +12,7 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
let
domain
=
WXRequest
.
d
omain
.
split
(
'//'
)[
1
]
let
domain
=
WXRequest
.
wxD
omain
.
split
(
'//'
)[
1
]
//let _appid = 'wxcad686d44f4c8c4d'; // 旧公众号
//let _appid = 'wxcad686d44f4c8c4d'; // 旧公众号
let
_appid
=
'wxb75708fc3ebb3605'
;
//新公众号
let
_appid
=
'wxb75708fc3ebb3605'
;
//新公众号
let
url
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
_appid
}
&redirect_uri=https%3a%2f%2f
${
domain
}
%2fopenid.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
let
url
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
_appid
}
&redirect_uri=https%3a%2f%2f
${
domain
}
%2fopenid.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
...
...
utils/wxrequest.js
View file @
58e0c73
//const domain = 'https://e-shield.didihu.com.cn/otmini/'; //正式环境
//const domain = 'https://e-shield.didihu.com.cn/otmini/'; //正式环境
const
domain
=
'https://e-shield.hhxtechnology.com/otmini/'
;
//正式环境
//
const domain = 'https://e-shield.hhxtechnology.com/otmini/'; //正式环境
//
const domain = 'https://devwx.glsx.com.cn/otmini/'; //开发环境
const
domain
=
'https://devwx.glsx.com.cn/otmini/'
;
//开发环境
/*
/*
新e盾找车
新e盾找车
*/
*/
...
@@ -9,6 +9,9 @@ const domain = 'https://e-shield.hhxtechnology.com/otmini/'; //正式环境
...
@@ -9,6 +9,9 @@ const domain = 'https://e-shield.hhxtechnology.com/otmini/'; //正式环境
// 生产:https://eshield.didihu.com.cn/
// 生产:https://eshield.didihu.com.cn/
const
newDomain
=
'https://eshield.didihu.com.cn/'
const
newDomain
=
'https://eshield.didihu.com.cn/'
// 公众号授权页面
const
wxDomain
=
'https://e-shield.hhxtechnology.com/otmini/'
function
redirectToLogin
(){
console
.
log
(
'redirectToLogin'
)
function
redirectToLogin
(){
console
.
log
(
'redirectToLogin'
)
wx
.
redirectTo
({
wx
.
redirectTo
({
url
:
'../../pages/login/login'
url
:
'../../pages/login/login'
...
@@ -16,7 +19,8 @@ function redirectToLogin(){console.log('redirectToLogin')
...
@@ -16,7 +19,8 @@ function redirectToLogin(){console.log('redirectToLogin')
}
}
module
.
exports
=
{
module
.
exports
=
{
domain
,
domain
,
wxDomain
,
login
(
data
){
login
(
data
){
return
new
Promise
(
function
(
resolve
,
reject
){
return
new
Promise
(
function
(
resolve
,
reject
){
wx
.
showLoading
();
wx
.
showLoading
();
...
...
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