You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
3.5 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/TUI-Conversation/conversation/conversation"],{"0251":function(t,n,e){"use strict";var o=e("3ebb"),a=e.n(o);a.a},"159e":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},a=[]},"3ebb":function(t,n,e){},"4be6":function(t,n,e){"use strict";e.r(n);var o=e("159e"),a=e("798e");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("0251");var r=e("f0c5"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"4ac292eb",null,!1,o["a"],void 0);n["default"]=c.exports},7219:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("5340");o(e("66fd"));var a=o(e("4be6"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"798e":function(t,n,e){"use strict";e.r(n);var o=e("b21a"),a=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a},b21a:function(t,n,e){"use strict";(function(t){var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(e("a27c")),i={data:function(){return{conversationList:[],showSelectTag:!1,array:[{name:"发起会话"},{name:"发起群聊"},{name:"加入群聊"}]}},components:{TUIConversationItem:function(){Promise.all([e.e("common/vendor"),e.e("components/tui-conversation/conversation-item/index")]).then(function(){return resolve(e("32f6"))}.bind(null,e)).catch(e.oe)},TUIMessageList:function(){e.e("components/tui-chat/message-list/index").then(function(){return resolve(e("f596"))}.bind(null,e)).catch(e.oe)}},props:{},onLoad:function(){t.setNavigationBarTitle({title:this.i18n.wodexiaoxi}),this.getConversationList(),t.$TUIKit.on(t.$TUIKitEvent.CONVERSATION_LIST_UPDATED,this.onConversationListUpdated)},computed:{i18n:function(){return this.$t("index")}},onUnload:function(){t.$TUIKit.off(t.$TUIKitEvent.SDK_READY,this.onConversationListUpdated)},methods:{handleRoute:function(n){var e="/pages/TUI-Chat/chat?conversationID=".concat(n);t.navigateTo({url:e})},onConversationListUpdated:function(t){a.default.log("TUI-conversation | onConversationListUpdated |ok"),this.setData({conversationList:t.data})},getConversationList:function(){var n=this;t.$TUIKit.getConversationList().then((function(t){a.default.log("TUI-conversation | getConversationList | getConversationList-length: ".concat(t.data.conversationList.length)),n.setData({conversationList:t.data.conversationList})}))},showMore:function(){this.setData({showSelectTag:!this.showSelectTag})},learnMore:function(){t.navigateTo({url:"../../TUI-User-Center/webview/webview?url=https://cloud.tencent.com/product/im"})},handleOnTap:function(t){var n=this;this.setData({showSelectTag:!1},(function(){switch(t.currentTarget.dataset.name){case"发起会话":n.$createConversation();break;case"发起群聊":n.$createGroup();break;case"加入群聊":n.$joinGroup();default:break}}))},goHomePage:function(){t.switchTab({url:"../../TUI-Index/index"})},handleEditToggle:function(){this.setData({showSelectTag:!1})},$createConversation:function(){console.log("$createConversation"),t.navigateTo({url:"/pages/TUI-Conversation/create-conversation/create"})},$createGroup:function(){t.navigateTo({url:"../../TUI-Group/create-group/create"})},$joinGroup:function(){t.navigateTo({url:"../../TUI-Group/join-group/join"})}}};n.default=i}).call(this,e("543d")["default"])}},[["7219","common/runtime","common/vendor"]]]);