瀏覽代碼

修改学习的bug

test
jyt 2 年之前
父節點
當前提交
f3584dce70
共有 4 個檔案被更改,包括 41 行新增7 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存