优化页面
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../constant.js"),t=require("../utils/index.js"),i={setRemark:{key:"setRemark",label:"备注名",data:"",labelPosition:o.CONTACT_INFO_LABEL_POSITION.LEFT,editable:!0,editType:o.CONTACT_INFO_MORE_EDIT_TYPE.INPUT,editing:!1,editSubmitHandler:e=>{var o,i,n,l,a,d;if(null==e?void 0:e.isBothFriend){const d=null==(o=null==e?void 0:e.item)?void 0:o.data;t.updateFriendRemark(null==(i=null==e?void 0:e.contactInfoData)?void 0:i.userID,d),(null==(n=null==e?void 0:e.item)?void 0:n.editing)&&(e.item.editing=!1),(null==(l=null==e?void 0:e.item)?void 0:l.data)&&(e.item.data=null==(a=null==e?void 0:e.contactInfoData)?void 0:a.remark)}else(null==(d=null==e?void 0:e.item)?void 0:d.editing)&&(e.item.editing=!1)}},blackList:{key:"blackList",label:"加入黑名单",data:!1,labelPosition:o.CONTACT_INFO_LABEL_POSITION.LEFT,editable:!0,editType:o.CONTACT_INFO_MORE_EDIT_TYPE.SWITCH,editing:!0,editSubmitHandler:o=>{var i,n;(null==o?void 0:o.isInBlackList)?t.removeFromBlacklist(null==(i=null==o?void 0:o.contactInfoData)?void 0:i.userID):(t.addToBlacklist(null==(n=null==o?void 0:o.contactInfoData)?void 0:n.userID),e.Jt.update(e.o.CUSTOM,"currentContactListKey","blackList"))}},setWords:{key:"setWords",label:"请填写验证信息",data:"",labelPosition:o.CONTACT_INFO_LABEL_POSITION.TOP,editable:!0,editType:o.CONTACT_INFO_MORE_EDIT_TYPE.TEXTAREA,editing:!0},displayWords:{key:"displayWords",label:"验证信息",data:"",labelPosition:o.CONTACT_INFO_LABEL_POSITION.LEFT,editable:!1}},n={dismissGroup:{key:"dismissGroup",label:"解散群聊",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.dismissGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID)}},quitGroup:{key:"quitGroup",label:"退出群聊",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.quitGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID)}},joinGroup:{key:"joinGroup",label:"发送申请",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{var o,i;t.joinGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID,null==(i=null==e?void 0:e.contactInfoMoreList[0])?void 0:i.data)}},joinAVChatGroup:{key:"joinAVChatGroup",label:"加入直播群",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{var o;t.joinGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID)}},enterGroupConversation:{key:"enterGroupConversation",label:"进入群聊",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{t.enterConversation(null==e?void 0:e.contactInfoData)}},addFriend:{key:"addFriend",label:"发送申请",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{var o,i,n;t.addFriend({to:null==(o=null==e?void 0:e.contactInfoData)?void 0:o.userID,source:"AddSource_Type_Web",remark:null==(i=null==e?void 0:e.contactInfoMoreList[1])?void 0:i.data,wording:null==(n=null==e?void 0:e.contactInfoMoreList[0])?void 0:n.data})}},deleteFriend:{key:"deleteFriend",label:"删除好友",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.deleteFriend(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.userID)}},enterC2CConversation:{key:"enterC2CConversation",label:"发送消息",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{t.enterConversation(null==e?void 0:e.contactInfoData)}},acceptFriendApplication:{key:"acceptFriendApplication",label:"同意",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:o=>{var i;t.acceptFriendApplication(null==(i=null==o?void 0:o.contactInfoData)?void 0:i.userID),e.Jt.update(e.o.CUSTOM,"currentContactListKey","friendList")}},refuseFriendApplication:{key:"refuseFriendApplication",label:"拒绝",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.refuseFriendApplication(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.userID)}}};exports.contactButtonConfig=n,exports.contactMoreInfoConfig=i;
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../common/Icon",
|
||||
"switch-bar": "../../common/SwitchBar/index"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-f3526d9c', 'tui-contact-info', A]}}"><view wx:if="{{b}}" class="{{['data-v-f3526d9c', 'tui-contact-info-header', h]}}"><view class="{{['data-v-f3526d9c', 'tui-contact-info-header-icon', d]}}" bindtap="{{e}}"><icon wx:if="{{c}}" class="data-v-f3526d9c" u-i="f3526d9c-0" bind:__l="__l" u-p="{{c}}"/></view><view class="{{['data-v-f3526d9c', 'tui-contact-info-header-title', g]}}">{{f}}</view></view><view class="{{['data-v-f3526d9c', 'tui-contact-info-basic', p]}}"><view class="{{['data-v-f3526d9c', 'tui-contact-info-basic-text', m]}}"><view class="{{['data-v-f3526d9c', 'tui-contact-info-basic-text-name', j]}}">{{i}}</view><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="{{['data-v-f3526d9c', 'tui-contact-info-basic-text-other', l]}}">{{item.a}}</view></view><image class="{{['data-v-f3526d9c', 'tui-contact-info-basic-avatar', n]}}" src="{{o}}"></image></view><view wx:if="{{q}}" class="{{['data-v-f3526d9c', 'tui-contact-info-more', w]}}"><view wx:for="{{r}}" wx:for-item="item" wx:key="z" class="{{['data-v-f3526d9c', 'tui-contact-info-more-item', v, item.A]}}"><view class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-label', s]}}">{{item.a}}</view><view class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-content', t]}}"><view wx:if="{{item.b}}" class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-content-text', item.j]}}"><view class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-content-text-data', item.d]}}">{{item.c}}</view><view wx:if="{{item.e}}" class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-content-text-icon', item.h]}}" bindtap="{{item.i}}"><icon wx:if="{{item.g}}" class="data-v-f3526d9c" u-i="{{item.f}}" bind:__l="__l" u-p="{{item.g}}"/></view></view><input wx:elif="{{item.k}}" class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-content-input', item.l]}}" type="text" bindconfirm="{{item.m}}" bindkeyup="{{item.n}}" value="{{item.o}}" bindinput="{{item.p}}"></input><textarea wx:elif="{{item.q}}" class="{{['data-v-f3526d9c', 'tui-contact-info-more-item-content-textarea', item.r]}}" confirm-type="done" value="{{item.s}}" bindinput="{{item.t}}"/><view wx:elif="{{item.v}}" class="data-v-f3526d9c" bindtap="{{item.y}}"><switch-bar wx:if="{{item.x}}" class="data-v-f3526d9c" u-i="{{item.w}}" bind:__l="__l" u-p="{{item.x}}"/></view></view></view></view><view class="{{['data-v-f3526d9c', 'tui-contact-info-button', z]}}"><button wx:for="{{x}}" wx:for-item="item" wx:key="b" class="{{['data-v-f3526d9c', 'tui-contact-info-button-item', y, item.c]}}" bindtap="{{item.d}}">{{item.a}}</button></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/TUIKit/components/TUIContact/contact-info/index.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user