From f3584dce70e9a898e101d3236345bd8e812121f4 Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Tue, 22 Feb 2022 17:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=A6=E4=B9=A0=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 1 + pages/index/learning.vue | 17 ++++++++++------- pages/learning/Equinoctial/index.vue | 21 +++++++++++++++++++++ pages/learning/Equinoctial/index2.vue | 9 +++++++++ 4 files changed, 41 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 3faa5b5..fc0d8d4 100644 --- a/config.js +++ b/config.js @@ -4,6 +4,7 @@ var config = { service: { host, iMServiceHost, + getView:`${host}/autoSR/api/addtodigest/addPageviews`, addLog:`${base}/admin/log/addLoginCount`, getStage:`${host}/customer/getStage`, //验证toen diff --git a/pages/index/learning.vue b/pages/index/learning.vue index f6a62ea..47d6bcf 100644 --- a/pages/index/learning.vue +++ b/pages/index/learning.vue @@ -46,13 +46,13 @@ - {{ item.commentNum || 0 }} + {{ item.commentCount || 0 }} - {{ item.likeNum || 0 }} + {{ item.likeCount || 0 }} @@ -156,6 +156,8 @@ var i = uni.getStorageSync('fendianindex') this.buildingID = uni.getStorageSync('buildingID').id; this.clocktab(i) + this.leftIndex =0 + this.infoinit() }, methods: { @@ -166,7 +168,6 @@ mask: true }); - const parames = { pageNum: 1, pageSize: 100, @@ -251,7 +252,6 @@ } else { uni.setStorageSync("fendianindex", 1); //写入缓存 this.infoinit() - this.getSecond(0) } }, @@ -305,6 +305,8 @@ }, data: infoobj, success: (data) => { + console.log(data.data.data.results, + "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"); if (data.data.code == 10000) { this.alllists = data.data.data.results } else { @@ -333,9 +335,7 @@ success: (data) => { if (data.data.code == 10000) { this.equinoctial = data.data.data - if (data.data.data[0] && data.data.data[0].length > 0) { this.getSecond(data.data.data[0].marketingId) - } } else { uni.showToast({ title: data.data.message, @@ -468,7 +468,7 @@ .boxintention { flex-shrink: 0; - width: 176rpx; + width: 160rpx; height: 100%; background: #F0F1F5; @@ -485,6 +485,9 @@ line-height: 100rpx; font-size: 30rpx; color: #0C0C0C; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } &.act { diff --git a/pages/learning/Equinoctial/index.vue b/pages/learning/Equinoctial/index.vue index 960abe8..eae7b6a 100644 --- a/pages/learning/Equinoctial/index.vue +++ b/pages/learning/Equinoctial/index.vue @@ -225,6 +225,7 @@ this.getdianzan() this.getCommentList(); + this.getView() }, onShow: function() { this.initRecord(); @@ -250,6 +251,26 @@ this.innerAudioContext.destroy(); }, methods: { + getView(){ + this.$u.get('/addtodigest/addPageviews',{ + id:this.customerId + }) + .then(res=>{ + // console.log(res) + }) + // uni.request({ + // url: config.service.getView, + // method: "POST", + // data: {id:this.customerId}, + // header: { + // 'content-type': 'application/json', + // 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token + // }, + // success: (data) => { + // console.log(data) + // } + // }) + }, onPlay(){ this.innerAudioContext.onPlay(() => { // 播放监听 diff --git a/pages/learning/Equinoctial/index2.vue b/pages/learning/Equinoctial/index2.vue index 7c2e61f..d719388 100644 --- a/pages/learning/Equinoctial/index2.vue +++ b/pages/learning/Equinoctial/index2.vue @@ -247,6 +247,7 @@ this.getdianzan() this.getCommentList(); + this.getView() }, onShow: function() { this.initRecord(); @@ -272,6 +273,14 @@ this.innerAudioContext.destroy(); }, methods: { + getView(){ + this.$u.get('/autoSR/api/addtodigest/addPageviews',{ + id:this.customerId + }) + .then(res=>{ + // console.log(res) + }) + }, onPlay(){ this.innerAudioContext.onPlay(() => { // 播放监听