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 477a538b
authored
Oct 28, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.10.5' of
http://192.168.3.233:8090/saas/mini-program/ai-card
into v2.10.5
2 parents
79efbaa1
b6c9f5a6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
9 deletions
components/CooperationApply/CooperationApply.js
pages/newEnergy/newEnergy.js
pages/newEnergy/newEnergy.wxml
pages/scene/components/product/product.js
pages/scene/constant/data.js
components/CooperationApply/CooperationApply.js
View file @
477a538
...
...
@@ -93,8 +93,8 @@ Component({
// 校验表单
if
(
!
this
.
WxValidate
.
checkForm
(
params
))
{
const
error
=
this
.
WxValidate
.
errorList
[
0
];
this
.
showModal
(
error
);
wx
.
hideLoading
();
this
.
showModal
(
error
);
return
false
;
}
else
{
return
[
params
,
this
.
data
.
tabIndex
];
...
...
pages/newEnergy/newEnergy.js
View file @
477a538
...
...
@@ -25,6 +25,7 @@ Page({
applyShow
:
!
this
.
data
.
applyShow
})
this
.
selectComponent
(
'#applyForm'
).
setPhone
(
Util
.
getUserInfo
().
phone
)
this
.
goBottom
()
},
// 授权手机号
...
...
@@ -81,6 +82,18 @@ Page({
}
},
// 跳到页面底部
goBottom
()
{
console
.
log
(
111
);
wx
.
createSelectorQuery
().
select
(
'#wrapperBox'
).
boundingClientRect
(
function
(
rect
){
console
.
log
(
'rectheight'
,
rect
.
height
);
/* 将页面移动到最底部(用xxx的height定位) */
wx
.
pageScrollTo
({
scrollTop
:
rect
.
height
})
}).
exec
()
},
/**
* 生命周期函数--监听页面加载
*/
...
...
pages/newEnergy/newEnergy.wxml
View file @
477a538
<!-- pages/newEnergy/newEnergy.wxml -->
<view class="wrapper-bg">
<view
id="wrapperBox"
class="wrapper-bg">
<image class="newenergy-img newenergy-img1" mode="widthFix" webp src="{{IMGURL}}home/newenergy1.png?v={{img_version}}"></image>
<image class="newenergy-img newenergy-img2" mode="widthFix" webp src="{{IMGURL}}home/newenergy2.png?v={{img_version}}"></image>
<image class="newenergy-img newenergy-img3" mode="widthFix" webp src="{{IMGURL}}home/newenergy3.png?v={{img_version}}"></image>
...
...
pages/scene/components/product/product.js
View file @
477a538
...
...
@@ -46,7 +46,7 @@ Component({
"项目亮点"
,
"转化漏斗"
,
"合作流程"
,
// "
合作案例
",
// "
案例视频
",
],
heightArr
:
[],
allHeight
:
0
,
...
...
@@ -140,7 +140,7 @@ Component({
"项目亮点"
,
"转化漏斗"
,
"合作流程"
,
// "
合作案例
",
// "
案例视频
",
];
let
num
=
this
.
data
.
actNum
;
console
.
log
(
num
)
...
...
@@ -404,20 +404,20 @@ Component({
"项目亮点"
,
"转化漏斗"
,
"合作流程"
,
// "
合作案例
",
// "
案例视频
",
];
switch
(
actNum
)
{
case
0
:
tab
.
push
(
"
合作案例
"
);
tab
.
push
(
"
案例视频
"
);
break
;
case
1
:
tab
.
push
(
"
合作案例
"
);
tab
.
push
(
"
案例视频
"
);
break
;
case
2
:
break
;
case
3
:
tab
.
push
(
"
合作案例
"
);
tab
.
push
(
"
案例视频
"
);
break
;
}
this
.
setData
({
...
...
pages/scene/constant/data.js
View file @
477a538
...
...
@@ -66,7 +66,7 @@ var senceData = [
img
:
'product-img2'
,
proName
:
'汽车太阳膜'
,
price
:
'100'
,
profit
:
'1008000
0
'
,
profit
:
'1008000'
,
type
:
'membrane'
,
productType
:
'sunMembrane'
,
path
:
'solarFilm'
,
...
...
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