Commit 8fd03927 by 梁建民

css

parent eb7caaef
...@@ -55,9 +55,9 @@ App({ ...@@ -55,9 +55,9 @@ App({
if (this.globalData.auth) { if (this.globalData.auth) {
//是否登录 //是否登录
if (this.globalData.token) { if (this.globalData.token) {
wx.switchTab({ // wx.switchTab({
url: '/pages/tab/home/home' // url: '/pages/tab/home/home'
}); // });
} else { } else {
wx.redirectTo({ wx.redirectTo({
url: '/pages/person/login/index' url: '/pages/person/login/index'
......
...@@ -25,7 +25,7 @@ Page({ ...@@ -25,7 +25,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
if (!http.judgeToken(true)){ if (!http.judgeToken(true)) {
return return
} }
...@@ -105,25 +105,26 @@ Page({ ...@@ -105,25 +105,26 @@ Page({
* 跳转地址 * 跳转地址
*/ */
toUrl: function (e) { 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({ wx.navigateTo({
url: "/pages/person/certification/addcertification/index" 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({ wx.navigateTo({
url: e.target.dataset.url url: e.currentTarget.dataset.url
}); });
} }
......
...@@ -94,11 +94,11 @@ ...@@ -94,11 +94,11 @@
<view class="hr"></view> <view class="hr"></view>
<view class="boxsiz bar row bothSide verCenter bor" data-url="/pages/person/setting/index" bind:tap="toUrl"> <view class="boxsiz bar row bothSide verCenter bor" data-url="/pages/person/setting/index" bind:tap="toUrl">
<view> <view>
<text class="icon iconfont iconiconcaiseshouye" data-url="/pages/person/setting/index"></text> <text class="icon iconfont iconiconcaiseshouye"></text>
<text class="t1" data-url="/pages/person/setting/index">设置</text> <text class="t1">设置</text>
</view> </view>
<view> <view>
<text class="icon iconfont iconChevron" data-url="/pages/person/setting/index"></text> <text class="icon iconfont iconChevron"></text>
</view> </view>
</view> </view>
<view class="boxsiz bar row bothSide verCenter bor"> <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