Authored by 孙凯

删除测试数据 review by daiqiang

... ... @@ -66,16 +66,13 @@ class GroupPurchaseDetailContainer extends Component {
didTouchButton(resource){
let pageGo = resource.pageGo ? resource.pageGo : 0;
let { activityId } = this.props.groupPurchaseDetail;
this.props.actions.showShareView(true);
return;
if(pageGo == 1) {
this.props.actions.showShareView(true);
}else if (pageGo == 2) {
}else if (pageGo == 3) {
this.props.actions.showShareView(true);
}else if (pageGo == 4 || pageGo == 5 || pageGo == 7 || pageGo == 6) {
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.activitytemplate","params":{"actionType":"2", "activityId":"${activityId}"}}`;
let url = 'http://m.yohobuy.com?openby:yohobuy={"action":"go.activitytemplate","params":{"actionType":"2", "activityId":"${activityId}"}}';
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
}
... ... @@ -88,8 +85,8 @@ return;
goComment() {
console.log('goComment');
// https://m.yohobuy.com/activity/feature/1555.html?nodownload=1&title=友货规则
// ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
let url = 'https://m.yohobuy.com/activity/feature/1555.html?nodownload=1&title=友货规则';
ReactNative.NativeModules.YH_CommonHelper.goLinkUrl(url);
}
showShareView(show){
... ...
... ... @@ -6,13 +6,11 @@ import {Platform} from "react-native";
export default class groupPurchaseService {
constructor(host) {
// let baseURL = 'http://api.yoho.cn';
// if (host) {
// baseURL = host;
// }
// this.api = new Request(baseURL);
this.api = new Request('http://api-test3.dev.yohocorp.com');
let baseURL = 'http://api.yoho.cn';
if (host) {
baseURL = host;
}
this.api = new Request(baseURL);
}
async fetchProductList(activityId,page=1, limit=20) {
... ...