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 d8b1aeab
authored
Oct 27, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
002f5112
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
30 deletions
components/CooperationApply/CooperationApply.js
pages/activityApplication/activityApplication.js
pages/activityApplication/activityApplication.wxml
pages/activityApplication/activityApplication.wxss
pages/applicationAccount/applicationAccount.js
pages/newEnergy/newEnergy.js
components/CooperationApply/CooperationApply.js
View file @
d8b1aea
...
@@ -71,9 +71,9 @@ Component({
...
@@ -71,9 +71,9 @@ Component({
//报错
//报错
showModal
(
error
)
{
showModal
(
error
)
{
wx
.
show
Modal
({
wx
.
show
Toast
({
content
:
error
.
msg
,
title
:
error
.
msg
,
showCancel
:
false
,
icon
:
'none'
,
})
})
},
},
...
...
pages/activityApplication/activityApplication.js
View file @
d8b1aea
...
@@ -158,9 +158,9 @@ Page({
...
@@ -158,9 +158,9 @@ Page({
}
}
});
});
if
(
!
selectFlag
)
{
if
(
!
selectFlag
)
{
wx
.
show
Modal
({
wx
.
show
Toast
({
content
:
"请至少选择一个产品"
,
title
:
"请至少选择一个产品"
,
showCancel
:
false
,
icon
:
'none'
,
});
});
wx
.
hideLoading
();
wx
.
hideLoading
();
return
;
return
;
...
@@ -172,7 +172,7 @@ Page({
...
@@ -172,7 +172,7 @@ Page({
params
.
productItems
=
productItems
.
join
(
","
);
params
.
productItems
=
productItems
.
join
(
","
);
}
}
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
;
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
;
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
;
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
||
wx
.
$util
.
getStorageSync
(
"scene"
).
merchantId
;
params
.
openId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
openId
;
params
.
openId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
openId
;
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
unionId
;
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
"aicard_info"
).
unionId
;
console
.
log
(
params
);
console
.
log
(
params
);
...
@@ -185,9 +185,9 @@ Page({
...
@@ -185,9 +185,9 @@ Page({
wx
.
$router
.
go
(
"applySuccess"
);
wx
.
$router
.
go
(
"applySuccess"
);
}
else
{
}
else
{
wx
.
hideLoading
();
wx
.
hideLoading
();
wx
.
show
Modal
({
wx
.
show
Toast
({
content
:
message
,
title
:
message
,
showCancel
:
false
,
icon
:
'none'
,
});
});
}
}
});
});
...
...
pages/activityApplication/activityApplication.wxml
View file @
d8b1aea
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<view class="apply-content">
<view class="apply-content">
<image class="apply-background" mode="widthFix" webp src="{{IMGURL}}application/application_top.png?v={{img_version}}"></image>
<image class="apply-background" mode="widthFix" webp src="{{IMGURL}}application/application_top.png?v={{img_version}}"></image>
<view class="box-background">
<view class="box-background">
<!-- 产品展示 -->
<view class="product-box">
<!-- 产品选择tab -->
<!-- 产品选择tab -->
<view class="product-tab-box">
<view class="product-tab-box">
<!-- tab栏 -->
<!-- tab栏 -->
...
@@ -20,13 +22,12 @@
...
@@ -20,13 +22,12 @@
</view>
</view>
</block>
</block>
</view>
</view>
<!-- 产品展示 -->
<view class="product-box">
<view class="product-tip">
<view class="product-tip">
<image class="tip-icon" mode="widthFix" webp src="{{IMGURL}}application/tip_icon.png?v={{img_version}}"></image>
<image class="tip-icon" wx:if="{{selectItemName == 'scene3'}}" mode="widthFix" webp src="{{IMGURL}}application/tip_icon.png?v={{img_version}}"></image>
<image class="tip-icon" wx:else="" mode="widthFix" webp src="{{IMGURL}}application/tip_icon2.png?v={{img_version}}"></image>
<text class="tip-text">{{sceneTip[selectItemName]}}</text>
<text class="tip-text">{{sceneTip[selectItemName]}}</text>
</view>
</view>
<block wx:for="{{productList[selectItemName]}}">
<block wx:for="{{productList[selectItemName]}}"
wx:key="index"
>
<image wx:if="{{item.name}}" class="product-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}" bindtap="goPage" data-item="{{item.name}}"></image>
<image wx:if="{{item.name}}" class="product-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}" bindtap="goPage" data-item="{{item.name}}"></image>
</block>
</block>
</view>
</view>
...
...
pages/activityApplication/activityApplication.wxss
View file @
d8b1aea
...
@@ -8,14 +8,12 @@
...
@@ -8,14 +8,12 @@
}
}
.box-background {
.box-background {
padding-top: 8rpx;
background-image: linear-gradient(179deg, #E3E8FF 0%, #FEFEFE 100%);
background-image: linear-gradient(179deg, #E3E8FF 0%, #FEFEFE 100%);
}
}
.product-tab-box {
.product-tab-box {
display: flex;
display: flex;
/* justify-content: space-around; */
margin-bottom: 38rpx;
padding: 0 26rpx;
}
}
.product-item {
.product-item {
...
@@ -92,20 +90,21 @@
...
@@ -92,20 +90,21 @@
}
}
.product-img {
.product-img {
width:
224rpx
;
width:
calc((100% - 32rpx)/3)
;
height: 216rpx;
height: 216rpx;
margin-right: 16rpx;
margin-right: 16rpx;
margin-bottom: 20rpx;
margin-bottom: 20rpx;
box-shadow: 0 6rpx 24rpx 0 rgba(175, 181, 219, 0.40);
box-shadow: 0 6rpx 24rpx 0 rgba(175, 181, 219, 0.40);
}
}
.product-img:nth-child(3n) {
.product-img:nth-child(3n
+2
) {
margin-right: 0;
margin-right: 0;
}
}
.product-box {
.product-box {
margin
: 36rpx 0 56rpx 0
;
margin
-bottom: 56rpx
;
padding: 0 26rpx;
padding: 0 26rpx;
background-image: linear-gradient(179deg, #DBE3FF 0%, #FEFEFE 100%);
}
}
.product-tip {
.product-tip {
...
@@ -258,11 +257,13 @@
...
@@ -258,11 +257,13 @@
color: #323436;
color: #323436;
letter-spacing: 0;
letter-spacing: 0;
text-align: center;
text-align: center;
line-height: 64rpx;
margin-right: 12rpx;
margin-right: 12rpx;
margin-bottom: 20rpx;
margin-bottom: 20rpx;
position: relative;
position: relative;
box-sizing: border-box;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
}
.item:nth-child(3n) {
.item:nth-child(3n) {
...
@@ -285,6 +286,6 @@
...
@@ -285,6 +286,6 @@
width: 30rpx;
width: 30rpx;
height: 22rpx;
height: 22rpx;
position: absolute;
position: absolute;
top:
0
;
top:
-1rpx
;
right:
0
;
right:
-1rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/applicationAccount/applicationAccount.js
View file @
d8b1aea
...
@@ -54,9 +54,9 @@ Page({
...
@@ -54,9 +54,9 @@ Page({
//报错
//报错
showModal
(
error
)
{
showModal
(
error
)
{
wx
.
show
Modal
({
wx
.
show
Toast
({
content
:
error
.
msg
,
title
:
error
.
msg
,
showCancel
:
false
,
icon
:
'none'
,
})
})
},
},
...
...
pages/newEnergy/newEnergy.js
View file @
d8b1aea
...
@@ -33,7 +33,7 @@ Page({
...
@@ -33,7 +33,7 @@ Page({
// 区分代理商和门店
// 区分代理商和门店
params
.
merchantName
=
applyType
==
0
?
params
.
merchantName
+
'(新能源-门店)'
:
params
.
merchantName
+
'(新能源-代理商)'
params
.
merchantName
=
applyType
==
0
?
params
.
merchantName
+
'(新能源-门店)'
:
params
.
merchantName
+
'(新能源-代理商)'
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
||
wx
.
$util
.
getStorageSync
(
"scene"
).
merchantId
params
.
openId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
openId
params
.
openId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
openId
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
unionId
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
unionId
console
.
log
(
params
);
console
.
log
(
params
);
...
@@ -50,9 +50,9 @@ Page({
...
@@ -50,9 +50,9 @@ Page({
wx
.
$router
.
go
(
"applySuccess"
);
wx
.
$router
.
go
(
"applySuccess"
);
}
else
{
}
else
{
wx
.
hideLoading
()
wx
.
hideLoading
()
wx
.
show
Modal
({
wx
.
show
Toast
({
content
:
message
,
title
:
message
,
showCancel
:
false
,
icon
:
'none'
,
})
})
}
}
})
})
...
...
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