浏览代码

推广素材

zhaoxiaohai 2 年之前
父节点
当前提交
2118dfbc84
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      pages/promotional/details.js
  2. 2 2
      pages/promotional/index.js
  3. 3 3
      pages/promotional/upload.js

+ 1 - 1
pages/promotional/details.js

@@ -29,7 +29,7 @@ Page({
         }).then(res => {
             console.log("详情", res)
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             })
             let data = res.data;

+ 2 - 2
pages/promotional/index.js

@@ -86,7 +86,7 @@ Page({
 
             this.selectComponent('#ListBox').RefreshToComplete();
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             });
             for (let i = 0; i < res.data.length; i++) {
@@ -152,7 +152,7 @@ Page({
     /* 查询分类 */
     selectMenu(index = 0, res) {
         if (index == 5) return wx.showToast({
-            title: res.data,
+            title: res.msg,
             icon: "none"
         });
         _Http.basic({

+ 3 - 3
pages/promotional/upload.js

@@ -98,7 +98,7 @@ Page({
         }).then(res => {
             if (res.msg != '成功') {
                 wx.showToast({
-                    title: res.data,
+                    title: res.msg,
                     icon: "none"
                 });
                 this.setData({
@@ -154,7 +154,7 @@ Page({
     /* 查询分类 */
     selectMenu(index = 0, res) {
         if (index == 5) return wx.showToast({
-            title: res.data,
+            title: res.msg,
             icon: "none"
         });
         _Http.basic({
@@ -252,7 +252,7 @@ Page({
                 if (!s.confirm) return;
                 let res = await that.handleDelete([item.linksid]);
                 if (res.msg != '成功') wx.showToast({
-                    title: res.data,
+                    title: res.msg,
                 });
                 let attinfos = that.data.detailsData.attinfos;
                 attinfos.splice(index, 1);