Authored by zhangxiaoru

跳转

... ... @@ -7,7 +7,9 @@ var $ = require('yoho-jquery');
var appVersion = $('input[name="app_version"]').val();
require('../common');
var yoho = require('../yoho-app');
var yoho = require('../yoho-app'),
asyncMode = yoho.isiOS,
android = yoho.isAndroid;
$('.pitch').on('click', function() {
... ... @@ -23,13 +25,24 @@ $('.pitch').on('click', function() {
$('.submit-btn').on('click', function() {
if ($('.pitch').hasClass('select')) {
if (appVersion === '1') {
$(this).attr('href', '//m.yohobuy.com/passport/reg/password?openby:yohobuy={"action":"go.productDetail","params":{"selected":"Y"}}');
let params = {
action: 'go.serviceClause',
params: {selected: 'Y'}
};
yoho.invokeMethod('go.serviceClause', params.params);
} else {
$(this).attr('href', '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=Y');
}
} else {
if (appVersion === '1') {
$(this).attr('href', '//m.yohobuy.com/passport/reg/password?openby:yohobuy={"action":"go.productDetail","params":{"selected":"N"}}');
let params = {
action: 'go.serviceClause',
params: {selected: 'N'}
};
yoho.invokeMethod('go.serviceClause', params.params);
} else {
$(this).attr('href', '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=N');
}
... ...