Commit 8fd03927 by 梁建民

css

parent eb7caaef
......@@ -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'
......
......@@ -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.target.dataset.type == 'certification') {
if (e.currentTarget.dataset.type == 'certification') {
if (e.target.dataset.status == null) {
if (e.currentTarget.dataset.status == null) {
wx.navigateTo({
url: "/pages/person/certification/addcertification/index"
});
} else if (e.target.dataset.status == 1) {
} else if (e.currentTarget.dataset.status == 1) {
}
}
if (e.target.dataset.url) {
//普通跳转
if (e.currentTarget.dataset.url) {
wx.navigateTo({
url: e.target.dataset.url
url: e.currentTarget.dataset.url
});
}
......
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment