Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1e149ca3
authored
Sep 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
be2e0f49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
pages/addValue/addValue/addValue.js
pages/addValue/addValue/addValue.wxss
pages/addValue/addValue/addValue.js
View file @
1e149ca
...
@@ -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
,
});
}
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
...
...
pages/addValue/addValue/addValue.wxss
View file @
1e149ca
...
@@ -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: 2
4
rpx;
margin-left: 2
2
rpx;
}
}
.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: 2
4
rpx;
margin-left: 2
2
rpx;
}
}
.video-text {
.video-text {
font-size: 32rpx;
font-size: 32rpx;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment