Commit a5478cb9 by doszhang

dos

parent b06c156d
......@@ -192,6 +192,9 @@ let agreeSuggestion = false;
//同意按钮闪烁timer
let agreeTimer;
//记录第一次小装饰
let decoratecClick = true;
//倒计时canvas
let countDownCanvas;
let countDownCtx;
......@@ -711,7 +714,6 @@ function setDecorate(event) {
checkedDecorate = src;
$('.personal-page .checked-decorate-img').css('background', 'url(' + src + ') left top no-repeat')
.css('backgroundSize', '100%');
}
function changeMainColor(event) {
......@@ -775,8 +777,7 @@ function initDecorate() {
let img = $('<img src="' + picUrl + 'decorate' + arr[i] + '.png" class="decorateImg" />');
img.appendTo($('.personal-page .decorate-content'));
}
let left = (81.25 * fontSize) - (8.125 * fontSize);
$('.decorate-content').scrollLeft(left);
}
function showBgcolor() {
......@@ -788,8 +789,14 @@ function showDecorate() {
clickDecorate = true;
$('.personal-page .tab-bgcolor,.personal-page .tab-decorate-active,.decorate-content').show();
$('.personal-page .tab-bgcolor-active,.personal-page .tab-decorate,.bgcolor-content').hide();
if (decoratecClick) {
decoratecClick = false;
let left = (81.25 * fontSize) - (8.125 * fontSize);
$('.decorate-content').scrollLeft(left);
}
}
function showPersonalPage() {
if (!checkedDecorate) {
checkedDecorate = decorateList[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment