Commit 8ae84beb by 王志慧

fixed

1 parent d4b02e21
/* login/index/components/LoginBox.wxss */ /* login/index/components/LoginBox.wxss */
.wx { .wx {
height: 922rpx; height: 62vh;
.title { .title {
font-weight: 600; font-weight: 600;
font-size: 60rpx; font-size: 60rpx;
color: #333333; color: #333333;
padding: 216rpx 0 24rpx; padding: 15vh 0 24rpx;
} }
.subtitle { .subtitle {
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
.box { .box {
z-index: 100; z-index: 100;
// height: 800rpx; // height: 800rpx;
height: 750rpx;
.input-box { .input-box {
width: 540rpx; width: 540rpx;
......
...@@ -30,11 +30,11 @@ Component({ ...@@ -30,11 +30,11 @@ Component({
// 点击菜单按钮切换到对应的tab // 点击菜单按钮切换到对应的tab
getCurrentMenu(e) { getCurrentMenu(e) {
let { tab } = this.data let { tab } = this.data
const [TEMP]= tab.filter(item=>item.serviceType == e.detail); const index = tab.findIndex(item=>item.serviceType == e.detail)
this.setData({ this.setData({
tabIndex: e.detail, tabIndex: index,
to: `to-${e.detail}`, to: `to-${index}`,
currentServiceType: TEMP.serviceType || 0, 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!