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_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