Merge branch 'dev' into develop
| | |
| | | }, |
| | | ]; |
| | | |
| | | tabBar = { |
| | | position: 'bottom', |
| | | color: '#B2B2B2', |
| | | selectedColor: '#000000', |
| | | backgroundColor: '#fff', |
| | | borderStyle: 'white', |
| | | custom: false, |
| | | list: [ |
| | | // { |
| | | // pagePath: 'pages/home/index', |
| | | // text: '发现', |
| | | // iconPath: './assets/tabbar/tab_icon_home.png', |
| | | // selectedIconPath: './assets/tabbar/tab_icon_home_act.png', |
| | | // }, |
| | | { |
| | | pagePath: 'pages/robotaxi/home/index', |
| | | text: 'Robotaxi', |
| | | iconPath: './assets/tabbar/tab_icon_drive.png', |
| | | selectedIconPath: './assets/tabbar/tab_icon_drive_act.png', |
| | | }, |
| | | { |
| | | pagePath: 'pages/xpeng/index', |
| | | text: '购车', |
| | | iconPath: './assets/tabbar/tab_icon_buy.png', |
| | | selectedIconPath: './assets/tabbar/tab_icon_buy_act.png', |
| | | }, |
| | | { |
| | | pagePath: 'pages/map/index', |
| | | text: '充电', |
| | | iconPath: './assets/tabbar/tab_icon_map.png', |
| | | selectedIconPath: './assets/tabbar/tab_icon_map_act.png', |
| | | }, |
| | | { |
| | | pagePath: 'pages/user/index', |
| | | text: '我的', |
| | | iconPath: './assets/tabbar/tab_icon_mine.png', |
| | | selectedIconPath: './assets/tabbar/tab_icon_mine_act.png', |
| | | }, |
| | | ], |
| | | }; |
| | | // tabBar = { |
| | | // position: 'bottom', |
| | | // color: '#B2B2B2', |
| | | // selectedColor: '#000000', |
| | | // backgroundColor: '#fff', |
| | | // borderStyle: 'white', |
| | | // custom: false, |
| | | // list: [ |
| | | // // { |
| | | // // pagePath: 'pages/home/index', |
| | | // // text: '发现', |
| | | // // iconPath: './assets/tabbar/tab_icon_home.png', |
| | | // // selectedIconPath: './assets/tabbar/tab_icon_home_act.png', |
| | | // // }, |
| | | // { |
| | | // pagePath: 'pages/robotaxi/home/index', |
| | | // text: 'Robotaxi', |
| | | // iconPath: './assets/tabbar/tab_icon_drive.png', |
| | | // selectedIconPath: './assets/tabbar/tab_icon_drive_act.png', |
| | | // }, |
| | | // { |
| | | // pagePath: 'pages/xpeng/index', |
| | | // text: '购车', |
| | | // iconPath: './assets/tabbar/tab_icon_buy.png', |
| | | // selectedIconPath: './assets/tabbar/tab_icon_buy_act.png', |
| | | // }, |
| | | // { |
| | | // pagePath: 'pages/map/index', |
| | | // text: '充电', |
| | | // iconPath: './assets/tabbar/tab_icon_map.png', |
| | | // selectedIconPath: './assets/tabbar/tab_icon_map_act.png', |
| | | // }, |
| | | // { |
| | | // pagePath: 'pages/user/index', |
| | | // text: '我的', |
| | | // iconPath: './assets/tabbar/tab_icon_mine.png', |
| | | // selectedIconPath: './assets/tabbar/tab_icon_mine_act.png', |
| | | // }, |
| | | // ], |
| | | // }; |
| | | |
| | | plugins = { |
| | | }; |
| | |
| | | }, |
| | | } |
| | | |
| | | if (process.env.TARO_ENV !== 'jd') { |
| | | config.tabBar = tabBar; |
| | | } |
| | | // if (process.env.TARO_ENV !== 'jd') { |
| | | // config.tabBar = tabBar; |
| | | // } |
| | | |
| | | if (process.env.TARO_ENV === 'alipay') { |
| | | config.window.allowsBounceVertical = 'NO'; |
| | |
| | | </View> |
| | | <View className='cancel-tip-box'> |
| | | <View className='cancel-tip-box-title'>{STATUS_MAP[cancelType].title}</View> |
| | | { |
| | | ((discountAmountValue > 0 && cancelType === 1) || cancelType !== 1) && |
| | | <View className='cancel-tip-box-desc color1'> |
| | | 本单限时优惠{discountAmountValue}元,重新叫车可能等待更久 |
| | | </View> |
| | | } |
| | | <View className={`cancel-tip-box-desc ${cancelType === 4 && 'color1'}`}>{STATUS_MAP[cancelType].tip}</View> |
| | | </View> |
| | | { |
| | |
| | | clearOrderTripStorage(); |
| | | Taro.removeStorageSync('endSite'); |
| | | } |
| | | Taro.switchTab({ |
| | | Taro.reLaunch({ |
| | | url: '/pages/robotaxi/home/index' |
| | | }) |
| | | } |
| | |
| | | } |
| | | <ScrollView className="site-list" scrollY> |
| | | { |
| | | nearbySites.map((item, index) => ( |
| | | <View onClick={() => changeChildrenSite(item)} key={index} className={`site-name ${selectedSite.name == item.name && 'site-active'}`}>{item.name}</View> |
| | | nearbySites.map(item => ( |
| | | <View onClick={() => changeChildrenSite(item)} key={item.id} className={`site-name ${selectedSite.id == item.id && 'site-active'}`}>{item.name}</View> |
| | | )) |
| | | } |
| | | </ScrollView> |
| | |
| | | <View className='history-name'>{item.name || '_'}</View> |
| | | <View className='history-address-box'> |
| | | <View className='history-address'>{item.address || '-'}</View> |
| | | <View className='history-distance'>{item.distance}</View> |
| | | <View className='history-distance'>{item.distance}km</View> |
| | | </View> |
| | | </View> |
| | | </View> |