<template> <view class="ayuu"> <view class=""> <view class="fsxto jhkanuy" hover-class="none" v-for="(item,index) in list" :key="index" @click="gopl(item.id)"> <view class="fzctob"> <view class="jhuuimg"> <image :src="item.avatarUrl" style="width: 88rpx;height: 88rpx;min-width: 88rpx;border-radius: 200rpx;" mode=""></image> </view> <view class="fsxto" style="width: 100%;margin-left: 12rpx;"> <view class="flztoa"> <text class="jhtxty">{{item.nickName}}</text> <text class="jhtxtya">{{$u.timeFormat(item.create_time, 'yyyy:mm:dd hh:MM:ss')}}</text> </view> <view class="jhtxtyb"> <text>{{item.note}}</text> </view> </view> </view> <view class="jhtxtyc"> <text>{{item.content}}</text> </view> <view class="flztoa" style="margin-top: 30rpx;"> <view class="fzctob"> <image :src="item.is_like == 1?'/static/index/w1.png':'/static/index/w2.png'" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image> <text class="shitxty">{{item.like_num}}</text> <view style="margin-left: 40rpx;"> <image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image> </view> </view> <!-- <view class=""> <text class="shitxtya">2021.06.15</text> </view> --> </view> </view> </view> <view style="height: 120rpx;"></view> <view class="dibuboot"> <navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none"> <image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image> <text>首页</text> </navigator> <!-- <navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none"> <image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image> <text>咨询</text> </navigator> <navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none"> <image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image> <text>解惑</text> </navigator> --> <navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none"> <image src="/static/dibu/bob4.png" style="width: 48rpx;height: 48rpx;"></image> <text style="color: #374B6E">我的</text> </navigator> </view> </view> </template> <style> page { background: #FAFAFA; } </style> <script> export default { data() { return { xqaxuye: false, list:[] } }, onLoad() { this.user_id = uni.getStorageSync('id'); this.getlist(); }, methods:{ //获取解惑列表 getlist() { let user_id = uni.getStorageSync('id'); this.$post({ data: { do: 'AskQuestionList', data: { user_id:user_id } } }).then(res => { this.list = res.message }) }, gopl(id){ uni.navigateTo({ url:'./jiehuo-pl?id=' + id + '&user_id=' + this.user_id }) } } } </script> <style lang="scss" scoped> </style>