liyongli 1 tahun lalu
induk
melakukan
49ae16082c

+ 4 - 0
pages/application/index.wxss

@@ -58,4 +58,8 @@
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 10;
+}
+
+.van-radio {
+  margin: 15rpx 0;
 }

+ 52 - 3
pages/index/index.js

@@ -7,15 +7,15 @@ Page({
     ori: {},
     video_height: 0,
   },
-  toNext(e){
+  toNext(e) {
     const item = e.currentTarget.dataset.item || {};
-    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,
@@ -33,5 +33,54 @@ Page({
         ori: res || {}
       })
     })
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
   }
 })

+ 13 - 19
pages/previousEditions/index.js

@@ -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 || []
+      })
+    })
   },
 
   /**

+ 2 - 0
pages/sph/index.json

@@ -1,3 +1,5 @@
 {
+  "navigationBarTitleText": "",
+  "navigationBarBackgroundColor": "#000",
   "usingComponents": {}
 }

+ 1 - 13
project.private.config.json

@@ -5,17 +5,5 @@
     "compileHotReLoad": true,
     "urlCheck": true
   },
-  "condition": {
-    "miniprogram": {
-      "list": [
-        {
-          "name": "pages/sph/index",
-          "pathName": "pages/sph/index",
-          "query": "sph_id=sph7mSoe3G6cQ1t&sp_id=export%2FUzFfAgtgekIEAQAAAAAADbYVpu2JywAAAAstQy6ubaLX4KHWvLEZgBPEwYMEKDMcUJyFzNPgMJo0tEtDS5McWvLoxfegJKYu",
-          "launchMode": "default",
-          "scene": null
-        }
-      ]
-    }
-  }
+  "condition": {}
 }