修改确认用户信息逻辑
This commit is contained in:
@@ -700,6 +700,9 @@ body {
|
||||
font-size: 0.3733333333rem;
|
||||
margin-bottom: 0.5333333333rem;
|
||||
}
|
||||
.sure .sure_in b i {
|
||||
font-style: normal;
|
||||
}
|
||||
.sure .sure_in .close {
|
||||
float: left;
|
||||
width: 3.3066666667rem;
|
||||
|
@@ -779,6 +779,9 @@ body {
|
||||
color: #8A8CAB;
|
||||
font-size: px2rem(28, );
|
||||
margin-bottom: px2rem(40, );
|
||||
i{
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.close {
|
||||
|
@@ -216,15 +216,15 @@ $('.page1 .payBut').click(function () {
|
||||
toastMsg('請先勾選充值協議')
|
||||
return
|
||||
}
|
||||
if (browser.app) {
|
||||
apply2New();
|
||||
} else {
|
||||
$('.sure .sure_in img').attr('src', $('.userinfo img').attr('src'));
|
||||
$('.sure .sure_in p').text($('.userinfo .name').text());
|
||||
$('.sure .sure_in b').text($('.userinfo .id').text());
|
||||
$('.sure').show();
|
||||
bodyScroolFun(ture);
|
||||
}
|
||||
// if (browser.app) {
|
||||
apply2New();
|
||||
// } else {
|
||||
// $('.sure .sure_in img').attr('src', $('.userinfo img').attr('src'));
|
||||
// $('.sure .sure_in p').text($('.userinfo .name').text());
|
||||
// $('.sure .sure_in b').text($('.userinfo .id').text());
|
||||
// $('.sure').show();
|
||||
// bodyScroolFun(true);
|
||||
// }
|
||||
})
|
||||
// 确定绑定按钮
|
||||
$('.bindingBox .binding .but').click(function () {
|
||||
@@ -239,13 +239,11 @@ $('.bindingBox .binding .but').click(function () {
|
||||
data: { erbanNo: $('.bindingBox .binding input').val(), },
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
$('.bindingBox').hide();
|
||||
$('.bindingBox .binding input').val('');
|
||||
$('.userinfo img').attr('src', res.data.avatar);
|
||||
$('.userinfo .name').text(res.data.nick);
|
||||
$('.userinfo .id').text(`Piko ID: ${res.data.erbanNo}`);
|
||||
$('.userinfo').show();
|
||||
erbanNo = res.data.erbanNo;
|
||||
$('.sure .sure_in img').attr('src', res.data.avatar);
|
||||
$('.sure .sure_in p').text(res.data.nick);
|
||||
$('.sure .sure_in b').html(`Piko ID: <i>${res.data.erbanNo}</i>`);
|
||||
$('.sure').show();
|
||||
bodyScroolFun(true);
|
||||
} else if (res.code == 1404) {
|
||||
bodyScroolFun(true);
|
||||
$('.userNull').show();
|
||||
@@ -289,27 +287,7 @@ $('.userNull .userNull_in .but').click(function () {
|
||||
bodyScroolFun(false);
|
||||
$('.userNull').hide();
|
||||
})
|
||||
// 关注接口
|
||||
function fansLike () {
|
||||
// showLoading();
|
||||
networkRequest({
|
||||
type: 'POST',
|
||||
url: urlPrefix + '/fans/like',
|
||||
data: {},
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
} else {
|
||||
toastMsg(res.message);
|
||||
}
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex);
|
||||
toastMsg('網絡錯誤');
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
// 代充列表接口
|
||||
function rechargeUserList (regionCode) {
|
||||
showLoading();
|
||||
@@ -358,18 +336,47 @@ $('.page2 ul').on('click', 'li .copy', function () {
|
||||
var erbanNo = $(this).attr('erbanNo');
|
||||
copyToClipboard(erbanNo);
|
||||
})
|
||||
// 关注接口
|
||||
function fansLike (likedUid) {
|
||||
// showLoading();
|
||||
networkRequest({
|
||||
type: 'POST',
|
||||
url: urlPrefix + '/fans/like',
|
||||
data: { likedUid, type: 1, uid: pubInfo.uid },
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openPersonPage(uid);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message);
|
||||
}
|
||||
hideLoading(layerIndex);
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex);
|
||||
toastMsg('網絡錯誤');
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
// 代充联系按钮
|
||||
$('.page2 ul').on('click', 'li .but', function () {
|
||||
var erbanNo = $(this).attr('erbanNo');
|
||||
var uid = $(this).attr('uid');
|
||||
if (browser.app) {
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openPersonPage(uid);
|
||||
}
|
||||
}
|
||||
fansLike(uid)
|
||||
// if (browser.ios) {
|
||||
// window.webkit.messageHandlers.openPersonPage.postMessage(uid);
|
||||
// } else if (browser.android) {
|
||||
// if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
// window.androidJsObj.openPersonPage(uid);
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
$('.toastMasge').show();
|
||||
bodyScroolFun(true);
|
||||
@@ -445,5 +452,11 @@ $('.sure .sure_in .close').click(function () {
|
||||
$('.sure .sure_in .ok').click(function () {
|
||||
$('.sure').hide();
|
||||
bodyScroolFun(false);
|
||||
apply2New();
|
||||
$('.bindingBox').hide();
|
||||
$('.bindingBox .binding input').val('');
|
||||
$('.userinfo img').attr('src', $('.sure .sure_in img').attr('src'));
|
||||
$('.userinfo .name').text($('.sure .sure_in p').text());
|
||||
$('.userinfo .id').text(`Piko ID: ${$('.sure .sure_in b i').text()}`);
|
||||
$('.userinfo').show();
|
||||
erbanNo = $('.sure .sure_in b i').text();
|
||||
})
|
||||
|
Reference in New Issue
Block a user