|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="text-color-12">
|
|
<view class="text-color-12">
|
|
|
- <view class="sys-background-fff m-20 p-20 r-20" v-for="(item,index) in 2" :key="index">
|
|
|
|
|
|
|
+ <view class="sys-background-fff m-20 p-20 r-20" v-for="(msg,index) in msgList" :key="index">
|
|
|
<view class="record-box row-justify-sb">
|
|
<view class="record-box row-justify-sb">
|
|
|
<view class="row-c">
|
|
<view class="row-c">
|
|
|
<image class="wh-80" src="/static/img/index/index-avatar.png" mode="aspectFill"></image>
|
|
<image class="wh-80" src="/static/img/index/index-avatar.png" mode="aspectFill"></image>
|
|
|
<view class="column m-l16">
|
|
<view class="column m-l16">
|
|
|
- <text class="size-26 sys-weight-600">章三</text>
|
|
|
|
|
- <text class="size-24 text-color-999">总经理</text>
|
|
|
|
|
|
|
+ <text class="size-26 sys-weight-600">{{ msg.name }}</text>
|
|
|
|
|
+ <text class="size-24 text-color-999">{{ msg.position_name }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="reply-box size-24">
|
|
<view class="reply-box size-24">
|
|
@@ -18,29 +18,30 @@
|
|
|
<view class="empty-box"></view>
|
|
<view class="empty-box"></view>
|
|
|
<view class="m-l16 size-26 flex">
|
|
<view class="m-l16 size-26 flex">
|
|
|
<!-- 自己发送 -->
|
|
<!-- 自己发送 -->
|
|
|
- <text> 同意,利息2分。借款1个月,跟投两万。</text>
|
|
|
|
|
|
|
+ <text> {{ msg.msg }}</text>
|
|
|
<view class="image-box">
|
|
<view class="image-box">
|
|
|
- <image class="reply-img wh-60 m-t20 r-10 m-r20" src="/static/img/logo.png" mode="aspectFill"
|
|
|
|
|
- v-for="(item,index) in 5" :key="index"></image>
|
|
|
|
|
|
|
+ <image class="reply-img wh-60 m-t20 r-10 m-r20" :src="msg_img.url" mode="aspectFill"
|
|
|
|
|
+ v-for="(msg_img,index) in msg.msg_img" :key="index"></image>
|
|
|
|
|
+<!-- <en-image :img="msg.msg_img" :width="130" height="130"></en-image>-->
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 文件类型 -->
|
|
<!-- 文件类型 -->
|
|
|
- <view class="sys-from-background-color p-20 r-20 m-t20">
|
|
|
|
|
- <view class="file-item row-c m-b20" v-for="(item,index) in 3" :key="index">
|
|
|
|
|
|
|
+ <view class="sys-from-background-color p-20 r-20 m-t20" v-if="msg.file_list.length>0">
|
|
|
|
|
+ <view class="file-item row-c m-b20" @click.stop="openFile(file)" v-for="(file,fileIndex) in msg.file_list" :key="index">
|
|
|
<image class="wh-45 m-r20" src="/static/img/task-details/icon-pdf.png" mode="aspectFill">
|
|
<image class="wh-45 m-r20" src="/static/img/task-details/icon-pdf.png" mode="aspectFill">
|
|
|
</image>
|
|
</image>
|
|
|
- <text class="size-24 color-111827">资金证明资料.PDF</text>
|
|
|
|
|
|
|
+ <text class="size-24 color-111827">{{ file.name }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 1对1回复 -->
|
|
<!-- 1对1回复 -->
|
|
|
- <view class="sys-from-background-color p-20 m-t20 r-20">
|
|
|
|
|
- <view class="">
|
|
|
|
|
- <text class="color-00A775">Administrator</text><text
|
|
|
|
|
- class="m-lr10 text-color-666">回复</text><text class="color-00A775">隋成哲:</text>
|
|
|
|
|
|
|
+ <view class="sys-from-background-color p-20 m-t20 r-20" v-if="msg.reply_list.length>0">
|
|
|
|
|
+ <view class="" v-for="replyItem in msg.reply_list">
|
|
|
|
|
+ <text class="color-00A775">{{ replyItem.name }}</text><text
|
|
|
|
|
+ class="m-lr10 text-color-666">回复</text><text class="color-00A775">{{ replyItem.ru_name }}:</text>
|
|
|
<view class="">
|
|
<view class="">
|
|
|
- <view class="m-t16">可以</view>
|
|
|
|
|
- <view class="image-box">
|
|
|
|
|
- <image class="reply-img wh-60 m-t20 r-10 m-r20" src="/static/img/logo.png"
|
|
|
|
|
- mode="aspectFill" v-for="(item,index) in 5" :key="index"></image>
|
|
|
|
|
|
|
+ <view class="m-t16">{{ replyItem.msg }}</view>
|
|
|
|
|
+ <view class="image-box" v-if="replyItem.msg_img.length>0">
|
|
|
|
|
+ <image class="reply-img wh-60 m-t20 r-10 m-r20" :src="r_img.url"
|
|
|
|
|
+ mode="aspectFill" v-for="(r_img,index) in replyItem.msg_img" :key="index"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -48,6 +49,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <en-blank v-if="msgList.length<=0"></en-blank>
|
|
|
<uni-popup background-color="#fff" ref="popup" type="bottom" borderRadius="10px 10px 0 0"
|
|
<uni-popup background-color="#fff" ref="popup" type="bottom" borderRadius="10px 10px 0 0"
|
|
|
@touchmove.stop.prevent="moveHandle">
|
|
@touchmove.stop.prevent="moveHandle">
|
|
|
<view class="page-env-160">
|
|
<view class="page-env-160">
|
|
@@ -64,18 +66,73 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import SendChat from "./send_chat.vue"
|
|
import SendChat from "./send_chat.vue"
|
|
|
|
|
+ import {getMsgList} from "@/api/task";
|
|
|
|
|
+ import EnImage from "@/components/en-utils/en-image/en-image.vue";
|
|
|
|
|
+ import tools from "@/service/tools";
|
|
|
|
|
+ import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
|
|
+ EnBlank,
|
|
|
|
|
+ EnImage,
|
|
|
SendChat
|
|
SendChat
|
|
|
},
|
|
},
|
|
|
- props: {
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ props: {
|
|
|
|
|
+ businessId:{
|
|
|
|
|
+ default:0
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ watch:{
|
|
|
|
|
+ 'businessId':function () {
|
|
|
|
|
+ this.getMsgList()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
- return {}
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ msgList: [],
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ openFile(file) {
|
|
|
|
|
+ if (!file.url) {
|
|
|
|
|
+ tools.error('下载地址不存在')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ tools.showLoading()
|
|
|
|
|
+ uni.downloadFile({
|
|
|
|
|
+ url: file.url, //仅为示例,并非真实的资源
|
|
|
|
|
+ success: (dRes) => {
|
|
|
|
|
+ tools.hideLoading()
|
|
|
|
|
+ if (dRes.statusCode === 200) {
|
|
|
|
|
+ tools.success('下载成功')
|
|
|
|
|
+ uni.saveFile({
|
|
|
|
|
+ tempFilePath: dRes.tempFilePath,
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ uni.openDocument({
|
|
|
|
|
+ filePath: res.savedFilePath,
|
|
|
|
|
+ showMenu: true,
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ getMsgList() {
|
|
|
|
|
+ if(this.businessId<=0){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ getMsgList({
|
|
|
|
|
+ 'business_id': this.businessId
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
|
+ this.msgList = res.data;
|
|
|
|
|
+ // this.setImgList()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
moveHandle() {
|
|
moveHandle() {
|
|
|
return false
|
|
return false
|
|
|
},
|
|
},
|