...
|
...
|
@@ -6,6 +6,10 @@ |
|
|
var $ = require('yoho-jquery');
|
|
|
var appVersion = $('input[name="app_version"]').val();
|
|
|
|
|
|
require('../common');
|
|
|
var yoho = require('../yoho-app');
|
|
|
|
|
|
|
|
|
$('.pitch').on('click', function() {
|
|
|
if ($('.pitch').hasClass('select')) {
|
|
|
$(this).removeClass('select');
|
...
|
...
|
@@ -18,28 +22,16 @@ $('.pitch').on('click', function() { |
|
|
|
|
|
$('.submit-btn').on('click', function() {
|
|
|
if ($('.pitch').hasClass('select')) {
|
|
|
|
|
|
if (appVersion === '1') {
|
|
|
var param = {
|
|
|
action: 'go.serviceClause',
|
|
|
params: {selected: 'Y'}
|
|
|
};
|
|
|
|
|
|
yoho.goH5('//m.yohobuy.com/passport/reg/password', JSON.stringify(param)
|
|
|
//location.href = '//m.yohobuy.com/passport/reg/password' + '?openby:yohobuy=' + encodeURIComponent(JSON.stringify(param));
|
|
|
$(this).attr('href','//m.yohobuy.com/passport/reg/password?openby:yohobuy={"action":"go.productDetail","params":{"selected":"Y"}}');
|
|
|
} else {
|
|
|
location.href = '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=Y';
|
|
|
$(this).attr('href','//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=Y');
|
|
|
}
|
|
|
} else {
|
|
|
if (appVersion === '1') {
|
|
|
var param = {
|
|
|
action: 'go.serviceClause',
|
|
|
params: {selected: 'N'}
|
|
|
};
|
|
|
|
|
|
yoho.goH5('//m.yohobuy.com/passport/reg/password', JSON.stringify(param)
|
|
|
$(this).attr('href','//m.yohobuy.com/passport/reg/password?openby:yohobuy={"action":"go.productDetail","params":{"selected":"N"}}');
|
|
|
} else {
|
|
|
location.href = '//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=N';
|
|
|
$(this).attr('href','//m.yohobuy.com/passport/reg/password' + window.location.search + '&selected=N');
|
|
|
}
|
|
|
}
|
|
|
}); |
...
|
...
|
|