Commit 1e149ca3 by 胡悦

修改

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