🎈 perf(邀请好友): 添加下拉刷新功能
This commit is contained in:
parent
f4e283a81c
commit
b5296aa204
@ -3,6 +3,7 @@ export default {
|
|||||||
navigationBarTextStyle: 'black',
|
navigationBarTextStyle: 'black',
|
||||||
navigationBarBackgroundColor: '#E4EEFD',
|
navigationBarBackgroundColor: '#E4EEFD',
|
||||||
backgroundColor: '#E4EEFD',
|
backgroundColor: '#E4EEFD',
|
||||||
|
enablePullDownRefresh: true,
|
||||||
enableShareAppMessage: true,
|
enableShareAppMessage: true,
|
||||||
backgroundColorTop: '#E4EEFD',
|
backgroundColorTop: '#E4EEFD',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Canvas, Image, Text, View } from '@tarojs/components'
|
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 { useRef, useState } from 'react'
|
||||||
import styles from './index.module.scss'
|
import styles from './index.module.scss'
|
||||||
import useLogin from '@/use/useLogin'
|
import useLogin from '@/use/useLogin'
|
||||||
@ -60,6 +60,7 @@ const BindSalesman = () => {
|
|||||||
total: res.data.list.length,
|
total: res.data.list.length,
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
|
Taro.stopPullDownRefresh()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,6 +68,10 @@ const BindSalesman = () => {
|
|||||||
getInviteeRecord()
|
getInviteeRecord()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
usePullDownRefresh(async() => {
|
||||||
|
getInviteeRecord()
|
||||||
|
})
|
||||||
|
|
||||||
const inviteCodePopupRef = useRef<InviteCodePopupRef>(null)
|
const inviteCodePopupRef = useRef<InviteCodePopupRef>(null)
|
||||||
|
|
||||||
const handleQRcodeShare = async() => {
|
const handleQRcodeShare = async() => {
|
||||||
|
|||||||
@ -2,4 +2,5 @@ export default {
|
|||||||
navigationBarTitleText: '邀请好友',
|
navigationBarTitleText: '邀请好友',
|
||||||
enableShareAppMessage: true,
|
enableShareAppMessage: true,
|
||||||
navigationBarTextStyle: 'black',
|
navigationBarTextStyle: 'black',
|
||||||
|
enablePullDownRefresh: true,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,7 +184,7 @@ const AddressInfoDetail = ({ onSelect, onChangeShipmentMode, orderInfo, status =
|
|||||||
|
|
||||||
const handleTips = (e) => {
|
const handleTips = (e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
Taro.showToast({ title: '暂不支持提货', icon: 'none' })
|
Taro.showToast({ title: '若需自提请联系客服', icon: 'none' })
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -321,7 +321,12 @@
|
|||||||
height: 136px;
|
height: 136px;
|
||||||
box-shadow: 0px 0px 9px 0px rgba(202, 214, 255, 0.49);
|
box-shadow: 0px 0px 9px 0px rgba(202, 214, 255, 0.49);
|
||||||
box-sizing: border-box;
|
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_price {
|
||||||
.earnings_title {
|
.earnings_title {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user