Authored by zhangxiaoru

加链接

... ... @@ -4,7 +4,7 @@
<div class="input-container row has-eye">
<input id="pwd" class="input pwd" type="text" placeholder="请输入密码" autocomplete="off" maxlength="20">
</div>
<div class="app-agreement"><span></span><i class="iconfont pitch select">&#xe60a;</i>我已阅读并同意遵守YOHO!BUY有货服务条款</div>
<div class="app-agreement"><span></span><i class="iconfont pitch select">&#xe60a;</i><a class="agreement-detail">我已阅读并同意遵守YOHO!BUY有货服务条款</a></div>
<span id="btn-sure" class="btn btn-sure disable row">注册</span>
</div>
<input id="phone-num" type="hidden" value="{{phoneNum}}">
... ... @@ -15,7 +15,8 @@
<div class="prompt">
<span class="word">是否已阅读并同意遵守YOHO!BUY<br>有货服务条款</span>
<div class="choose">
<span class="ensure"></span>
<span class="deny"></span>
<span class="ensure opt"></span>
</div>
</div>
... ...
/**
/* /**
* 服务协议
* @author: zxr
* @date: 2016/10/27
*/
var $ = require('yoho-jquery');
var appVersion = $('input[name="app_version"]').val();
var yoho;
require('../common');
var yoho = require('../yoho-app'),
asyncMode = yoho.isiOS,
android = yoho.isAndroid;
yoho = require('../yoho-app');
$('.pitch').on('click', function() {
if ($('.pitch').hasClass('select')) {
... ... @@ -25,7 +23,7 @@ $('.pitch').on('click', function() {
$('.submit-btn').on('click', function() {
if ($('.pitch').hasClass('select')) {
if (appVersion === '1') {
let params = {
var params = {
action: 'go.serviceClause',
params: {selected: 'Y'}
};
... ... @@ -37,7 +35,7 @@ $('.submit-btn').on('click', function() {
}
} else {
if (appVersion === '1') {
let params = {
var params = {
action: 'go.serviceClause',
params: {selected: 'N'}
};
... ...
... ... @@ -116,3 +116,7 @@ $btnSure.on('touchstart', function() {
}
}
});
$('.agreement-detail').on('click', function() {
$(this).attr('href', '//m.yohobuy.com/passport/agreement' + window.location.search);
});
... ...
... ... @@ -234,12 +234,10 @@ body.passport-body {
}
.ensure {
display: inline-block;
float: right;
border-left: 1px solid #e0e0e0;
}
.opt {
color: red;
color: #f41e1f;
}
}
}
\ No newline at end of file
... ...