商品浏览页构建前最后一次更新
This commit is contained in:
Vendored
+9
-8
@@ -21,19 +21,19 @@
|
||||
var TABS = [{
|
||||
pagePath: '/pages/index/index',
|
||||
text: '首页',
|
||||
icon: '🏠'
|
||||
icon: '/icon/首页.png'
|
||||
}, {
|
||||
pagePath: '/pages/designList/index',
|
||||
text: '设计清单',
|
||||
icon: '📐'
|
||||
icon: '/icon/调色盘.png'
|
||||
}, {
|
||||
pagePath: '/pages/orders/index',
|
||||
text: '订单',
|
||||
icon: '📦'
|
||||
icon: '/icon/包裹.png'
|
||||
}, {
|
||||
pagePath: '/pages/profile/index',
|
||||
text: '我的',
|
||||
icon: '👤'
|
||||
icon: '/icon/个人.png'
|
||||
}];
|
||||
function CustomTabBar() {
|
||||
var _Taro$getCurrentInsta;
|
||||
@@ -49,12 +49,13 @@ function CustomTabBar() {
|
||||
var isActive = currentPath === tab.pagePath;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_2__.View, {
|
||||
className: "tab-item ".concat(isActive ? 'active' : ''),
|
||||
onClick: function onClick() {
|
||||
onTap: function onTap() {
|
||||
return switchTab(tab.pagePath);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_2__.Text, {
|
||||
className: "tab-icon",
|
||||
children: tab.icon
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_2__.Image, {
|
||||
className: "tab-icon-img ".concat(isActive ? 'active' : ''),
|
||||
src: tab.icon,
|
||||
mode: "aspectFit"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_2__.Text, {
|
||||
className: "tab-label",
|
||||
children: tab.text
|
||||
|
||||
Reference in New Issue
Block a user