From 1b897c74e44d185669d87abd4c3a29c90d6fe225 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 19 七月 2024 20:10:27 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/pages/sets/protocol.js |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/wechat_staff/pages/sets/protocol.js b/wechat_staff/pages/sets/protocol.js
index b731e2f..0c310a4 100644
--- a/wechat_staff/pages/sets/protocol.js
+++ b/wechat_staff/pages/sets/protocol.js
@@ -1,20 +1,36 @@
 // pages/sets/protocol.js
+import { getDictData } from '../../api/index'
 Page({
 
   /**
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
-
+    content:''
   },
 
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
    */
   onLoad(options) {
-
+    console.log(options.type)
+    if(options.type == 1){
+      wx.setNavigationBarTitle({title:'闅愮鍗忚'}) 
+    }else{
+      wx.setNavigationBarTitle({title:'鐢ㄦ埛鍗忚'})  
+    }
+    this.loadDict(options.type); 
   },
-
+  loadDict(type){
+    //type ==0 鐢ㄦ埛鍗忚锛屽惁鍒欓殣绉佸崗璁�
+    const label = type == 1?'PRIVACY_AGREEMENT':'SERVER_AGREEMENT'
+    getDictData({
+      code: 'ZBOM_CUSTOMIZED',
+      label: label
+    }).then(res => {
+      this.setData({ content: res.data.code })
+    })
+  },
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
    */

--
Gitblit v1.9.3