1.22 分包
This commit is contained in:
+12
-25
@@ -1,4 +1,6 @@
|
||||
// custom-tab-bar/index.js
|
||||
import { API } from '../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Component({
|
||||
|
||||
@@ -15,37 +17,37 @@ Component({
|
||||
{
|
||||
"pagePath": "/Pages/yaoshi/home/home",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/images/yaoshi/tabbar_icon/home.png",
|
||||
"selectedIconPath": "/static/images/yaoshi/tabbar_icon/home_select.png",
|
||||
"iconPath": api.getStaticHost()+"/applet/doctor/static/images/yaoshi/home.png",
|
||||
"selectedIconPath": api.getStaticHost()+"/applet/doctor/static/images/yaoshi/home_select.png",
|
||||
"info": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yaoshi/my/my",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/images/yaoshi/tabbar_icon/my.png",
|
||||
"selectedIconPath": "/static/images/yaoshi/tabbar_icon/my_select.png",
|
||||
"iconPath": api.getStaticHost()+"/applet/doctor/static/images/yaoshi/my.png",
|
||||
"selectedIconPath": api.getStaticHost()+"/applet/doctor/static/images/yaoshi/my_select.png",
|
||||
"info": ""
|
||||
}],
|
||||
"list2":[
|
||||
{
|
||||
"pagePath": "/Pages/yishi/index/index",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/index.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/index_select.png",
|
||||
"iconPath": api.getStaticHost()+"/applet/doctor/static/images/yishi/index.png",
|
||||
"selectedIconPath": api.getStaticHost()+"/applet/doctor/static/images/yishi/index_select.png",
|
||||
"info": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yishi/wenzhen_v2/wenzhen",
|
||||
"text": "问诊",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/wenzhen.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/wenzhen_select.png",
|
||||
"iconPath":api.getStaticHost()+"/applet/doctor/static/images/yishi/wenzhen.png",
|
||||
"selectedIconPath":api.getStaticHost()+"/applet/doctor/static/images/yishi/wenzhen_select.png",
|
||||
"info": "99"
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yishi/my/index",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/my.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/my_select.png",
|
||||
"iconPath": api.getStaticHost()+"/applet/doctor/static/images/yishi/my.png",
|
||||
"selectedIconPath":api.getStaticHost()+"/applet/doctor/static/images/yishi/my_select.png",
|
||||
"info": ""
|
||||
}]
|
||||
},
|
||||
@@ -112,21 +114,6 @@ Component({
|
||||
if(val == 0) val = '';
|
||||
return val;
|
||||
},
|
||||
// swichNav: function (e) {
|
||||
// console.log(123);
|
||||
// let that = this;
|
||||
// if (this.data.currentTab === e.target.dataset.current) {
|
||||
// return false;
|
||||
// } else {
|
||||
// that.setData({
|
||||
// currentTab: e.target.dataset.current
|
||||
// })
|
||||
// let url = e.currentTarget.dataset.url; // 点击tabbar时,跳转对应的页面
|
||||
// wx.switchTab({
|
||||
// url: url,
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
onChange(e) {
|
||||
const usertype = wx.getStorageSync('usertype');
|
||||
let userID = wx.getStorageSync('user_id_'+usertype);
|
||||
|
||||
Reference in New Issue
Block a user