|
@@ -15,32 +15,18 @@ Page({
|
|
|
*/
|
|
|
data: {
|
|
|
line_height: 0,
|
|
|
- list: [
|
|
|
- {
|
|
|
- title: "标题",
|
|
|
- url: "https://mp.weixin.qq.com/s/wu39DuMtudT1wtHWz50Caw",
|
|
|
- cover: "https://cxzx.smcic.net/topic/tool/img/2023jrhwmtp.jpg",
|
|
|
- type: "gzh", // gzh - 公众号; sph - 视频号;
|
|
|
- },
|
|
|
- {
|
|
|
- title: "标题",
|
|
|
- url: "https://mp.weixin.qq.com/s/wu39DuMtudT1wtHWz50Caw",
|
|
|
- sph_id: "sph7mSoe3G6cQ1t",
|
|
|
- sp_id: "export/UzFfAgtgekIEAQAAAAAADbYVpu2JywAAAAstQy6ubaLX4KHWvLEZgBPEwYMEKDMcUJyFzNPgMJo0tEtDS5McWvLoxfegJKYu",
|
|
|
- type: "sph", // gzh - 公众号; sph - 视频号;
|
|
|
- },
|
|
|
- ]
|
|
|
+ list: []
|
|
|
},
|
|
|
|
|
|
- toNext(e){
|
|
|
+ toNext(e) {
|
|
|
const item = this.data.list[e.currentTarget.dataset.index]
|
|
|
- if (item.type === 'gzh'){
|
|
|
+ if (item.type === 'gzh') {
|
|
|
wx.navigateTo({
|
|
|
url: "/pages/webview/index?url=" + item.url
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (item.type === 'sph'){
|
|
|
+ if (item.type === 'sph') {
|
|
|
// wx.openChannelsActivity({
|
|
|
// finderUserName: item.sph_id,
|
|
|
// feedId: item.sp_id,
|
|
@@ -62,7 +48,15 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
-
|
|
|
+ ajax({
|
|
|
+ urlType: "fileurl",
|
|
|
+ api: "/topic/tool/img/%E5%B0%91%E5%84%BF%E4%B9%A6%E7%94%BB%E5%A4%A7%E8%B5%9B/previousEditions.json?data=" +
|
|
|
+ Date.now()
|
|
|
+ }).then(r => {
|
|
|
+ this.setData({
|
|
|
+ list: r || []
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
/**
|