🎈 perf(邀请好友): 添加下拉刷新功能

This commit is contained in:
xuan 2023-03-10 11:13:35 +08:00
parent f4e283a81c
commit b5296aa204
5 changed files with 15 additions and 3 deletions

View File

@ -3,6 +3,7 @@ export default {
navigationBarTextStyle: 'black',
navigationBarBackgroundColor: '#E4EEFD',
backgroundColor: '#E4EEFD',
enablePullDownRefresh: true,
enableShareAppMessage: true,
backgroundColorTop: '#E4EEFD',
}

View File

@ -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<InviteCodePopupRef>(null)
const handleQRcodeShare = async() => {

View File

@ -2,4 +2,5 @@ export default {
navigationBarTitleText: '邀请好友',
enableShareAppMessage: true,
navigationBarTextStyle: 'black',
enablePullDownRefresh: true,
}

View File

@ -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 (

View File

@ -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;