Commit 477a538b by 胡悦

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
......@@ -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];
......
......@@ -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 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>
......
......@@ -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({
......
......@@ -66,7 +66,7 @@ var senceData = [
img: 'product-img2',
proName: '汽车太阳膜',
price: '100',
profit: '10080000',
profit: '1008000',
type: 'membrane',
productType: 'sunMembrane',
path: 'solarFilm',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!