Authored by zhangxiaoru

加链接

@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <div class="input-container row has-eye"> 4 <div class="input-container row has-eye">
5 <input id="pwd" class="input pwd" type="text" placeholder="请输入密码" autocomplete="off" maxlength="20"> 5 <input id="pwd" class="input pwd" type="text" placeholder="请输入密码" autocomplete="off" maxlength="20">
6 </div> 6 </div>
7 - <div class="app-agreement"><span></span><i class="iconfont pitch select">&#xe60a;</i>我已阅读并同意遵守YOHO!BUY有货服务条款</div> 7 + <div class="app-agreement"><span></span><i class="iconfont pitch select">&#xe60a;</i><a class="agreement-detail">我已阅读并同意遵守YOHO!BUY有货服务条款</a></div>
8 <span id="btn-sure" class="btn btn-sure disable row">注册</span> 8 <span id="btn-sure" class="btn btn-sure disable row">注册</span>
9 </div> 9 </div>
10 <input id="phone-num" type="hidden" value="{{phoneNum}}"> 10 <input id="phone-num" type="hidden" value="{{phoneNum}}">
@@ -15,7 +15,8 @@ @@ -15,7 +15,8 @@
15 <div class="prompt"> 15 <div class="prompt">
16 <span class="word">是否已阅读并同意遵守YOHO!BUY<br>有货服务条款</span> 16 <span class="word">是否已阅读并同意遵守YOHO!BUY<br>有货服务条款</span>
17 <div class="choose"> 17 <div class="choose">
  18 + <span class="ensure"></span>
18 <span class="deny"></span> 19 <span class="deny"></span>
19 - <span class="ensure opt"></span> 20 +
20 </div> 21 </div>
21 </div> 22 </div>
1 -/** 1 +/* /**
2 * 服务协议 2 * 服务协议
3 * @author: zxr 3 * @author: zxr
4 * @date: 2016/10/27 4 * @date: 2016/10/27
5 */ 5 */
6 var $ = require('yoho-jquery'); 6 var $ = require('yoho-jquery');
7 var appVersion = $('input[name="app_version"]').val(); 7 var appVersion = $('input[name="app_version"]').val();
  8 +var yoho;
8 9
9 require('../common'); 10 require('../common');
10 -var yoho = require('../yoho-app'),  
11 - asyncMode = yoho.isiOS,  
12 - android = yoho.isAndroid;  
13 - 11 +yoho = require('../yoho-app');
14 12
15 $('.pitch').on('click', function() { 13 $('.pitch').on('click', function() {
16 if ($('.pitch').hasClass('select')) { 14 if ($('.pitch').hasClass('select')) {
@@ -25,7 +23,7 @@ $('.pitch').on('click', function() { @@ -25,7 +23,7 @@ $('.pitch').on('click', function() {
25 $('.submit-btn').on('click', function() { 23 $('.submit-btn').on('click', function() {
26 if ($('.pitch').hasClass('select')) { 24 if ($('.pitch').hasClass('select')) {
27 if (appVersion === '1') { 25 if (appVersion === '1') {
28 - let params = { 26 + var params = {
29 action: 'go.serviceClause', 27 action: 'go.serviceClause',
30 params: {selected: 'Y'} 28 params: {selected: 'Y'}
31 }; 29 };
@@ -37,7 +35,7 @@ $('.submit-btn').on('click', function() { @@ -37,7 +35,7 @@ $('.submit-btn').on('click', function() {
37 } 35 }
38 } else { 36 } else {
39 if (appVersion === '1') { 37 if (appVersion === '1') {
40 - let params = { 38 + var params = {
41 action: 'go.serviceClause', 39 action: 'go.serviceClause',
42 params: {selected: 'N'} 40 params: {selected: 'N'}
43 }; 41 };
@@ -116,3 +116,7 @@ $btnSure.on('touchstart', function() { @@ -116,3 +116,7 @@ $btnSure.on('touchstart', function() {
116 } 116 }
117 } 117 }
118 }); 118 });
  119 +
  120 +$('.agreement-detail').on('click', function() {
  121 + $(this).attr('href', '//m.yohobuy.com/passport/agreement' + window.location.search);
  122 +});
@@ -234,12 +234,10 @@ body.passport-body { @@ -234,12 +234,10 @@ body.passport-body {
234 } 234 }
235 235
236 .ensure { 236 .ensure {
  237 + display: inline-block;
237 float: right; 238 float: right;
238 border-left: 1px solid #e0e0e0; 239 border-left: 1px solid #e0e0e0;
239 - }  
240 -  
241 - .opt {  
242 - color: red; 240 + color: #f41e1f;
243 } 241 }
244 } 242 }
245 } 243 }