From 39613118a5bae23c45498c4f5a939e83595f99f5 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 16 七月 2024 16:05:00 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
 wechat_jiaxuan/pages/sets/protocol.js |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/wechat_jiaxuan/pages/sets/protocol.js b/wechat_jiaxuan/pages/sets/protocol.js
index b731e2f..78b5c1b 100644
--- a/wechat_jiaxuan/pages/sets/protocol.js
+++ b/wechat_jiaxuan/pages/sets/protocol.js
@@ -1,25 +1,36 @@
-// pages/sets/protocol.js
+import {
+  getDictData
+} from '../../api/index'
 Page({
 
   /**
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
-
+    label: '',
+    activeHtml: ''
   },
 
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
    */
   onLoad(options) {
-
+    const { label } = options
+    this.initData(label)
   },
 
-  /**
-   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
-   */
-  onReady() {
-
+  initData(label){
+    getDictData({
+      code: 'ZBOM_CUSTOMIZED',
+      label
+    }).then(res => {
+      wx.setNavigationBarTitle({
+        title: res.data.remark
+      })
+      this.setData({
+        activeHtml: res.data.code
+      })
+    })
   },
 
   /**
--
Gitblit v1.9.3