Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8fd03927
authored
Aug 09, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
eb7caaef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
app.js
pages/tab/me/me.js
pages/tab/me/me.wxml
app.js
View file @
8fd03927
...
...
@@ -55,9 +55,9 @@ App({
if
(
this
.
globalData
.
auth
)
{
//是否登录
if
(
this
.
globalData
.
token
)
{
wx
.
switchTab
({
url
:
'/pages/tab/home/home'
});
//
wx.switchTab({
//
url: '/pages/tab/home/home'
//
});
}
else
{
wx
.
redirectTo
({
url
:
'/pages/person/login/index'
...
...
pages/tab/me/me.js
View file @
8fd03927
...
...
@@ -25,7 +25,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
if
(
!
http
.
judgeToken
(
true
)){
if
(
!
http
.
judgeToken
(
true
))
{
return
}
...
...
@@ -105,25 +105,26 @@ Page({
* 跳转地址
*/
toUrl
:
function
(
e
)
{
console
.
log
(
e
)
//认证管理
if
(
e
.
t
arget
.
dataset
.
type
==
'certification'
)
{
if
(
e
.
currentT
arget
.
dataset
.
type
==
'certification'
)
{
if
(
e
.
t
arget
.
dataset
.
status
==
null
)
{
if
(
e
.
currentT
arget
.
dataset
.
status
==
null
)
{
wx
.
navigateTo
({
url
:
"/pages/person/certification/addcertification/index"
});
}
else
if
(
e
.
t
arget
.
dataset
.
status
==
1
)
{
}
else
if
(
e
.
currentT
arget
.
dataset
.
status
==
1
)
{
}
}
if
(
e
.
target
.
dataset
.
url
)
{
//普通跳转
if
(
e
.
currentTarget
.
dataset
.
url
)
{
wx
.
navigateTo
({
url
:
e
.
t
arget
.
dataset
.
url
url
:
e
.
currentT
arget
.
dataset
.
url
});
}
...
...
pages/tab/me/me.wxml
View file @
8fd03927
...
...
@@ -94,11 +94,11 @@
<view class="hr"></view>
<view class="boxsiz bar row bothSide verCenter bor" data-url="/pages/person/setting/index" bind:tap="toUrl">
<view>
<text class="icon iconfont iconiconcaiseshouye"
data-url="/pages/person/setting/index"
></text>
<text class="t1"
data-url="/pages/person/setting/index"
>设置</text>
<text class="icon iconfont iconiconcaiseshouye"></text>
<text class="t1">设置</text>
</view>
<view>
<text class="icon iconfont iconChevron"
data-url="/pages/person/setting/index"
></text>
<text class="icon iconfont iconChevron"></text>
</view>
</view>
<view class="boxsiz bar row bothSide verCenter bor">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment