From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交

---
 wechat_staff/pages/promotion/index.js |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/wechat_staff/pages/promotion/index.js b/wechat_staff/pages/promotion/index.js
index e3638d0..abb2a7c 100644
--- a/wechat_staff/pages/promotion/index.js
+++ b/wechat_staff/pages/promotion/index.js
@@ -1,4 +1,4 @@
-import { newsPage } from '../../api/index'
+import { newsPage,saveShareRecord } from '../../api/index'
 import moment from "moment";
 Page({
 
@@ -23,6 +23,10 @@
       page:this.data.page,
       model:{type:0}})
       .then(res =>{
+        wx.stopPullDownRefresh()
+        if(this.data.page ==1){
+          this.setData({list:[]})
+        }
         if(this.data.page == res.data.page){ 
           res.data.records.forEach(element => { 
             element.createDate = moment(element.createDate).format("yyyy/MM/DD")  
@@ -58,6 +62,7 @@
   },
   downfile(e){
     const item =  e.currentTarget.dataset.index;
+    saveShareRecord(item.id)
     const files = []
     if(item.fileType ==1 && item.fileList && item.fileList.length && item.fileList[0].fileurlFull  ){
       files.push(item.fileList[0].fileurlFull)
@@ -107,7 +112,7 @@
                           }
                         })
                       }
-                  })
+                    })
                 } 
               }, fail(err) { 
                 wx.showToast({
@@ -181,7 +186,9 @@
    * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
    */
   onPullDownRefresh() {
-
+    console.log('涓嬫媺鍒锋柊')  
+    this.setData({ page: 1 })
+    this.getList() 
   },
  
   /**

--
Gitblit v1.9.3