update
parent
0206b16e3b
commit
2f7c194a98
|
|
@ -119,7 +119,8 @@
|
||||||
}
|
}
|
||||||
&__input-cnt {
|
&__input-cnt {
|
||||||
border-radius: 5px !important;
|
border-radius: 5px !important;
|
||||||
border: 1px solid #000;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #000;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,8 @@
|
||||||
line-height: 78rpx;
|
line-height: 78rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 1px solid #000;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #000;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import React, { useEffect, useState, useCallback, useRef, useImperativeHandle }
|
||||||
import { View, Text, Button, ScrollView } from '@tarojs/components'
|
import { View, Text, Button, ScrollView } from '@tarojs/components'
|
||||||
import { AtButton, AtCurtain } from 'taro-ui'
|
import { AtButton, AtCurtain } from 'taro-ui'
|
||||||
import { useImmer } from 'use-immer'
|
import { useImmer } from 'use-immer'
|
||||||
|
import { useSelector } from 'react-redux'
|
||||||
import S from '@/spx'
|
import S from '@/spx'
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { isWeixin, isAlipay, classNames, showToast, entryLaunch } from '@/utils'
|
import { isWeixin, isAlipay, classNames, showToast, entryLaunch } from '@/utils'
|
||||||
|
|
@ -26,6 +27,7 @@ function SpLogin (props, ref) {
|
||||||
// isUpdate && setPolicyModal(true)
|
// isUpdate && setPolicyModal(true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
const { appName } = useSelector((_state) => _state.sys)
|
||||||
const [isNewUser, setIsNewUser] = useState(false)
|
const [isNewUser, setIsNewUser] = useState(false)
|
||||||
const [policyModal, setPolicyModal] = useState(false)
|
const [policyModal, setPolicyModal] = useState(false)
|
||||||
const [loginModal, setLoginModal] = useState(false)
|
const [loginModal, setLoginModal] = useState(false)
|
||||||
|
|
@ -252,7 +254,7 @@ function SpLogin (props, ref) {
|
||||||
</View>
|
</View>
|
||||||
<ScrollView scrollY
|
<ScrollView scrollY
|
||||||
scrollWithAnimation className="curtain_content_text" showScrollbar={false} enhanced>
|
scrollWithAnimation className="curtain_content_text" showScrollbar={false} enhanced>
|
||||||
亲爱的用户,感谢您使用Birkenstock微信小程序!为了加强对您个人信息的保护,我们根据最新法律的要求制定/更新了
|
亲爱的用户,感谢您使用{appName}微信小程序!为了加强对您个人信息的保护,我们根据最新法律的要求制定/更新了
|
||||||
<View className="agreement-list">
|
<View className="agreement-list">
|
||||||
<Text className='agreement-name' onClick={handleClickPrivacy.bind(this, 'member_register')}>《{registerName}》</Text>和
|
<Text className='agreement-name' onClick={handleClickPrivacy.bind(this, 'member_register')}>《{registerName}》</Text>和
|
||||||
<Text className='agreement-name' onClick={handleClickPrivacy.bind(this, 'privacy')}>《{privacyName}》</Text>
|
<Text className='agreement-name' onClick={handleClickPrivacy.bind(this, 'privacy')}>《{privacyName}》</Text>
|
||||||
|
|
@ -262,10 +264,10 @@ function SpLogin (props, ref) {
|
||||||
通过《隐私政策》,我们向您主要说明:
|
通过《隐私政策》,我们向您主要说明:
|
||||||
</View>
|
</View>
|
||||||
<View className="">
|
<View className="">
|
||||||
1.您在使用Birkenstock微信小程序时,可以选择浏览模式,也可以选择注册/登录成为Birkenstock微信小程序用户
|
1.您在使用{appName}微信小程序时,可以选择浏览模式,也可以选择注册/登录成为{appName}微信小程序用户
|
||||||
</View>
|
</View>
|
||||||
<View className="">
|
<View className="">
|
||||||
2为了向你提供Birkenstock微信小程序的其本服条,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
|
2为了向你提供{appName}微信小程序的其本服条,我们将基于合法以及正当必要的原则,按照本政策的规定向您提供各项服务
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
<View className='btn-wrap'>
|
<View className='btn-wrap'>
|
||||||
|
|
@ -282,7 +284,7 @@ function SpLogin (props, ref) {
|
||||||
</View>
|
</View>
|
||||||
<View className="no-btn" onClick={() => setLoginModal(false)}>不同意</View>
|
<View className="no-btn" onClick={() => setLoginModal(false)}>不同意</View>
|
||||||
<View className="no-text">
|
<View className="no-text">
|
||||||
*如果您不同意Birkenstock隐私政策,您可继续浏览小程序,但您无法使用购物结算功能
|
*如果您不同意{appName}隐私政策,您可继续浏览小程序,但您无法使用购物结算功能
|
||||||
</View>
|
</View>
|
||||||
</View>}
|
</View>}
|
||||||
</AtCurtain>
|
</AtCurtain>
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,7 @@ export default (props = {}) => {
|
||||||
paySuccess(params, orderInfo)
|
paySuccess(params, orderInfo)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Taro.hideLoading()
|
||||||
console.error(e)
|
console.error(e)
|
||||||
payError(orderInfo)
|
payError(orderInfo)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,14 @@ page {
|
||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
.content-box {
|
.content-box {
|
||||||
|
--height: calc(var(--status-bar-height) + #{$tabbar-height} + var(--area-bottom-height));
|
||||||
|
.fadeIn {
|
||||||
|
animation: fadeInAnimation 0.25s ease-in;
|
||||||
|
}
|
||||||
|
&.content-box-ovh {
|
||||||
|
overflow: hidden;
|
||||||
|
height: calc(100vh - var(--height));
|
||||||
|
}
|
||||||
.swiper-wapper {
|
.swiper-wapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
|
|
@ -68,12 +76,13 @@ page {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.swiper {
|
.swiper {
|
||||||
--height: calc(var(--status-bar-height) + #{$tabbar-height} + var(--area-bottom-height));
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// height: calc(100vh - #{$page-ipx-footer-height} - var(--status-bar-height));
|
// height: calc(100vh - #{$page-ipx-footer-height} - var(--status-bar-height));
|
||||||
height: calc(100vh - var(--height));
|
height: calc(100vh - var(--height));
|
||||||
transition: height 0.3s ease-in-out;
|
transition: height 0.2s linear;
|
||||||
animation: fadeInAnimation 0.35s ease-in;
|
animation: fadeInAnimation 0.25s ease-in;
|
||||||
|
transform: translateZ(0);
|
||||||
|
overflow: hidden;
|
||||||
// &.swiper-narrow {
|
// &.swiper-narrow {
|
||||||
// height: calc(100vh - 620px - #{$tabbar-height} - var(--status-bar-height));
|
// height: calc(100vh - 620px - #{$tabbar-height} - var(--status-bar-height));
|
||||||
// }
|
// }
|
||||||
|
|
@ -83,9 +92,10 @@ page {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, 0%);
|
transform: translate(-50%, 0%);
|
||||||
|
transform: translateZ(-1);
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
z-index: 99;
|
z-index: 999;
|
||||||
animation: fadeInAnimation 0.35s ease-in;
|
animation: fadeInAnimation 0.3s ease-in;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -104,12 +114,10 @@ page {
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
.swiper-narrow {
|
.swiper-narrow {
|
||||||
// height: calc(100vh - 620px - #{$tabbar-height} - var(--status-bar-height));
|
|
||||||
height: calc(
|
|
||||||
100vh - 386px - #{$tabbar-height} - var(--area-bottom-height) - var(--status-bar-height)
|
|
||||||
);
|
|
||||||
transition: height 0.35s linear;
|
|
||||||
margin-top: -200px;
|
margin-top: -200px;
|
||||||
|
height: calc(100vh - 386px - var(--height));
|
||||||
|
// transform: translateY(-520px);
|
||||||
|
// transition: all 0.25s ease-in;
|
||||||
}
|
}
|
||||||
.item-btns {
|
.item-btns {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -147,7 +155,7 @@ page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.spot-pagination {
|
.spot-pagination {
|
||||||
animation: fadeInAnimation 0.35s ease-in;
|
animation: fadeInAnimation 0.3s ease-in;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
|
|
||||||
|
|
@ -427,7 +427,7 @@ function Home () {
|
||||||
setState((draft) => {
|
setState((draft) => {
|
||||||
draft.showRecommend = true
|
draft.showRecommend = true
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 400)
|
||||||
if (!state.showBottom) {
|
if (!state.showBottom) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -461,6 +461,12 @@ function Home () {
|
||||||
|
|
||||||
const onSwiperChange = (e) => {
|
const onSwiperChange = (e) => {
|
||||||
const { current } = e.detail
|
const { current } = e.detail
|
||||||
|
if (current === 0) {
|
||||||
|
setState((draft) => {
|
||||||
|
draft.showBottom = false
|
||||||
|
draft.isUpOperation = false
|
||||||
|
})
|
||||||
|
}
|
||||||
setState((draft) => {
|
setState((draft) => {
|
||||||
draft.currentIndex = current
|
draft.currentIndex = current
|
||||||
draft.goodList = swiperList[current].goods || []
|
draft.goodList = swiperList[current].goods || []
|
||||||
|
|
@ -521,7 +527,9 @@ function Home () {
|
||||||
{/* 优惠券包 */}
|
{/* 优惠券包 */}
|
||||||
{VERSION_STANDARD && <SpCouponPackage />}
|
{VERSION_STANDARD && <SpCouponPackage />}
|
||||||
|
|
||||||
<View className="content-box">
|
<View className={classNames('content-box', {
|
||||||
|
'content-box-ovh': !isUpOperation
|
||||||
|
})}>
|
||||||
<View className="swiper-wapper" onTouchStart={handleTouchStart} onTouchEnd={handleTouchEnd}>
|
<View className="swiper-wapper" onTouchStart={handleTouchStart} onTouchEnd={handleTouchEnd}>
|
||||||
{/* <ScrollView
|
{/* <ScrollView
|
||||||
className='swiper-wapper'
|
className='swiper-wapper'
|
||||||
|
|
@ -600,9 +608,9 @@ function Home () {
|
||||||
{currentIndex === 0 ? <View className="item-btns">
|
{currentIndex === 0 ? <View className="item-btns">
|
||||||
<View className="item-tit">{activeInfo.activity_name}</View>
|
<View className="item-tit">{activeInfo.activity_name}</View>
|
||||||
<SpLogin newUser={isNewUser} onChange={handleApply}>
|
<SpLogin newUser={isNewUser} onChange={handleApply}>
|
||||||
{activeInfo.end_time * 1000 >= Date.now() && <View className="item-btn" style={{ paddingRight: 0 }} onClick={() => isLogin && handleApply()}>
|
{activeInfo.end_time * 1000 >= Date.now() && <View className="item-btn" style={{ padding: '30rpx 60rpx' }} onClick={() => isLogin && handleApply()}>
|
||||||
<View className="item-btn-txt">{activeInfo.total_count ? '已报名' : '活动申请'}</View>
|
<View className="item-btn-txt">{activeInfo.total_count ? '已报名' : '活动申请'}</View>
|
||||||
<Image className="jiantou" mode="aspectFit" src={require('../assets/hengjiantou.gif')}></Image>
|
{/* <Image className="jiantou" mode="aspectFit" src={require('../assets/hengjiantou.gif')}></Image> */}
|
||||||
</View>}
|
</View>}
|
||||||
</SpLogin>
|
</SpLogin>
|
||||||
</View> :
|
</View> :
|
||||||
|
|
@ -632,9 +640,9 @@ function Home () {
|
||||||
</View>
|
</View>
|
||||||
))}
|
))}
|
||||||
</ScrollView>}
|
</ScrollView>}
|
||||||
{/* 推荐图片+商品 */}
|
{/* 推荐图片+商品 isUpOperation && */}
|
||||||
{isUpOperation && <>
|
{isUpOperation && <>
|
||||||
{recommend.length > 0 && recommend.map((_item, id) => <View key={id + '__item'} >
|
{recommend.length > 0 && recommend.map((_item, id) => <View key={id + '__item'} className="fadeIn" >
|
||||||
<SpImage width={windowWidth * 2} height={windowWidth >= 400 ? 920 : 800} mode='scaleToFill' src={_item.img} isShowMenuByLongpress={false} lazyLoad isNew >
|
<SpImage width={windowWidth * 2} height={windowWidth >= 400 ? 920 : 800} mode='scaleToFill' src={_item.img} isShowMenuByLongpress={false} lazyLoad isNew >
|
||||||
{/* <View className="recommend_btn" style={{ [_item.postions]: '70rpx' }}>
|
{/* <View className="recommend_btn" style={{ [_item.postions]: '70rpx' }}>
|
||||||
<View className="recommend_btn-title">{_item.text}</View>
|
<View className="recommend_btn-title">{_item.text}</View>
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,8 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
&__btn {
|
&__btn {
|
||||||
border: 1px solid #000;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #000;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ export default function detail () {
|
||||||
<View>
|
<View>
|
||||||
<Text onClick={() => !activeInfo.status && setState((draft) => { draft.checked = !checked })} >我已经阅读并同意</Text>
|
<Text onClick={() => !activeInfo.status && setState((draft) => { draft.checked = !checked })} >我已经阅读并同意</Text>
|
||||||
<Text
|
<Text
|
||||||
onClick={() => Taro.navigateTo({ url: '/subpages/auth/reg-rule?type=member_logout' })}
|
onClick={() => Taro.navigateTo({ url: '/subpages/auth/reg-rule?type=activity_rule' })}
|
||||||
style={`color: #000000;text-decoration: underline;`}
|
style={`color: #000000;text-decoration: underline;`}
|
||||||
>
|
>
|
||||||
{`《${appName}活动细则》`}
|
{`《${appName}活动细则》`}
|
||||||
|
|
@ -203,7 +203,7 @@ export default function detail () {
|
||||||
title: activeInfo.activity_name,
|
title: activeInfo.activity_name,
|
||||||
path: `/pages/recommend/detail?id=${activeInfo.activity_id}`,
|
path: `/pages/recommend/detail?id=${activeInfo.activity_id}`,
|
||||||
// imageUrl: activeInfo.pics[0]
|
// imageUrl: activeInfo.pics[0]
|
||||||
imageUrl: `${process.env.APP_IMAGE_CDN_NEW}/index/logo.png`
|
imageUrl: `${process.env.APP_IMAGE_CDN_NEW}/share-logo.jpg`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,8 @@
|
||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
// border: 1PX solid #E5E5E5;
|
// border: 1PX solid #E5E5E5;
|
||||||
// color: #444;
|
// color: #444;
|
||||||
border: 1px solid #000;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #000;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
&--default {
|
&--default {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,11 @@ export default class RegRule extends Component {
|
||||||
})
|
})
|
||||||
data = registerContent + privacyContent
|
data = registerContent + privacyContent
|
||||||
navBarTitle = `${registerTitle}和${privactTitle}`
|
navBarTitle = `${registerTitle}和${privactTitle}`
|
||||||
} else if (type) {
|
} else if (type === 'activity_rule') {
|
||||||
|
data = 'xxxx'
|
||||||
|
navBarTitle = 'BIRKENSTOCK活动细则'
|
||||||
|
}
|
||||||
|
else if (type) {
|
||||||
// 隐私政策
|
// 隐私政策
|
||||||
const { content, title = '充值协议' } = await api.shop.getRuleInfo({
|
const { content, title = '充值协议' } = await api.shop.getRuleInfo({
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,8 @@
|
||||||
line-height: 78rpx;
|
line-height: 78rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 1px solid #000;
|
/* prettier-ignore */
|
||||||
|
border: 1PX solid #000;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
||||||
|
|
@ -455,10 +455,10 @@ function MemberUserInfo () {
|
||||||
confirmText: '我知道了'
|
confirmText: '我知道了'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Taro.navigateTo({
|
|
||||||
url: `/marketing/pages/member/destroy-member?phone=${formUserInfo.mobile}`
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: `/marketing/pages/member/destroy-member?phone=${formUserInfo.mobile}`
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// H5退出账号
|
// H5退出账号
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue