Commit ad702724 authored by 和慭琛's avatar 和慭琛

充电桩入驻 首页 页面搭建+交互 100%

parent 24da1956
...@@ -7,6 +7,22 @@ ...@@ -7,6 +7,22 @@
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/settle/index",
"style": {
"navigationBarTitleText": "充电桩安装招募"
}
},
{
"path": "pages/settle/base",
"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: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
</style>
<template>
<view class="back_view">
<image class="theme_image" :src="theme_url" mode="aspectFill"></image>
<view class="bottom_view">
<view :class="isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@click="applyClick()">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
theme_url:'https://qn-static.banshouhui.com/settle_theme.png',
count:8,
isStop:false,
}
},
onLoad(e) {
this.startCounting()
},
methods: {
startCounting : function () {
if(this.isStop){
return
}
this.count = this.count - 1
if(this.count > 0){
setTimeout(this.startCounting, 1000);
}else{
this.isStop = true
}
},
applyClick: function () {
if(!this.isStop){
return
}
uni.navigateTo({
url:'/pages/settle/base'
})
},
}
}
</script>
<style>
.back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
.theme_image{
width: 100%;
height: 3000rpx;
}
.bottom_view{
background-color: #002CC0;
width: 100%;
height: 200rpx;
display: flex;
align-content: center;
justify-content: center;
}
.bottom_btn{
margin-top: 30rpx;
width: 600rpx;
height: 100rpx;
border: 4rpx solid #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.bottom_title{
font-size: 32rpx;
color: #FFFFFF;
}
.default_color{
background-color: #002CC0;
}
.apply_color{
background-color: #2272FF;
}
</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