Commit 1e149ca3 by 胡悦

修改

1 parent be2e0f49
...@@ -34,7 +34,9 @@ Page({ ...@@ -34,7 +34,9 @@ Page({
productList: [], productList: [],
isReset: false, isReset: false,
hasPhoneNumber: false, hasPhoneNumber: false,
userInfo: {} userInfo: {
phone: ''
}
}, },
// tab切换 // tab切换
...@@ -167,7 +169,7 @@ Page({ ...@@ -167,7 +169,7 @@ Page({
this.showCase() this.showCase()
}, },
showCase() { showCase() {
if (this.data.userInfo.phone) { if (this.data.userInfo && this.data.userInfo.phone) {
this.setData({ this.setData({
hasPhoneNumber: true, hasPhoneNumber: true,
productList: this.data.tabList[this.data.tabActive].productList, productList: this.data.tabList[this.data.tabActive].productList,
...@@ -181,6 +183,14 @@ Page({ ...@@ -181,6 +183,14 @@ Page({
}); });
} }
}, },
// 更新手机号
updatePhoneNumber(e) {
if (e.detail) {
this.setData({
hasPhoneNumber: true,
});
}
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
...@@ -113,6 +113,8 @@ ...@@ -113,6 +113,8 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 64rpx 32rpx 128rpx; padding: 64rpx 32rpx 128rpx;
width: 100%;
box-sizing: border-box;
} }
.product-item { .product-item {
width: calc(50% - 12rpx); width: calc(50% - 12rpx);
...@@ -124,7 +126,7 @@ ...@@ -124,7 +126,7 @@
box-sizing: border-box; box-sizing: border-box;
} }
.product-item:nth-child(even) { .product-item:nth-child(even) {
margin-left: 24rpx; margin-left: 22rpx;
} }
.product-item image { .product-item image {
width: 100%; width: 100%;
...@@ -246,7 +248,7 @@ ...@@ -246,7 +248,7 @@
height: 588rpx; height: 588rpx;
} }
.video-item:nth-child(even) { .video-item:nth-child(even) {
margin-left: 24rpx; margin-left: 22rpx;
} }
.video-text { .video-text {
font-size: 32rpx; font-size: 32rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!