Commit 1b5e50d7 by 胡悦

提交测算入口

1 parent d930c51f
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
"pages/productDetail/seatVentilate/seatVentilate", "pages/productDetail/seatVentilate/seatVentilate",
"pages/productDetail/solarFilm/solarFilm", "pages/productDetail/solarFilm/solarFilm",
"pages/activityApplication/activityApplication", "pages/activityApplication/activityApplication",
"pages/newEnergy/newEnergy" "pages/newEnergy/newEnergy",
"pages/measure/measure"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
// pages/measure/measure.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "展业测算"
}
\ No newline at end of file \ No newline at end of file
<!--pages/measure/measure.wxml-->
<view class="wrapper-measure">
<image class="header-bg" src="{{IMGURL}}measure/header-bg.png?v={{img_version}}"></image>
<view class="form first-form">
<view class="form-title">请输入门店基本信息</view>
<view class="form-label">您的门店数</view>
<input class="form-value" type="text" placeholder="请输入门店数"/>
<view class="form-label">单店每月平均新车数</view>
<input class="form-value" type="text" placeholder="请输入单店每月平均新车数"/>
<view class="form-label">单店3年以上存量客户数</view>
<input class="form-value" type="text" placeholder="请输入您的单店3年以上存量客户数"/>
</view>
<view class="form second-form">
<view class="form-title">请选择场景/产品</view>
<view class=""></view>
</view>
</view>
/* pages/measure/measure.wxss */
.wrapper-measure {
position: relative;
padding: 0 24rpx;
}
.header-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: -1;
}
.form {
width: 100%;
box-sizing: border-box;
background: #fff;
box-shadow: 0 4rpx 32rpx 0 rgba(175,181,219,0.40);
border-radius: 16rpx;
padding: 32rpx 40rpx;
}
.form-title {
font-weight: 500;
font-size: 32rpx;
color: #333333;
letter-spacing: 0;
text-align: center;
line-height: 56rpx;
}
.first-form {
margin-top: 224rpx;
}
.second-form {
margin-top: 48rpx;
}
.form-label {
font-size: 28rpx;
margin-top: 32rpx;
}
.form-value {
margin-top: 16rpx;
height: 80rpx;
background: #FFFFFF;
border: 2rpx solid #E6E6E6;
border-radius: 4rpx;
padding: 0 20rpx;
box-sizing: border-box;
font-size: 28rpx;
font-size: 28rpx;
line-height: 48rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -34,11 +34,11 @@ Page({ ...@@ -34,11 +34,11 @@ Page({
icon: "icon-video", icon: "icon-video",
icon1: "icon-video", icon1: "icon-video",
}, },
// { {
// name: "合作申请", name: "展业测算",
// icon: "icon-cooperation", icon: "icon-measure",
// icon1: "icon-cooperation", icon1: "icon-measure",
// }, },
], ],
curTabIndex: 0, curTabIndex: 0,
// 0-员工,1-代理商 // 0-员工,1-代理商
...@@ -77,6 +77,9 @@ Page({ ...@@ -77,6 +77,9 @@ Page({
}) })
wx.$Track.sendTrack(trackData.VIDEO); wx.$Track.sendTrack(trackData.VIDEO);
break; break;
case 3:
wx.$router.go("measure");
break
default: default:
this.setData({ this.setData({
curTabIndex: curTabIndex, curTabIndex: curTabIndex,
......
...@@ -12,12 +12,16 @@ ...@@ -12,12 +12,16 @@
<!-- tab介绍 --> <!-- tab介绍 -->
<view class="tab-list"> <view class="tab-list">
<block wx:for="{{tabList}}" wx:key="index"> <block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }} {{index === 3 ? 'tab-apply' : ''}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce"> <view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" style="width: {{100 / tabList.length + '%'}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png?v={{img_version}}"></image> <image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png?v={{img_version}}"></image>
<image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png?v={{img_version}}"></image> <image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png?v={{img_version}}"></image>
<view class="tab-text">{{item.name}}</view> <view class="tab-text">{{item.name}}</view>
<!-- <view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }} {{index === 3 ? 'tab-apply' : ''}}" style="width: {{100 / tabList.length + '%'}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png?v={{img_version}}"></image>
<image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png?v={{img_version}}"></image>
<view class="tab-text">{{item.name}}</view> -->
<!-- 合作申请hot --> <!-- 合作申请hot -->
<image wx:if="{{index === 3}}" class="icon-hot" webp src="{{IMGURL}}home/icon-hot.png?v={{img_version}}"></image> <!-- <image wx:if="{{index === 3}}" class="icon-hot" webp src="{{IMGURL}}home/icon-hot.png?v={{img_version}}"></image> -->
</view> </view>
</block> </block>
</view> </view>
......
...@@ -31,7 +31,7 @@ page { ...@@ -31,7 +31,7 @@ page {
} }
.tab-list { .tab-list {
display: flex; display: flex;
justify-content: space-evenly; margin: 0 32rpx;
} }
.tab-item { .tab-item {
...@@ -46,6 +46,10 @@ page { ...@@ -46,6 +46,10 @@ page {
text-align: center; text-align: center;
margin-top: 24rpx; margin-top: 24rpx;
position: relative; position: relative;
margin-right: 16rpx;
}
.tab-item:last-child {
margin-right: 0;
} }
.bg-img { .bg-img {
...@@ -90,6 +94,7 @@ page { ...@@ -90,6 +94,7 @@ page {
top: 88rpx; top: 88rpx;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 100%;
} }
......
.channel-bg { .channel-bg {
/* width: 700rpx; /* width: 700rpx;
height: 144rpx; */ height: 144rpx; */
margin: 0 22rpx; margin: 0 28rpx;
position: relative; position: relative;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!