chunk-09f52bd0.1022935b.js 6.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09f52bd0"],{"3d34":function(t,s,i){"use strict";var a=i("f386"),e=i.n(a);e.a},f386:function(t,s,i){},ffb4:function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"chat-set"},[i("back-bar",{attrs:{title:t.$t("h5.chatInfo")}}),i("div",{staticClass:"setting-top"},[i("ul",{ref:"scrollWrap",staticClass:"user-list pub-scroll-box",class:{"height-limit":t.limitHeight}},[t.isAdmin||t.isCreator?i("li",{staticClass:"list-item",on:{click:function(s){return t.showInvite(2)}}},[t._m(0),i("span",{staticClass:"name"},[t._v(t._s(t.$t("group.add")))])]):t._e(),t.isAdmin||t.isCreator?i("li",{staticClass:"list-item",on:{click:function(s){return t.showInvite(3)}}},[t._m(1),i("span",{staticClass:"name"},[t._v(t._s(t.$t("group.delete")))])]):t._e(),t._l(t.membersArray,function(s,a){return[i("li",{key:a,staticClass:"list-item",on:{click:function(i){return t.toAboutOther(s.user_id)}}},[i("div",{staticClass:"avatar-box"},[s.cover_photo?i("img",{staticClass:"avatar",attrs:{src:s.cover_photo,alt:""}}):i("div",{staticClass:"user-avatar avatar",class:"avatar_bg"+s.user_id%9,attrs:{title:s.nick_name,"data-name":s&&s.nick_name&&s.nick_name.slice(0,2).toUpperCase()}}),t.group.creator==s.user_id?i("i",{staticClass:"creator-icon"}):t.adminList.includes(Number(s.user_id))?i("i",{staticClass:"admin-icon el-icon-star-on"}):t._e()]),i("span",{staticClass:"name"},[t._v(t._s(s.nick_name))])])]})],2),t.showMore?i("div",{staticClass:"show-all-btn",on:{click:t.handleShowAll}},[t._v("\n "+t._s(t.limitHeight?t.$t("group.showAll"):t.$t("group.hideAll"))+" "),i("i",{class:"el-icon-arrow-"+(t.limitHeight?"down":"up")})]):t._e()]),t.isAdmin||t.isCreator?i("div",{staticClass:"pub-setting"},[i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("h5.groupAvatar")))]),i("p",{staticClass:"text"},[t.isCreator?i("input",{attrs:{type:"file",accept:"image/jpeg,image/png,image/jpg"},on:{change:function(s){return t.uploadImg(s)}}}):t._e(),t.group.coverPhoto?i("img",{staticClass:"team-avatar",attrs:{src:t.group.coverPhoto},on:{click:function(s){return s.stopPropagation(),t.$showImgPreview(t.group.coverPhoto)}}}):i("span",{staticClass:"no-avatar"},[i("i",{staticClass:"el-icon-plus"})]),i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})])]),t.isAdmin||t.isCreator?i("div",{staticClass:"setting-item",on:{click:t.editGroupName}},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("h5.groupName")))]),i("p",{staticClass:"text"},[t._v("\n "+t._s(t.group.groupName)+"\n "),i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})])]):t._e()]):t._e(),i("div",{staticClass:"pub-setting"},[i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.groupInviteLink")))]),i("p",{staticClass:"text"},[t.isEditLink?[i("em",{staticClass:"edit-name-path"},[t._v(t._s(t.sharePath))]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.editShareName,expression:"editShareName"},{name:"focus",rawName:"v-focus"}],staticClass:"edit-name-input",attrs:{type:"text",autofocus:""},domProps:{value:t.editShareName},on:{blur:t.handleLinkBlur,input:function(s){s.target.composing||(t.editShareName=s.target.value)}}})]:[i("span",{staticClass:"invite-link",attrs:{href:"javascript:"},on:{click:function(s){return t.copyLink(t.group.inviteUrl)}}},[t._v(t._s(t.sharePath+t.shareName))]),t.isAdmin||t.isCreator?i("span",{staticClass:"invite-editBtn",on:{click:t.handleLinkFocus}},[i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})]):t._e()]],2)]),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.groupPin")))]),t.isAdmin||t.isCreator?i("p",{staticClass:"text cursor",on:{click:t.editGroupNotice}},[t._v("\n "+t._s(t.group.groupNotice)+"\n "),i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})]):[t.group.groupNotice?i("p",{staticClass:"text notice"},[t._v(t._s(t.group.groupNotice))]):i("p",{staticClass:"text notice"},[t._v(t._s(t.$t("group.noPin")))])]],2)]),i("div",{staticClass:"pub-setting"},[i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.doNotDisturb")))]),i("p",{staticClass:"text"},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#4dd865","inactive-color":"#cbcbcb"},on:{change:t.changeMute},model:{value:t.sessionInfo.is_mute,callback:function(s){t.$set(t.sessionInfo,"is_mute",s)},expression:"sessionInfo.is_mute"}})],1)]),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.topChat")))]),i("p",{staticClass:"text"},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#4dd865","inactive-color":"#cbcbcb"},on:{change:t.changePin},model:{value:t.sessionInfo.is_pin,callback:function(s){t.$set(t.sessionInfo,"is_pin",s)},expression:"sessionInfo.is_pin"}})],1)])]),i("div",{staticClass:"pub-bottom-btn",on:{click:t.leaveGroup}},[t._v(t._s(t.$t("group.quitGroup")))]),i("cropper",t._b({on:{close:t.cropperClose,cropper:t.cropperSubmit}},"cropper",t.cropperOption,!1))],1)},e=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"avatar btn"},[i("i",{staticClass:"el-icon-plus"})])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"avatar btn"},[i("i",{staticClass:"el-icon-minus"})])}],o=i("1848"),n=i("bced"),r=i("1440"),c=i("fa92"),l={name:"h5ChatSet",mixins:[n["c"],c["a"]],computed:{showMore:function(){return this.isAdmin||this.isCreator?this.group.userCounts>3:this.group.userCounts>6}},components:{backBar:o["a"],cropper:r["a"]},methods:{showInvite:function(t){this.$router.push("/invite/".concat(t,"/").concat(this.curGroupId))},toAboutOther:function(t){this.$router.push("/other/".concat(t))},editGroupName:function(){this.$router.push("/editInfo/groupName/".concat(this.curGroupId))},editGroupNotice:function(){this.$router.push("/editInfo/groupNotice/".concat(this.curGroupId))}}},u=l,p=(i("3d34"),i("fc05")),v=Object(p["a"])(u,a,e,!1,null,"3eb14046",null);s["default"]=v.exports}}]);