...
|
...
|
@@ -8,18 +8,12 @@ import user from './user'; |
|
|
import cookies from './cookies';
|
|
|
import jsonp from './jsonp';
|
|
|
|
|
|
let baseUrl = '//activity.yoho.cn';
|
|
|
|
|
|
if (location.hostname === 'm.yohobuy.com') {
|
|
|
baseUrl = '//m.yohobuy.com/activity';
|
|
|
}
|
|
|
|
|
|
let _getCoin = function(data) {
|
|
|
data.app = utils.queryString();
|
|
|
data.app.uid = data.uid;
|
|
|
|
|
|
jsonp({
|
|
|
url: `${baseUrl}/coin/sendCoin?callback=?`,
|
|
|
url: '//m.yohobuy.com/activity/coin/sendCoin?callback=?',
|
|
|
data: data
|
|
|
}).then(function(res) {
|
|
|
if (res.code === 200 && res.data) {
|
...
|
...
|
@@ -94,7 +88,7 @@ let _getCoupon = function(data){ |
|
|
|
|
|
|
|
|
jsonp({
|
|
|
url: `${baseUrl}/feature/couponSend?callback=?`,
|
|
|
url: '//m.yohobuy.com/activity/feature/couponSend?callback=?',
|
|
|
data: data
|
|
|
}).then(function(res) {
|
|
|
if (res.code === 200) {
|
...
|
...
|
|