Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 3d4970fb
authored
Sep 05, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式和登录bug修复
1 parent
ac36651c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
13 deletions
login/index/components/Box/Box.js
login/index/index.js
login/index/index.wxml
packagesList/packageOutput/pages/newSummary/newSummary.js
packagesList/packageOutput/pages/newSummary/newSummary.wxml
utils/request/environment.js
login/index/components/Box/Box.js
View file @
3d4970f
...
...
@@ -243,7 +243,8 @@ Component({
const
thisPage
=
wx
.
$router
.
getPageInstance
()
if
(
code
==
'0'
)
{
thisPage
.
setData
({
disabled
:
false
disabled
:
false
,
loginToken
:
data
})
this
.
loginToken
=
data
}
else
this
.
reLogin
(
message
)
...
...
login/index/index.js
View file @
3d4970f
...
...
@@ -74,14 +74,15 @@ Page({
})
},
checkLoginBtn
(
disabled
=
false
)
{
const
{
loginType
}
=
this
.
data
,
const
{
loginType
,
loginToken
}
=
this
.
data
,
{
data
:
{
formData
},
// loginToken
}
=
this
.
selectComponent
(
'#box'
)
if
(
loginType
==
0
)
{
console
.
log
(
this
.
loginToken
,
'this.loginToken'
);
// disabled = loginToken
disabled
=
this
.
loginToken
disabled
=
loginToken
||
true
}
else
{
disabled
=
loginType
==
1
?
formData
.
phone
&&
this
.
validate
.
methods
.
tel
(
formData
.
phone
)
&&
formData
.
code
&&
formData
.
code
.
length
==
4
:
formData
.
account
&&
formData
.
password
}
...
...
login/index/index.wxml
View file @
3d4970f
...
...
@@ -2,8 +2,6 @@
<mask show="{{loading}}"></mask>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar>
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
{{test4}}
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
{{test}}
<type-list loginType="{{loginType}}" />
</view>
\ No newline at end of file
packagesList/packageOutput/pages/newSummary/newSummary.js
View file @
3d4970f
...
...
@@ -15,6 +15,7 @@ Page({
*/
data
:
{
IMGURL
:
IMG_URL
,
isPc
:
true
,
merchantInfo
:
{},
tabList
:
[{
label
:
'精品升级-太阳膜'
,
...
...
@@ -525,9 +526,13 @@ Page({
wx
.
$api
.
showToast
(
'下载海报失败'
)
})
},
back
()
{
wx
.
$router
.
back
()
// back() {
// wx.$router.back()
// },
onload
()
{
},
// 众筹-end
onRoute
()
{
console
.
log
(
'onRoute'
)
...
...
@@ -540,6 +545,19 @@ Page({
})
this
.
initData
()
})
let
that
=
this
wx
.
getSystemInfo
({
success
:
(
res
)
=>
{
// windows | mac为pc端
// android | ios为手机端
console
.
log
(
'getSystemInfo,'
,
res
);
if
([
'windows'
,
'mac'
].
includes
(
res
.
platform
)
)
{
that
.
setData
({
isPc
:
false
})
}
}
});
// this.getListSelectAccount(sessionId)
}
})
\ No newline at end of file
packagesList/packageOutput/pages/newSummary/newSummary.wxml
View file @
3d4970f
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<navigation-bar showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
<navigation-bar
wx:if="{{isPc}}"
showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
{{merchantInfo.merchantName}}
</navigation-bar>
<!-- - {{tabBarStyle}}px -->
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:calc(100vh )">
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:100vh">
<!-- <view class="titleBox">
<view class="imgBox" bind:tap="back">
...
...
utils/request/environment.js
View file @
3d4970f
...
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
release
=
false
let
index
=
2
let
index
=
3
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
...
...
@@ -107,8 +107,8 @@ const djSecretKey = {
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
preRelease
:
{
appKey
:
'
d7ffc3346fc9a45bccaaa35300d59022
'
,
secret
:
'
4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
'
appKey
:
'
48e5e13229b82c1b4e6e8c96151f0637
'
,
secret
:
'
c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b
'
}
}[
target
[
index
]]
...
...
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