From a75b18a4157ab486e0b51c438ac165ab3a08e3e0 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 25 七月 2024 18:10:00 +0800
Subject: [PATCH] 代码提交
---
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..80fd810 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