From 6e18cc6b4f896b7534e20dccd0b64920e672da9a Mon Sep 17 00:00:00 2001 From: wwl Date: Wed, 3 Apr 2024 10:53:24 +0800 Subject: [PATCH] fix bug --- .env.development | 10 +++++----- project.config.json | 2 +- src/components/sp-page/index.js | 7 ++++--- src/subpages/member/index.js | 7 ++++--- src/subpages/member/user-info.js | 6 +++--- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.env.development b/.env.development index 19ff852..008f505 100755 --- a/.env.development +++ b/.env.development @@ -1,15 +1,15 @@ -APP_BASE_URL=http://47.103.169.154:8080/api/h5app/wxapp -APP_WEBSOCKET=wss://http://47.103.169.154:8080/ws +APP_BASE_URL=https://test.birkenstock.net.cn/api/h5app/wxapp +APP_WEBSOCKET=wss://test.birkenstock.net.cn/ws APP_COMPANY_ID=1 APP_PLATFORM=standard -APP_CUSTOM_SERVER=http://47.103.169.154:8081/ +APP_CUSTOM_SERVER=https://test.birkenstock.net.cn/ APP_HOME_PAGE=/pages/index APP_TRACK=youshu APP_YOUSHU_TOKEN=bi281e87ab2424481a # APP_ID=wx3e1c17c88abf3e45 -APP_ID=wx55ff808ba0e28b1d +APP_ID=wx72e9e1a93420862c APP_MAP_KEY=1ccc1ebc947719886f0cd766d70241fe -APP_MAP_NAME=oneX新零售门店定位 +APP_MAP_NAME=BIRKENSTOCK门店定位 APP_IMAGE_CDN=https://b-img-cdn.yuanyuanke.cn/ecshopx-vshop APP_IMAGE_CDN_NEW=https://espier-oss-cdn.oss-cn-shanghai.aliyuncs.com/default_project/wxAssets APP_DIANWU_URL= diff --git a/project.config.json b/project.config.json index 36cad77..148f96e 100755 --- a/project.config.json +++ b/project.config.json @@ -2,7 +2,7 @@ "miniprogramRoot": "dist/", "projectname": "ecshopx-vshop", "description": "weshop for platform", - "appid": "wx55ff808ba0e28b1d", + "appid": "wx72e9e1a93420862c", "setting": { "urlCheck": false, "es6": false, diff --git a/src/components/sp-page/index.js b/src/components/sp-page/index.js index c7a4844..ab43a44 100755 --- a/src/components/sp-page/index.js +++ b/src/components/sp-page/index.js @@ -48,7 +48,7 @@ function SpPage (props, ref) { isTop = false, isBlack = false, title = '', // 页面导航标题 - showNavLogo = true, + showNavLogo = false, showNavkfIcon = false, showNavHomeIcon = false, showNavSearchIcon = false, @@ -133,7 +133,8 @@ function SpPage (props, ref) { draft.pageTitle = pageTitle draft.isTabBarPage = isTabBarPage draft.showLeftContainer = !['/subpages/guide/index', '/pages/index'].includes(`/${page?.route}`) - draft.showCustomNavigation = ['/pages/cart/espier-index', '/pages/index', '/subpages/member/index', '/pages/category/index', '/pages/recommend/list', '/pages/recommend/list'].includes(`/${page?.route}`) + // '/subpages/member/index', + draft.showCustomNavigation = ['/pages/cart/espier-index', '/pages/index', '/pages/category/index', '/pages/recommend/list'].includes(`/${page?.route}`) // draft.showCustomNavigation = true draft.showNavCartIcon = ['/subpages/marketing/coupon-center', '/subpages/marketing/coupon', '/pages/item/list'].includes(`/${page?.route}`) }) @@ -257,7 +258,7 @@ function SpPage (props, ref) { } } - renderTitle = showCustomNavigation && showNavLogo ? : undefined + renderTitle = showCustomNavigation || showNavLogo ? : undefined const navigationBarTitleText = props.navigationBarTitleText || getCurrentInstance().page?.config?.navigationBarTitleText return ( } isTop> + } title='' showNavSearchIcon={false} showNavLogo isBlack isTop> { - Taro.navigateTo({ url: '/subpages/member/member-level' }) + // Taro.navigateTo({ url: '/subpages/member/member-level' }) }}>{ vipInfo.isVip ? vipInfo.grade_name || '会员' : userInfo?.gradeInfo?.grade_name || '' } - + + {/* */} } diff --git a/src/subpages/member/user-info.js b/src/subpages/member/user-info.js index bcb8574..a583897 100755 --- a/src/subpages/member/user-info.js +++ b/src/subpages/member/user-info.js @@ -20,7 +20,7 @@ const initialState = { showCheckboxPicker: false, checkboxKey: '', checkboxList: [], - checked: false, + checked: true, info: {}, areaList: [], multiIndex: [], @@ -618,9 +618,9 @@ function MemberUserInfo () { {/* 选中 */} - setState((draft) => { draft.checked = !checked })} /> + setState((draft) => { draft.checked = !checked })} /> - setState((draft) => { draft.checked = !draft.checked })} >我已经阅读并同意 + false && setState((draft) => { draft.checked = !draft.checked })} >我已经阅读并同意 Taro.navigateTo({ url: '/subpages/auth/reg-rule?type=member_register' })} style={`color: #000000`}