diff --git a/App.vue b/App.vue index e15be00..4ad52c3 100644 --- a/App.vue +++ b/App.vue @@ -41,7 +41,6 @@ @import "/static/css/normalize"; /* 顶部自定义导航留白 */ .status_bar { - z-index: 1000; width: 100%; height: var(--status-bar-height); } diff --git a/common/api/user.js b/common/api/user.js index 899a148..5fc0775 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -408,8 +408,8 @@ export default { return vm.$u.post('article/articleCollectList'); }, // 关注用户列表 - attentionMemberList() { - return vm.$u.post('member/attentionMemberList'); + attentionMemberList({ page = 1 } = {}) { + return vm.$u.post('member/attentionMemberList', { page: page }); }, } } diff --git a/components/comment/index.vue b/components/comment/index.vue index 3795916..f93bb87 100644 --- a/components/comment/index.vue +++ b/components/comment/index.vue @@ -2,7 +2,7 @@ - {{ content.geval_frommembername }} + {{ content.member_nickname }} diff --git a/components/mine/address-active/index.vue b/components/mine/address-active/index.vue index 8f08166..933ee42 100644 --- a/components/mine/address-active/index.vue +++ b/components/mine/address-active/index.vue @@ -80,7 +80,6 @@ export default { // 判断是不是编辑页面 调用接口 confirmBtn() { if(!this.debounce) return; - this.debounce = false; this.info ? this.editAddress() : this.addAddress(); }, // chooseArea() { @@ -119,6 +118,7 @@ export default { }, addAddress() { if(!this.validateValue()) return false; + this.debounce = false; this.$u.api.addressAdd({ area_id: this.area_id, city_id: this.city_id, @@ -144,6 +144,7 @@ export default { }, editAddress() { if(!this.validateValue()) return false; + this.debounce = false; this.$u.api.addressEdit({ address_id: this.info.address_id, area_id: this.area_id, diff --git a/components/shop/list/item.vue b/components/shop/list/item.vue index 2a4e499..315d431 100644 --- a/components/shop/list/item.vue +++ b/components/shop/list/item.vue @@ -34,7 +34,7 @@ export default { url: 'pageB/sdetails/index', params: { id: this.info.goods_id, - type: 1, + // type: 1, } }) } diff --git a/pageB/photo/index.vue b/pageB/photo/index.vue index fd55862..911248d 100644 --- a/pageB/photo/index.vue +++ b/pageB/photo/index.vue @@ -66,7 +66,7 @@ - + 发送 @@ -419,7 +419,7 @@ export default { edit_text: "有爱评论,说点好听的 ~", edit_text_other: "有爱评论,说点好听的 ~", commentList: [], // 评论 - allList: [], // 全部子评论 + allList: {}, // 全部子评论 status: 'loadmore', iconType: 'circle', loadText: { @@ -433,6 +433,7 @@ export default { onLoad(option){ this.article_id = option.id; this.articleInfo(this.article_id); + this.allList = {}; }, // 监听返回按钮 onBackPress() { @@ -491,18 +492,28 @@ export default { this.commentList = this.commentList.concat(res.data); } this.page++; + let list = this.commentList; + // list.forEach((item,index) => { + // console.log(item); + // }) } }) }, // 打开评论输入 openKeyInput(data,index) { - // console.log(data); + let me = this; + console.log(data); this.is_edit = true; setTimeout(() => { this.is_focus = true; }, 200) + uni.onKeyboardHeightChange(function(res){ + if (res.height == 0) { + me.is_focus = false; + } + }) this.comment_id = index; - if (data.id) { + if (data.content) { this.edit_text_other = "回复@" + data.member_nickname; this.pid = data.id; this.reply_id = data.member_id; @@ -525,15 +536,19 @@ export default { pid: this.pid, reply_id: this.reply_id, }).then(res => { - // console.log(res.data.data); + // console.log(res.data); if (res.errCode == 0) { this.send_value = ""; this.comment_num = res.data.num; // console.log(this.comment_num); this.is_edit = false; - if (res.data.data.pid) { + console.log(res.data.data.reply_id); + if (res.data.data.reply_id) { + console.log(this.allList); this.commentList[this.comment_id].reply_count = true; - this.allList[this.comment_id].unshift(res.data.data); + this.allList[this.comment_id] = []; + this.allList[this.comment_id].push(res.data.data); + console.log(this.allList); } else { this.commentList.unshift(res.data.data); } @@ -544,14 +559,14 @@ export default { }, // 发现回复列表 getReplyList(id) { - this.page_[id] = 0; if (!this.page_[id] === 0) { } console.log(this.page_[id]); this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => { - console.log(this.page_); + console.log(res); if (res.errCode == 0) { this.page_[id]++; + console.log(this.page_[id]); this.allList[id] = res.data; } }) @@ -583,7 +598,7 @@ export default { delta: 1 }) }, - focus() { + focus(e) { setTimeout(function(){ uni.showSoftKeybord; }, 200) diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue index 3e9a71b..aa62571 100644 --- a/pageB/sdetails/index.vue +++ b/pageB/sdetails/index.vue @@ -23,10 +23,13 @@ {{ goodsInfo.goods_name }} - + ¥{{ goodsInfo.pintuan_price || '0.00' }} ¥{{ goodsInfo.goods_price || '0.00' }} + + ¥{{ goodsInfo.goods_price || '0.00' }} + @@ -485,7 +488,7 @@ export default { * @params {Number} num 数量 * @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀) **/ - settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) { + async settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) { if(type != 'involvement') { if(!this.showSpec) { this.showSpec = true; @@ -514,14 +517,14 @@ export default { if(this.type == 2) { if(type == 'involvement') { // 验证能否拼团 - let status = this.pintuanVerify({ + const whether = await this.pintuanVerify({ pintuan_id: this.pintuan_id, pintuangroup_headid: this.involvemenGroupInfo[0].user_id }).then(status => { if(status != 0) return true; + else return false; }) - // console.log(status); - if(status) return false; + if(whether) return false; this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id); Object.assign(params, { pintuan_id: this.pintuan_id, diff --git a/pageB/video/video.nvue b/pageB/video/video.nvue index aa0ae33..57afe10 100644 --- a/pageB/video/video.nvue +++ b/pageB/video/video.nvue @@ -1,5 +1,5 @@