gdpaoup
This commit is contained in:
		
							parent
							
								
									f4ae3578a2
								
							
						
					
					
						commit
						ce1a8d6256
					
				@ -229,6 +229,7 @@
 | 
				
			|||||||
												console.log(res.errCode);
 | 
																	console.log(res.errCode);
 | 
				
			||||||
												if (res.errCode == 0) {
 | 
																	if (res.errCode == 0) {
 | 
				
			||||||
													this.loginIn(res.data.token);
 | 
																		this.loginIn(res.data.token);
 | 
				
			||||||
 | 
					                                                    uni.setStorageSync('user_info',res.data);
 | 
				
			||||||
													this.show = false;
 | 
																		this.show = false;
 | 
				
			||||||
													uni.switchTab({
 | 
																		uni.switchTab({
 | 
				
			||||||
														url: "../../pages/index/index"
 | 
																			url: "../../pages/index/index"
 | 
				
			||||||
@ -259,6 +260,7 @@
 | 
				
			|||||||
												console.log(res);
 | 
																	console.log(res);
 | 
				
			||||||
												if (res.errCode == 0) {
 | 
																	if (res.errCode == 0) {
 | 
				
			||||||
													this.loginIn(res.data.token);
 | 
																		this.loginIn(res.data.token);
 | 
				
			||||||
 | 
					                                                    uni.setStorageSync('user_info',res.data);
 | 
				
			||||||
													this.show = false;
 | 
																		this.show = false;
 | 
				
			||||||
													uni.switchTab({
 | 
																		uni.switchTab({
 | 
				
			||||||
														url: "../../pages/index/index"
 | 
																			url: "../../pages/index/index"
 | 
				
			||||||
 | 
				
			|||||||
@ -251,6 +251,7 @@
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    .child_content {
 | 
					                    .child_content {
 | 
				
			||||||
                        margin: 18rpx 0 18rpx 30rpx;
 | 
					                        margin: 18rpx 0 18rpx 30rpx;
 | 
				
			||||||
 | 
					                        font-size: 26rpx;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                .more-reply {
 | 
					                .more-reply {
 | 
				
			||||||
@ -578,16 +579,15 @@ export default {
 | 
				
			|||||||
            this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
 | 
					            this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
 | 
				
			||||||
                uni.hideLoading();
 | 
					                uni.hideLoading();
 | 
				
			||||||
                if (res.errCode == 0) {
 | 
					                if (res.errCode == 0) {
 | 
				
			||||||
                    if (res.data.length < 10) {
 | 
					                    // if (res.data.length < 10) {
 | 
				
			||||||
                        this.is_more = false;
 | 
					                    //     this.is_more = false;
 | 
				
			||||||
                    }
 | 
					                    // }
 | 
				
			||||||
                    this.page_[id]++;
 | 
					                    this.page_[id]++;
 | 
				
			||||||
                    console.log(this.page_[id]);
 | 
					                    console.log(this.page_[id]);
 | 
				
			||||||
                    this.$nextTick(() => {
 | 
					                    this.$nextTick(() => {
 | 
				
			||||||
                        this.allList[id] = res.data;
 | 
					                        this.allList[id] = res.data;
 | 
				
			||||||
                    })
 | 
					                    })
 | 
				
			||||||
                    console.log(this.allList);
 | 
					                    console.log(this.allList);
 | 
				
			||||||
                    
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@
 | 
				
			|||||||
            @openCart="openPopup"></userinfo>
 | 
					            @openCart="openPopup"></userinfo>
 | 
				
			||||||
        <!-- 视频信息 -->
 | 
					        <!-- 视频信息 -->
 | 
				
			||||||
        <cover-view class="info-box" @click="stopClick">
 | 
					        <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>
 | 
					                <image class="image-play" src="../../static/videoIcon.png" mode=""></image>
 | 
				
			||||||
                <text class="video-slip">视频</text>
 | 
					                <text class="video-slip">视频</text>
 | 
				
			||||||
                <text class="time">{{ time_count }}s</text>
 | 
					                <text class="time">{{ time_count }}s</text>
 | 
				
			||||||
@ -69,10 +69,11 @@
 | 
				
			|||||||
                                    <text class="child-name">{{ child.member_nickname }}</text>
 | 
					                                    <text class="child-name">{{ child.member_nickname }}</text>
 | 
				
			||||||
                                    <text v-if="0">{{ child.reply_member_nickname }}</text>
 | 
					                                    <text v-if="0">{{ child.reply_member_nickname }}</text>
 | 
				
			||||||
                                </view>
 | 
					                                </view>
 | 
				
			||||||
                                <view class="child_content">{{ child.content }}</view>
 | 
					                                <text class="child_content">{{ child.content }}</text>
 | 
				
			||||||
                            </view>
 | 
					                            </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>
 | 
					                        </view>
 | 
				
			||||||
                    </view>
 | 
					                    </view>
 | 
				
			||||||
@ -154,6 +155,7 @@
 | 
				
			|||||||
                pid: 0, // 主键
 | 
					                pid: 0, // 主键
 | 
				
			||||||
                reply_id: 0, // 回复id
 | 
					                reply_id: 0, // 回复id
 | 
				
			||||||
                allList: {}, // 全部子评论
 | 
					                allList: {}, // 全部子评论
 | 
				
			||||||
 | 
					                page_: {},
 | 
				
			||||||
                page: 0,
 | 
					                page: 0,
 | 
				
			||||||
                comment_id: 0,
 | 
					                comment_id: 0,
 | 
				
			||||||
                send_value: "", // 评论
 | 
					                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() {
 | 
					            getInfo() {
 | 
				
			||||||
                uni.getSystemInfo({
 | 
					                uni.getSystemInfo({
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user