From 338ad19ee45b5380a0d8433cbbce2a727a576dfa Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 19 四月 2024 17:34:36 +0800 Subject: [PATCH] bug2 --- packageDomain/pages/resourceDetails/myVideo/index.js | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 695ebd3..b9898fc 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.js +++ b/packageDomain/pages/resourceDetails/myVideo/index.js @@ -10,7 +10,7 @@ noteList: [], navBarHeight: '', barHeight: '', - flag: false, // 杈撳叆妗嗘槸鍚︽樉绀� + flag: true, // 杈撳叆妗嗘槸鍚︽樉绀� tabPanelstyle: 'display:flex;justify-content:center;align-items:center;', activeValues: [0], dialogKey: false, @@ -59,6 +59,11 @@ */ onLoad(options) { + wx.setNavigationBarTitle({ + + title: '璧勬簮璇︽儏-闊抽' + + }); const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� @@ -70,12 +75,16 @@ bookId: options.bookId, bookName: options.bookName, cmsId: options.cmsId, - parentName: options.parentName, parentProductLinkPath: options.parentProductLinkPath, productLinkPath: options.productLinkPath, formPath: options.formPath, flag: false }) + if (options.parentName !== "鏁欏璧勬簮" && options.parentName !== "浜戝涔�") { + this.setData({ + parentName: options.parentName, + }) + } console.log(options, 'options'); this.resourceDetailsData() this.getNoteList() @@ -179,10 +188,10 @@ showDialog(e) { this.setData({ - submitTitle: this.data.bookName, - dialogKey: true, - textvalue: '' + dialogKey: true, + textvalue: '', + submitTitle: this.data.titleName }); }, @@ -337,7 +346,7 @@ // 鏍囬杈撳叆妗嗗�� inputChange(e) { this.setData({ - titleName: e.detail.value + submitTitle: e.detail.value }) }, @@ -347,7 +356,7 @@ icon: 'error', title: '璇峰~鍐欑瑪璁板唴瀹�', }) - } else if (!this.data.titleName) { + } else if (!this.data.submitTitle) { return wx.showToast({ icon: 'error', title: '璇峰~鍐欑瑪璁版爣棰�', @@ -430,11 +439,9 @@ submitType: "edit", textvalue: note.content, submitTitle: note.name, - noteId: note.id, dialogKey: true, }) - console.log(this.data.submitTitle); // this.showDialog() }, @@ -519,7 +526,7 @@ return wx.getUserProfile({ desc: '鐢ㄦ埛鐧诲綍', success: (res) => { - // console.log(res); + console.log(res); } }) } -- Gitblit v1.9.1