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
8daa2125
authored
Aug 06, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
4e4882ae
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
28 deletions
app.js
pages/person/login/index.js
pages/tab/me/me.js
pages/tab/me/me.wxml
project.config.json
app.js
View file @
8daa2125
...
...
@@ -45,9 +45,9 @@ App({
success
(
res
)
{
if
(
res
.
data
)
{
wx
.
switchTab
({
url
:
'/pages/tab/home/home'
});
//
wx.switchTab({
//
url: '/pages/tab/home/home'
//
});
}
}
...
...
@@ -59,9 +59,9 @@ App({
success
(
res
)
{
if
(
res
.
authSetting
[
'scope.userInfo'
])
{
// 已经授权
wx
.
switchTab
({
url
:
'/pages/tab/home/home'
})
//
wx.switchTab({
//
url: '/pages/tab/home/home'
//
})
}
}
})
...
...
pages/person/login/index.js
View file @
8daa2125
...
...
@@ -4,6 +4,9 @@ import {
}
from
'../../../utils/api.js'
;
Page
({
/**
...
...
pages/tab/me/me.js
View file @
8daa2125
...
...
@@ -26,6 +26,21 @@ Page({
*/
onLoad
:
function
(
options
)
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
//获取数量统计
http
.
getData
(
apis
.
countBusiness
,
'GET'
,
{
token
:
wx
.
getStorageSync
(
'access_token'
)
...
...
@@ -37,6 +52,7 @@ Page({
}
},
true
);
//获取用户信息
http
.
getData
(
apis
.
userInfo
,
'GET'
,
{
token
:
wx
.
getStorageSync
(
'access_token'
)
},
(
res
)
=>
{
...
...
@@ -46,21 +62,6 @@ Page({
});
}
},
true
);
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
...
...
@@ -101,15 +102,15 @@ Page({
* 跳转地址
*/
toUrl
:
function
(
e
)
{
console
.
log
(
e
)
//认证管理
if
(
e
.
target
.
dataset
.
type
==
'certification'
)
{
if
(
e
.
target
.
dataset
.
status
==
null
)
{
wx
.
navigateTo
({
url
:
"/pages/person/certification/addcertification/index"
url
:
"/pages/person/certification/addcertification/index"
});
}
else
if
(
e
.
target
.
dataset
.
status
==
1
)
{
}
else
if
(
e
.
target
.
dataset
.
status
==
1
)
{
}
...
...
pages/tab/me/me.wxml
View file @
8daa2125
...
...
@@ -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"></text>
<text class="t1">设置</text>
<text class="icon iconfont iconiconcaiseshouye"
data-url="/pages/person/setting/index"
></text>
<text class="t1"
data-url="/pages/person/setting/index"
>设置</text>
</view>
<view>
<text class="icon iconfont iconChevron"></text>
<text class="icon iconfont iconChevron"
data-url="/pages/person/setting/index"
></text>
</view>
</view>
<view class="boxsiz bar row bothSide verCenter bor">
...
...
project.config.json
View file @
8daa2125
...
...
@@ -48,7 +48,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
7
,
"current"
:
8
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -105,6 +105,12 @@
"pathName"
:
"pages/detail/chat/index"
,
"query"
:
"username={
\"
myName
\"
:
\"
7a2765fc7caa5e512a6d1270bcf98bf0
\"
,
\"
your
\"
:
\"
06b6a13c7ae849be08c98ceeefd6ee7f
\"
,
\"
name
\"
:
\"
sy
\"
,
\"
name1
\"
:
\"
11
\"
,
\"
id
\"
:
\"
53
\"
,
\"
touserid
\"
:
\"
54
\"
,
\"
title
\"
:
\"
11
\"
,
\"
img
\"
:
\"
http://img.icsales.com/test/images/icsales/201907/18/ee8b86dc8cac0e5df402a72d77a1b75e.png
\"
,
\"
img1
\"
:
\"
http://img.icsales.com/test/images/icsales/201907/18/767111a5b24e07d950506ea9452ff57c.jpg
\"
}"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/tab/me/me"
,
"pathName"
:
"pages/tab/me/me"
,
"scene"
:
null
}
]
}
...
...
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