gdpaoup #195
@ -229,6 +229,7 @@
 | 
			
		||||
												console.log(res.errCode);
 | 
			
		||||
												if (res.errCode == 0) {
 | 
			
		||||
													this.loginIn(res.data.token);
 | 
			
		||||
                                                    uni.setStorageSync('user_info',res.data);
 | 
			
		||||
													this.show = false;
 | 
			
		||||
													uni.switchTab({
 | 
			
		||||
														url: "../../pages/index/index"
 | 
			
		||||
@ -259,6 +260,7 @@
 | 
			
		||||
												console.log(res);
 | 
			
		||||
												if (res.errCode == 0) {
 | 
			
		||||
													this.loginIn(res.data.token);
 | 
			
		||||
                                                    uni.setStorageSync('user_info',res.data);
 | 
			
		||||
													this.show = false;
 | 
			
		||||
													uni.switchTab({
 | 
			
		||||
														url: "../../pages/index/index"
 | 
			
		||||
 | 
			
		||||
@ -251,6 +251,7 @@
 | 
			
		||||
                    }
 | 
			
		||||
                    .child_content {
 | 
			
		||||
                        margin: 18rpx 0 18rpx 30rpx;
 | 
			
		||||
                        font-size: 26rpx;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                .more-reply {
 | 
			
		||||
@ -578,16 +579,15 @@ export default {
 | 
			
		||||
            this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
 | 
			
		||||
                uni.hideLoading();
 | 
			
		||||
                if (res.errCode == 0) {
 | 
			
		||||
                    if (res.data.length < 10) {
 | 
			
		||||
                        this.is_more = false;
 | 
			
		||||
                    }
 | 
			
		||||
                    // if (res.data.length < 10) {
 | 
			
		||||
                    //     this.is_more = false;
 | 
			
		||||
                    // }
 | 
			
		||||
                    this.page_[id]++;
 | 
			
		||||
                    console.log(this.page_[id]);
 | 
			
		||||
                    this.$nextTick(() => {
 | 
			
		||||
                        this.allList[id] = res.data;
 | 
			
		||||
                    })
 | 
			
		||||
                    console.log(this.allList);
 | 
			
		||||
                    
 | 
			
		||||
                }
 | 
			
		||||
            })
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,7 @@
 | 
			
		||||
            @openCart="openPopup"></userinfo>
 | 
			
		||||
        <!-- 视频信息 -->
 | 
			
		||||
        <cover-view class="info-box" @click="stopClick">
 | 
			
		||||
            <view class="video-info-box" :style="{ width: time_count > 99 ? '200rpx' : '160rpx' }">
 | 
			
		||||
            <view class="video-info-box" :style="{ width: time_count > 99 ? '180rpx' : '160rpx' }">
 | 
			
		||||
                <image class="image-play" src="../../static/videoIcon.png" mode=""></image>
 | 
			
		||||
                <text class="video-slip">视频</text>
 | 
			
		||||
                <text class="time">{{ time_count }}s</text>
 | 
			
		||||
@ -69,10 +69,11 @@
 | 
			
		||||
                                    <text class="child-name">{{ child.member_nickname }}</text>
 | 
			
		||||
                                    <text v-if="0">{{ child.reply_member_nickname }}</text>
 | 
			
		||||
                                </view>
 | 
			
		||||
                                <view class="child_content">{{ child.content }}</view>
 | 
			
		||||
                                <text class="child_content">{{ child.content }}</text>
 | 
			
		||||
                            </view>
 | 
			
		||||
                            <view class="more-comment" v-if="item.reply_count">
 | 
			
		||||
                                展开更多回复
 | 
			
		||||
                            <view>
 | 
			
		||||
                                <text class="more-comment" @click="getReplyList(item.id)" v-if="item.reply_count">展开更多回复</text>
 | 
			
		||||
                                <text></text>
 | 
			
		||||
                            </view>
 | 
			
		||||
                        </view>
 | 
			
		||||
                    </view>
 | 
			
		||||
@ -154,6 +155,7 @@
 | 
			
		||||
                pid: 0, // 主键
 | 
			
		||||
                reply_id: 0, // 回复id
 | 
			
		||||
                allList: {}, // 全部子评论
 | 
			
		||||
                page_: {},
 | 
			
		||||
                page: 0,
 | 
			
		||||
                comment_id: 0,
 | 
			
		||||
                send_value: "", // 评论
 | 
			
		||||
@ -298,6 +300,40 @@
 | 
			
		||||
                    }
 | 
			
		||||
                })
 | 
			
		||||
            },
 | 
			
		||||
            // 发现回复列表
 | 
			
		||||
            getReplyList(id) {
 | 
			
		||||
                uni.showLoading({
 | 
			
		||||
                    title: "loading..."
 | 
			
		||||
                })
 | 
			
		||||
                if (!this.page_[id] === 0) {
 | 
			
		||||
                }
 | 
			
		||||
                console.log(id);
 | 
			
		||||
                uni.request({
 | 
			
		||||
                    url: temp_url + "article/articleReplyList",
 | 
			
		||||
                    method: "POST",
 | 
			
		||||
                    data: {
 | 
			
		||||
                        id: id,
 | 
			
		||||
                        page: this.page_[id],
 | 
			
		||||
                    },
 | 
			
		||||
                    header: {
 | 
			
		||||
                        Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
 | 
			
		||||
                    },
 | 
			
		||||
                    success: (res) => {
 | 
			
		||||
                        uni.hideLoading();
 | 
			
		||||
                        if (res.data.errCode == 0) {
 | 
			
		||||
                            if (res.data.data.length < 10) {
 | 
			
		||||
                                this.is_more = false;
 | 
			
		||||
                            }
 | 
			
		||||
                            this.page_[id]++;
 | 
			
		||||
                            console.log(this.page_[id]);
 | 
			
		||||
                            this.$nextTick(function(){
 | 
			
		||||
                                this.allList[id] = res.data.data;
 | 
			
		||||
                            })
 | 
			
		||||
                            console.log(this.allList);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                })
 | 
			
		||||
            },
 | 
			
		||||
            // 获取手机信息
 | 
			
		||||
            getInfo() {
 | 
			
		||||
                uni.getSystemInfo({
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user