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: { service: {
host, host,
iMServiceHost, iMServiceHost,
getView:`${host}/autoSR/api/addtodigest/addPageviews`,
addLog:`${base}/admin/log/addLoginCount`, addLog:`${base}/admin/log/addLoginCount`,
getStage:`${host}/customer/getStage`, getStage:`${host}/customer/getStage`,
//验证toen //验证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 class="Piabodata-img1" src="../../static/images/img/message.png" mode="">
</image> </image>
<!-- 热度 --> <!-- 热度 -->
{{ item.commentNum || 0 }}
{{ item.commentCount || 0 }}
</view> </view>
<view class="icon"> <view class="icon">
<image class="Piabodata-img1" src="../../static/images/img/hand.png" mode=""> <image class="Piabodata-img1" src="../../static/images/img/hand.png" mode="">
</image> </image>
<!-- 点赞数 --> <!-- 点赞数 -->
{{ item.likeNum || 0 }}
{{ item.likeCount || 0 }}
</view> </view>
</view> </view>
</view> </view>
@@ -156,6 +156,8 @@
var i = uni.getStorageSync('fendianindex') var i = uni.getStorageSync('fendianindex')
this.buildingID = uni.getStorageSync('buildingID').id; this.buildingID = uni.getStorageSync('buildingID').id;
this.clocktab(i) this.clocktab(i)
this.leftIndex =0
this.infoinit()
}, },


methods: { methods: {
@@ -166,7 +168,6 @@
mask: true mask: true
}); });



const parames = { const parames = {
pageNum: 1, pageNum: 1,
pageSize: 100, pageSize: 100,
@@ -251,7 +252,6 @@
} else { } else {
uni.setStorageSync("fendianindex", 1); //写入缓存 uni.setStorageSync("fendianindex", 1); //写入缓存
this.infoinit() this.infoinit()
this.getSecond(0)
} }
}, },


@@ -305,6 +305,8 @@
}, },
data: infoobj, data: infoobj,
success: (data) => { success: (data) => {
console.log(data.data.data.results,
"qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");
if (data.data.code == 10000) { if (data.data.code == 10000) {
this.alllists = data.data.data.results this.alllists = data.data.data.results
} else { } else {
@@ -333,9 +335,7 @@
success: (data) => { success: (data) => {
if (data.data.code == 10000) { if (data.data.code == 10000) {
this.equinoctial = data.data.data this.equinoctial = data.data.data
if (data.data.data[0] && data.data.data[0].length > 0) {
this.getSecond(data.data.data[0].marketingId) this.getSecond(data.data.data[0].marketingId)
}
} else { } else {
uni.showToast({ uni.showToast({
title: data.data.message, title: data.data.message,
@@ -468,7 +468,7 @@


.boxintention { .boxintention {
flex-shrink: 0; flex-shrink: 0;
width: 176rpx;
width: 160rpx;
height: 100%; height: 100%;
background: #F0F1F5; background: #F0F1F5;


@@ -485,6 +485,9 @@
line-height: 100rpx; line-height: 100rpx;
font-size: 30rpx; font-size: 30rpx;
color: #0C0C0C; color: #0C0C0C;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }


&.act { &.act {


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

@@ -225,6 +225,7 @@
this.getdianzan() this.getdianzan()
this.getCommentList(); this.getCommentList();
this.getView()
}, },
onShow: function() { onShow: function() {
this.initRecord(); this.initRecord();
@@ -250,6 +251,26 @@
this.innerAudioContext.destroy(); this.innerAudioContext.destroy();
}, },
methods: { 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(){ onPlay(){
this.innerAudioContext.onPlay(() => { this.innerAudioContext.onPlay(() => {
// 播放监听 // 播放监听


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

@@ -247,6 +247,7 @@
this.getdianzan() this.getdianzan()
this.getCommentList(); this.getCommentList();
this.getView()
}, },
onShow: function() { onShow: function() {
this.initRecord(); this.initRecord();
@@ -272,6 +273,14 @@
this.innerAudioContext.destroy(); this.innerAudioContext.destroy();
}, },
methods: { methods: {
getView(){
this.$u.get('/autoSR/api/addtodigest/addPageviews',{
id:this.customerId
})
.then(res=>{
// console.log(res)
})
},
onPlay(){ onPlay(){
this.innerAudioContext.onPlay(() => { this.innerAudioContext.onPlay(() => {
// 播放监听 // 播放监听


Loading…
Cancel
Save