From bf99ae66d14857dfcd97dc6ccb8e82a38d3bd75f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 19 七月 2024 09:05:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_jiaxuan/pages/kefu/index.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/wechat_jiaxuan/pages/kefu/index.js b/wechat_jiaxuan/pages/kefu/index.js
index f5f894b..026490f 100644
--- a/wechat_jiaxuan/pages/kefu/index.js
+++ b/wechat_jiaxuan/pages/kefu/index.js
@@ -1,11 +1,12 @@
-// pages/kefu/index.js
+import { getCustomizedNewsDetail } from '../../api/index'
 Page({
 
   /**
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
-    bottomLift: 0
+    bottomLift: 0,
+    info: {}
   },
 
   /**
@@ -16,11 +17,17 @@
     this.setData({
       bottomLift: app.bottomLift
     })
+    if(options && options.id){
+      this.getDetail(options.id)
+    }
   },
-
-  /**
-   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
-   */
+  getDetail(id) {
+    getCustomizedNewsDetail({id}).then(res => {
+      this.setData({
+        info: { ...res.data }
+      })
+    })
+  },
   onReady() {
 
   },

--
Gitblit v1.9.3