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;