|
@ -1,6 +1,7 @@ |
|
|
import {Cell} from '@nutui/nutui-react-taro' |
|
|
import {Cell} from '@nutui/nutui-react-taro' |
|
|
import navTo from "@/utils/common"; |
|
|
import navTo from "@/utils/common"; |
|
|
import Taro from '@tarojs/taro' |
|
|
import Taro from '@tarojs/taro' |
|
|
|
|
|
import {View,Text} from '@tarojs/components' |
|
|
import {ArrowRight, ShieldCheck, LogisticsError, Location, Reward, Tips, Ask} from '@nutui/icons-react-taro' |
|
|
import {ArrowRight, ShieldCheck, LogisticsError, Location, Reward, Tips, Ask} from '@nutui/icons-react-taro' |
|
|
|
|
|
|
|
|
const UserCell = () => { |
|
|
const UserCell = () => { |
|
@ -25,25 +26,25 @@ const UserCell = () => { |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
|
<div className={'px-4'}> |
|
|
|
|
|
|
|
|
<View className={'px-4'}> |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
|
style={{ |
|
|
style={{ |
|
|
backgroundImage: 'linear-gradient(to right bottom, #54a799, #177b73)', |
|
|
backgroundImage: 'linear-gradient(to right bottom, #54a799, #177b73)', |
|
|
}} |
|
|
}} |
|
|
title={ |
|
|
title={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}} onClick={() => navTo('/dealer/index', true)}> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}} onClick={() => navTo('/dealer/index', true)}> |
|
|
<Reward className={'text-orange-100 '} size={16}/> |
|
|
<Reward className={'text-orange-100 '} size={16}/> |
|
|
<span style={{fontSize: '16px'}} className={'pl-3 text-orange-100 font-medium'}>开通会员</span> |
|
|
|
|
|
<span className={'text-white opacity-80 pl-3'}>享优惠</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<Text style={{fontSize: '16px'}} className={'pl-3 text-orange-100 font-medium'}>开通会员</Text> |
|
|
|
|
|
<Text className={'text-white opacity-80 pl-3'}>享优惠</Text> |
|
|
|
|
|
</View> |
|
|
} |
|
|
} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
/> |
|
|
/> |
|
|
<Cell.Group divider={true} description={ |
|
|
<Cell.Group divider={true} description={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
<span style={{marginTop: '12px'}}>我的服务</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
<Text style={{marginTop: '12px'}}>我的服务</Text> |
|
|
|
|
|
</View> |
|
|
}> |
|
|
}> |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
@ -51,10 +52,10 @@ const UserCell = () => { |
|
|
display: 'none' |
|
|
display: 'none' |
|
|
}} |
|
|
}} |
|
|
title={ |
|
|
title={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
<LogisticsError size={16}/> |
|
|
<LogisticsError size={16}/> |
|
|
<span className={'pl-3 text-sm'}>我的钱包</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<Text className={'pl-3 text-sm'}>我的钱包</Text> |
|
|
|
|
|
</View> |
|
|
} |
|
|
} |
|
|
align="center" |
|
|
align="center" |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
@ -65,10 +66,10 @@ const UserCell = () => { |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
|
title={ |
|
|
title={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
<Location size={16}/> |
|
|
<Location size={16}/> |
|
|
<span className={'pl-3 text-sm'}>收货地址</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<Text className={'pl-3 text-sm'}>收货地址</Text> |
|
|
|
|
|
</View> |
|
|
} |
|
|
} |
|
|
align="center" |
|
|
align="center" |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
@ -79,10 +80,10 @@ const UserCell = () => { |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
|
title={ |
|
|
title={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
<ShieldCheck size={16}/> |
|
|
<ShieldCheck size={16}/> |
|
|
<span className={'pl-3 text-sm'}>实名认证</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<Text className={'pl-3 text-sm'}>实名认证</Text> |
|
|
|
|
|
</View> |
|
|
} |
|
|
} |
|
|
align="center" |
|
|
align="center" |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
@ -93,10 +94,10 @@ const UserCell = () => { |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
|
title={ |
|
|
title={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
<Ask size={16}/> |
|
|
<Ask size={16}/> |
|
|
<span className={'pl-3 text-sm'}>常见问题</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<Text className={'pl-3 text-sm'}>常见问题</Text> |
|
|
|
|
|
</View> |
|
|
} |
|
|
} |
|
|
align="center" |
|
|
align="center" |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
@ -107,10 +108,10 @@ const UserCell = () => { |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
|
title={ |
|
|
title={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
<Tips size={16}/> |
|
|
<Tips size={16}/> |
|
|
<span className={'pl-3 text-sm'}>关于我们</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<Text className={'pl-3 text-sm'}>关于我们</Text> |
|
|
|
|
|
</View> |
|
|
} |
|
|
} |
|
|
align="center" |
|
|
align="center" |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
|
extra={<ArrowRight color="#cccccc" size={18}/>} |
|
@ -120,9 +121,9 @@ const UserCell = () => { |
|
|
/> |
|
|
/> |
|
|
</Cell.Group> |
|
|
</Cell.Group> |
|
|
<Cell.Group divider={true} description={ |
|
|
<Cell.Group divider={true} description={ |
|
|
<div style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
<span style={{marginTop: '12px'}}>账号管理</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<View style={{display: 'inline-flex', alignItems: 'center'}}> |
|
|
|
|
|
<Text style={{marginTop: '12px'}}>账号管理</Text> |
|
|
|
|
|
</View> |
|
|
}> |
|
|
}> |
|
|
<Cell |
|
|
<Cell |
|
|
className="nutui-cell-clickable" |
|
|
className="nutui-cell-clickable" |
|
@ -139,7 +140,7 @@ const UserCell = () => { |
|
|
onClick={onLogout} |
|
|
onClick={onLogout} |
|
|
/> |
|
|
/> |
|
|
</Cell.Group> |
|
|
</Cell.Group> |
|
|
</div> |
|
|
|
|
|
|
|
|
</View> |
|
|
</> |
|
|
</> |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|