Commit 8ae84beb by 王志慧

fixed

1 parent d4b02e21
/* login/index/components/LoginBox.wxss */
.wx {
height: 922rpx;
height: 62vh;
.title {
font-weight: 600;
font-size: 60rpx;
color: #333333;
padding: 216rpx 0 24rpx;
padding: 15vh 0 24rpx;
}
.subtitle {
......@@ -30,7 +30,6 @@
.box {
z-index: 100;
// height: 800rpx;
height: 750rpx;
.input-box {
width: 540rpx;
......
......@@ -30,11 +30,11 @@ Component({
// 点击菜单按钮切换到对应的tab
getCurrentMenu(e) {
let { tab } = this.data
const [TEMP]= tab.filter(item=>item.serviceType == e.detail);
const index = tab.findIndex(item=>item.serviceType == e.detail)
this.setData({
tabIndex: e.detail,
to: `to-${e.detail}`,
currentServiceType: TEMP.serviceType || 0,
tabIndex: index,
to: `to-${index}`,
currentServiceType: e.detail || 0,
})
},
// 展示菜单列表
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!