Browse Source

feat(common): 添加聊天记录列表页面并扩展我的消息功能

- 新增聊天记录列表页面 im_chat_info.vue
- 在我的页面添加我的消息入口
- 实现我的消息页面跳转功能
master
liutong 1 year ago
parent
commit
360f3cfe30
  1. 141
      pages/common/im_chat_info.vue
  2. 19
      pages/market/my/index.vue

141
pages/common/im_chat_info.vue

@ -0,0 +1,141 @@
<!--聊天记录-列表-->
<template>
<view class="main_box">
<view class="main_section">
<view class="section_1">
<view class="item">
</view>
</view>
</view>
</view>
</template>
<script>
import memberApi from '@/api/member.js';
import AQUplodeImgMulti from '@/components/AQ/AQUplodeImgMulti';
import AQTabber from "@/components/AQ/AQTabber"
export default {
components: {
AQTabber,
AQUplodeImgMulti,
},
data() {
return {
formData: {
images_arr: [],
images: '',
content: '',
mailbox: '',
},
}
},
onLoad() {
},
methods: {
//######AQ######
//
AQUploadSuccess(res) {
console.log('接收AQ上传回调xxx1', res)
// 使 split
let _inputValue = []
if (res.filePathArr.length) {
_inputValue = res.filePathArr
}
this.formData[res.inputName] = _inputValue
// console.log('AQxxx1',res)
// console.log('AQxxx2',this.formData.member_store_certification_arr)
},
async submitForm() {
let data = {...this.formData}
data.images = data.images_arr.join(',')
if (!data.content) {
//
uni.showToast({
title: '反馈内容为必填项',
icon: 'none'
})
return
}
let res = await memberApi.setFeedback(data)
if (res.code != 1) {
uni.showToast({
title: res.msg,
icon: 'none'
})
} else {
uni.showToast({
title: '提交成功',
icon: 'none'
})
//1s
setTimeout(() => {
this.$util.openHomeView();
}, 1000);
}
},
}
}
</script>
<style lang="less" scoped>
.main_box {
background: #292929;
}
//
.navbar_section {
display: flex;
justify-content: center;
align-items: center;
background: #29d3b4;
.title {
padding: 20rpx 0;
font-size: 30rpx;
color: #315d55;
}
}
.main_section {
min-height: 100vh;
background: #292929 100%;
padding: 0 0rpx;
padding-top: 32rpx;
padding-bottom: 150rpx;
font-size: 28rpx;
display: flex;
flex-direction: column;
gap: 20rpx;
.section {
background-color: #434544;
padding: 40rpx 40rpx;
}
.section_1{
padding: 0 24rpx;
display: flex;
flex-direction: column;
gap: 38rpx;
.item{
}
}
}
.describe {
color: #999999;
padding-left: 30rpx;
}
</style>

19
pages/market/my/index.vue

@ -71,6 +71,16 @@
<view>企业信息</view>
<view></view>
</view>
<view class="item" @click="openViewFirmInfo()">
<view>我的考勤</view>
<view></view>
</view>
<view class="item" @click="openViewMyMessage()">
<view>我的消息</view>
<view></view>
</view>
</view>
<view class="section_box">
@ -186,7 +196,14 @@ export default {
uni.navigateTo({
url: '/pages/market/my/set_up'
})
}
},
//-
openViewMyMessage(){
uni.navigateTo({
url: '/pages/common/my_message'
})
},
}
}
</script>

Loading…
Cancel
Save