Authored by zhangxiaoru

跳转

@@ -7,7 +7,9 @@ var $ = require('yoho-jquery'); @@ -7,7 +7,9 @@ var $ = require('yoho-jquery');
7 var appVersion = $('input[name="app_version"]').val(); 7 var appVersion = $('input[name="app_version"]').val();
8 8
9 require('../common'); 9 require('../common');
10 -var yoho = require('../yoho-app'); 10 +var yoho = require('../yoho-app'),
  11 + asyncMode = yoho.isiOS,
  12 + android = yoho.isAndroid;
11 13
12 14
13 $('.pitch').on('click', function() { 15 $('.pitch').on('click', function() {
@@ -23,13 +25,24 @@ $('.pitch').on('click', function() { @@ -23,13 +25,24 @@ $('.pitch').on('click', function() {
23 $('.submit-btn').on('click', function() { 25 $('.submit-btn').on('click', function() {
24 if ($('.pitch').hasClass('select')) { 26 if ($('.pitch').hasClass('select')) {
25 if (appVersion === '1') { 27 if (appVersion === '1') {
26 - $(this).attr('href', '//m.yohobuy.com/passport/reg/password?openby:yohobuy={"action":"go.productDetail","params":{"selected":"Y"}}'); 28 + let params = {
  29 + action: 'go.serviceClause',
  30 + params: {selected: 'Y'}
  31 + };
  32 +
  33 + yoho.invokeMethod('go.serviceClause', params.params);
  34 +
27 } else { 35 } else {
28 $(this).attr('href', '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=Y'); 36 $(this).attr('href', '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=Y');
29 } 37 }
30 } else { 38 } else {
31 if (appVersion === '1') { 39 if (appVersion === '1') {
32 - $(this).attr('href', '//m.yohobuy.com/passport/reg/password?openby:yohobuy={"action":"go.productDetail","params":{"selected":"N"}}'); 40 + let params = {
  41 + action: 'go.serviceClause',
  42 + params: {selected: 'N'}
  43 + };
  44 +
  45 + yoho.invokeMethod('go.serviceClause', params.params);
33 } else { 46 } else {
34 $(this).attr('href', '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=N'); 47 $(this).attr('href', '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=N');
35 } 48 }