|
@@ -8,6 +8,7 @@ import { inject, observer } from "mobx-react";
|
|
import { getEnum } from "@src/utils";
|
|
import { getEnum } from "@src/utils";
|
|
interface Props {
|
|
interface Props {
|
|
store?: Store;
|
|
store?: Store;
|
|
|
|
+ mar0?: boolean
|
|
}
|
|
}
|
|
function VipBox(props?: Props) {
|
|
function VipBox(props?: Props) {
|
|
let { pay } = usePay()
|
|
let { pay } = usePay()
|
|
@@ -19,7 +20,7 @@ function VipBox(props?: Props) {
|
|
let thatData = props?.store?.indexStore?.rechargeTemplate?.find(item => item.templateType === 2)
|
|
let thatData = props?.store?.indexStore?.rechargeTemplate?.find(item => item.templateType === 2)
|
|
let datas = thatData?.rechargeConfigs[0]?.rechargeConfigList
|
|
let datas = thatData?.rechargeConfigs[0]?.rechargeConfigList
|
|
if (datas?.length > 0) {
|
|
if (datas?.length > 0) {
|
|
- setApp({payData:datas[0]})
|
|
|
|
|
|
+ setApp({ payData: datas[0] })
|
|
setPayData(datas[0])
|
|
setPayData(datas[0])
|
|
}
|
|
}
|
|
return datas
|
|
return datas
|
|
@@ -48,7 +49,7 @@ function VipBox(props?: Props) {
|
|
setPayData(item)
|
|
setPayData(item)
|
|
}}>
|
|
}}>
|
|
<View className="vip_box_tip">{item?.subscript}</View>
|
|
<View className="vip_box_tip">{item?.subscript}</View>
|
|
- <View className="vip_box_title">{vipList?.find(i=>i.value === item.vipDays)?.text?.replace('会员','')}</View>
|
|
|
|
|
|
+ <View className="vip_box_title">{vipList?.find(i => i.value === item.vipDays)?.text?.replace('会员', '')}</View>
|
|
<View className="vip_box_num">{item?.price}元</View>
|
|
<View className="vip_box_num">{item?.price}元</View>
|
|
{/* <View className="vip_box_price"></View> */}
|
|
{/* <View className="vip_box_price"></View> */}
|
|
<View className="vip_box_give">{item?.obtain}元/天</View>
|
|
<View className="vip_box_give">{item?.obtain}元/天</View>
|
|
@@ -57,7 +58,7 @@ function VipBox(props?: Props) {
|
|
}
|
|
}
|
|
</ScrollView>
|
|
</ScrollView>
|
|
<View className="vip_box_btn" onClick={() => { setOk(true); pay() }}>确认协议并支付{payData?.price}元</View>
|
|
<View className="vip_box_btn" onClick={() => { setOk(true); pay() }}>确认协议并支付{payData?.price}元</View>
|
|
- <View className="vip_box_gz">
|
|
|
|
|
|
+ <View className={`vip_box_gz ${props?.mar0 ? "mar_bom_0" : ""}`}>
|
|
<RadioGroup onChange={(e: any) => {
|
|
<RadioGroup onChange={(e: any) => {
|
|
setOk(true)
|
|
setOk(true)
|
|
}}>
|
|
}}>
|