1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <uni-popup ref="popup" type="center">
- <view class="main" @click="deletes()">
- 删除会话
- </view>
- </uni-popup>
- </template>
- <script>
- import uniPopup from '@/components/uni-popup/uni-popup.vue';
- export default {
- components: {
- uniPopup
- },
- data() {
- return {
- page: 1,
- list: [],
- groupID: "",
- hasMore: true,
- conversationID: ""
- }
- },
- methods: {
- async open(conversationID) {
- this.$refs.popup.open();
- this.conversationID = conversationID
- console.log(conversationID)
- },
- deletes() {
- this.TIM.deleteConversations(this.conversationID)
- this.$refs.popup.close(false)
- uni.showToast({
- title: "操作成功"
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .main {
- padding: 4rpx 50rpx;
- line-height: 80rpx;
- text-align: center;
- color: #8e8e8e;
- background-color: #fff;
- border-radius: 12rpx;
- }
- </style>
|