teamUserDetail.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="default_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header :title='title'></cus-header>
  4. <view class="form">
  5. <view class="form-item adfacjb">
  6. <view class="form-item-left">姓名</view>
  7. <view class="form-item-right">
  8. <u-input v-model="userInfo.name" placeholder="请输入被教练团队人员姓名" border="none" style="font-size: 28rpx;color: #B3BFC8;line-height: 28rpx;" inputAlign="right"></u-input>
  9. </view>
  10. </view>
  11. <view class="form-item adfacjb">
  12. <view class="form-item-left">手机号码</view>
  13. <view class="form-item-right">
  14. <u-input v-model="userInfo.phone" placeholder="请输入手机号码" border="none" style="font-size: 28rpx;color: #B3BFC8;line-height: 28rpx;" inputAlign="right"></u-input>
  15. </view>
  16. </view>
  17. <view class="form-item adfacjb">
  18. <view class="form-item-left">邮箱</view>
  19. <view class="form-item-right">
  20. <u-input v-model="userInfo.email" placeholder="请输入邮箱" border="none" style="font-size: 28rpx;color: #B3BFC8;line-height: 28rpx;" inputAlign="right"></u-input>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="type adfacjb" @click="typeShow=true">
  25. <view class="type-left">团队人员身份类型</view>
  26. <view class="type-right adfac">
  27. <text>{{typeText}}</text>
  28. <image :src="imgBase+'my_arrow_right.png'"></image>
  29. </view>
  30. </view>
  31. <view class="zt_btn">确定</view>
  32. <u-picker :itemHeight="88" :immediateChange="true" :show="typeShow" :columns="typeData" title="成员身份类型"
  33. @cancel="typeShow=false" @confirm="typeConfirm" keyName="name" ></u-picker>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data(){
  39. return {
  40. title:'团队成员',
  41. userInfo:{
  42. name:'',
  43. phone:'',
  44. email:'',
  45. type:''
  46. },
  47. typeText:'请选择',
  48. typeShow:false,
  49. typeData:[[
  50. {id:1,name:'团队Leader'},
  51. {id:2,name:'团队成员Member'},
  52. {id:3,name:'利益相关者Stakeholder'},
  53. {id:4,name:'赞助人Sponsor'}
  54. ]],
  55. }
  56. },
  57. onLoad(options) {
  58. if(options.user){
  59. this.userInfo = JSON.parse(decodeURIComponent(options.user))
  60. this.title = '编辑成员'
  61. }
  62. },
  63. methods:{
  64. typeConfirm(e){
  65. this.typeShow = false;
  66. }
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. .default_page{
  72. padding: 0 24rpx 54rpx;
  73. box-sizing: border-box;
  74. background: #F7F7F7;
  75. .form{
  76. background: #FFFFFF;
  77. border-radius: 24rpx 24rpx 0rpx 0rpx;
  78. margin-top: 20rpx;
  79. &-item{
  80. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  81. padding: 28rpx 24rpx;
  82. &-left{
  83. font-family: PingFangSC, PingFang SC;
  84. font-weight: 400;
  85. font-size: 30rpx;
  86. color: #002846;
  87. line-height: 42rpx;
  88. }
  89. }
  90. }
  91. .type{
  92. background: #FFFFFF;
  93. box-shadow: inset 0rpx -1rpx 0rpx 0rpx rgba(229,231,235,0.5);
  94. border-radius: 24rpx;
  95. margin-top: 20rpx;
  96. padding: 28rpx 24rpx;
  97. &-left{
  98. font-family: PingFangSC, PingFang SC;
  99. font-weight: 400;
  100. font-size: 30rpx;
  101. color: #002846;
  102. line-height: 42rpx;
  103. }
  104. &-right{
  105. text{
  106. font-family: PingFangSC, PingFang SC;
  107. font-weight: 400;
  108. font-size: 28rpx;
  109. color: #B3BFC8;
  110. line-height: 40rpx;
  111. }
  112. image{
  113. width: 30rpx;
  114. height: 30rpx;
  115. box-sizing: border-box;
  116. }
  117. }
  118. }
  119. .zt_btn{
  120. width: calc(100% - 100rpx);
  121. position: fixed;
  122. left: 50rpx;
  123. bottom: 54px;
  124. }
  125. }
  126. </style>