|
@@ -12,7 +12,7 @@ interface Props {
|
|
}
|
|
}
|
|
|
|
|
|
function My(props: Props) {
|
|
function My(props: Props) {
|
|
- let { userInfoStore } = props.store
|
|
|
|
|
|
+ let { userInfoStore, indexStore } = props.store
|
|
const [payType, setPayType] = useState<"shubi" | "vip">("shubi")
|
|
const [payType, setPayType] = useState<"shubi" | "vip">("shubi")
|
|
|
|
|
|
//支付弹窗
|
|
//支付弹窗
|
|
@@ -25,7 +25,7 @@ function My(props: Props) {
|
|
useDidHide(() => {
|
|
useDidHide(() => {
|
|
ModalStore.hideModal()
|
|
ModalStore.hideModal()
|
|
});
|
|
});
|
|
- console.log("个人信息:",userInfoStore)
|
|
|
|
|
|
+ console.log("个人信息:", userInfoStore)
|
|
return <View className='my'>
|
|
return <View className='my'>
|
|
<View className="userInfo">
|
|
<View className="userInfo">
|
|
{/* <Image src={require('../../icon/myBack.png')} /> */}
|
|
{/* <Image src={require('../../icon/myBack.png')} /> */}
|
|
@@ -69,8 +69,8 @@ function My(props: Props) {
|
|
</View>
|
|
</View>
|
|
{/* 付费功能 */}
|
|
{/* 付费功能 */}
|
|
<IosShowPay>
|
|
<IosShowPay>
|
|
- {/* vip续费 */}
|
|
|
|
- <View className="bottom">
|
|
|
|
|
|
+ {/* vip续费 模板存在才显示*/}
|
|
|
|
+ {!!indexStore?.rechargeTemplate?.find(item => item.templateType === 2) && <View className="bottom">
|
|
<View>
|
|
<View>
|
|
<View className="left">
|
|
<View className="left">
|
|
<Image lazy-load src={require('../../icon/VIP.png')} />
|
|
<Image lazy-load src={require('../../icon/VIP.png')} />
|
|
@@ -86,9 +86,9 @@ function My(props: Props) {
|
|
}}>{userInfoStore.isVip ? '立即续费' : '立即开通'}</View>
|
|
}}>{userInfoStore.isVip ? '立即续费' : '立即开通'}</View>
|
|
</View>
|
|
</View>
|
|
<Image lazy-load src={require('../../icon/vipBack.png')} />
|
|
<Image lazy-load src={require('../../icon/vipBack.png')} />
|
|
- </View>
|
|
|
|
- {/*我的账户 */}
|
|
|
|
- <View className='account_info'>
|
|
|
|
|
|
+ </View>}
|
|
|
|
+ {/*我的账户 模板存在才显示*/}
|
|
|
|
+ {!!indexStore?.rechargeTemplate?.find(item => item.templateType === 1) && <View className='account_info'>
|
|
<View className='account_info_title'>我的账户</View>
|
|
<View className='account_info_title'>我的账户</View>
|
|
<View className='account_info_content'>
|
|
<View className='account_info_content'>
|
|
<View className='account_info_content_left'>
|
|
<View className='account_info_content_left'>
|
|
@@ -105,7 +105,7 @@ function My(props: Props) {
|
|
payBtn(e, "shubi")
|
|
payBtn(e, "shubi")
|
|
}}>充值</View>
|
|
}}>充值</View>
|
|
</View>
|
|
</View>
|
|
- </View>
|
|
|
|
|
|
+ </View>}
|
|
{/* 支付弹窗 */}
|
|
{/* 支付弹窗 */}
|
|
<GlobalModal type={payType} isBook={false} />
|
|
<GlobalModal type={payType} isBook={false} />
|
|
</IosShowPay>
|
|
</IosShowPay>
|