<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>管理后台</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="renderer" content="webkit"> <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> <link href="/sitefiles/assets/images/favicon.png" rel="icon" type="image/png"> <link href="/sitefiles/assets/css/font-awesome-4.7.0.min.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/css/ionicons-2.0.0.min.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/lib/elementui/themechalk/index.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/css/element-ui.css?v=1618992755943" rel="stylesheet" type="text/css"> <style> .el-tabs--right .el-tabs__header.is-right{
      width: 98%;
    } </style> </head> <body> <div id="main"> <div v-if="this.pageLoad" style="display: none" :style="{display: ''}"> <div style="height: 10px"></div> <div v-if="!success"> <div role="alert" class="el-alert el-alert--error is-light" style="padding: 30px"> <div class="el-alert__content"> <p class="el-alert__description" style="font-size: 14px;">{{ errorMessage }}</p> </div> </div> </div> <div v-else> <el-form :inline="true" :model="form" size="mini"> <el-form-item label="内容"> <el-input v-model="form.keyword" placeholder="请输入关键字"></el-input> </el-form-item> <el-form-item label=""> <el-checkbox v-model="form.star">仅显示收藏</el-checkbox> </el-form-item> <el-form-item> <el-button type="primary" v-on:click="btnSearchClick">查询</el-button> </el-form-item> </el-form> <el-divider></el-divider> <el-alert type="warning"> 根据微信公众号规则，消息允许在收到2天内回复，超过2天时间将无法回复 </el-alert> <div style="height: 10px"></div> <el-table :data="chats" stripe style="width: 100%"> <el-table-column label="头像" width="80"> <template slot-scope="scope"> <el-avatar :size="36" :src="getUserAvatarUrl(scope.row)"></el-avatar> </template> </el-table-column> <el-table-column width="120" label="昵称"> <template slot-scope="scope"> <el-link :underline="false" type="primary"> {{getUserTitle(scope.row)}} </el-link> </template> </el-table-column> <el-table-column prop="text" label="内容"> </el-table-column> <el-table-column width="120" label="时间"> <template slot-scope="scope"> {{utils.getFriendlyDate(scope.row.createdDate)}} </template> </el-table-column> <el-table-column label="操作" width="200"> <template slot-scope="scope"> <el-button-group> <el-button v-if="scope.row.isStar" size="mini" icon="el-icon-star-off" v-on:click="btnStarClick(scope.row)"> 取消收藏 </el-button> <el-button v-else size="mini" icon="el-icon-star-off" v-on:click="btnStarClick(scope.row)"> 收藏 </el-button> <el-button size="mini" icon="el-icon-chat-round" v-on:click="btnReplyClick(scope.row)"> 回复 </el-button> </el-button-group> </template> </el-table-column> </el-table> <div style="text-align: center; margin-top: 15px"> <el-pagination v-on:current-change="btnPageClick" :current-page="form.page" :page-size="form.perPage" layout="total, prev, pager, next, jumper" :total="count"> </el-pagination> </div> </div> </div> <div v-else :style="{top: ($(window).height()/2 - 30) + 'px'}" v-loading="true" element-loading-text="页面加载中"></div> </div> </body> </html> <script src="/sitefiles/assets/lib/es6-promise.auto.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/axios-0.17.1.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/core-js-3.6.5.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/lodash-4.17.10.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/jquery-1.9.1.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/layer/layer-3.1.1.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/sweetalert2-7.28.4.all.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/vue-2.5.16.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/elementui/index.js?v=1618992755943"></script> <script src="/sitefiles/assets/js/admin.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/utils.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/cloud.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/admin/wx/chat.js?v=1618992755943" type="text/javascript"></script> 