zhaoxiaohai il y a 3 ans
Parent
commit
99615cf3d0
1 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 4 5
      pages/promotional/upload.js

+ 4 - 5
pages/promotional/upload.js

@@ -67,7 +67,6 @@ Page({
             title: '请检查素材标题或所属分类',
             icon: "none"
         });
-        console.log(this.data.detailsData.attinfos)
         if (this.data.uploadType == 'image' || this.data.uploadType == 'video') {
             if (this.data.detailsData.attinfos.length == 0) return wx.showToast({
                 title: '您还未上传素材附件',
@@ -119,15 +118,15 @@ Page({
                     icon: "none"
                 });
                 wx.showToast({
-                    title: "修改成功",
+                    title: "保存成功",
                 });
                 this.setData({
                     "detailsData.status": "审核"
                 })
-                let pages = getCurrentPages();
-                let prevPage = pages[pages.length - 2];
-                prevPage.getList(true);
                 setTimeout(() => {
+                    let pages = getCurrentPages();
+                    let prevPage = pages[pages.length - 2];
+                    prevPage.getList(true);
                     wx.navigateBack({
                         delta: 0,
                     })