| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <template>
- <view class="default_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
- <cus-header :title='title'></cus-header>
- <view class="form">
- <view class="form-item adfacjb">
- <view class="form-item-left">姓名</view>
- <view class="form-item-right">
- <u-input v-model="userInfo.name" placeholder="请输入被教练团队人员姓名" border="none" style="font-size: 28rpx;color: #B3BFC8;line-height: 28rpx;" inputAlign="right"></u-input>
- </view>
- </view>
- <view class="form-item adfacjb">
- <view class="form-item-left">手机号码</view>
- <view class="form-item-right">
- <u-input v-model="userInfo.phone" placeholder="请输入手机号码" border="none" style="font-size: 28rpx;color: #B3BFC8;line-height: 28rpx;" inputAlign="right"></u-input>
- </view>
- </view>
- <view class="form-item adfacjb">
- <view class="form-item-left">邮箱</view>
- <view class="form-item-right">
- <u-input v-model="userInfo.email" placeholder="请输入邮箱" border="none" style="font-size: 28rpx;color: #B3BFC8;line-height: 28rpx;" inputAlign="right"></u-input>
- </view>
- </view>
- </view>
- <view class="type adfacjb" @click="typeShow=true">
- <view class="type-left">团队人员身份类型</view>
- <view class="type-right adfac">
- <text>{{typeText}}</text>
- <image :src="imgBase+'my_arrow_right.png'"></image>
- </view>
- </view>
- <view class="zt_btn">确定</view>
- <u-picker :itemHeight="88" :immediateChange="true" :show="typeShow" :columns="typeData" title="成员身份类型"
- @cancel="typeShow=false" @confirm="typeConfirm" keyName="name" ></u-picker>
- </view>
- </template>
- <script>
- export default {
- data(){
- return {
- title:'团队成员',
- userInfo:{
- name:'',
- phone:'',
- email:'',
- type:''
- },
- typeText:'请选择',
- typeShow:false,
- typeData:[[
- {id:1,name:'团队Leader'},
- {id:2,name:'团队成员Member'},
- {id:3,name:'利益相关者Stakeholder'},
- {id:4,name:'赞助人Sponsor'}
- ]],
- }
- },
- onLoad(options) {
- if(options.user){
- this.userInfo = JSON.parse(decodeURIComponent(options.user))
- this.title = '编辑成员'
- }
- },
- methods:{
- typeConfirm(e){
- this.typeShow = false;
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .default_page{
- padding: 0 24rpx 54rpx;
- box-sizing: border-box;
- background: #F7F7F7;
-
- .form{
- background: #FFFFFF;
- border-radius: 24rpx 24rpx 0rpx 0rpx;
- margin-top: 20rpx;
- &-item{
- box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
- padding: 28rpx 24rpx;
- &-left{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 30rpx;
- color: #002846;
- line-height: 42rpx;
- }
- }
- }
-
- .type{
- background: #FFFFFF;
- box-shadow: inset 0rpx -1rpx 0rpx 0rpx rgba(229,231,235,0.5);
- border-radius: 24rpx;
- margin-top: 20rpx;
- padding: 28rpx 24rpx;
- &-left{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 30rpx;
- color: #002846;
- line-height: 42rpx;
- }
- &-right{
- text{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 28rpx;
- color: #B3BFC8;
- line-height: 40rpx;
- }
- image{
- width: 30rpx;
- height: 30rpx;
- box-sizing: border-box;
- }
- }
- }
-
- .zt_btn{
- width: calc(100% - 100rpx);
- position: fixed;
- left: 50rpx;
- bottom: 54px;
- }
- }
- </style>
|