|
|
|
@ -1,11 +1,11 @@ |
|
|
|
<template> |
|
|
|
<view class="page group-edit"> |
|
|
|
<view class="page group-edit"> |
|
|
|
<nav-bar back>修改群资料</nav-bar> |
|
|
|
<view class="form"> |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">群聊头像</view> |
|
|
|
<view class="value"></view> |
|
|
|
<image-upload v-if="isOwner" :isPermanent="true" :onSuccess="onUnloadImageSuccess"> |
|
|
|
<image-upload v-if="isOwner" :isPermanent="true" :thumbSize="20" :onSuccess="onUnloadImageSuccess"> |
|
|
|
<image :src="group.headImageThumb" class="group-image"></image> |
|
|
|
</image-upload> |
|
|
|
<head-image v-else class="group-image" :name="group.showGroupName" :url="group.headImageThumb" |
|
|
|
@ -13,19 +13,22 @@ |
|
|
|
</view> |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">群聊名称</view> |
|
|
|
<input class="input" :class="isOwner?'':'disable'" maxlength="20" v-model="group.name" :disabled="!isOwner" placeholder="请输入群聊名称"/> |
|
|
|
<input class="input" :class="isOwner?'':'disable'" maxlength="20" v-model="group.name" |
|
|
|
:disabled="!isOwner" placeholder="请输入群聊名称" /> |
|
|
|
</view> |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">群聊备注</view> |
|
|
|
<input class="input" maxlength="20" v-model="group.remarkGroupName" :placeholder="group.name"/> |
|
|
|
<input class="input" maxlength="20" v-model="group.remarkGroupName" :placeholder="group.name" /> |
|
|
|
</view> |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">我在本群的昵称</view> |
|
|
|
<input class="input" maxlength="20" v-model="group.remarkNickName" :placeholder="userStore.userInfo.nickName"/> |
|
|
|
<input class="input" maxlength="20" v-model="group.remarkNickName" |
|
|
|
:placeholder="userStore.userInfo.nickName" /> |
|
|
|
</view> |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">群公告</view> |
|
|
|
<textarea class="notice" :class="isOwner?'':'disable'" maxlength="512" :disabled="!isOwner" v-model="group.notice" :placeholder="isOwner?'请输入群公告':''"></textarea> |
|
|
|
<textarea class="notice" :class="isOwner?'':'disable'" maxlength="512" :disabled="!isOwner" |
|
|
|
v-model="group.notice" :placeholder="isOwner?'请输入群公告':''"></textarea> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<button class="bottom-btn" type="primary" @click="submit()">提交</button> |
|
|
|
@ -162,7 +165,7 @@ export default { |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
|
|
|
|
.value{ |
|
|
|
.value { |
|
|
|
flex: 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -193,5 +196,4 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</style> |