From a93496ffe02ae8a97ac582a5c0a5d9ac1f7ba10f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 16 七月 2024 14:49:00 +0800
Subject: [PATCH] wxmini
---
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