Commit 04e8acf2 authored by 和慭琛's avatar 和慭琛

入驻基本信息 页面搭建+交互 100%

parent 9411997e
...@@ -8,21 +8,39 @@ ...@@ -8,21 +8,39 @@
{ {
"path": "pages/settle/index", "path": "pages/settle/base",
"style": { "style": {
"navigationBarTitleText": "充电桩安装招募" "navigationBarTitleText": "入驻信息"
} }
}, },
{ {
"path": "pages/settle/base", "path": "pages/settle/age",
"style": { "style": {
"navigationBarTitleText": "入驻信息" "navigationBarTitleText": "选择电工工龄"
}
},
{
"path": "pages/settle/city",
"style": {
"navigationBarTitleText": "选择可服务的城市"
} }
}, },
{
"path": "pages/settle/index",
"style": {
"navigationBarTitleText": "充电桩安装招募"
}
},
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
......
<template>
<view class="back_view">
选择电工工龄
</view>
</template>
<script>
export default {
data() {
return {
protocolContent:''
}
},
onLoad(e) {
if(e && e.activeService && e.activeService.length>0){
//console.log(e.activeService)
this.activeService = e.activeService
}
},
methods: {
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
phoneNumber: phone
});
},
}
}
</script>
<style>
.back_view{
background-color: #F3F3F3;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
</style>
<template> <template>
<view class="back_view"> <view class="back_view">
入驻基本信息 <view class="top_view">
<text class="top_title">入驻基本信息</text>
</view>
<view class="item_view">
<view class="input_left_view">
<text class="left_title">姓名</text>
<text class="left_star">*</text>
</view>
<input
class="input_right_view"
type="text"
value=""
placeholder="请输入您的真实姓名"
placeholder-style="color:#999999;font-size:28rpx;"
@input="nameInput"/>
</view>
<view class="item_view margin_top_60">
<view class="input_left_view">
<text class="left_title">电话号码</text>
<text class="left_star">*</text>
</view>
<input
class="input_right_view"
type="text"
value=""
placeholder="请输入您的电话号码"
placeholder-style="color:#999999;font-size:28rpx;"
@input="phoneInput"/>
</view>
<view class="item_view margin_top_60" @click="cityClick()">
<text class="left_title">接单城市</text>
<image class="arrow" :src="icon_arrow" mode=""></image>
</view>
<view class="notice_view">
<text class="notice_text">(必选项)选择你可以服务的城市,可选多个</text>
</view>
<view class="item_view margin_top_60" @click="ageClick()">
<text class="left_title">电工工龄</text>
<image class="arrow" :src="icon_arrow" mode=""></image>
</view>
<view class="notice_view">
<text class="notice_text">(必选项)选择你从事电工工作的工龄</text>
</view>
<view class="bottom_view">
<view class="bottom_btn">
<text class="bottom_title">确定</text>
</view>
</view>
</view> </view>
</template> </template>
...@@ -8,7 +55,9 @@ ...@@ -8,7 +55,9 @@
export default { export default {
data() { data() {
return { return {
protocolContent:'' name:'',
phone:'',
icon_arrow:'https://qn-static.banshouhui.com/arrow_right.png',
} }
}, },
onLoad(e) { onLoad(e) {
...@@ -20,13 +69,34 @@ ...@@ -20,13 +69,34 @@
}, },
methods: { methods: {
//拨打客服 点击 //姓名 监听
phoneCallClick: function (phone) { nameInput: function (e) {
uni.makePhoneCall({ this.name = e.detail.value
phoneNumber: phone console.log('输入姓名:' + this.name)
}); },
//电话 监听
phoneInput: function (e) {
this.phone = e.detail.value
console.log('输入电话:' + this.phone)
},
//城市 点击
cityClick: function() {
uni.navigateTo({
url:'/pages/settle/city'
})
}, },
//工龄 点击
ageClick: function() {
uni.navigateTo({
url:'/pages/settle/age'
})
}
} }
...@@ -36,7 +106,7 @@ ...@@ -36,7 +106,7 @@
<style> <style>
.back_view{ .back_view{
background-color: #FFFFFF; background-color: #F3F3F3;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -45,4 +115,108 @@ ...@@ -45,4 +115,108 @@
flex-direction: column; flex-direction: column;
} }
.top_view{
background-color: #F3F3F3;
width: 100%;
height: 120rpx;
display: flex;
align-items: center;
justify-content: center;
}
.top_title{
font-size: 36rpx;
font-weight: bold;
}
.item_view{
background-color: #FFFFFF;
width: 100%;
height: 100rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.input_left_view{
display: flex;
flex-direction: row;
align-items: center;
}
.input_right_view{
width: 50%;
height: 80rpx;
margin-right: 30rpx;
text-align: right;
}
.left_title{
margin-left: 30rpx;
font-size: 32rpx;
color: #333333;
}
.left_star{
margin-left: 8rpx;
font-size: 32rpx;
color: #D73400;
}
.margin_top_60{
margin-top: 60rpx;
}
.arrow{
margin-right: 30rpx;
width: 20rpx;
height: 30rpx;
}
.notice_view{
width: 100%;
display: flex;
}
.notice_text{
margin-top: 20rpx;
margin-left: 30rpx;
font-size: 28rpx;
color: #666666;
}
.bottom_view{
width: 100%;
height: 170rpx;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0;
}
.bottom_btn{
width: 600rpx;
height: 100rpx;
display: flex;
align-items: center;
justify-content: center;
border: 2rpx solid #999999;
}
.bottom_title{
font-size: 32rpx;
color: #999999;
}
.default_color{
background-color: #F3F3F3;
}
.confirm_color{
background-color: #2272FF;
}
</style> </style>
<template>
<view class="back_view">
选择可服务的城市
</view>
</template>
<script>
export default {
data() {
return {
protocolContent:''
}
},
onLoad(e) {
},
methods: {
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
phoneNumber: phone
});
},
}
}
</script>
<style>
.back_view{
background-color: #F3F3F3;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment