🎈 perf(邀请好友): 添加下拉刷新功能
This commit is contained in:
parent
f4e283a81c
commit
b5296aa204
@ -3,6 +3,7 @@ export default {
|
||||
navigationBarTextStyle: 'black',
|
||||
navigationBarBackgroundColor: '#E4EEFD',
|
||||
backgroundColor: '#E4EEFD',
|
||||
enablePullDownRefresh: true,
|
||||
enableShareAppMessage: true,
|
||||
backgroundColorTop: '#E4EEFD',
|
||||
}
|
||||
|
||||
@ -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() => {
|
||||
|
||||
@ -2,4 +2,5 @@ export default {
|
||||
navigationBarTitleText: '邀请好友',
|
||||
enableShareAppMessage: true,
|
||||
navigationBarTextStyle: 'black',
|
||||
enablePullDownRefresh: true,
|
||||
}
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user