|
|
@@ -246,21 +246,26 @@ export default function Component(props: { addItem: Function, firstItem: any })
|
|
|
|
|
|
function getLineBottom(){
|
|
|
if (user.isLogin){
|
|
|
- return -rpxToPx(60)
|
|
|
+ return props.firstItem?-rpxToPx(60):0
|
|
|
}
|
|
|
else {
|
|
|
- if (modeOn){
|
|
|
- return 0//-rpxToPx(60)
|
|
|
- }
|
|
|
- else {
|
|
|
- return 0
|
|
|
- }
|
|
|
+ return props.firstItem?0:rpxToPx(60)
|
|
|
+ // if (modeOn){
|
|
|
+ // return 0//-rpxToPx(60)
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // return 0
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function clickSwitch(){
|
|
|
if (lastUnFinished){
|
|
|
+ Taro.vibrateShort({
|
|
|
+ type:'heavy'
|
|
|
+ })
|
|
|
Taro.showModal({
|
|
|
+ title: t('feature.common.prompt'),
|
|
|
content:t('feature.food.disable_switch_modal_title'),
|
|
|
confirmText:t('feature.food.disable_switch_modal_btn'),
|
|
|
showCancel:false
|