Merge pull request 'gdppao' (#267) from gyh into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/267
This commit was merged in pull request #267.
This commit is contained in:
gyh
2020-08-20 15:17:54 +08:00
4 changed files with 38 additions and 15 deletions

View File

@@ -178,7 +178,11 @@
this.videoBox = uni.createVideoContext("videoId", this);
},
onHide() {
this.videoBox.pause();
if (uni.getSystemInfoSync().platform == "ios") {
console.log("ios");
} else if (uni.getSystemInfoSync().platform == "android") {
this.videoBox.pause();
}
},
onBackPress() {
if (this.cart_type) {
@@ -313,7 +317,6 @@
title: "loading..."
})
if (!this.page_[id] === 0) {}
console.log(id);
uni.request({
url: temp_url + "article/articleReplyList",
method: "POST",
@@ -326,15 +329,15 @@
},
success: (res) => {
uni.hideLoading();
console.log(this.page_);
if (res.data.errCode == 0) {
if (res.data.data.length < 10) {
this.is_more = false;
}
this.page_[id]++;
console.log(this.page_);
this.allList[id] = res.data.data;
this.$forceUpdate();
// console.log(this.page_[id]);
// console.log(this.allList);
}
}
})
@@ -725,6 +728,7 @@
}
.btn-send {
padding: 0 20rpx;
font-size: 28rpx;
color: #666;
}