12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- const app = getApp();
- import {
- imgUrl
- } from "../pages/api/request"
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
-
- },
- data: {
- imgUrl:imgUrl,
- selected: null,
- color: "#999999",
- selectedColor: "#508FF4",
- list: [{
- "selectedIconPath": "/pages/images/f-sy2.png",
- "iconPath": "/pages/images/f-sy.png",
- "pagePath": "/pages/index/index",
- "text": "首页"
- },
- {
- "selectedIconPath": "/pages/images/f-gk2.png",
- "iconPath": "/pages/images/f-gk.png",
- "pagePath": "/pages/publics/index/index",
- "text": "公开"
- },
- {
- "pagePath": "/pages/nais/nais",
- "isSpecial": true,
- "text": "这是南岸"
- },
- {
- "selectedIconPath": "/pages/images/f-fw2.png",
- "iconPath": "/pages/images/f-fw.png",
- "pagePath": "/pages/serve/serve",
- "text": "服务"
- },
- {
- "selectedIconPath": "/pages/images/f-wd2.png",
- "iconPath": "/pages/images/f-wd.png",
- "pagePath": "/pages/myCenter/myCenter",
- "text": "我的"
- }
- ]
- },
- methods: {
- switchTab(e) {
- const data = e.currentTarget.dataset
- const url = data.path
- this.setData({
- selected: data.index
- })
- wx.switchTab({url})
- }
- }
- })
|