Authored by yoho-js001

Fix UI bug.

... ... @@ -33,7 +33,7 @@ export default class BrandCell extends Component {
<View style={{flex:1}}>
<Image style={styles.image} source={{uri:shop_logo}}/>
<View style={styles.footerContainer}>
<Text style={styles.text}>上新{new_product_num}</Text>
<Text style={styles.text} numberOfLines={1}>上新{new_product_num}</Text>
<Image style={styles.arrowImage} source={require('../../image/arrow_small_ic.png')}/>
</View>
</View>
... ...
... ... @@ -30,7 +30,7 @@ export function getTopInfo() {
return (dispatch, getState) => {
let {app} = getState();
dispatch(topInfoRequest());
return new NewArrivalService('http://api-test3.yohops.com:9999').fetchRecommendShop(app.channel)
return new NewArrivalService('http://api.gray.yohops.com').fetchRecommendShop(app.channel)
.then(json => {
let {
shop_list,
... ... @@ -63,7 +63,7 @@ export function getTopInfo() {
*/
let logData = [];
let F_INDEX = 1;
if (first_part.length) {
if (first_part&&first_part.length) {
let LIST = [];
let I_INDEX = 1;
for (var i = 0; i < first_part.length; i++) {
... ... @@ -85,7 +85,7 @@ export function getTopInfo() {
F_INDEX ++;
}
if (shop_list.length) {
if (shop_list&&shop_list.length) {
let LIST = [];
let I_INDEX = 1;
for (var i = 0; i < shop_list.length; i++) {
... ... @@ -107,7 +107,7 @@ export function getTopInfo() {
F_INDEX ++;
}
if (second_part.length) {
if (second_part&&second_part.length) {
let LIST = [];
let I_INDEX = 1;
for (var i = 0; i < second_part.length; i++) {
... ... @@ -190,7 +190,7 @@ export function getProductList(reload=false) {
}
}
dispatch(productListRequest());
return new NewArrivalService('http://api-test3.yohops.com:9999').fetchProductList(channel, order, page, pageSize, allFilterFactors)
return new NewArrivalService('http://api.gray.yohops.com').fetchProductList(channel, order, page, pageSize, allFilterFactors)
.then(json => {
let payload = parseProductList(json);
payload.endReached = payload.currentPage == payload.pageCount;
... ... @@ -398,7 +398,7 @@ export function getRecommendBrand() {
let channel = app.channel;
dispatch(recommendBrandRequest());
return new NewArrivalService('http://api-test3.yohops.com:9999').fetchRecommendBrand(channel)
return new NewArrivalService('http://api.gray.yohops.com').fetchRecommendBrand(channel)
.then(json => {
let hotBrandList = json.hot_brand_list;
let browseBrandList = json.browse_brand_list;
... ...