From 288993254b9c5cf301ba915d8c72397a9879e043 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Thu, 18 Aug 2022 18:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8E=9F=E7=94=9F=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E4=B8=8Epicker=E7=9A=84=E5=B1=82=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- custom-tab-bar/index.js | 15 +++++++++++++-- custom-tab-bar/index.wxml | 2 +- pages/new-page/index.js | 5 +++++ pages/new-page/index.wxml | 4 ++-- 5 files changed, 22 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 98fe64b..3a7aa54 100644 --- a/app.js +++ b/app.js @@ -19,7 +19,7 @@ App({ wx.setStorageSync('urlPath', urlPath); let hInfo = wx.getAccountInfoSync(); // console.log(hInfo.envVersion);//develop:开发版 trial:体验版 release:正式版 - if(hInfo.miniProgram.envVersion != "develop"){ + if(hInfo.miniProgram.envVersion == "release"){ console.log = () =>{} } // this.setOpenid() diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index a40fb77..a54aaa4 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -27,9 +27,20 @@ Component({ "selectedIconPath": "/img/nav/menuIndex.png", "text": "我要碳中和" } - ] + ], + opacityNum:1 + }, + onload() { + + }, + attached() { + wx.setStorageSync('opacity',1); + setInterval(()=>{ + this.setData({ + opacityNum:wx.getStorageSync('opacity') + }) + },100) }, - attached() {}, methods: { switchTab(e) { // console.log(e) diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 4b4f13f..9fe4b32 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -1,5 +1,5 @@ - + diff --git a/pages/new-page/index.js b/pages/new-page/index.js index 912f0a4..d505f60 100644 --- a/pages/new-page/index.js +++ b/pages/new-page/index.js @@ -2,7 +2,12 @@ var urlPath = require('../../config.js'); Page({ + // 隐藏底部导航 + hideEv(){ + wx.setStorageSync('opacity',0); + }, bindDateChange: function(e) { + wx.setStorageSync('opacity',1); this.setData({ [e.mark.type + '_date']: e.detail.value }) diff --git a/pages/new-page/index.wxml b/pages/new-page/index.wxml index d62db07..d90dbf5 100644 --- a/pages/new-page/index.wxml +++ b/pages/new-page/index.wxml @@ -30,13 +30,13 @@ - + {{start_date?start_date:'请选择开始时间'}} - + {{end_date?end_date:'请选择结束时间'}}