Authored by 郝肖肖

'有赚协议'

@@ -79,6 +79,7 @@ class HaveGain { @@ -79,6 +79,7 @@ class HaveGain {
79 width750: true, 79 width750: true,
80 localCss: true, 80 localCss: true,
81 title: '有货有赚', 81 title: '有货有赚',
  82 + agreementUrl: 'https://activity.yoho.cn/feature/2609.html?openby:yohobuy={"action":"go.h5","params":{"url":"https://activity.yoho.cn/feature/2609.html"}}',
82 socialMediaList: socialMediaList, 83 socialMediaList: socialMediaList,
83 pageHeader: !req.yoho.isApp && headerModel.setNav({ 84 pageHeader: !req.yoho.isApp && headerModel.setNav({
84 navTitle: '有货有赚', 85 navTitle: '有货有赚',
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div class="apply-title">基本信息</div> 3 <div class="apply-title">基本信息</div>
4 <ul class="section-ul"> 4 <ul class="section-ul">
5 <li><span>姓名</span><input type="text" class="name" placeholder="请输入姓名" /></li> 5 <li><span>姓名</span><input type="text" class="name" placeholder="请输入姓名" /></li>
6 - <li class="border-node"><span>手机号码</span><input type="text" class="mobile" placeholder="请手机号码" /></li> 6 + <li class="border-node"><span>手机号码</span><input type="number" class="mobile" placeholder="请手机号码" /></li>
7 </ul> 7 </ul>
8 </div> 8 </div>
9 <div class="section"> 9 <div class="section">
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 <div class="agreement-section"> 34 <div class="agreement-section">
35 <div class="agreement"> 35 <div class="agreement">
36 <input type="checkbox" class="agree" /> 36 <input type="checkbox" class="agree" />
37 - 我已阅读并同意<em>《有货有赚推广协议》</em> 37 + 我已阅读并同意<a href='{{agreementUrl}}'><em>《有货有赚推广协议》</em></a>
38 </div> 38 </div>
39 <div class="apply-btn disable">申请开通</div> 39 <div class="apply-btn disable">申请开通</div>
40 </div> 40 </div>
1 <div class="dialog-fill-content"> 1 <div class="dialog-fill-content">
2 <div class="fill-item">账号:<input type="text" class="account" placeholder="请输入账号昵称" value="{{account}}" /></div> 2 <div class="fill-item">账号:<input type="text" class="account" placeholder="请输入账号昵称" value="{{account}}" /></div>
3 - <div class="fill-item">粉丝数:<input type="text" class="fans" placeholder="请输入粉丝数量" 3 + <div class="fill-item">粉丝数:<input type="number" class="fans" placeholder="请输入粉丝数量"
4 onkeyup="value=value.replace(/[^\d]/g,'')" value="{{fans}}" maxlength="9" /></div> 4 onkeyup="value=value.replace(/[^\d]/g,'')" value="{{fans}}" maxlength="9" /></div>
5 </div> 5 </div>
@@ -79,7 +79,7 @@ class HaveGainApplyPage extends Page { @@ -79,7 +79,7 @@ class HaveGainApplyPage extends Page {
79 }), 79 }),
80 hasFooter: { 80 hasFooter: {
81 leftBtnText: '取消', 81 leftBtnText: '取消',
82 - rightBtnText: '去添加' 82 + rightBtnText: '确定'
83 } 83 }
84 }, function() { 84 }, function() {
85 let account = $.trim($('.dialog-fill-in .account').val() || ''); 85 let account = $.trim($('.dialog-fill-in .account').val() || '');
@@ -175,7 +175,7 @@ class HaveGainApplyPage extends Page { @@ -175,7 +175,7 @@ class HaveGainApplyPage extends Page {
175 return tip.show(res.message || '请稍后再试'); 175 return tip.show(res.message || '请稍后再试');
176 } 176 }
177 177
178 - yoho.invokeMethod('go.copy', {text: '有货有赚', message: '复制成功'}); 178 + yoho.invokeMethod('go.copy', {text: '有货有赚'});
179 dialog.showDialog({ 179 dialog.showDialog({
180 hasHeader: '申请成功', 180 hasHeader: '申请成功',
181 hasClass: 'dialog-fill-in', 181 hasClass: 'dialog-fill-in',
@@ -23,7 +23,7 @@ class HaveGainVerifyPage extends Page { @@ -23,7 +23,7 @@ class HaveGainVerifyPage extends Page {
23 } 23 }
24 24
25 tapAdded() { 25 tapAdded() {
26 - yoho.invokeMethod('go.copy', {text: '有货有赚', message: '复制成功'}); 26 + yoho.invokeMethod('go.copy', {text: '有货有赚'});
27 dialog.showDialog({ 27 dialog.showDialog({
28 dialogText: '“有货有赚”服务号已经复制,请去微信搜索添加', 28 dialogText: '“有货有赚”服务号已经复制,请去微信搜索添加',
29 hasClass: 'dialog-fill-in', 29 hasClass: 'dialog-fill-in',