Showing
1 changed file
with
4 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-30 09:53:14 | 2 | * @Date: 2022-09-30 09:53:14 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-03 16:33:28 | 4 | + * @LastEditTime: 2022-11-15 14:36:16 |
| 5 | * @FilePath: /swx/src/pages/editInfo/index.vue | 5 | * @FilePath: /swx/src/pages/editInfo/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
| 61 | <view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_type_popup=true" :name="icon_sel" color="" /></view> | 61 | <view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_type_popup=true" :name="icon_sel" color="" /></view> |
| 62 | </view> | 62 | </view> |
| 63 | </view> | 63 | </view> |
| 64 | - <view v-if="role === 'player'" class="at-input" style="margin-right: 1rem;"> | 64 | + <view v-if="role === 'player' && my_member_role === 'creator'" class="at-input" style="margin-right: 1rem;"> |
| 65 | <view class="at-input__container"> | 65 | <view class="at-input__container"> |
| 66 | <label class="h5-label at-input__title at-input__title">记录人</label> | 66 | <label class="h5-label at-input__title at-input__title">记录人</label> |
| 67 | <input @tap="show_partner_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_partner.text" placeholder="请选择记录人" :disabled="true"/> | 67 | <input @tap="show_partner_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_partner.text" placeholder="请选择记录人" :disabled="true"/> |
| ... | @@ -121,6 +121,7 @@ const phone = ref(''); | ... | @@ -121,6 +121,7 @@ const phone = ref(''); |
| 121 | const user_sex = ref(''); | 121 | const user_sex = ref(''); |
| 122 | const age_group = ref(''); | 122 | const age_group = ref(''); |
| 123 | const role = ref(''); | 123 | const role = ref(''); |
| 124 | +const my_member_role = ref(''); | ||
| 124 | const partner = ref(''); | 125 | const partner = ref(''); |
| 125 | const status_columns = ref([]); | 126 | const status_columns = ref([]); |
| 126 | const type_columns = ref([]); | 127 | const type_columns = ref([]); |
| ... | @@ -141,6 +142,7 @@ onMounted(async () => { | ... | @@ -141,6 +142,7 @@ onMounted(async () => { |
| 141 | user_status.value = data.member.status; | 142 | user_status.value = data.member.status; |
| 142 | role.value = data.member.role; | 143 | role.value = data.member.role; |
| 143 | partner.value = data.member.partner; | 144 | partner.value = data.member.partner; |
| 145 | + my_member_role.value = data.my_member_role; | ||
| 144 | } | 146 | } |
| 145 | // 年龄段存在,默认选中 | 147 | // 年龄段存在,默认选中 |
| 146 | if (age_group.value) { | 148 | if (age_group.value) { | ... | ... |
-
Please register or login to post a comment