From b72fc1b10b08cf2fea1626d32e1ca2cccabe2edd Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Tue, 31 Mar 2020 23:49:35 +0800
Subject: [PATCH] bug修复
---
SunshineLnsMinApp/pages/pfyy/pfyy.js | 43 ++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 42 insertions(+), 1 deletions(-)
diff --git a/SunshineLnsMinApp/pages/pfyy/pfyy.js b/SunshineLnsMinApp/pages/pfyy/pfyy.js
index d859116..37a4b35 100644
--- a/SunshineLnsMinApp/pages/pfyy/pfyy.js
+++ b/SunshineLnsMinApp/pages/pfyy/pfyy.js
@@ -13,7 +13,8 @@
id: '',
picType: '',
evalList: {},
- picturesInfo: {}
+ picturesInfo: {},
+ ReplyLogs:[]
},
/**
@@ -30,12 +31,14 @@
success: function (res) {
console.log(res.data.data.lawAppointment)
if (res.data.code == 0) {
+ var data1 = res.data.data.ReplyLogs || [];
that.setData({
picturesInfo: {
...res.data.data.lawAppointment,
createId: userinfo.id,
activitiesTime: app.formatDateday(res.data.data.lawAppointment.activitiesTime)
},
+ ReplyLogs: data1,
disabled
})
} else {
@@ -59,6 +62,44 @@
},
+ reply: function (e) {
+ var that = this;
+ var openId = wx.getStorageSync("openId")
+ var obj = {
+ openId: openId,
+ content: that.data.picturesInfo.replyContent,
+ busType: 25,
+ busId: that.data.picturesInfo.id
+ };
+ wx.request({
+ url: app.globalData.url + '/api/v1/pictures/reply',
+ data: obj,
+ method: 'POST',
+ header: {
+ "Content-Type": "application/json"
+ },
+ success: function (res) {
+ if (res.data.code == 0) {
+ wx.showToast({
+ title: '提交回复成功',
+ icon: 'success',
+ duration: 2000
+ })
+ setTimeout(function () {
+ wx.navigateBack({
+ changed: true
+ }); //返回上一页
+ }, 2000)
+ } else {
+ wx.showModal({
+ title: '提示',
+ content: "提交失败!"
+ })
+ }
+ }
+ })
+ },
+
submit: function (e) {
var picturesInfo = this.data.picturesInfo;
if (!picturesInfo.schoolName) {
--
Gitblit v1.8.0