You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.7 KiB
121 lines
2.7 KiB
|
4 years ago
|
<template>
|
||
|
|
<view class="content">
|
||
|
|
<view class="applyForm">
|
||
|
|
<view class="formCol">
|
||
|
|
<view class="title"><image src="../../static/icon_xingming@2x.png"></image><text>真实姓名</text></view>
|
||
|
|
<view class="formOuter">
|
||
|
|
<input type="text" v-model="info.name" />
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="formCol">
|
||
|
|
<view class="title"><image src="../../static/icon_shouji@2x.png"></image><text>手机号码</text></view>
|
||
|
|
<view class="formOuter">
|
||
|
|
<input type="text" v-model="info.phone" />
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="formCol">
|
||
|
|
<view class="title"><image src="../../static/icon_code.png"></image><text>验证码</text></view>
|
||
|
|
<view class="formOuter">
|
||
|
|
<input type="text" v-model="info.code" />
|
||
|
|
<view class="sentCode">发送验证码</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<!-- <navigator url=""> -->
|
||
|
|
<view class="pinkBtn" @click="save">申请注册</view>
|
||
|
|
<!-- </navigator> -->
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
info: {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onLoad() {
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
save() {
|
||
|
|
if (!this.info.name) {
|
||
|
|
this.alert('请输入姓名')
|
||
|
|
return
|
||
|
|
}
|
||
|
|
if (!this.info.phone) {
|
||
|
|
this.alert('请输入手机号')
|
||
|
|
return
|
||
|
|
}
|
||
|
|
|
||
|
|
this.sendReq('/api/member/registered-promotion', this.info, (r) => {
|
||
|
|
uni.navigateTo({
|
||
|
|
url: '../regSuccess/regSuccess'
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<style>
|
||
|
|
page{background: #fff;}
|
||
|
|
</style>
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.content {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
.applyForm{
|
||
|
|
width:100%;
|
||
|
|
padding:0 40rpx;
|
||
|
|
box-sizing: border-box;
|
||
|
|
.title{
|
||
|
|
margin-top:40rpx;
|
||
|
|
font-size: 32rpx;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #333333;
|
||
|
|
display: flex;
|
||
|
|
justify-content: flex-start;
|
||
|
|
align-items: center;
|
||
|
|
align-content: center;
|
||
|
|
image{width:32rpx;height:32rpx;display: block;margin-right:15rpx;}
|
||
|
|
}
|
||
|
|
.formOuter{
|
||
|
|
position: relative;
|
||
|
|
box-sizing: border-box;
|
||
|
|
height: 84rpx;
|
||
|
|
border-radius: 7rpx;
|
||
|
|
border: 1rpx solid #DEDEDE;
|
||
|
|
width:100%;
|
||
|
|
margin-top:40rpx;
|
||
|
|
input{
|
||
|
|
position: absolute;
|
||
|
|
width:100%;
|
||
|
|
height:100%;
|
||
|
|
top:0;left:0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
padding:0 32rpx;
|
||
|
|
font-size: 28rpx;
|
||
|
|
font-weight: 400;
|
||
|
|
color: #333333;
|
||
|
|
}
|
||
|
|
.sentCode{width:180rpx;height:83rpx;border-radius: 7rpx;text-align: center;line-height: 83rpx;background: #FF447B;color:#fff;font-size:28rpx;position: absolute;right:0;bottom:0;}
|
||
|
|
}
|
||
|
|
.pinkBtn{
|
||
|
|
width: 670rpx;
|
||
|
|
height: 88rpx;
|
||
|
|
background: linear-gradient(90deg, #FF7E95 0%, #FF447B 100%);
|
||
|
|
border-radius: 44rpx;
|
||
|
|
font-size: 36rpx;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #FFFFFF;
|
||
|
|
text-align: center;
|
||
|
|
line-height:88rpx;
|
||
|
|
margin:80rpx auto;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
</style>
|