Commit 8daa2125 by 梁建民

css

parent 4e4882ae
......@@ -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'
// })
}
}
})
......
......@@ -4,6 +4,9 @@ import {
} from '../../../utils/api.js';
Page({
/**
......
......@@ -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) {
}
......
......@@ -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">
......
......@@ -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
}
]
}
......
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