From b5296aa2045da6309e39a260594cd8dc7446cb25 Mon Sep 17 00:00:00 2001 From: xuan Date: Fri, 10 Mar 2023 11:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf(=E9=82=80=E8=AF=B7=E5=A5=BD?= =?UTF-8?q?=E5=8F=8B):=20=E6=B7=BB=E5=8A=A0=E4=B8=8B=E6=8B=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inviteCode/index.config.ts | 1 + src/pages/inviteCode/index.tsx | 7 ++++++- src/pages/inviteCode/inviteFriends/index.config.ts | 1 + src/pages/order/components/addressInfoDetail/index.tsx | 2 +- src/pages/user/index.module.scss | 7 ++++++- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/inviteCode/index.config.ts b/src/pages/inviteCode/index.config.ts index 686bea4..da74975 100644 --- a/src/pages/inviteCode/index.config.ts +++ b/src/pages/inviteCode/index.config.ts @@ -3,6 +3,7 @@ export default { navigationBarTextStyle: 'black', navigationBarBackgroundColor: '#E4EEFD', backgroundColor: '#E4EEFD', + enablePullDownRefresh: true, enableShareAppMessage: true, backgroundColorTop: '#E4EEFD', } diff --git a/src/pages/inviteCode/index.tsx b/src/pages/inviteCode/index.tsx index c09863d..fe3dd8c 100644 --- a/src/pages/inviteCode/index.tsx +++ b/src/pages/inviteCode/index.tsx @@ -1,5 +1,5 @@ import { Canvas, Image, Text, View } from '@tarojs/components' -import Taro, { useReady } from '@tarojs/taro' +import Taro, { usePullDownRefresh, useReady } from '@tarojs/taro' import { useRef, useState } from 'react' import styles from './index.module.scss' import useLogin from '@/use/useLogin' @@ -60,6 +60,7 @@ const BindSalesman = () => { total: res.data.list.length, }, })) + Taro.stopPullDownRefresh() } } @@ -67,6 +68,10 @@ const BindSalesman = () => { getInviteeRecord() }) + usePullDownRefresh(async() => { + getInviteeRecord() + }) + const inviteCodePopupRef = useRef(null) const handleQRcodeShare = async() => { diff --git a/src/pages/inviteCode/inviteFriends/index.config.ts b/src/pages/inviteCode/inviteFriends/index.config.ts index 32067c2..c669b7a 100644 --- a/src/pages/inviteCode/inviteFriends/index.config.ts +++ b/src/pages/inviteCode/inviteFriends/index.config.ts @@ -2,4 +2,5 @@ export default { navigationBarTitleText: '邀请好友', enableShareAppMessage: true, navigationBarTextStyle: 'black', + enablePullDownRefresh: true, } diff --git a/src/pages/order/components/addressInfoDetail/index.tsx b/src/pages/order/components/addressInfoDetail/index.tsx index 2441adf..220df82 100644 --- a/src/pages/order/components/addressInfoDetail/index.tsx +++ b/src/pages/order/components/addressInfoDetail/index.tsx @@ -184,7 +184,7 @@ const AddressInfoDetail = ({ onSelect, onChangeShipmentMode, orderInfo, status = const handleTips = (e) => { e.stopPropagation() - Taro.showToast({ title: '暂不支持提货', icon: 'none' }) + Taro.showToast({ title: '若需自提请联系客服', icon: 'none' }) } return ( diff --git a/src/pages/user/index.module.scss b/src/pages/user/index.module.scss index e595454..afadf40 100644 --- a/src/pages/user/index.module.scss +++ b/src/pages/user/index.module.scss @@ -321,7 +321,12 @@ height: 136px; box-shadow: 0px 0px 9px 0px rgba(202, 214, 255, 0.49); box-sizing: border-box; - background: url('https://cdn.zzfzyc.com/mall/cash_back_bar.png') center center no-repeat; + background-image: url(https://cdn.zzfzyc.com/mall/cash_back_bar.png); + background-position: top -10px left -10px; + background-repeat: no-repeat; + background-size: 115% 115%; + border-radius: 16px; + overflow: hidden; .earnings_price { .earnings_title { font-size: 24px;