main
王文龙 2024-02-08 18:21:36 +08:00
parent 7dee2fac1f
commit 9ffd570fbb
8 changed files with 17 additions and 55 deletions

View File

@ -65,6 +65,7 @@ function SpLogin (props, ref) {
} }
const handleBindPhone = async (e) => { const handleBindPhone = async (e) => {
setLoginModal(false)
const { encryptedData, iv, cloudID } = e.detail const { encryptedData, iv, cloudID } = e.detail
if (encryptedData && iv) { if (encryptedData && iv) {
const code = codeRef.current const code = codeRef.current
@ -234,7 +235,7 @@ function SpLogin (props, ref) {
</AtButton>} </AtButton>}
</View> </View>
</View> */} </View> */}
<View className="curtain_content"> {<View className="curtain_content">
<View className="curtain_content_title"> <View className="curtain_content_title">
<SpImage src={`member/logo-black.png`} height={32} mode='heightFix' isNew /> <SpImage src={`member/logo-black.png`} height={32} mode='heightFix' isNew />
<View className="">隐私政策</View> <View className="">隐私政策</View>
@ -258,10 +259,8 @@ function SpLogin (props, ref) {
</View> </View>
</ScrollView> </ScrollView>
<View className='btn-wrap'> <View className='btn-wrap'>
{isNewUser && <AtButton className='btn' type='primary' openType="getPhoneNumber" onGetPhoneNumber={(e) => { {isNewUser && <AtButton className='btn' type='primary' openType="getPhoneNumber" onGetPhoneNumber={handleBindPhone
setLoginModal(false) }>
handleBindPhone(e)
}}>
同意并继续 同意并继续
</AtButton>} </AtButton>}
{!isNewUser && <AtButton className='btn' type='primary' onClick={handleUserLogin}> {!isNewUser && <AtButton className='btn' type='primary' onClick={handleUserLogin}>
@ -272,7 +271,7 @@ function SpLogin (props, ref) {
<View className="no-text"> <View className="no-text">
*如果您不同意Birkenstock隐私政策您可继续浏览小程序但您无法使用购物结算功能 *如果您不同意Birkenstock隐私政策您可继续浏览小程序但您无法使用购物结算功能
</View> </View>
</View> </View>}
</AtCurtain> </AtCurtain>
</View> </View>
) )

View File

@ -16,9 +16,9 @@ const initState = {
privacy: '' privacy: ''
} }
function SpPrivacyModal(props) { function SpPrivacyModal (props) {
const { login, updatePolicyTime, getUserInfoAuth } = useLogin() const { login, updatePolicyTime, getUserInfoAuth } = useLogin()
const { open = false, onCancel = () => {}, onConfirm = () => {} } = props const { open = false, onCancel = () => { }, onConfirm = () => { } } = props
const [info, setInfo] = useImmer(initState) const [info, setInfo] = useImmer(initState)
useEffect(() => { useEffect(() => {
if (open) { if (open) {

View File

@ -49,7 +49,7 @@
.select { .select {
position: absolute; position: absolute;
top: 156px; top: 156px;
right: 100px; right: 50px;
font-size: 22px; font-size: 22px;
} }
} }

View File

@ -37,6 +37,7 @@ export default (props = {}) => {
const login = async () => { const login = async () => {
if (isWeixin || isAlipay) { if (isWeixin || isAlipay) {
// await getUserInfoAuth(false)
// 隐私协议 // 隐私协议
// const checkResult = await checkPolicyChange() // const checkResult = await checkPolicyChange()
// if (checkResult) { // if (checkResult) {

View File

@ -431,7 +431,7 @@ function CartIndex () {
) )
})} })}
</View> </View>
{invalidCart.length > 0 && ( {false && invalidCart.length > 0 && (
<View className='invalid-cart-block'> <View className='invalid-cart-block'>
<View className='shop-cart-item'> <View className='shop-cart-item'>
<View className='shop-cart-item-hd-disabeld'>已失效商品</View> <View className='shop-cart-item-hd-disabeld'>已失效商品</View>

View File

@ -330,7 +330,7 @@ function EspierDetail (props) {
const res = await api.member.itemHistory() const res = await api.member.itemHistory()
setState((draft) => { setState((draft) => {
draft.historyList = res.list.filter((item) => item.item_id !== data.itemId)?.map((item) => ({ ...item.itemData, pic: item.itemData.pics?.[0] || '' })) || [] draft.historyList = res.list.filter((item) => item.item_id !== data.itemId && !!item.itemData?.item_id)?.map((item) => ({ ...item.itemData, pic: item.itemData.pics?.[0] || '' })) || []
draft.historyTotal = res.total_count draft.historyTotal = res.total_count
}) })
@ -480,7 +480,7 @@ function EspierDetail (props) {
interval={3000} interval={3000}
circular circular
> >
{(info.imgs || swiperList).map((img, idx) => ( {(swiperList || info.imgs).map((img, idx) => (
<SwiperItem key={`swiperitem__${idx}`}> <SwiperItem key={`swiperitem__${idx}`}>
<SpImage <SpImage
mode='aspectFill' mode='aspectFill'
@ -735,7 +735,7 @@ function EspierDetail (props) {
draft.skuText = skuText draft.skuText = skuText
draft.curItem = curItem draft.curItem = curItem
// 不切换顶部轮播图 // 不切换顶部轮播图
// draft.swiperList = curItem?.specItem?.[idx]?.specImgs draft.swiperList = curItem?.specItem?.[idx]?.specImgs
draft.selSkuImg = curItem.specItem?.[0]?.specImgs?.[0] draft.selSkuImg = curItem.specItem?.[0]?.specImgs?.[0]
}) })
}} }}

View File

@ -299,10 +299,10 @@ export default class ItemFav extends Component {
onClick={() => this.handleClickItem(item)} onClick={() => this.handleClickItem(item)}
isPointitem={item.item_type === 'pointsmall'} isPointitem={item.item_type === 'pointsmall'}
/> */} /> */}
<Image className="goods-list__item__img" src={item.img}></Image> <Image className="goods-list__item__img" src={item.img} onClick={() => this.handleClickItem(item)}></Image>
<View className="goods-list__item__right"> <View className="goods-list__item__right">
<View className="goods-list__item__right__title">{item.title}</View> <View className="goods-list__item__right__title" onClick={() => this.handleClickItem(item)}>{item.title}</View>
<View className="goods-list__item__right__price"><Text className="goods-list__item__right__price__symbol">¥</Text>{item.price}</View> <View className="goods-list__item__right__price" onClick={() => this.handleClickItem(item)}><Text className="goods-list__item__right__price__symbol">¥</Text>{item.price}</View>
<View className="goods-list__item__right__footer"> <View className="goods-list__item__right__footer">
<View className="goods-list__item__right__footer__fav"> <View className="goods-list__item__right__footer__fav">
<Text className="goods-list__item__right__footer__fav__num">{item.fav_num}+</Text> <Text className="goods-list__item__right__footer__fav__num">{item.fav_num}+</Text>

View File

@ -108,7 +108,7 @@ function MemberIndex (props) {
// console.log('===>getCurrentPages==>', getCurrentPages(), getCurrentInstance()) // console.log('===>getCurrentPages==>', getCurrentPages(), getCurrentInstance())
const $instance = getCurrentInstance() const $instance = getCurrentInstance()
const { isLogin, isNewUser, login, getUserInfoAuth } = useLogin({ const { isLogin, isNewUser, login, getUserInfoAuth } = useLogin({
autoLogin: false, autoLogin: true,
// policyUpdateHook: (isUpdate) => { // policyUpdateHook: (isUpdate) => {
// // isUpdate && setPolicyModal(true) // // isUpdate && setPolicyModal(true)
// if (isUpdate) { // if (isUpdate) {
@ -706,44 +706,6 @@ function MemberIndex (props) {
</View> </View>
</View> </View>
</View> </View>
{state.isOpen && <View className={`${state.isOpen ? 'show ' : 'hide '}` + 'curtain-block'} onClick={() => setState((draft) => { draft.isOpen = false })}>
<View className="curtain-block_mask">
<View className="curtain-block_content">
<View className="curtain-block_content_title">
<SpImage src={`member/logo-black.png`} height={32} mode='heightFix' isNew />
<View className="">隐私政策</View>
</View>
<ScrollView scrollY
scrollWithAnimation className="curtain-block_content_text" showScrollbar={false} enhanced>
亲爱的用户,感谢您使用Birkenstock微信小程序!为了加强对您个人信息的保护,我们根据最新法律的要求制定/更新了隐私政策,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
本政策旨在向您说明休迪贸易 (上海)有限公司及其在中国大陆境内的线上线下门店如何收集使用传输和保护您的个人信息
通过隐私政策,我们向您主要说明:
1.您在使用Birkenstock微信小程序时,可以选择浏览模式,也可以选择注册/登录成为Birkenstock微信小程序用户
2为了向你提供Birkenstock微信小程序的其本服条,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
本政策旨在向您说明休迪贸易 (上海)有限公司及其在中国大陆境内的线上线下门店如何收集使用传输和保护您的个人信息
通过隐私政策,我们向您主要说明:
1.您在使用Birkenstock微信小程序时,可以选择浏览模式,也可以选择注册/登录成为Birkenstock微信小程序用户
2为了向你提供Birkenstock微信小程序的其本服条,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
本政策旨在向您说明休迪贸易 (上海)有限公司及其在中国大陆境内的线上线下门店如何收集使用传输和保护您的个人信息
通过隐私政策,我们向您主要说明:
1.您在使用Birkenstock微信小程序时,可以选择浏览模式,也可以选择注册/登录成为Birkenstock微信小程序用户
2为了向你提供Birkenstock微信小程序的其本服条,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
本政策旨在向您说明休迪贸易 (上海)有限公司及其在中国大陆境内的线上线下门店如何收集使用传输和保护您的个人信息
通过隐私政策,我们向您主要说明:
1.您在使用Birkenstock微信小程序时,可以选择浏览模式,也可以选择注册/登录成为Birkenstock微信小程序用户
2为了向你提供Birkenstock微信小程序的其本服条,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
本政策旨在向您说明休迪贸易 (上海)有限公司及其在中国大陆境内的线上线下门店如何收集使用传输和保护您的个人信息
通过隐私政策,我们向您主要说明:
1.您在使用Birkenstock微信小程序时,可以选择浏览模式,也可以选择注册/登录成为Birkenstock微信小程序用户
2为了向你提供Birkenstock微信小程序的其本服条
</ScrollView>
<AtButton type='primary' className='btn' onClick={() => setState((draft) => { draft.isOpen = false })}>同意并继续</AtButton>
{/* <AtButton type='secondary' onClick={() => setState((draft) => { draft.isOpen = false })}>不同意</AtButton> */}
<View className="no-btn">不同意</View>
</View>
</View>
</View>}
</SpPage> </SpPage>
) )
} }