From 828b463f048176b1cbf50751da82654d06f99cf0 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Thu, 22 May 2025 13:57:34 +0800 Subject: [PATCH] =?UTF-8?q?menuRoute=20=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 1 + subPackages/feiyiNew/CGCLetter/index.js | 12 +++++ subPackages/feiyiNew/CGCLetter/index.wxml | 4 +- subPackages/feiyiNew/CGCTime/index.js | 40 ++++++++------ subPackages/feiyiNew/CGCTime/index.wxml | 32 +++++------- subPackages/feiyiNew/CGCTime/index.wxss | 64 ++++++++++------------- 6 files changed, 81 insertions(+), 72 deletions(-) diff --git a/app.js b/app.js index f354f30..94d308a 100644 --- a/app.js +++ b/app.js @@ -175,6 +175,7 @@ App({ }, globalData: { appLaunchFlag: false, // App onLaunch执行结束 + menuRoute: '/pages/index/index', CategoryIds: {}, //分享出去的页面id category_id: "", //分享进来的参数 from: "", // 是否是从其他小程序跳转过来的 如果是从其他小程序跳转的话 会记录 diff --git a/subPackages/feiyiNew/CGCLetter/index.js b/subPackages/feiyiNew/CGCLetter/index.js index 0ef3aa4..a12c51d 100644 --- a/subPackages/feiyiNew/CGCLetter/index.js +++ b/subPackages/feiyiNew/CGCLetter/index.js @@ -11,6 +11,7 @@ Page({ list:[], page_no: 0, haveMore: true, + headImg: '', }, @@ -55,12 +56,23 @@ Page({ } }) }, + // 获取头图 + getHeaderImg: function () { + commonApi._post("multimedia/detail", {id: 2360}).then(res=>{ + if (res) { + this.setData({headImg: res.data.head_img}) + } + }) + + + }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { this.getList() + this.getHeaderImg() }, /** diff --git a/subPackages/feiyiNew/CGCLetter/index.wxml b/subPackages/feiyiNew/CGCLetter/index.wxml index ba3e540..0415012 100644 --- a/subPackages/feiyiNew/CGCLetter/index.wxml +++ b/subPackages/feiyiNew/CGCLetter/index.wxml @@ -1,8 +1,8 @@ - - + + diff --git a/subPackages/feiyiNew/CGCTime/index.js b/subPackages/feiyiNew/CGCTime/index.js index 0ef3aa4..71e0002 100644 --- a/subPackages/feiyiNew/CGCTime/index.js +++ b/subPackages/feiyiNew/CGCTime/index.js @@ -11,6 +11,7 @@ Page({ list:[], page_no: 0, haveMore: true, + headImg: '', }, @@ -26,34 +27,40 @@ Page({ gotoDetail:function(e){ let item = e.currentTarget.dataset.item; - if(item.outside_url) { - wx.navigateTo({ - url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(item.outside_url), - }) - } else { - wx.navigateTo({ - url: '/pages/info/strategyInfo/index?id=' + item.id, - }) - } + wx.navigateTo({ + url: '/pages/pbService/appreciate/info/index?info='+encodeURIComponent(JSON.stringify(item)), + }) }, getList:function(){ if (!this.data.haveMore) return let list = this.data.list - commonApi._post("travels/getList", { - page_no: this.data.page_no, - page_num: 10, - // type_key: 'feiyishouzha', - type_key: 'someArt', + commonApi._post("multimedia/media_list", { + limit: 10, + page: this.data.page_no, + class_id: 139, + // class_id: 140, + type: 1, }).then(res => { if (res) { - this.setData({list:list.concat(res.data.rows||[])}) - if (res.data.rows.length<10) { + this.setData({list:list.concat(res.data.data||[])}) + if (res.data.data.length<10) { this.data.haveMore = false } } }) + + }, + // 获取头图 + getHeaderImg: function () { + commonApi._post("multimedia/detail", {id: 2361}).then(res=>{ + if (res) { + this.setData({headImg: res.data.head_img}) + } + }) + + }, /** @@ -61,6 +68,7 @@ Page({ */ onReady: function () { this.getList() + this.getHeaderImg() }, /** diff --git a/subPackages/feiyiNew/CGCTime/index.wxml b/subPackages/feiyiNew/CGCTime/index.wxml index ba3e540..d60bb26 100644 --- a/subPackages/feiyiNew/CGCTime/index.wxml +++ b/subPackages/feiyiNew/CGCTime/index.wxml @@ -1,29 +1,23 @@ - - - + + + - - - {{item.title}} - {{item.subtitle}} - - - - {{item.nickname}} - - - - {{item.like_number}} - - {{item.view_number}} - - + + + + 君到苏州 + {{item.title}} + + + + + diff --git a/subPackages/feiyiNew/CGCTime/index.wxss b/subPackages/feiyiNew/CGCTime/index.wxss index 46e9880..d91d741 100644 --- a/subPackages/feiyiNew/CGCTime/index.wxss +++ b/subPackages/feiyiNew/CGCTime/index.wxss @@ -24,44 +24,38 @@ padding: 32rpx; .item { width: 100%; - display: flex; - align-items: center; - justify-content: space-between; margin-bottom: 36rpx; -} -.item image { - width: 208rpx; - height: 198rpx; - border-radius: 24rpx 24rpx 24rpx 24rpx; - margin-right: 24rpx; - flex-shrink: 0; -} - - -.info { - flex: 1; - width: 1rpx; - height: 198rpx; - display: flex; - flex-direction: column; - justify-content: space-between; -} -.info .title { font-weight: 500; - font-size: 31rpx; - color: #000; - margin-bottom: 9rpx; + font-size: 28rpx; + color: #000000; + padding-bottom: 20rpx; + border-bottom: 1rpx solid rgba(0,0,0,0.05); } -.info .subtitle { - font-size: 24rpx; - color: #999999; - margin-bottom: 9rpx; +.video-image{ + width: 100%; + height: 372rpx; + position: relative; } -.letter-user{ - display: flex; - justify-content: space-between; +.video-image image { + width: 100%; + height: 372rpx; + background: rgba(0,0,0,0.2); + border-radius: 32rpx 32rpx 32rpx 32rpx; +} +.video-image .play{ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + margin: auto; + width: 90rpx; + height: 90rpx; +} + +.title{ font-weight: 400; - font-size: 24rpx; - color: #000000; - align-items: center; +font-size: 28rpx; +color: #000000; +margin: 24rpx 0 20rpx; }