Browse Source

修改学习的bug

test
jyt 2 years ago
parent
commit
f3584dce70
4 changed files with 41 additions and 7 deletions
  1. +1
    -0
      config.js
  2. +10
    -7
      pages/index/learning.vue
  3. +21
    -0
      pages/learning/Equinoctial/index.vue
  4. +9
    -0
      pages/learning/Equinoctial/index2.vue

+ 1
- 0
config.js View File

@@ -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


+ 10
- 7
pages/index/learning.vue View File

@@ -46,13 +46,13 @@
<image class="Piabodata-img1" src="../../static/images/img/message.png" mode="">
</image>
<!-- 热度 -->
{{ item.commentNum || 0 }}
{{ item.commentCount || 0 }}
</view>
<view class="icon">
<image class="Piabodata-img1" src="../../static/images/img/hand.png" mode="">
</image>
<!-- 点赞数 -->
{{ item.likeNum || 0 }}
{{ item.likeCount || 0 }}
</view>
</view>
</view>
@@ -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 {


+ 21
- 0
pages/learning/Equinoctial/index.vue View File

@@ -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(() => {
// 播放监听


+ 9
- 0
pages/learning/Equinoctial/index2.vue View File

@@ -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(() => {
// 播放监听


Loading…
Cancel
Save