| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <template>
- <view class="live">
- <view class="top">
- </view>
- <view class="head">
- <span class="cuIcon-back" @click="back"></span>
- <view class="case">
- 实况记录
- </view>
- </view>
- <view class="list">
- <view class="car_data">
- <view class="fat" v-for="item in form" :key="item.id">
- <view class="fat_title">{{item.name}}</view>
- <view class="sun" v-for="row in item.categoryList" :key="row.id">
- {{row.name}}
- <span>{{row.names}}</span>
- </view>
- </view>
- </view>
- <!-- 备注信息 -->
- <view class="car_data">
- <view class="fat">
- <view class="fat_title">备注信息</view>
- <view class="message" v-for="item in historyList" :key="item.id">
- <view class="top">
- <view class="left">
- <view class="img">
- <image :src="item.logo" mode=""></image>
- </view>
- <view class="name">
- {{item.merchantName}}<br/>
- <span>{{item.createTime}}</span>
- </view>
- </view>
- <view class="play">
- <image src="/static/play.png" mode=""></image><br/>
- 12.03
- </view>
- </view>
- <view class="content">
- {{item.msgContent}}
- </view>
- </view>
- </view>
-
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- taskId: 1,
- form: [],
- historyList: [{
- time: '2025.2.12 13:22:30',
- url: 'https://pic.rmb.bdstatic.com/bjh/news/9e4e3aca4eb384cf0ad43e26cae97135.jpeg',
- name: '用户昵称',
- content: '额外强制消费',
- type: 1,
- }, ],
- }
- },
- methods: {
- //返回
- back() {
- uni.navigateBack({
- delta: 1
- });
- },
- getLive() {
- console.log(this.taskId)
- this.$http.get("/merchant/localTsCustomerServiceDict/list?taskId=" + this.taskId + '&source=' + '1').then(
- res => {
- if (res.data.code == 200) {
- this.form = res.data.result
- console.log(this.form)
- this.form.forEach(item => {
- item.categoryList.forEach(row => {
- const idSet = new Set(row.idList);
- // Find the names that match the ids in idList
- const matchedNames = row.itemList
- .filter(item => idSet.has(item.id)) // Filter items where the id matches
- .map(item => item.name) // Extract the name from the matching items
- .join(','); // Join names with commas
- // Assign the concatenated names to the row
- row.names = matchedNames;
- })
- })
- }
- })
- },
- getHistroyList() {
- let data = {
- taskId: this.taskId
- }
- this.$http.post('/merchant/localTsCustomerServiceTaskMsg/queryList',data).then((res) => {
- console.log(res);
- this.historyList = res.data.result
- })
- },
- },
- onLoad(options) {
- this.taskId = options.taskId
- },
- mounted() {
- this.getLive()
- this.getHistroyList()
- }
- }
- </script>
- <style lang="scss" scoped>
- .live {
- width: 100vw;
- height: 100vh;
- background: #F8F8FA;
- display: flex;
- flex-direction: column;
- // overflow-y: auto;
- /*#ifdef APP-PLUS*/
- .top {
- width: 100%;
- height: var(--status-bar-height);
- background: #FFFFFF;
- }
- /*#endif*/
- .head {
- width: 100%;
- height: 112rpx;
- padding: 20rpx;
- display: flex;
- align-items: center;
- background: #FFFFFF;
- position: relative;
- .cuIcon-back {
- font-size: 40rpx;
- margin-right: 40rpx;
- }
- .case {
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- font-size: 36rpx;
- font-weight: 600;
- }
- }
- .list {
- flex: 1;
- overflow-y: auto;
- background: #F7F7F7;
- padding: 24rpx 30rpx;
- .car_data {
- width: 100%;
-
- .fat {
- background: #FFFFFF;
- padding: 20rpx;
- margin-bottom: 20rpx;
- border-radius: 10rpx;
- .fat_title {
- font-weight: 600;
- font-size: 30rpx;
- color: #333333;
- margin-bottom: 20rpx;
- }
- .sun {
- width: 100%;
- height: 73rpx;
- border-bottom: 1px solid #eee;
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 28rpx;
- color: #666666;
- span {
- color: #181818;
- }
- }
- .message{
- border-bottom: 1px solid #eee;
- padding-bottom: 16rpx;
- margin-bottom: 16rpx;
- .top{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12rpx;
- .left{
- display: flex;
- align-items: center;
- .img{
- width: 68rpx;
- height: 68rpx;
- border-radius: 8rpx;
- overflow: hidden;
- margin-right: 12rpx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- .name{
- font-size: 28rpx;
- color: #000000;
- span{
- font-size: 24rpx;
- color: #999999
- }
- }
- }
-
- .play{
- font-size: 24rpx;
- color: #000000;
- text-align: center;
- image{
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- .content{
- font-size: 26rpx;
- }
- }
- }
- }
- }
- }
- </style>
|