...
|
...
|
@@ -75,14 +75,19 @@ class HaveGainApplyPage extends Page { |
|
|
hasClass: 'dialog-fill-in',
|
|
|
dialogText: fillInHbs({
|
|
|
account: $accountName.find('em').eq(0).text() || '',
|
|
|
fans: $accountName.find('em').eq(1).text() || ''
|
|
|
fans: $accountName.find('em').eq(1).data('fans') || ''
|
|
|
}),
|
|
|
hasFooter: {
|
|
|
leftBtnText: '取消',
|
|
|
rightBtnText: '去添加'
|
|
|
}
|
|
|
}, function() {
|
|
|
$accountName.html(`账号:<em>${$('.dialog-fill-in .account').val()}</em> 粉丝:<em>${$('.dialog-fill-in .fans').val()}</em>`); // eslint-disable-line
|
|
|
let fans = $('.dialog-fill-in .fans').val() || 0;
|
|
|
let fansFix = Math.round((fans / 10000) * 100) / 100; // 保留二个小数
|
|
|
|
|
|
fansFix = fansFix >= 10 ? fansFix + '万' : fans;
|
|
|
|
|
|
$accountName.html(`账号:<em>${$('.dialog-fill-in .account').val()}</em> 粉丝:<em data-fans="${fans}">${fansFix}</em>`); // eslint-disable-line
|
|
|
dialog.hideDialog();
|
|
|
$event.text('已填写').addClass('disable');
|
|
|
});
|
...
|
...
|
@@ -136,7 +141,7 @@ class HaveGainApplyPage extends Page { |
|
|
socialMediaList.push({
|
|
|
type: $accountName.data('type'),
|
|
|
account: $accountName.find('em').eq(0).text() || '',
|
|
|
fans: $accountName.find('em').eq(1).text() || ''
|
|
|
fans: $accountName.find('em').eq(1).data('fans') || ''
|
|
|
});
|
|
|
});
|
|
|
|
...
|
...
|
@@ -157,7 +162,7 @@ class HaveGainApplyPage extends Page { |
|
|
}).then(res => {
|
|
|
this.selector.isFlag = false;
|
|
|
|
|
|
if (res.code !== 200) {
|
|
|
if ([200, 613].indexOf(res.code) === -1) {
|
|
|
return tip.show(res.message || '请稍后再试');
|
|
|
}
|
|
|
|
...
|
...
|
|