瀏覽代碼

mod: 用户反馈

weieryang 2 月之前
父節點
當前提交
08c08b9bba

+ 12 - 12
wxproject/greenland/pages/education/create/create.js

@@ -271,18 +271,18 @@ Page({
271 271
         return Promise.reject('err')
272 272
       }
273 273
     } else {
274
-      let data;
275
-      if (fDeptid == 10) {
276
-        data = [26]
277
-      } else {
278
-        data = [
279
-          [15, 16],
280
-          [16],
281
-          [16]
282
-        ][
283
-          ['公园科中心', '公园科中心,绿化科中心', '绿化科中心'].indexOf(config)
284
-        ];
285
-      }
274
+      let data = [27, 1];
275
+      // if (fDeptid == 10) {
276
+      //   data = [26]
277
+      // } else {
278
+      //   data = [
279
+      //     [15, 16],
280
+      //     [16],
281
+      //     [16]
282
+      //   ][
283
+      //     ['公园科中心', '公园科中心,绿化科中心', '绿化科中心'].indexOf(config)
284
+      //   ];
285
+      // }
286 286
       let res = await app.sendRequest('post', '/sysuseraccount/selectUserAccountByDeptId', {
287 287
         data
288 288
       })

+ 3 - 3
wxproject/packagePersonnel/pages/parkStaff/parkStaff.js

@@ -294,13 +294,13 @@ Page({
294 294
     let position = wx.getStorageSync('position');
295 295
     this.getInfoGZ(); // 获取所有工种留做筛选
296 296
 
297
-    if (position == '中心') {
297
+    // if (position == '中心') {
298 298
       this.setData({
299 299
         iSdisabled: true,
300 300
       });
301 301
       this.getAllParkData(); // 获取公园数据
302
-      return;
303
-    }
302
+    //   return;
303
+    // }
304 304
 
305 305
     /*   判断是否是中心人员  还是园长   */
306 306
     let url =

+ 27 - 13
wxproject/pages/park/parkSuggest/parkSuggest.js

@@ -44,20 +44,34 @@ Page({
44 44
         duration: 2000,
45 45
       })
46 46
     } else {
47
-      wx.showToast({
48
-        title: "提交成功",
49
-        icon: "success",
50
-        duration: 2000,
51
-        success() {
52
-          setTimeout(() => {
53
-            wx.navigateBack({
54
-              complete: (res) => {
55
-                ////console.log(res)
56
-              },
57
-            })
58
-          }, 2000)
59
-        },
47
+
48
+      // 调用接口进行反馈
49
+      var url =
50
+        app.globalData.httpsUrlServer +
51
+        "/citizenSuggestion/createSuggestion"
52
+      var data = {
53
+        fOpinion: this.data.currentNoteLen,
54
+      }
55
+      app.postReq(url, data, (res) => {
56
+        if (res.code == '0') {
57
+          
58
+        }
59
+        wx.showToast({
60
+          title: "提交成功",
61
+          icon: "success",
62
+          duration: 2000,
63
+          success() {
64
+            setTimeout(() => {
65
+              wx.navigateBack({
66
+                complete: (res) => {
67
+                  ////console.log(res)
68
+                },
69
+              })
70
+            }, 2000)
71
+          },
72
+        })
60 73
       })
74
+
61 75
     }
62 76
   },
63 77
   /**